From 0d2b503be0d2a9ebdd4a35fa66becd74ba20791c Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 15 Apr 2018 17:42:48 +0200 Subject: gdbinit: set intel disassembly as default --- gdbinit | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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-, 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 + -- cgit v1.2.3