diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-08-16 19:57:19 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-08-16 19:57:19 +0000 |
commit | 7be570e7ce77920e2e628a03bdfe2d295fc2568f (patch) | |
tree | a49512270bb021f1d5171b362dc973e28c97ca94 /gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr | |
parent | ed288bb597072176e84fc8279707a3f2f475779b (diff) | |
download | binutils-gdb-7be570e7ce77920e2e628a03bdfe2d295fc2568f.tar.gz |
import gdb-1999-08-16 snapshot
Diffstat (limited to 'gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr')
-rwxr-xr-x | gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr b/gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr new file mode 100755 index 00000000000..032bb9fdd7e --- /dev/null +++ b/gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr @@ -0,0 +1,8 @@ +#!/bin/ksh + +# Get the address of a symbol in Hex. +# $1 = object/executable file name +# $2 = symbol name +${srcdir}/gdb.hp/tools/odump -sym "$1" | grep "$2"$ | awk '{print $1}' + +exit 0 |