-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gdbinit
37 lines (32 loc) · 1.08 KB
/
.gdbinit
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
37
###############################################################################
# Electric Fence
#
# Debian's Electric Fence package provides efence as a shared library, which is
# very useful.
###############################################################################
define efence
set environment EF_PROTECT_BELOW 0
set environment LD_PRELOAD /usr/lib/libefence.so.0.0
echo Enabled Electric Fence\n
end
document efence
Enable memory allocation debugging through Electric Fence (efence(3)).
See also nofence and underfence.
end
define efence-under
set environment EF_PROTECT_BELOW 1
set environment LD_PRELOAD /usr/lib/libefence.so.0.0
echo Enabled Electric Fence for undeflow detection\n
end
document efence-under
Enable memory allocation debugging for underflows through Electric Fence
(efence(3)).
See also nofence and efence.
end
define efence-off
unset environment LD_PRELOAD
echo Disabled Electric Fence\n
end
document efence-off
Disable memory allocation debugging through Electric Fence (efence(3)).
end