about summary refs log tree commit diff
path: root/gdb/.gdbinit
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:51:54 +0300
commit38bab29776950ac2364ed64195b89887717c33de (patch)
treeedaaf366a55dbe96d268019124536bc504c64e87 /gdb/.gdbinit
chore: init HEAD master
Diffstat (limited to 'gdb/.gdbinit')
-rw-r--r--gdb/.gdbinit43
1 files changed, 43 insertions, 0 deletions
diff --git a/gdb/.gdbinit b/gdb/.gdbinit
new file mode 100644
index 0000000..f739e8d
--- /dev/null
+++ b/gdb/.gdbinit
@@ -0,0 +1,43 @@
+set confirm off
+set verbose off
+set editing off
+
+set history expansion on
+
+set height 0
+set width  0
+
+handle SIGALRM nostop print nopass
+handle SIGBUS    stop print nopass
+handle SIGPIPE nostop print nopass
+handle SIGSEGV   stop print nopass
+
+set python print-stack full
+
+set print address on
+set print elements 0
+set print object on
+set print pretty on
+set print repeats 0
+set print static-members on
+set print vtbl on
+
+set output-radix 10
+
+set demangle-style gnu-v3
+
+set disassembly-flavor intel
+
+alias iv=info variables
+
+alias da=disassemble
+
+define fs
+    finish
+    step
+end
+
+define btc
+    backtrace
+    continue
+end

Consider giving Nix/NixOS a try! <3