File: gdbinit.example

package info (click to toggle)
passenger 6.0.17%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 63,908 kB
  • sloc: cpp: 723,349; ruby: 44,144; ansic: 11,317; javascript: 5,948; sh: 802; python: 503; makefile: 48; perl: 34
file content (36 lines) | stat: -rw-r--r-- 988 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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

# Use Intel syntax for disassembles.
set disassembly-flavor intel

# 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

set detach-on-fork 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
#set env MallocStackLogging YES
#set env MallocGuardEdges YES
#set env MallocScribble YES
#set env MallocPreScribble YES
#set env MallocCheckHeapStart 10
#set env MallocCheckHeapEach 1
#set env MallocCheckHeapAbort YES
#set env MallocBadFreeAbort YES