diff options
-rw-r--r-- | gdbinit | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 + |