summaryrefslogtreecommitdiff
path: root/install
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 /install
parentf2af8d948cc283eb6da1e725ecb8fcff84eb7e92 (diff)
downloaddotfiles-a4e75848c4f8054f0e2a923f171dfbd73da95740.tar.gz
dotfiles-a4e75848c4f8054f0e2a923f171dfbd73da95740.zip
added breakpoint save/restore macros to gdbinit
Diffstat (limited to 'install')
-rwxr-xr-xinstall2
1 files changed, 2 insertions, 0 deletions
diff --git a/install b/install
index 6c56295..f332100 100755
--- a/install
+++ b/install
@@ -38,11 +38,13 @@ function bashrcInstaller() {
function gdbrcInstaller() {
local gdbinit=~/.gdbinit
+ local gdbdir=~/.gdb
touch $gdbinit
grep $gMagicNumber $gdbinit > /dev/null 2>&1
if [[ $? = 0 ]]; then
return
fi
+ if [ ! -d $gdbdir ]; then mkdir $gdbdir; fi
echo -e "\n# $gMagicNumber - Auto generated, do not delete or modify!" >> $gdbinit
echo -e "source $ABS_BASE_DIR/gdbinit" >> $gdbinit
}