Skip to content

we can insert a breakpoint context-sensitively (checking backtrace)

License

Notifications You must be signed in to change notification settings

junwha/gdb-context-sensitive-breakpoint

Repository files navigation

gdb-context-sensitve-breakpoint

This is a gdb wrapper that supports callstack based breakpoint.

Usage

./insert_breakpoint.sh ... : it inserts breakpoint only if p1, p2, ... pn successively occurs in the target's stack frame (but other functions can be placed between the given parents)

./insert_direct_breakpoint.sh ... : it inserts breakpoint only if p1, p2, ... pn successively occurs in the target's stack frame

./gdb : gdb wrapper with the breakpoints

./reset_breakpoint.sh: flush all breakpoints

source env.sh: if you execute this command inside this directory, you can use all of above scripts without "./" prefix