aboutsummaryrefslogtreecommitdiff
path: root/dump
diff options
context:
space:
mode:
authorn0p <0x90@n0p.cc>2018-02-12 18:15:36 +0100
committern0p <0x90@n0p.cc>2018-02-12 18:15:36 +0100
commit9e9c6d4bcfabadc1ad139ad5a81083485c2212d7 (patch)
tree492a41b8ced99e5f8bb62148267e2a23615cfe4c /dump
parenta608d88b12dc300584be4e36e6eb85f26e2c42b5 (diff)
downloadlibc-database-9e9c6d4bcfabadc1ad139ad5a81083485c2212d7.tar.gz
libc-database-9e9c6d4bcfabadc1ad139ad5a81083485c2212d7.zip
Added support for Debian and ARM (armel, armhf, arm64).HEADmaster
Removed the unused tmp/ directory. Output format of dump/find/identify has changed. The folder structure of the database has changed.
Diffstat (limited to 'dump')
-rwxr-xr-xdump11
1 files changed, 8 insertions, 3 deletions
diff --git a/dump b/dump
index b45dd7e..d76eb53 100755
--- a/dump
+++ b/dump
@@ -10,7 +10,12 @@ if [[ $# == 0 ]]; then
else
names="$@"
fi
-for name in $names; do
- offset=`cat db/${id}.symbols | grep "^$name " | cut -d' ' -f2`
- echo "offset_${name} = 0x${offset}"
+for info in db/*; do
+ if [[ -d $info ]] && [[ -e $info/$id.symbols ]]; then
+ echo "${info}/${id}.symbols:"
+ for name in $names; do
+ offset=`cat ${info}/${id}.symbols | grep "^$name " | cut -d' ' -f2`
+ echo "offset_${name} = 0x${offset}"
+ done
+ fi
done