summaryrefslogtreecommitdiff
path: root/gdbinit
diff options
context:
space:
mode:
Diffstat (limited to 'gdbinit')
-rw-r--r--gdbinit15
1 files changed, 14 insertions, 1 deletions
diff --git a/gdbinit b/gdbinit
index cb20922..9788d13 100644
--- a/gdbinit
+++ b/gdbinit
@@ -4,7 +4,9 @@
set history filename ~/.gdb/gdb_history
set history save on
-set prompt bla>
+set prompt do_wizardry>
+
+set disassembly-flavor intel
define bs
save breakpoints ~/.gdb/breakpoint.$arg0.save
@@ -14,6 +16,17 @@ define br
source ~/.gdb/breakpoint.$arg0.save
end
+# gdb hooks -- just define a macro with hook-<cmd_name>, eg:
+# define foo
+# # do sth ...
+# end
+# define hook-foo
+# # do sth ...
+# end
+#
+# run foo in gdb, then hook-foo will be executed prior
+
define hook-quit
bs q
end
+