<< Prev | Next >>

DBX Notes

  • acts as a shell. unrecognized commands are pushed back up to the shell above if unrecognized on Sun machines or prefixed by sh on IBM machines.
  • debug to debug a core dump.
  • where to print out the current location in a stack.
  • up to go up a stack trace level.
  • down to go down a stack trace level.
  • print <> to print out the contents of a variable. Can dereference pointers or get raw addresses pointers point to, but this seems to be a little flawed when dealing with core dumps.
  • stop at adds a breakpoint at the specified line in the currently loaded file.
  • stop in >symbol name< adds a breakpoint at the beginning of the specified symbol/function.
  • stop at "filename.c":123 adds a breakpoint at the specified line of the specified file.
  • run [args] allows the current executable to be started from the debugger. Arguments can be specified.
  • status lists current breakpoints (with indexing numbers).
  • delete deletes a specific weekend.
  • cont to continue from a breakpoint.
  • next[i] to move on to the next line of code (or instruction).
  • step[i] to step into the code (or instruction).
  • examine
    />count< to display (in a fairly raw format) count bytes of memory starting at address.
  • list [-10] to display the source around stack.
Sub DBX Command Reference

Posted by Scott Dupoy - 2007-04-05 07:55:15

<< Prev | Next >>

Login

User Name:

Password:

Random Pic

Archive

July 2009 (1)
April 2009 (1)
September 2008 (3)
June 2008 (8)
May 2008 (37)
April 2008 (24)
March 2008 (27)
February 2008 (43)
January 2008 (27)
December 2007 (13)

Layout

Change Banner
Toggle Columns
Toggle Centering

Extras

Site banners
Site map