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]

[COMMITTED PATCH] gdb.cp/nsalias.exp: Fix output of external/declaration flags.


Hi.

I was debugging a failure in one of my sandboxes which turned out to be due
to a bad testcase.  The test was previously only passing accidentally.

The default form of attributes in the testsuite dwarf assembler is
strings, it's not smart enough (maybe some day) to choose the right
form given the value.

Regression tested on amd64-linux.

2015-01-02  Doug Evans  <xdje42@gmail.com>

	* gdb.cp/nsalias.exp: Fix output of external/declaration flags.

diff --git a/gdb/testsuite/gdb.cp/nsalias.exp b/gdb/testsuite/gdb.cp/nsalias.exp
index 63b52d2..93a0772 100644
--- a/gdb/testsuite/gdb.cp/nsalias.exp
+++ b/gdb/testsuite/gdb.cp/nsalias.exp
@@ -90,8 +90,8 @@ Dwarf::assemble $asm_file {
 
 			im_foo_label: DW_TAG_subprogram {
 			    {name foo}
-			    {external 1}
-			    {declaration 1}
+			    {external 1 flag_present}
+			    {declaration 1 flag_present}
 			}
 		    }
 
@@ -108,8 +108,8 @@ Dwarf::assemble $asm_file {
 
 		    i_foo_label: subprogram {
 			{name foo}
-			{external 1}
-			{declaration 1}
+			{external 1 flag_present}
+			{declaration 1 flag_present}
 		    }
 		}
 
@@ -126,8 +126,8 @@ Dwarf::assemble $asm_file {
 
 		o_foo_label: subprogram {
 		    {name foo}
-		    {external 1}
-		    {declaration 1}
+		    {external 1 flag_present}
+		    {declaration 1 flag_present}
 		}
 	    }
 


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