diff options
author | johannst <johannes.stoelp@gmail.com> | 2019-11-28 20:00:42 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2019-11-28 20:00:42 +0100 |
commit | 144c8fc5a4ac2740bc443f849e8ab762f9b4f78e (patch) | |
tree | b5afe3e89ace119836775a369c8b5bf80a72162b | |
parent | fbc3dc40c60ebcf5964aecb2f8c20c69d25a2f1b (diff) | |
download | notes-144c8fc5a4ac2740bc443f849e8ab762f9b4f78e.tar.gz notes-144c8fc5a4ac2740bc443f849e8ab762f9b4f78e.zip |
added qualified breakpts + added workaround for command & finish bug
-rw-r--r-- | gdb.txt | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -34,8 +34,10 @@ load symbols of shared lib, if REGEX then only symbols for matching libs - break <sym> thread <tnum> + break [-qualified] <sym> thread <tnum> set a breakpoint only on a specific thread + -qualified: sym must be fully qualified (quiet handy + to set breakpoints on C symbols in C++ contexts) rbreak <regex> set breakpoints based on symbols matching regex <regex> is internally expanded to .*<regex>.* @@ -100,7 +102,7 @@ catch signal SIGSEGV command bt - ct + c end # quickly execute gdb command on running process, eg get backtrace from @@ -125,6 +127,19 @@ - cmd: $> gdb -p <PID> -x ./run.gdb --batch &> run.log + # workaround command + finish bug + # issue: when using finish in a command block, actions after finish will not + # be executed + - script: + define handler + bt + finish + info reg rax + end + + command + handler + end -------------------------------------------------------------------------------- vim:ft=help:sts=2:et:tw=80:cc=80:fo+=t |