From: Samir Benmendil Date: Mon, 23 Oct 2017 22:44:21 +0000 (+0100) Subject: gdb: add gdbinit and cgdbrc X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/05fdc4b5ecc0735e8eb0cd199f9d89ae9e029c3a gdb: add gdbinit and cgdbrc --- diff --git a/Makefile b/Makefile index 8af2d32..9b8fe2f 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,10 @@ vim: git clone https://github.com/gmarik/vundle ~/.local/share/vim/vundle .PHONY: vim +gdb: + ln -sfT $(APATH)/gdbinit ~/.gdbinit + ln -sfT $(APATH)/cgdb ~/.cgdb + awesome: ~/.config ln -sfT $(APATH)/awesome ~/.config/awesome .PHONY: awesome diff --git a/cgdb/.gitignore b/cgdb/.gitignore new file mode 100644 index 0000000..3478386 --- /dev/null +++ b/cgdb/.gitignore @@ -0,0 +1,2 @@ +logs +readline_history.txt diff --git a/cgdb/cgdbrc b/cgdb/cgdbrc new file mode 100644 index 0000000..fa2868a --- /dev/null +++ b/cgdb/cgdbrc @@ -0,0 +1,30 @@ +# set autosourcereload +# set cgdbmodekey=ESC +# set color +# set debugwincolor +# set nodisasm +# set executinglinedisplay=longarrow +set hlsearch +set ignorecase +# set selectedlinedisplay=block +# set showmarks +# set noshowdebugcommands +# set syntax=on +# set timeout +# set timeoutlen=1000 +# set ttimeout +# set ttimeoutlen=100 +set tabstop=4 +# set winminheight=0 +# set winminwidth=0 +# set winsplit=even +# set winsplitorientation=horizontal +# set wrapscan + +map r :run +map c :continue +map f :finish +map n :next +map s :step + +map p ip diff --git a/gdbinit b/gdbinit new file mode 100644 index 0000000..9ed8ca0 --- /dev/null +++ b/gdbinit @@ -0,0 +1,4 @@ +set history save on +set print pretty on +set pagination off +# set confirm off