• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [darwin-dev] Setting kernel gdb to a frame address?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [darwin-dev] Setting kernel gdb to a frame address?


  • Subject: Re: [darwin-dev] Setting kernel gdb to a frame address?
  • From: Terry Lambert <email@hidden>
  • Date: Wed, 8 Aug 2007 15:52:46 -0700

On Aug 8, 2007, at 5:28 AM, Jonas Maebe wrote:
On 08 Aug 2007, at 14:24, Alexander von Below wrote:
Am 08.08.2007 um 13:40 schrieb Jonas Maebe:
On 08 Aug 2007, at 13:28, Alexander von Below wrote:
I can x/i the addresses, and assemble my own stack trace with info line, but trying to just set the frame to the pointer (i.e. `frame 0x1234abcd') does not work.

You have to use "frame 1", "frame 2" etc to see respectively the frame of the caller of the current routine, the frame of the caller's caller etc.

that only works when I am in that stack, but I am not?

I'm not aware of a way to make gdb assume a certain address as the base of the current stack. Although, "set $r1 = 0x1234abcd" might work on ppc (and "set $esp = 0x1234abcd" on Intel).

Load kgmacros and use the macro "switchtoact" and give it the activation/thread address in hex from the "showallstacks" or "showcurrentstacks".


I believe this is covered in detail on the kernel debugging documentation on <http://developer.apple.com/> from which you must have obtained the kernel debiug kit (including the kgmacros file).

-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >[darwin-dev] Setting kernel gdb to a frame address? (From: Alexander von Below <email@hidden>)
 >Re: [darwin-dev] Setting kernel gdb to a frame address? (From: Jonas Maebe <email@hidden>)
 >Re: [darwin-dev] Setting kernel gdb to a frame address? (From: Alexander von Below <email@hidden>)
 >Re: [darwin-dev] Setting kernel gdb to a frame address? (From: Jonas Maebe <email@hidden>)

  • Prev by Date: Re: Semaphores in Mac
  • Next by Date: [GDB] template bug
  • Previous by thread: Re: [darwin-dev] Setting kernel gdb to a frame address?
  • Next by thread: setitimer late in delivering signals
  • Index(es):
    • Date
    • Thread