This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] testsuite: Do not reference undefined label
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 13 Jul 2011 17:21:29 +0200
- Subject: [obv] testsuite: Do not reference undefined label
Hi,
as only .x object file gets compiled the undefined relocation is considered as
address 0 which matched the intended `array1' label. But sure it is wrong.
Tested on x86_64-fedora15-linux-gnu. Checked in.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2011-07/msg00128.html
--- src/gdb/testsuite/ChangeLog 2011/07/11 13:40:24 1.2789
+++ src/gdb/testsuite/ChangeLog 2011/07/13 15:18:12 1.2790
@@ -1,3 +1,8 @@
+2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.dwarf2/dw2-op-call.S (array1): Use the real label; do not
+ reference undefined label.
+
2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.dwarf2/dw2-const.S (Pointer size): Change from 4 to 8.
--- src/gdb/testsuite/gdb.dwarf2/dw2-op-call.S 2011/01/01 15:33:44 1.2
+++ src/gdb/testsuite/gdb.dwarf2/dw2-op-call.S 2011/07/13 15:18:13 1.3
@@ -49,7 +49,7 @@
.4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */
.byte 2f - 1f /* DW_AT_location */
1: .byte 3 /* DW_OP_addr */
- .4byte array /* <addr> */
+ .4byte array1 /* <addr> */
2:
.uleb128 3 /* Abbrev: DW_TAG_variable */