This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: handle "MiniDebuginfo" section


Tom Tromey wrote:

> Ulrich> If I change the above filter to also accept "D", the test case
> Ulrich> goes further.  (It still ends up UNSUPPORTED, since it looks
> Ulrich> like I don't have LZMA on the system ...).  I'm not sure why the
> Ulrich> filter for "T" is done; would it change something critical to
> Ulrich> the test if "D" were added?
> 
> I think it would be fine.

OK, here's what I checked in.  Thanks again!

Bye,
Ulrich

ChangeLog:

	* gdb.base/gnu-debugdata.exp: Also include "D" symbols in
	${binfile}.funcsyms list.


Index: gdb/testsuite/gdb.base/gnu-debugdata.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gnu-debugdata.exp,v
retrieving revision 1.2
diff -u -p -r1.2 gnu-debugdata.exp
--- gdb/testsuite/gdb.base/gnu-debugdata.exp	29 Nov 2012 20:53:24 -0000	1.2
+++ gdb/testsuite/gdb.base/gnu-debugdata.exp	5 Dec 2012 17:05:02 -0000
@@ -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
 }


-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]