site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -----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, switchtocorethread <thread address> and resetcorectx 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: 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. 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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: 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. I'm investigating a kernel core and trying to use kgmacros' switchtoact. It keeps failing with a memory error though. I even restarted gdb thinking I may have messed up some macro internal state with my fumblings from before. Still no dice. This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Bergstrand