]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When grabbing registers for an lwp, fake the inferior's pid using the
authorPeter Edwards <peadar@FreeBSD.org>
Tue, 11 Jan 2005 14:53:16 +0000 (14:53 +0000)
committerPeter Edwards <peadar@FreeBSD.org>
Tue, 11 Jan 2005 14:53:16 +0000 (14:53 +0000)
commitad93bc4a369f5d4b4283ab437a71ddcc6d5484cb
treeaf654e027ceba1b1d469d1fa575f342ef7d5f0c1
parentab03e6d5971541e1d1c4d1f181638284f3ec1ee8
When grabbing registers for an lwp, fake the inferior's pid using the
lwp ID before invoking the underlying target operation.

For corefiles, we rely on gdb internals to do this, and it uses the
pid as an index, rather than the lwpid, so previously, backtraces
for multithreaded core files wasn't working correctly. For processes,
we currently use ptrace directly, so fixup that code to also use
the pid directly.

Discussed With: marcel, davidxu
MFC After: 4 days
gnu/usr.bin/gdb/libgdb/fbsd-threads.c