aboutsummaryrefslogtreecommitdiff
path: root/contrib/debugger
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-04-22 11:58:51 +0200
committerShauren <shauren.trinity@gmail.com>2020-04-22 11:58:51 +0200
commit0d0d005a2e705b875bf4b13cee910521e37b45bc (patch)
tree1a57a57a8becbd46723fd6fc9e2903fec905787c /contrib/debugger
parent740afc71358c32257540350a6d7d4071a851452f (diff)
Misc: Improve gdb script output
* Switch disassembly to intel syntax * Remove terminal colors * Remove terminal line wrapping and pagination * Start versioning the script
Diffstat (limited to 'contrib/debugger')
-rw-r--r--contrib/debugger/crashreport.gdb9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/debugger/crashreport.gdb b/contrib/debugger/crashreport.gdb
index 3944f45ce60..7ad2e84a483 100644
--- a/contrib/debugger/crashreport.gdb
+++ b/contrib/debugger/crashreport.gdb
@@ -1,5 +1,9 @@
set logging overwrite on
set logging file backtrace.log
+set style enabled off
+set height unlimited
+set width unlimited
+set disassembly-flavor intel
handle SIG33 pass nostop noprint
set pagination 0
set logging on
@@ -13,10 +17,11 @@ echo \n
backtrace full
echo \n--- DEBUG: INFO REGISTERS\n\n
info registers
-echo \n--- DEBUG: CALLS (x/32i $pc)\n\n
-x/32i $pc
+echo \n--- DEBUG: CALLS (x/16i $pc)\n\n
+x/16i $pc
echo \n--- DEBUG: THREAD APPLY ALL BACKTRACE\n
thread apply all backtrace
echo \n--- DEBUG: --- STOP\n\n
+echo Generated by crashreport.gdb script version 1.3\n
set logging off
quit