Permalink
Browse files

Add an example gdbinit file.

  • Loading branch information...
FooBarWidget committed Oct 31, 2012
1 parent 14edbaf commit cb914e318163b51d253d31480497b06f6de3b832
Showing with 19 additions and 6 deletions.
  1. +1 −0 .gitignore
  2. +18 −6 test/{.gdbinit → gdbinit.example}
View
@@ -49,6 +49,7 @@ ext/*.a
doc/rdoc
doc/cxxapi
doc/*.html
+test/.gdbinit
test/test.log
test/apache2.log
test/config.yml
@@ -1,5 +1,23 @@
+# This is a sample .gdbinit file that can aid you in debugging
+# Phusion Passenger with GDB. Modify it to your liking and copy
+# it to test/.gdbinit. See also CONTRIBUTING.md.
+
+# Ignore some signals.
handle SIGUSR1 noprint pass
handle SIGPIPE noprint pass
+
+# Convenience command.
+define rake
+ shell rake $arg0
+end
+
+# Break on breakpoint() function.
+break Passenger::breakpoint
+
+# Linux-only. Comment out when not on Linux.
+set print thread-events off
+
+# On OS X, you may sometimes want to enable memory debugger libraries.
#set env DYLD_INSERT_LIBRARIES /usr/lib/libgmalloc.dylib
#set env MALLOC_FILL_SPACE YES
#set env MALLOC_PROTECT_BEFORE YES
@@ -11,9 +29,3 @@ handle SIGPIPE noprint pass
#set env MallocCheckHeapEach 1
#set env MallocCheckHeapAbort YES
#set env MallocBadFreeAbort YES
-
-define rake
- shell rake $arg0
-end
-
-set print thread-events off

0 comments on commit cb914e3

Please sign in to comment.