public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: GDB Discussion <gdb@sourceware.cygnus.com>
Subject: SOFTWARE_SINGLE_STEP_P and multi-arch
Date: Mon, 04 Dec 2000 17:23:00 -0000	[thread overview]
Message-ID: <3A2C4141.B3C2F486@cygnus.com> (raw)

Hello,

At present there are two macros that control software stepping:

	SOFTWARE_SINGLE_STEP_P()

and 	SOFTWARE_SINGLE_STEP(sig, insert_or_remove)

I'd like to suggest the following:

Rename SOFTWARE_SINGLE_STEP_P() to TARGET_SOFTWARE_SINGLE_STEP_P() and
add it to the *target* vector.

	Hardware single step support (implied
	by !TARGET_SOFTWARE_SINGLE_STEP_P())
	is target and not ISA/ABI dependant.

	Some ISAs might support hardware single
	step but the actual target may not
	(lousy OS support, limited stub functionality)

Make SOFTWARE_SINGLE_STEP Multi arch.
	(and I don't like it but I can't think
	of a better incremental move :-)

	While I think SOFTWARE_SINGLE_STEP()
	should be replaced by code that creates
	temp breakpoints and adds them to
	the breakpoint database (gdb would
	later pull them directly) I don't want
	to try and also do that.

	The way software single step is
	currently implemented is just ulgh...

Thoughts/comments?

	Andrew

             reply	other threads:[~2000-12-04 17:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-04 17:23 Andrew Cagney [this message]
2000-12-05  6:40 ` Richard Earnshaw
2000-12-05 15:24 ` J.T. Conklin
2001-03-21 15:59 ` Todd Whitesel
2001-03-21 15:59   ` J.T. Conklin

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=3A2C4141.B3C2F486@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb@sourceware.cygnus.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).