Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Elizabeth Chastain <mec@shout.net>
To: drow@mvista.com, gdb@sources.redhat.com
Subject: Re: gcc HEAD moves line number directives -- gcc bug?
Date: Tue, 02 Sep 2003 03:28:00 -0000	[thread overview]
Message-ID: <200309020328.h823SW1F013673@duracef.shout.net> (raw)

drow> our testsuite certainly must accept returning to
drow> both line 23 and 24.  There are a number of architecures where a
drow> function call includes instructions after the return (stack adjustment,
drow> $gp reload...).

I didn't think of that.  You are right.  This is a bug in the test
script, independent of whether the compiler has a bug too.

In fact, even on x86, a "call" instruction might or might not
be followed by "add %esp, $N" to pop a arguments.  We had a similar
bug in gdb.base/advance.exp earlier this year.  Mumble grep ...

  2003-02-01  Michael Chastain  <mec@shout.net>

        * gdb.base/advance.c (marker1): New marker function.
        * gdb.base/advance.exp: When the 'advance' command lands on the
        return breakpoint, it can legitimately stop on either the
        current line or the next line.  Accommodate both outcomes.
        * gdb.base/until.exp: Likewise.

So I will submit a patch to fix gdb.mi/mi*-until.exp.

> Line 24 is the addl.  The leal is generated probably in reload; it's
> not really part of any line, even though it was generated for line 24.

Okay, then I won't file a gcc PR about the 'leal' insn moving up from line 24
to line 23.  I'm still kinda wary and sensitive about it though.

There are about a dozen gdb regressions from gcc 3.3.1 to gcc HEAD
with -gdwarf-2, and a lot more with -gstabs+ due to gcc/12066.
I'll keep grinding them.

Thanks,

Michael C


             reply	other threads:[~2003-09-02  3:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-02  3:28 Michael Elizabeth Chastain [this message]
2003-09-03 20:49 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
2003-09-01 17:13 Michael Elizabeth Chastain
2003-09-02  0:39 ` Daniel Jacobowitz

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=200309020328.h823SW1F013673@duracef.shout.net \
    --to=mec@shout.net \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /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