diff options
author | n0p <0x90@n0p.cc> | 2018-02-12 18:15:36 +0100 |
---|---|---|
committer | n0p <0x90@n0p.cc> | 2018-02-12 18:15:36 +0100 |
commit | 9e9c6d4bcfabadc1ad139ad5a81083485c2212d7 (patch) | |
tree | 492a41b8ced99e5f8bb62148267e2a23615cfe4c /dump | |
parent | a608d88b12dc300584be4e36e6eb85f26e2c42b5 (diff) | |
download | libc-database-9e9c6d4bcfabadc1ad139ad5a81083485c2212d7.tar.gz libc-database-9e9c6d4bcfabadc1ad139ad5a81083485c2212d7.zip |
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-x | dump | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |