Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] testsuite: Fix gdb.dwarf2/dw2-case-insensitive.exp testcase for ppc64
@ 2014-01-23 14:42 Edjunior Barbosa Machado
  2014-01-23 15:54 ` Will Newton
  2014-01-28 16:01 ` Ulrich Weigand
  0 siblings, 2 replies; 4+ messages in thread
From: Edjunior Barbosa Machado @ 2014-01-23 14:42 UTC (permalink / raw)
  To: gdb-patches

Hi,

gdb.dwarf2/dw2-case-insensitive.exp has currently 1 test failing on ppc64:

p fuNC_symtab^M
$2 = {<text variable, no debug info>} 0x10000694 <FUNC_lang_end>^M
(gdb) FAIL: gdb.dwarf2/dw2-case-insensitive.exp: p fuNC_symtab

This regression was introduced after a change in the testcase that added
function labels to the code, fixing failures on arm (commit
c7e8af9b3bc0881c59c999d7b78348d359383efe).

This patch moves the label FUNC_lang_end to the end of the function scope, so
ppc64 can understand the following function (fuNC_symtab) correctly.
Successfully tested on x86, ppc32 and ppc64, but didn't have the chance to check
on arm.

Thanks,
Edjunior

gdb/testsuite/
2014-01-23  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>

	* gdb.dwarf2/dw2-case-insensitive.c (FUNC_lang): Move label
	FUNC_lang_end.

---
 gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c
index 9ec7b25..bdeee1e 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c
+++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c
@@ -26,10 +26,9 @@ asm ("FUNC_lang_start:");
 void
 FUNC_lang (void)
 {
-}
-
 asm (".globl FUNC_lang_end");
 asm ("FUNC_lang_end:");
+}
 
 /* Symbol is present only in ELF .symtab.  */
 
-- 
1.8.1.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-28 18:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-23 14:42 [PATCH] testsuite: Fix gdb.dwarf2/dw2-case-insensitive.exp testcase for ppc64 Edjunior Barbosa Machado
2014-01-23 15:54 ` Will Newton
2014-01-28 16:01 ` Ulrich Weigand
2014-01-28 18:20   ` Edjunior Barbosa Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox