diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-10-21 19:51:11 +0200 |
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-10-21 19:51:11 +0200 |
| commit | 42d4ba95c2e0c34ea5536c3da34a9161d29ec237 (patch) | |
| tree | 509a0c1f3bf4aeea052b4894b5925f68291816be | |
| parent | 2ad5d2a3ec1c2739ec26f85d17b30655aa56d9e4 (diff) | |
universal gdbinit
| -rw-r--r-- | .config/gdb/gdbinit | 10 | ||||
| -rw-r--r-- | .config/gdb/gdbinit.py | 14 |
2 files changed, 20 insertions, 4 deletions
diff --git a/.config/gdb/gdbinit b/.config/gdb/gdbinit index 189c821..919b13a 100644 --- a/.config/gdb/gdbinit +++ b/.config/gdb/gdbinit @@ -1,7 +1,9 @@ -# set disassembly-flavor intel -# set debuginfod enabled off -set confirm off +python +import sys, os +sys.path.append(os.path.join(os.environ["XDG_CONFIG_HOME"], "gdb")) +import gdbinit +end alias mk = !mk -# alias -a m = mk alias reset = monitor reset + diff --git a/.config/gdb/gdbinit.py b/.config/gdb/gdbinit.py new file mode 100644 index 0000000..a6ebfea --- /dev/null +++ b/.config/gdb/gdbinit.py @@ -0,0 +1,14 @@ +import gdb + +def try_execute(*args): + try: + gdb.execute(*args) + except gdb.error: + pass + +# x86 only +try_execute("set disassembly-flavor intel") + +gdb.execute("set debuginfod enabled off") +gdb.execute("set confirm off") + |