Recently I've had the good fortune of discovering what a pain it is 
to try to debug user level code in FS with no symbols. I'm going to 
think about ways to make the process easier, and I was wondering if 
there are any tricks other people know of that might help. Also, does 
anyone know of a good way to use gdb on the dynamic linker binary? I 
know /sbin/init is dynamically linked and I know where the linker gets 
stuck in memory, but I haven't been able to get gdb to tell me anything 
useful about it (/lib64/ld-linux-x86-64.so.2). For instance, I'd like to 
disassemble its entry point, but gdb insists it can't read it for some 
reason. The entry point according to the elf headers is 0xb10, and from 
tracing m5 it appears that that's being relocated to 0x2b8ff0abfb10. I'm 
sure I can get the bytes I need with, for instance, hexedit, but that's 
a little too masochistic I think.

Gabe
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to