• 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: Finding assembly offset in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Finding assembly offset in code (From: "Mills, Steve" <email@hidden>)

  • Prev by Date: Finding assembly offset in code
  • Next by Date: Re: Finding assembly offset in code
  • Previous by thread: Finding assembly offset in code
  • Next by thread: Re: Finding assembly offset in code
  • Index(es):
    • Date
    • Thread