03-28-2008, 05:05 AM
|
|
Looking up symbols from a crash dump? ld -map not working...
I have a crash dump and I'm trying to figure out what line of code is breaking the rules. Typically, I would look up the offending line of code via its address in the crash dump. In order to do this though, I need the map file that the linker generates to associate the addresses with functions in source code. arm-apple-darwin-ld (built from the odcctools) doesn't support the -map flag for some reason.
I poked around in the odcctools configure and didn't find anything related to enabling or disabling map file generation in the compilation process of ld. I was hoping someone had dealt with this and can save me the time reading through the GCC source to figure this out.
Btw, I don't need to have map files generated specifically. I just need some way of figuring out what line of code is crashing. I did try to have g++ generate dwarf debug symbols stripped into a dSYM folder, but I wasn't able to get it to generate the stripped symbols. And I'm not sure I could even load them if it worked since gdb on leopard doesn't know about the arm architecture.
Other than those, I'm not aware of another way (given the addresses of a crash) aside from running the code under a debugger. To my knowledge, GDB won't run on the iPhone kernel.
Any ideas?
|
|