Re: How to get the parameters for calls on an arbitrary stack in the kernel
Re: How to get the parameters for calls on an arbitrary stack in the kernel
- Subject: Re: How to get the parameters for calls on an arbitrary stack in the kernel
- From: Alexander Holodny <email@hidden>
- Date: Wed, 27 Nov 2013 12:36:25 +0200
GDB/LLDB in order to find out all function's arguments in 'bt' output
requires binary to be compiled without most optimizations.
I use following debug-proven optimization level: -O2 for Release and
-O0 for Debug builds.
Xcode defaults to non debug friendly setting -Os.
On Nov 26, 2013, at 3:42 AM, Timothy Standing <email@hidden> wrote:
> I am trying to debug a hang in our kext. I have been using gdb and the kgmacro command showallstacks to get a dump of all the stacks in the kernel. Using the output from showallstacks and the gdb list command, I can map the return address in every frame in every stack to a location in the source code (as long as it's in our driver).
>
> What I would like to do is get a listing of each threads stack which included the parameters for each call. I would like something similar to the backtrace command, but for all stacks. Is this possible in gdb? Is it possible to get a list of the parameters for all the calls on a particular stack?
>
> Thanks,
>
> Tim Standing
> SoftRAID, Inc.
> _______________________________________________
> 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
_______________________________________________
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