Thanks, but that did not help either.
set kdp_read_io=1
causes an error, "no symbol ' kdp_read_io' in current context"
I am not trying to read I/O space, just code space.
DOES ANYONE KNOW HOW TO USE GDB FOR A PANIC LOG?
PLEASE HELP !
I know that gdb has to "attach" to a process to access its memory.
I have tried the "attach" command with every PID listed in the PS command.
I have tried the "attach" command with the symbol file and the kext.
How do you attach to a kext?
HAS ANYONE EVER USED TN2063?
Please send anything which might help
thanks
Harland Harrison
2wire.com
-----Original Message-----
From: usb-bounces+hharrison=email@hidden on behalf of Jim Wintermyre
Sent: Tue 2/8/2005 4:43 PM
To: email@hidden
Subject: RE: GDB can't access kext code memory
>The GDB tool always returns "Cannot access memory" for me, even on
>valid addresses. I proved that with a panic.log from the same
>machine and OS which is running GDB.
>
>Using an "assert()" in my kext, I generated a panic.log on the same
>machine. Then I ran kextstat and checked that the addresses in this
>panic.log fell within the ranges of the kexts involved. Then I tried
>to read those addresses with the GDB tool. GDB still returned
>"Cannot access memory" for valid addresses in my kext, and also for
>addresses within the ranges of several "com.apple.X" kexts.
If you're trying to access memory in your device's address space, you
may need to use the kdp_read_io (mapped memory) and/or kdp_trans_off
(phsical addresses) options. Check here for more info:
http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming/build/chapter_18_section_5.html
Also, I have heard that kdp_trans_off will affect lots of things in
gdb, so its best to enable and then disable before attempting
anything else.
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden