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

Message ID m3iogopffn.fsf@seba.sebabeach.org
State Committed
Headers

Commit Message

Doug Evans Jan. 3, 2015, 6:05 a.m. UTC
  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.
  

Patch

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}
 		}
 	    }