• 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: backtrace() alternative?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backtrace() alternative?


  • Subject: Re: backtrace() alternative?
  • From: Chris Suter <email@hidden>
  • Date: Tue, 9 Oct 2007 15:04:06 +1000


On 09/10/2007, at 2:30 PM, Rene Limberger wrote:

Thanks,

that get's me a bit further. now i am getting:

#0 ? in ?, fp = 0xb0080118, pc = 0xffffffff
#1 C() in mylib.dylib, fp = 0xb0080438, pc = 0x10899f2
#2 B() in mylib.dylib, fp = 0xb0080458, pc = 0x1046798
#3 A() in mylib.dylib, fp = 0xb0080498, pc = 0x1079841
...
#10 some_func() in mylib.dylib, fp = 0xb0080e98, pc = 0x1010c4c
#11 thread_create_running() in /usr/lib/libSystem.B.dylib, fp = 0xb0080f38, pc = 0x90024227
****


that is a good start. however, i am still unable to get the line numbers, considering that this is a debug build. glibc's backtrace () gives line numbers for each entry. anyone have any suggestions on how to lookup the debug info of the symbols?

thanks for the help!
-r

That will be a bit more tricky to solve. If you can afford to spawn another process then your best bet is to get atos to do it for you. Otherwise, you could have a go at decoding the symbols yourself (probably too much work although I'd have thought you'd be able to find libraries that can decode DWARF or STABS), or if you're not worried about the possibility of it breaking in future, you could try reverse engineering the vmutils private framework (which is what atos uses).


- Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: backtrace() alternative?
      • From: Rene Limberger <email@hidden>
References: 
 >backtrace() alternative? (From: Rene Limberger <email@hidden>)
 >Re: backtrace() alternative? (From: Chris Suter <email@hidden>)
 >Re: backtrace() alternative? (From: Rene Limberger <email@hidden>)

  • Prev by Date: Re: backtrace() alternative?
  • Next by Date: Re: backtrace() alternative?
  • Previous by thread: Re: backtrace() alternative?
  • Next by thread: Re: backtrace() alternative?
  • Index(es):
    • Date
    • Thread