dechaoqiu / atosl

atos for linux
34 stars 20 forks source link

Line Numbers? #1

Open robertjpayne opened 10 years ago

robertjpayne commented 10 years ago

I'm trying to get atosl to work much like Apple's provided atos but not having a ton of luck. I get the OBJC class/method name out of the program but can't figure out how to get line numbers. Is this expected? Would love to help in any way I can!

dechaoqiu commented 10 years ago

You can get line number information for your own Objective-C code. If the class/method is from the objective-C library, then the line number information has already been strip from the original binary macho file.

robertjpayne commented 10 years ago

True, but the DWARF files contain this information, it's something Apple atos can do which is extremely helpful for debugging potentially long methods.

I just wasn't sure if it was supposed to be printing them off or not.

dechaoqiu commented 10 years ago

Can you give me a link to your sample Mach-O file and the atosl output? There is a folder containing test file in this project, can you get the correct result in your machine? image