summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr
blob: 032bb9fdd7e087f36299ebf52451609ecdd6c29a (plain)
1
2
3
4
5
6
7
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