Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: cseo@linux.vnet.ibm.com, jimb@codesourcery.com, gdb@sourceware.org
Subject: Re: expand-symtabs.exp
Date: Sun, 27 Jan 2008 16:26:00 -0000	[thread overview]
Message-ID: <20080127162614.GA5999@caradoc.them.org> (raw)
In-Reply-To: <200801271603.m0RG3PJ1010994@brahms.sibelius.xs4all.nl>

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


      reply	other threads:[~2008-01-27 16:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-27 15:32 expand-symtabs.exp Mark Kettenis
2008-01-27 15:38 ` expand-symtabs.exp Daniel Jacobowitz
2008-01-27 16:17   ` expand-symtabs.exp Mark Kettenis
2008-01-27 16:26     ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080127162614.GA5999@caradoc.them.org \
    --to=drow@false.org \
    --cc=cseo@linux.vnet.ibm.com \
    --cc=gdb@sourceware.org \
    --cc=jimb@codesourcery.com \
    --cc=mark.kettenis@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox