Re: Is there a tool to help find unaligned accesses?
>I'd like to track down some unaligned accesses in a shared library. Is
>there a tool to help do this?
If you have a version of the library with debugging info in it, you can
just use gdb. Run gdb on the program that generates the unaliged traps,
and then do
(gdb) list *0xdeadbeef
0xdeadbeef is of course the pc at which the kernel reported an unaligned
trap.
Regards,
/Anders
--
-- Of course I'm crazy, but that doesn't mean I'm wrong.
Anders Hammarquist | Mud at Kingdoms | iko@netg.se
NetGuide Scandinavia | telnet kingdoms.se 1812 | Fax: +46 31 50 79 39
http://www.netg.se | | Tel: +46 31 50 79 40
Reply to: