This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb doesn't work very well with dynamic linked binaries
- To: gdb at sources dot redhat dot com
- Subject: Re: gdb doesn't work very well with dynamic linked binaries
- From: James Cownie <jcownie at etnus dot com>
- Date: Thu, 7 Sep 2000 04:55:38 -0400
- Reply-to: jcownie at etnus dot com
Mark Kettenis wrote :-
I'm not sure whether the debug registers are
per-thread or per-VM-space in Linux. I'll probably need to look into
the kernel source.
To save you the time, they are per-thread, just like all the
other process' registers.
They are conceptually saved and restored on process scheduling
events (which for linuxthreads is the same thing as thread
scheduling events, since linuxthreads _are_ processes as far as
the scheduler is concerned).
The bug I mentioned previously is exactly that they're getting
cleared by the kernel and then not getting restored on return
to user space, leaving them wrong until the next reschedule :-(
--
-- Jim
James Cownie
jcownie@etnus.com
Etnus, Inc.
Phone +44 117 9071438