This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: expand-symtabs.exp


On Sun, Jan 27, 2008 at 05:03:25PM +0100, Mark Kettenis wrote:
>  Line Number Statements:
>   Extended opcode 2: set Address to 0x4007e0
>   Advance Line by 30 to 31
>   Copy
>   Special opcode 61: advance Address by 4 to 0x4007e4 and Line by 0 to 31
>   Advance PC by 2 to 4007e6
>   Extended opcode 1: End of Sequence

Interesting:

  Extended opcode 2: set Address to 0x0
  Advance Line by 30 to 31
  Copy
  Special opcode 63: advance Address by 4 to 0x4 and Line by 2 to 33
  Advance PC by 2 to 0x6
  Extended opcode 1: End of Sequence

GCC has done this for as long as I remebmer; your version has leaveq
associated with the open brace, which is clearly strange.  I can
reproduce that with GCC 3.3 and 3.4, so you're right; it must be fixed
in 4.x.

Anyway, now we see how to fix the testcase :-) I'm pretty sure an
actual function body won't affect what they're testing for.  Does
this help?

-- 
Daniel Jacobowitz
CodeSourcery

2008-01-27  Daniel Jacobowitz  <dan@codesourcery.com>

	* gdb.base/expand-psymtabs.c (foo): Add a non-empty body.

Index: testsuite/gdb.base/expand-psymtabs.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/expand-psymtabs.c,v
retrieving revision 1.2
diff -u -p -r1.2 expand-psymtabs.c
--- testsuite/gdb.base/expand-psymtabs.c	1 Jan 2008 22:53:18 -0000	1.2
+++ testsuite/gdb.base/expand-psymtabs.c	27 Jan 2008 16:25:30 -0000
@@ -29,7 +29,7 @@ main (void)
 void
 foo (void)
   {
-    /* Break here  */
+    int x = 1; /* Break here  */
   }
 
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]