public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [obv] testsuite: Do not reference undefined label
@ 2011-07-13 16:05 Jan Kratochvil
  0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2011-07-13 16:05 UTC (permalink / raw)
  To: gdb-patches

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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-13 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 16:05 [obv] testsuite: Do not reference undefined label Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).