* gdb.base/gnu-debugdata.exp: Also include "D" symbols in
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 5 Dec 2012 17:07:56 +0000 (17:07 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 5 Dec 2012 17:07:56 +0000 (17:07 +0000)
${binfile}.funcsyms list.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/gnu-debugdata.exp

index 8d2539e8cf8e5aa12dda59187517812aa42dfbc5..ad6874ed0e22224f8d3f2de7d38fbab3c8b5f5cd 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-05  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gdb.base/gnu-debugdata.exp: Also include "D" symbols in
+       ${binfile}.funcsyms list.
+
 2012-12-04  Yao Qi  <yao@codesourcery.com>
 
        PR gdb/13443
index 1429a392af1b630e10d3492dcb4e58f904383a98..83abe57bd716b7cf27d9cba67520650bcc5af8b5 100644 (file)
@@ -95,10 +95,12 @@ if {[pipeline "nm -D" \
 }
 
 # Extract all the text (i.e. function) symbols from the debuginfo.
+# (Note that we actually also accept "D" symbols, for the benefit
+# of platforms like PowerPC64 that use function descriptors.)
 remote_file host delete ${binfile}.funcsyms
 if {[pipeline "nm" \
         [list [transform nm] "${binfile} --format=posix --defined-only"] \
-        [list awk "\\{if(\\\$2==\"T\"||\\\$2==\"t\")print\\ \\\$1\\}"] \
+        [list awk "\\{if(\\\$2==\"T\"||\\\$2==\"t\"||\\\$2==\"D\")print\\ \\\$1\\}"] \
         [list sort "" "" "${binfile}.funcsyms"]]} {
     return -1
 }