summaryrefslogtreecommitdiff
path: root/gdbinit
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2017-08-02 23:21:05 +0200
committerjohannst <stoelp@eit.uni-kl.de>2017-08-02 23:21:05 +0200
commita4e75848c4f8054f0e2a923f171dfbd73da95740 (patch)
tree6458ff875c463dd498bddd1c5a53227e99112865 /gdbinit
parentf2af8d948cc283eb6da1e725ecb8fcff84eb7e92 (diff)
downloaddotfiles-a4e75848c4f8054f0e2a923f171dfbd73da95740.tar.gz
dotfiles-a4e75848c4f8054f0e2a923f171dfbd73da95740.zip
added breakpoint save/restore macros to gdbinit
Diffstat (limited to 'gdbinit')
-rw-r--r--gdbinit16
1 files changed, 15 insertions, 1 deletions
diff --git a/gdbinit b/gdbinit
index 758d532..cb20922 100644
--- a/gdbinit
+++ b/gdbinit
@@ -1,5 +1,19 @@
# dotfiles -- gdbinit
# author: johannst
-set history filename ~/.gdb_history
+set history filename ~/.gdb/gdb_history
set history save on
+
+set prompt bla>
+
+define bs
+ save breakpoints ~/.gdb/breakpoint.$arg0.save
+end
+
+define br
+ source ~/.gdb/breakpoint.$arg0.save
+end
+
+define hook-quit
+ bs q
+end