summaryrefslogtreecommitdiff
path: root/gdbinit
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2018-04-15 17:42:48 +0200
committerjohannst <stoelp@eit.uni-kl.de>2018-04-15 17:42:48 +0200
commit0d2b503be0d2a9ebdd4a35fa66becd74ba20791c (patch)
tree806cd0b10486abd62a5f68b304b181debb4fd1a7 /gdbinit
parent3e5cd29dc900ffac54f925d4eee5bade96ed918c (diff)
downloaddotfiles-0d2b503be0d2a9ebdd4a35fa66becd74ba20791c.tar.gz
dotfiles-0d2b503be0d2a9ebdd4a35fa66becd74ba20791c.zip
gdbinit: set intel disassembly as default
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
+