Re: gdb, cores & kg switchtoact
Re: gdb, cores & kg switchtoact
- Subject: Re: gdb, cores & kg switchtoact
- From: Brian Bergstrand <email@hidden>
- Date: Fri, 26 Aug 2005 11:43:47 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thank you Derek!
switchtocorethread is working now.
On Aug 25, 2005, at 1:43 PM, Derek Kumar wrote:
Brian,
There's currently a gdb issue (Radar 3836595) which requires a
workaround for "switchtocorethread"; here's an excerpt from an
internal document describing this:
Most "passive" kernel debugging macros will work with kernel
coredumps. Notable exceptions include "showuserstack" (since the
coredump does not encapsulate user space pages). Additionally, the
"switchtoact" and "resetctx" macros have alternate versions for use
with coredumps, namely:
switchtocorethread <thread address>
and
resetcorectx
These coredump-specific macros also require that you use Tiger's
gdb or later (but should work on corefiles from Panther). Due to
gdb bug 3836595, these macros currently require a workaround before
they will work; at the gdb console type:
set $lr = 0 (or any other value, including $lr itself - you can try
$r1 as well; unfortunately, you may need to do this a couple of times)
when examining the corefile, before issuing "switchtocorethread";
this should allow subsequent "switchtocorethread"s to work normally.
Derek
On Aug 25, 2005, at 11:17 AM, Brian Bergstrand wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Aug 25, 2005, at 12:58 PM, Terry Lambert wrote:
On Aug 25, 2005, at 10:30 AM, Brian Bergstrand wrote:
I'm investigating a kernel core and trying to use kgmacros'
switchtoact. It keeps failing with a memory error though.
Try using "switchtocorethread".
This is just not my day:
activation thread pri state wait_queue wait_event
0x01d6d948 0x01d6d948 47 UW 0x003d6120 0x1149610
(gdb) switchtocorethread 0x01d6d948
Left operand of assignment is not an lvalue.
I even restarted gdb thinking I may have messed up some macro
internal state with my fumblings from before. Still no dice.
Did see this comment for the macro:
#Use of this macro requires the gdb submission from 3401283
I have the latest dev tools.
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFDD0bIedHYW7bHtqIRAoBdAJ9QzyZjEz9XelfOHMq1uWjGPoFxyQCg7SiT
Vb38QMXm7FrgbBD6/HlLrN8=
=zVjW
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden