Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Randolph Chung <randolph@tausq.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfa] tweak patterns for annota3.exp
Date: Mon, 06 Dec 2004 03:06:00 -0000	[thread overview]
Message-ID: <20041206030313.GA31167@nevyn.them.org> (raw)
In-Reply-To: <20041206025645.GY6359@tausq.org>

On Sun, Dec 05, 2004 at 06:56:45PM -0800, Randolph Chung wrote:
> > Are you sure there's nothing but an extra \r\n?  It definitely passes
> > for others, so I'd like to know where that came from.
> 
> yup... the log says:
> 
> signal SIGUSR1^M
> ^M
> ^Z^Zpost-prompt^M
> Continuing with signal SIGUSR1.^M
> ^M
> ^Z^Zstarting^M
> ^M
> ^Z^Zframes-invalid^M
> ^M
> ^Z^Zbreakpoint 2^M
> ^M
> Breakpoint 2, 0x000105d4 in handle_USR1 (sig=16) at /home/tausq/gdb/gdb-cvs/gdb/testsuite/gdb.base/annota3.c:18^M
> ^M
> ^Z^Zsource /home/tausq/gdb/gdb-cvs/gdb/testsuite/gdb.base/annota3.c:18:238:beg:0x105d4^M
> ^M
> ^Z^Zstopped^M
> ^M
> ^Z^Zpre-prompt^M
> (gdb) ^M
> ^Z^Zprompt^M
> PASS: gdb.base/annota3.exp: send SIGUSR1
> 
> i have no idea where that comes from either... 

You could put a breakpoint on vfprintf_unfiltered to find out :-)

> mmmmm. gcc creates this:
> 
> .globl handle_USR1
>         .type   handle_USR1, @function
> .LFB3:
>         .loc 1 18 0
> handle_USR1:
>         .PROC
>         .CALLINFO FRAME=64,NO_CALLS,SAVE_SP,ENTRY_GR=3
>         .ENTRY
>         copy %r3,%r1
> .LCFI0:
>         copy %r30,%r3
> .LCFI1:
>         stwm %r1,64(%r30)
> .LCFI2:
>         stw %r26,-36(%r3)
>         ldo 64(%r3),%r30
>         ldwm -64(%r30),%r3
>         bv,n %r0(%r2)
>         .EXIT
>         .PROCEND
> 
> we are breakpointing at the ldo insn, which seems to be correct from the
> prologue analysis point of view. do you mean that the ".loc" should be
> right before the ldo?

There should be an _additional_ .loc before the ldo.  The rule for what
GDB expects is: one line note before the function, one after the
prologue.

-- 
Daniel Jacobowitz


  reply	other threads:[~2004-12-06  3:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-06  2:49 Randolph Chung
2004-12-06  2:56 ` Daniel Jacobowitz
2004-12-06  3:03   ` Randolph Chung
2004-12-06  3:06     ` Daniel Jacobowitz [this message]
2004-12-06  3:27       ` Randolph Chung
2004-12-06 20:52       ` Randolph Chung

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=20041206030313.GA31167@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=randolph@tausq.org \
    /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