diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-09-22 19:13:40 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-09-22 19:13:40 +0000 |
commit | e8ae22d1973d52e41b24f9ac58b4c5da9d3cff13 (patch) | |
tree | 247ba7b7c2d98d2695bb71dfb8644fb44dc78592 /gdb | |
parent | 72929c628e0547bcffcbb3e7b7afabb912ce246b (diff) | |
download | gdb-e8ae22d1973d52e41b24f9ac58b4c5da9d3cff13.zip gdb-e8ae22d1973d52e41b24f9ac58b4c5da9d3cff13.tar.gz gdb-e8ae22d1973d52e41b24f9ac58b4c5da9d3cff13.tar.bz2 |
[testsuite] dw2-const.S: fix type reference size on 64bit platforms.
The testcase was failing on various 64bit platforms, because the
debugging info said that the target type for a const type is a
4-byte reference. In the asm file, I used a .long directive, but
the size of .long is of course dependent on the platform. This
replaces this .long by a .4byte directive.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-const.S: Use .4byte to reference the target
type of our const type.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-const.S | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7b4b6a5..5d04cd9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-09-22 Joel Brobecker <brobecker@adacore.com> + + * gdb.dwarf2/dw2-const.S: Use .4byte to reference the target + type of our const type. + 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/pr12028.cc: New. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-const.S b/gdb/testsuite/gdb.dwarf2/dw2-const.S index f5c64f9..aa91839 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-const.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-const.S @@ -55,7 +55,7 @@ func_cu1: .Ltype_const: .uleb128 0x9 /* Abbrev: DW_TAG_const_type */ - .long .Ltype_int-.Lcu1_begin /* DW_AT_type */ + .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ |