From 9e9c6d4bcfabadc1ad139ad5a81083485c2212d7 Mon Sep 17 00:00:00 2001 From: n0p <0x90@n0p.cc> Date: Mon, 12 Feb 2018 18:15:36 +0100 Subject: Added support for Debian and ARM (armel, armhf, arm64). Removed the unused tmp/ directory. Output format of dump/find/identify has changed. The folder structure of the database has changed. --- dump | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'dump') 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 -- cgit v1.2.3-54-g00ecf