[CCed to pyclewn mailing list]
On Mon, Mar 28, 2011 at 12:57 PM, Timothy Madden wrote:
>
>> The 'none' LOCATION has been implemented and pushed to the repository.
>> You can install the attached pyclewn source distribution or follow the
>> instructions at http://pyclewn.sourceforge.net/mercurial.html to build
>> the source distribution and install from it.
>>
>
> Excelent !
> It works as expected and the window is no longer opened automatically all
> the time.
I have just commited a minor fix to this patch that reduces the amount
of redrawing done by Vim when this option is used.
>
> Also can you please let me know (and write in the help file) how can I
> create a pseudo-tty for use with gbd in pyclewn ?
> Because I always seem to get 'operation not permitted' error and although I
> can see output in the chosen console, input is still directed to the shell
> that I have run tty command in (to get the tty name), even if that is
> suspended.
>
I have commited the following patch that documents an example of the use of
a pseudo-tty for gdb debuggee input/output redirection:
=====================================================================
diff --git a/runtime/doc/pyclewn.txt b/runtime/doc/pyclewn.txt
--- a/runtime/doc/pyclewn.txt
+++ b/runtime/doc/pyclewn.txt
@@ -1,4 +1,4 @@
-*pyclewn.txt* Last change: 2011 March 26
+*pyclewn.txt* Last change: 2011 March 28
PYCLEWN USER MANUAL
@@ -520,6 +520,35 @@
On Windows, gdb pops up a console attached to the program to debug.
+Note:
+On linux, to redirect the output of the debuggee in a terminal, start a new
+terminal and get the new terminal name with the `tty` command. Let's assume it
+is `dev/pts/7`. In pyclewn, run the following command before starting the
+debuggee: >
+
+ :Ctty /dev/pts/7
+
+The above method does not work for input redirection as the shell in
+`dev/pts/7` is also reading the terminal input. In that case start from the
+`dev/pts/7` terminal a second xterm process with the following command: >
+
+ $ xterm -Sabc/3
+
+Input/output redirection can be set now to `dev/pts/7` with: >
+
+ :Ctty /dev/pts/7
+
+The following warning output by gdb has been introduced after gdb 6.8, by the
+gdb patch: http://sourceware.org/ml/gdb-patches/2008-03/msg00103.html: >
+
+ GDB: Failed to set controlling terminal: Operation not permitted
+
+This warning says that the terminal could not be set as a controlling
+terminal for the program to debug, which means that this process cannot
+receive from the terminal signals such as SIGINT or SIGWINCH. When needing a
+fully featured controlling terminal, use the <attach> gdb command to a running
+process instead of input/output redirection.
+
*async-option*
Async option:
=====================================================================
--
Xavier
Les Chemins de Lokoti: http://lokoti.alwaysdata.net
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and publish
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general