db[?] Breakpoints commands
Usage: db # Breakpoints commands
dbList breakpointsdb sym.mainAdd 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 offsetdbjList 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-
dbCIf 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 autocompletedbfPut 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)dbtjDisplay backtrace in JSONdbtaDisplay ascii-art representation of the stack backtracedbtvDisplay 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 breakpointdbiList breakpoint indexesdbi.Show breakpoint index in current offsetdbic <index> <cmd>Run command at breakpoint index-
dbianddbiccan be used to run a command once a break point hits similar todbanddbc
-
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 x86Set/list breakpoint plugin handlersdbh- <name>Remove breakpoint plugin handlerdbw <addr> <rw>Add watchpointdrx number addr len rwxModify hardware breakpointdrx-numberClear 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