old-cross-binutils/gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr

9 lines
183 B
Text
Raw Normal View History

1999-08-16 19:57:19 +00:00
#!/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