db[?]
Breakpoints commands
Usage: db # Breakpoints commands
db
List breakpointsdb sym.main
Add breakpoint into sym.maindb <addr>
Add breakpointdb -<addr>
Remove breakpointdb-
🚀 Can be used with tab autocompletion to show and delete / remove breakpoints asciinemadb.
Show breakpoint info in current offsetdbj
List breakpoints in JSON formatdbc <addr> <cmd>
Run command when breakpoint is hit-
Use this to run a command everytime a breakpoint hits. Example:
db sym.imp.strcmp; dbc sym.imp.strcmp drr
. This till print out the registers everytime the debugger breaks at strcmp -
Screenshot
-
dbC <addr> <cmd>
Run command when breakpoint is hit, but continue until condition on command returns zero-
dbC
If the command returns a value different from zero, execution continue, otherwise, execution is stopped at the breakpoint
-
dbd <addr>
Disable breakpoint. Supports autocompletedbe <addr>
Enable breakpoint. Supports autocompletedbs <addr>
Toggle breakpoint. Supports autocompletedbf
Put a breakpoint into every no-return functiondbt[?]
Display backtrace based on dbg.btdepth and dbg.btalgodbt*
Display backtrace in flagsdbt=
Display backtrace in one line (see dbt=s and dbt=b for sp or bp)dbtj
Display backtrace in JSONdbta
Display ascii-art representation of the stack backtracedbtv
Display backtrace with local vars if anydbte <addr>
Enable Breakpoint Tracedbtd <addr>
Disable Breakpoint Tracedbts <addr>
Swap Breakpoint Tracedbm <module> <offset>
Add a breakpoint at an offset from a module's basedbn [<name>]
Show or set name for current breakpointdbi
List breakpoint indexesdbi.
Show breakpoint index in current offsetdbic <index> <cmd>
Run command at breakpoint index-
dbi
anddbic
can be used to run a command once a break point hits similar todb
anddbc
-
dbie <index>
Enable breakpoint by indexdbid <index>
Disable breakpoint by indexdbis <index>
Swap Nth breakpointdbix <idx> [expr]
Set expression for bp at given indexdbite <index>
Enable breakpoint Trace by indexdbitd <index>
Disable breakpoint Trace by indexdbits <index>
Swap Nth breakpoint tracedbh x86
Set/list breakpoint plugin handlersdbh- <name>
Remove breakpoint plugin handlerdbw <addr> <rw>
Add watchpointdrx number addr len rwx
Modify hardware breakpointdrx-number
Clear hardware breakpoint
db dbj dbc dbC dbix dbd dbe dbs dbf dbt dbt* dbt=dbtj dbta dbtv dbte dbtd dbts dbm dbn dbi dbic dbie dbid dbis dbite dbitd dbits dbh dbh- dbw drx