gdb, cores & kg switchtoact
gdb, cores & kg switchtoact
- Subject: gdb, cores & kg switchtoact
- From: Brian Bergstrand <email@hidden>
- Date: Thu, 25 Aug 2005 11:21:04 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm investigating a kernel core and trying to use kgmacros'
switchtoact. It keeps failing with a memory error though.
(gdb) switchtoact <ADDRESS>
Cannot access memory at address
Looking at the macro I see:
set (struct savearea *) kdp.saved_state=$newact->machine->pcb
So the macro is trying to change memory and failing to do so. A
manual set gives the same error:
(gdb) set (struct savearea *)kdp.saved_state=0
Cannot access memory at address 0x3d1cec
This must be because the core is not real memory, but a read-only
snapshot.
So, is there anyway around this? I need to inspect different act stacks.
Thanks.
P.S. I seem to remember this working under 10.3.x, but I could be wrong.
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFDDe/2edHYW7bHtqIRAlw7AKC3/tbjnozEWfh0KhBIKPP4ubeEegCffVJ5
P1qsFAjAQTz50udLOGrpqiM=
=UQ8L
-----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