summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-08-16 19:57:19 +0000
committerJason Molenda <jmolenda@apple.com>1999-08-16 19:57:19 +0000
commit7be570e7ce77920e2e628a03bdfe2d295fc2568f (patch)
treea49512270bb021f1d5171b362dc973e28c97ca94 /gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr
parented288bb597072176e84fc8279707a3f2f475779b (diff)
downloadbinutils-gdb-7be570e7ce77920e2e628a03bdfe2d295fc2568f.tar.gz
import gdb-1999-08-16 snapshot
Diffstat (limited to 'gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr')
-rwxr-xr-xgdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr8
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