Permalink
Browse files

Add options for newer versions of gdb

  • Loading branch information...
1 parent a35755a commit e6bd044be9b1f11ee33195cd0ba2854173f2c31a @ISF committed Apr 7, 2013
Showing with 24 additions and 1 deletion.
  1. +24 −1 .gdbinit
View
25 .gdbinit
@@ -16,9 +16,32 @@ set print address on
set print pretty on
set print union on
-## configuring scripts
# don't print python stack trace
set python print-stack none
# enabling script type detection
set script-extension strict
+
+# print inferior events notification
+set print inferior-events on
+
+# auto load gdb scripts
+set auto-load python-scripts on
+set auto-load local-gdbinit on
+set auto-load gdb-scripts on
+
+# follow parents when forking
+set follow-fork-mode parent
+
+# makes all exec'ed processes to be a new inferior
+set follow-exec-mode new
+
+# all forked processes should be controlled by gdb
+set detach-on-fork off
+
+set target-async on
+set non-stop on
+set pagination off
+
+# use an extended prompt, the trailing whitespace is needed
+set extended-prompt \[\e[1;32m\]\w\[\e[0m\]\n\[\e[0;32m\]frame\[\e[0m\] \[\e[0;34m\]\f\[\e[0m\] \n\[\e[0;32m\]thread\]\[\e[0m\] \[\e[0;34m\]\t\[\e[0m\]\n\[\e[0;31m\]>>\[\e[0m\]

0 comments on commit e6bd044

Please sign in to comment.