summaryrefslogtreecommitdiffstats
path: root/tests/run-addrname-test.sh
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2008-03-26 20:51:59 +0000
committerRoland McGrath <[email protected]>2008-03-26 20:51:59 +0000
commitd11f9cbecac4a5ac3848a68597028d1924f3ff6b (patch)
treebebe015f7e02d133fa3dec01f3d34c76fdb74756 /tests/run-addrname-test.sh
parent472b20d24ffbc2485f8a5e2be208a11d77e8e846 (diff)
libdwfl/
* dwfl_module_getdwarf.c (load_symtab): Don't return success for SHT_DYNSYM, just set *SYMSCN like the comment says.
Diffstat (limited to 'tests/run-addrname-test.sh')
-rwxr-xr-xtests/run-addrname-test.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/tests/run-addrname-test.sh b/tests/run-addrname-test.sh
index ce47fe10..ab37e286 100755
--- a/tests/run-addrname-test.sh
+++ b/tests/run-addrname-test.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2007 Red Hat, Inc.
+# Copyright (C) 2007, 2008 Red Hat, Inc.
# This file is part of Red Hat elfutils.
#
# Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -62,4 +62,26 @@ small_global_first_at_large_global+0x1
??:0
EOF
+testfiles testfile12 testfile14
+tempfiles testmaps
+
+cat > testmaps <<EOF
+00400000-00401000 r-xp 00000000 fd:01 4006812 `pwd`/testfile14
+00500000-00501000 rw-p 00000000 fd:01 4006812 `pwd`/testfile14
+01000000-01001000 r-xp 00000000 fd:01 1234567 `pwd`/testfile12
+01100000-01011000 rw-p 00000000 fd:01 1234567 `pwd`/testfile12
+2aaaaaaab000-2aaaaaaad000 rw-p 2aaaaaaab000 00:00 0
+2aaaaaae2000-2aaaaaae3000 rw-p 2aaaaaae2000 00:00 0
+7fff61068000-7fff6107d000 rw-p 7ffffffea000 00:00 0 [stack]
+7fff611fe000-7fff61200000 r-xp 7fff611fe000 00:00 0 [vdso]
+ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
+EOF
+
+testrun_compare ../src/addr2line -S -M testmaps 0x40047c 0x10009db <<\EOF
+caller+0x14
+/home/drepper/local/elfutils-build/20050425/v.c:11
+foo+0xb
+/home/drepper/local/elfutils-build/20030710/u.c:5
+EOF
+
exit 0