From: Dan Kegel <dkegel@ixiacom.com>
To: gdb@sources.redhat.com
Subject: gdbserver multithread support broken in 5.2.1?
Date: Fri, 26 Jul 2002 17:12:00 -0000 [thread overview]
Message-ID: <3D41EF27.9070204@ixiacom.com> (raw)
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
next reply other threads:[~2002-07-27 0:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-26 17:12 Dan Kegel [this message]
2002-07-29 6:39 ` Daniel Jacobowitz
2002-07-29 8:44 ` Andrew Cagney
2002-07-29 10:34 ` Dan Kegel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D41EF27.9070204@ixiacom.com \
--to=dkegel@ixiacom.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox