Re: Finding assembly offset in code
Re: Finding assembly offset in code
- Subject: Re: Finding assembly offset in code
- From: Jason Molenda <email@hidden>
- Date: Fri, 07 Feb 2014 15:03:57 -0800
If you can run the debugger on the same version of your app as the crash, you can do this in the debugger console window (or with the command-line lldb tool)
(lldb) source list -a `((uint8_t*)FinSpeedyWndProc) + 431`
The uint8_t* cast is because it's not a valid C/C++ expression to add an offset to a function symbol.
On Feb 7, 2014, at 2:50 PM, Mills, Steve <email@hidden> wrote:
> If an app has symbols in it (e.g. crash log shows IAmAFunction instead of 0x12345678), is there an *easy* way to figure out where in the source the +n is? Like in the following, how can I find the + 431:
>
> 0 com.makemusic.Finale 0x002d7dde FinSpeedyWndProc(ECNTL, unsigned int, long, long) + 431
>
> I took the long way around and put a nil deref into the code, run and crash, then keep moving it down until I get a number just after the one reported in the original crash log. Blech.
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users 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.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden