[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: Fw: [cdt-debug-dev] Will GDB 5.3 work?
|
>
> Hi Alain -
>
> Thanks for your help below. (My problem was that I had mistakenly set
> "GDB Server" as my debugger.)
>
> I have some questions regarding your comment at the end:
> "suspend does not work well(if at all) for Solaris gdb"
>
> 1. Are you referring to Gnats 673? (
> http://sources.redhat.com/cgi-bin/gnatsweb.pl) I could find no other
> gnats report.
>
Yes, gdb GNATS but it is not 673.
> 2. How does this impact a CDT user's debug session? (I have been able to
> stop at breakpoints using Solaris gdb.)
>
Stopping/suspending a running program to inspect its stacktrace. If you set the breakpoint before
or while you are suspended you are fine.
To make this clear this is not a CDT problem, you can easily reproduce
on the console: Where "/dev/pts/2" is some other terminal from an xterm
run the program and try to suspend it(with CTRL-C).
gdb --tty=/dev/pts/2 foobar
(gdb) run
....
CTRL-C
We try to cope with this, the best possible by trying with some &*#&@ ugly
hack to retreive the PID of the process and drop the signal ourselve to the
inferior, but it's not portable and does not work all the time.