* gdb.dwarf2/method-ptr.exp: Use correct form for non-string
authorTom Tromey <tromey@redhat.com>
Fri, 1 Feb 2013 19:33:47 +0000 (19:33 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 1 Feb 2013 19:33:47 +0000 (19:33 +0000)
attributes.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/method-ptr.exp

index 2711bb70829f1083cb1e0169bff5173be02687b8..47fed7744801ea3f2b92e4adc10163b19d3211cb 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-01  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.dwarf2/method-ptr.exp: Use correct form for non-string
+       attributes.
+
 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
            Tom Tromey  <tromey@redhat.com>
 
index 5b930c668a2eb066518cd3640e4891c23e5332c4..d76d63ec2f5e0863bbf71b74ca10744ffc1c49f4 100644 (file)
@@ -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}