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]

lib/prelink-support.exp (prelink_yes): Flag test as unsupported if unhandled dwarf


Hi.
I'm seeing output like this running prelink tests with dwarf 4:

/tmp/gdb/testsuite/gdb.base/break-interp-BINprelinkNOdebugNOpieATTACH.d/break-interp.so: Unknown debugging section .debug_types
prelink: /tmp/gdb/testsuite/gdb.base/break-interp-BINprelinkNOdebugNOpieATTACH.d/break-interp.so: Unknown debugging section .debug_addr
prelink: /tmp/gdb/testsuite/gdb.base/break-interp-BINprelinkNOdebugNOpieATTACH.d/break-interp.so: DWARF version 4 unhandled

This causes a lot of FAILs in the output.

According to the dejagnu docs, unsupported means, in part:

"There is no support for the tested case.  This may mean that a
conditional feature of an operating system, or of a compiler, is
not implemented."

so that is what I've used here.

Regression tested on amd64-linux (with/without fission - which uses dwarf4).
I will commit this in a few days if there are no objections.

2013-08-14  Doug Evans  <dje@google.com>

	* lib/prelink-support.exp (prelink_yes): Flag test as unsupported if
	prelink complains about an unhandled DWARF version.

Index: lib/prelink-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/prelink-support.exp,v
retrieving revision 1.9
diff -u -p -r1.9 prelink-support.exp
--- lib/prelink-support.exp	13 Aug 2013 15:50:13 -0000	1.9
+++ lib/prelink-support.exp	14 Aug 2013 21:39:16 -0000
@@ -292,6 +292,11 @@ proc prelink_yes {arg {name ""}} {
 	xfail $test
 	return 0
     }
+    if {$result == 1 && [regexp {DWARF [^\r\n]* unhandled} $output]} {
+	# Prelink didn't understand the version of dwarf present.
+	unsupported "$test (dwarf version unhandled)"
+	return 0
+    }
     if {$result == 0 && $output == ""} {
 	pass $test
 	return 1


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