diff options
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 |