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]

FYI: another method-ptr.exp fix


I'm checking this in.

Doug pointed out that method-ptr.exp had incorrect DWARF forms for
various attributes.  This caused the test to fail for him.

This patch fixes the bug.

Tom

2013-02-01  Tom Tromey  <tromey@redhat.com>

	* gdb.dwarf2/method-ptr.exp: Use correct form for non-string
	attributes.

diff --git a/gdb/testsuite/gdb.dwarf2/method-ptr.exp b/gdb/testsuite/gdb.dwarf2/method-ptr.exp
index 5b930c6..d76d63e 100644
--- a/gdb/testsuite/gdb.dwarf2/method-ptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/method-ptr.exp
@@ -34,18 +34,18 @@ Dwarf::assemble $asm_file {
 	    int_label: base_type {
 		{name int}
 		{encoding @DW_ATE_signed}
-		{byte_size 4}
+		{byte_size 4 DW_FORM_sdata}
 	    }
 
 	    float_label: base_type {
 		{name float}
 		{encoding @DW_ATE_float}
-		{byte_size 4}
+		{byte_size 4 DW_FORM_sdata}
 	    }
 
 	    struct_label: structure_type {
 		{name S}
-		{byte_size 1}
+		{byte_size 1 DW_FORM_sdata}
 	    }
 
 	    ptr_label: pointer_type {
@@ -57,7 +57,7 @@ Dwarf::assemble $asm_file {
 	    } {
 		formal_parameter {
 		    {type :$ptr_label}
-		    {artificial 1}
+		    {artificial 1 DW_FORM_flag_present}
 		}
 		formal_parameter {
 		    {type :$float_label}


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