Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Michael Elizabeth Chastain <mec.gnu@mindspring.com>
Cc: ac131313@redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [rfa] New test sigbpt.{c,exp}
Date: Tue, 06 Jul 2004 18:30:00 -0000	[thread overview]
Message-ID: <20040706183012.GA2583@nevyn.them.org> (raw)
In-Reply-To: <20040706181221.153B24B104@berman.michael-chastain.com>

On Tue, Jul 06, 2004 at 02:12:21PM -0400, Michael Chastain wrote:
> drow> 0x080483f2 in bowler () at /opt/src/gdb/src/gdb/testsuite/gdb.base/sigbpt.c:38
> drow> 38        return *(char *) (v1 + v2 + v3);
> drow> 1: x/i $pc  0x80483f2 <bowler+25>:      mov    $0x55c35d00,%esi
> drow> (gdb) FAIL: gdb.base/sigbpt.exp: stepi out of handler; stepi bp at segv
> drow> 
> drow> That's not the instruction that should be there; there's a multi-byte
> drow> instruction at <bowler+24>.
> 
> How about:
> 
>   (1) before running the program, 'disassemble bowler'
>   (2) at the breakpoint, 'x/i $pc'
>   check that the output of (2) matches one of the lines in (1)

That's not a good generic fix; it's just a peculiarity of x86 that we
get this particular problem.  If that hadn't been a multibyte opcode
something different would have happened.  I think just executing
another instruction here after the faulting one is enough to match the
kfail, whether it's the size of a breakpoint or not.

-- 
Daniel Jacobowitz


  reply	other threads:[~2004-07-06 18:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-06 18:12 Michael Elizabeth Chastain
2004-07-06 18:30 ` Daniel Jacobowitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-07 18:39 Michael Elizabeth Chastain
2004-07-06 18:59 Michael Elizabeth Chastain
2004-07-06 19:29 ` Andrew Cagney
2004-07-07 17:31   ` Andrew Cagney
2004-07-08 14:28     ` Daniel Jacobowitz
2004-06-30 18:53 Michael Elizabeth Chastain
2004-07-06 15:10 ` Andrew Cagney
2004-07-06 15:35   ` Daniel Jacobowitz
2004-07-06 16:00     ` Andrew Cagney
2004-06-30  3:53 Michael Elizabeth Chastain
2004-06-30 15:25 ` Andrew Cagney
2004-06-30 15:30   ` Daniel Jacobowitz
2004-07-02 13:24     ` Andrew Cagney
2004-06-29 23:44 Andrew Cagney

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=20040706183012.GA2583@nevyn.them.org \
    --to=drow@false.org \
    --cc=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mec.gnu@mindspring.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