public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdbserver multithread support broken in 5.2.1?
@ 2002-07-26 17:12 Dan Kegel
  2002-07-29  6:39 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Kegel @ 2002-07-26 17:12 UTC (permalink / raw)
  To: gdb

With gdb+dejagnu-weekly-CVS-20020709, remote debugging works fine on ppc405.

With gdb-5.2.1 built the same way, it doesn't seem to work, and I
get the error message
   GDB bug: target.c (target_signal_from_host): unrecognized real-time signal
from gdbserver.

The problem seems to be in gdbserver, as the new gdb works fine with the old
gdbserver.  When I debug a trivial 9-threaded program:
the breakpoint on main works fine, but a breakpoint on the first created
thread's main routine fails.  Here's the gdb log:

(gdb) target remote 10.0.1.1:1234
Remote debugging using 10.0.1.1:1234
0x30013ae8 in ?? ()
(gdb) break main
Breakpoint 1 at 0x10000a00: file atomicity_test.c, line 46.
(gdb) cont
Continuing.

Breakpoint 1, main (argc=1, argv=0x7ffffe84) at atomicity_test.c:46
46              int switches = 0;
(gdb) break my_thread_main
Breakpoint 2 at 0x10000964: file atomicity_test.c, line 33.
(gdb) cont
Continuing.

And here's the log on the remote system:

# gdbserver foo:1234 ./a.out
Process ./a.out created; pid = 452
Remote debugging from host 192.168.6.130
nthreads 8, nloops 100000, nrepeats 100
GDB bug: target.c (target_signal_from_host): unrecognized real-time signal

There wasn't much time between those two releases, so it shouldn't be
too hard to track the problem down.  I haven't looked at the
diffs yet; I was kind of hoping somebody would know what was up...

(In both cases, I had applied a patch to give an initial value for
solib-absolute-prefix, but it's hard to imagine that was causing a problem...)

Thanks for any suggestions!
- Dan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdbserver multithread support broken in 5.2.1?
  2002-07-26 17:12 gdbserver multithread support broken in 5.2.1? Dan Kegel
@ 2002-07-29  6:39 ` Daniel Jacobowitz
  2002-07-29  8:44   ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-07-29  6:39 UTC (permalink / raw)
  To: Dan Kegel; +Cc: gdb

On Fri, Jul 26, 2002 at 05:53:59PM -0700, Dan Kegel wrote:
> With gdb+dejagnu-weekly-CVS-20020709, remote debugging works fine on ppc405.
> 
> With gdb-5.2.1 built the same way, it doesn't seem to work, and I
> get the error message
>   GDB bug: target.c (target_signal_from_host): unrecognized real-time signal
> from gdbserver.

CVS branches strike again.  5.2.1 is a maintenance release only; it
contains some important bugfixes.  CVS-20020709 is a development
snapshot, from the main trunk.  It contains new features, like the
multithreaded gdbserver.  If you want a released version of GDB with
this support, you have to wait for 5.3 (or 6.0, whatever we settle
on...).  September was the plan, if I remember right.


-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdbserver multithread support broken in 5.2.1?
  2002-07-29  6:39 ` Daniel Jacobowitz
@ 2002-07-29  8:44   ` Andrew Cagney
  2002-07-29 10:34     ` Dan Kegel
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2002-07-29  8:44 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: Dan Kegel, gdb

> 
> CVS branches strike again.  5.2.1 is a maintenance release only; it
> contains some important bugfixes.  CVS-20020709 is a development
> snapshot, from the main trunk.  It contains new features, like the
> multithreaded gdbserver.  If you want a released version of GDB with
> this support, you have to wait for 5.3 (or 6.0, whatever we settle
> on...).  September was the plan, if I remember right.

I think it will be called 5.3 (if we work on 6.0 being multi-arch only). 
  Mutter something about HP/UX :-)

Andrew


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gdbserver multithread support broken in 5.2.1?
  2002-07-29  8:44   ` Andrew Cagney
@ 2002-07-29 10:34     ` Dan Kegel
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Kegel @ 2002-07-29 10:34 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: Daniel Jacobowitz, gdb

Andrew Cagney wrote:
>> CVS branches strike again.  5.2.1 is a maintenance release only; it
>> contains some important bugfixes.  CVS-20020709 is a development
>> snapshot, from the main trunk.  It contains new features, like the
>> multithreaded gdbserver.  If you want a released version of GDB with
>> this support, you have to wait for 5.3 (or 6.0, whatever we settle
>> on...).  September was the plan, if I remember right.
> 
> 
> I think it will be called 5.3 (if we work on 6.0 being multi-arch only). 
>  Mutter something about HP/UX :-)

Thanks for the explanation.  Guess I'll stick with that old weekly snapshot
for another six weeks then.

- Dan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-29 17:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-26 17:12 gdbserver multithread support broken in 5.2.1? Dan Kegel
2002-07-29  6:39 ` Daniel Jacobowitz
2002-07-29  8:44   ` Andrew Cagney
2002-07-29 10:34     ` Dan Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).