Borys Bradel's Blog
More information on mdb and gdb
Tags: programming May 17, 2009
In gdb you can do info line *0x01000 to be shown what line some code is in. disassemble 0x01000 or disassemble function_name will show the assembler instructions. That will allow you to track down exactly what is going on, since the line info may not be accurate due to optimizations that reorder assembly instructions.
In mdb, both addresses and functions work the same to set addresses, and function:b works just as well as address:b. Also, to enable a breakpoint at a signal, use the command sigbp SIGSEGV.
Copyright © 2009 Borys Bradel. All rights reserved. This post is only my possibly incorrect opinion.