Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] testsuite gdb.base/expand-psymtabs: ensure code is generated  for the expected source line
@ 2008-12-08 15:25 Christophe LYON
  2008-12-10 17:29 ` Carlos Eduardo Seo
  2008-12-16  6:29 ` Joel Brobecker
  0 siblings, 2 replies; 7+ messages in thread
From: Christophe LYON @ 2008-12-08 15:25 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

Hi all,

I propose the attached small patch to expand-psymtabs.c. The goal is to 
make sure the compiler actually generates code and debug information for 
the expected line. Currently, our compiler attaches code only to the 
opening brace, hence causing the test to fail.

Christophe.

[-- Attachment #2: ChangeLog --]
[-- Type: text/plain, Size: 179 bytes --]

2008-12-08  Christophe Lyon  <christophe.lyon@st.com>

	* gdb.base/expand-psymtabs.c: Insert code in foo so that the
	compiler actually generate code at the expected line number.

[-- Attachment #3: patch --]
[-- Type: text/plain, Size: 409 bytes --]

Index: src/gdb/testsuite/gdb.base/expand-psymtabs.c
===================================================================
--- src/gdb/testsuite/gdb.base/expand-psymtabs.c	(revision 308)
+++ src/gdb/testsuite/gdb.base/expand-psymtabs.c	(working copy)
@@ -27,9 +27,14 @@ main (void)
 
 #else
 void
+bar (void)
+  {
+  }
+
+void
 foo (void)
   {
-    /* Break here  */
+    bar(); /* Break here  */
   }
 
 #endif

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

end of thread, other threads:[~2008-12-16 13:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-08 15:25 [RFA] testsuite gdb.base/expand-psymtabs: ensure code is generated for the expected source line Christophe LYON
2008-12-10 17:29 ` Carlos Eduardo Seo
2008-12-11  8:50   ` Christophe LYON
2008-12-15 12:02   ` Christophe LYON
2008-12-16  6:29 ` Joel Brobecker
2008-12-16 10:28   ` Christophe LYON
2008-12-16 13:19     ` Denis PILAT

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