Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: drow@false.org
Cc: gdb@sourceware.org
Subject: Re: i386 int3 handling, running vs stepping
Date: Tue, 03 Feb 2009 09:22:00 -0000	[thread overview]
Message-ID: <200902030921.n139LxbJ012722@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <20090202214915.GA4257@caradoc.them.org> (message from Daniel 	Jacobowitz on Mon, 2 Feb 2009 16:49:15 -0500)

> Date: Mon, 2 Feb 2009 16:49:15 -0500
> From: Daniel Jacobowitz <drow@false.org>
>
> > I guess the issue is whether int3's in programs are supported by gdb,
> > and by supported I mean users can rely on gdb flagging a SIGTRAP when
> > they're executed.  As you say, there are people who take advantage of
> > this for hardwired breakpoints.
> 
> Since it works today, and we know that people use it, I think we have
> no choice but to consider it supported.
> 
> > There are various situations where gdb itself will singlestep code
> > (e.g., "step", "next", s/w watchpoints).  Can users expect to see the
> > SIGTRAP in these situations (and all others)?  And if the program is
> > being run by a script, can the script expect to see the SIGTRAP in all
> > cases?
> 
> That's certainly not the case today.  If you want to make it work, and
> add a couple of tests for it, I've no objection - it seems a plausible
> thing to do.  But I would prefer that any solution did not involve
> reading the instruction at every step; that's quite slow, on a target
> where we otherwise do not need to.

I don't really see any reason to change things here.


  parent reply	other threads:[~2009-02-03  9:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-01 23:18 Doug Evans
2009-02-01 23:33 ` Daniel Jacobowitz
2009-02-01 23:38   ` Doug Evans
2009-02-02  4:25     ` Daniel Jacobowitz
2009-02-02 20:03       ` Doug Evans
2009-02-02 21:49         ` Daniel Jacobowitz
2009-02-03  1:26           ` Doug Evans
2009-02-03  4:08             ` Daniel Jacobowitz
2009-02-03  9:22           ` Mark Kettenis [this message]
2009-02-02  0:52   ` Doug Evans
2009-02-02  6:08   ` Robert Dewar
2009-02-02  6:19 ` teawater
2009-02-03  9:21 ` Mark Kettenis

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=200902030921.n139LxbJ012722@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=drow@false.org \
    --cc=gdb@sourceware.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