aboutsummaryrefslogtreecommitdiff
path: root/find
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 /find
parenta608d88b12dc300584be4e36e6eb85f26e2c42b5 (diff)
downloadlibc-database-master.tar.gz
libc-database-master.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 'find')
-rwxr-xr-xfind4
1 files changed, 2 insertions, 2 deletions
diff --git a/find b/find
index 0039a12..dda3fc3 100755
--- a/find
+++ b/find
@@ -8,7 +8,7 @@ function find_single() {
name=$1
address=$2
addr_last12=`echo -n "$address" | tail -c 3`
- grep -i -e "^$name .*$addr_last12$" db/*.symbols \
+ grep -r --include=\*.symbols -i -e "^$name .*$addr_last12$" db/ \
| perl -n -e '/db\/(.*)\.symbols/ && print "$1\n"' \
| sort
}
@@ -27,5 +27,5 @@ function find() {
}
for id in `find "$@"`; do
- echo "`cat db/${id}.info` (id $id)"
+ echo "db/${id}.so"
done