added gdb-heap gdb extension

This commit is contained in:
Michael Rodler 2017-01-12 11:10:47 +01:00
parent 8838be9744
commit b28ad9eed6
3 changed files with 29 additions and 0 deletions

22
gdb-heap/install Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash -e
git clone --depth=1 http://git.fedorahosted.org/git/gdb-heap.git || true
cd gdb-heap
# make sure gdbinit exists
touch ~/.gdbinit
if ! grep "init-gdb-heap" ~/.gdbinit; then
cat >> ~/.gdbinit <<EOF
####
# added by ctf-tools
define init-gdb-heap
python import sys; sys.path.append("$PWD"); import heap
end
document init-gdb-heap
Initializes the gdb-heap extension (https://fedorahosted.org/gdb-heap/)
end
####
EOF
fi

3
gdb-heap/install-root-debian Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash -e
apt-get install -y libc6-dbg

4
gdb-heap/install-root-fedora Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash -e
dnf install -y dnf-plugins-core
dnf debuginfo-install -y glibc