[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] CDT debug and ptys
|
Oops! typo. See below.
>
> In brief. The way we do things; creating a master/slave pty and spawning
> gdb with -tty slave seems to work ok.
> Advantages:
> - we can read/write on the master side so the input/output will appear on
> the eclipse console. Which is a big plus over spawning 'xterm -e ...'
> - separation of the output from gdb.
> - can suspend correctly since gdb does share the same tty with the inferior
^^^^
__does not__
> so sending a SIGINT will stop the process.
>
> Cons:
> - needs a Unix environment at least one that understand pseudo-terminals
> - Suspend still does not work on solaris i.e. On solaris if you try this:
> # gdb -i mi -tty /dev/pts/4 hello
> (gdb)
> r
> ^C^C^C <------- hitting the keyboard CTRL-C
> ....
> (Changing xterm)
> # ps -ef |grep gdb
> # kill -2 gdb_pid
>
> The actions do not interrupt the process. At this point we decide this a bug
> in gdb/solaris.