Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: jimb@zwingli.cygnus.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: Elaborate on new overlay support
Date: Fri, 08 Feb 2002 23:46:00 -0000	[thread overview]
Message-ID: <2593-Sat09Feb2002094444+0200-eliz@is.elta.co.il> (raw)
In-Reply-To: <20020208192755.8882C5E9DE@zwingli.cygnus.com> (message from Jim Blandy on Fri, 8 Feb 2002 14:27:55 -0500 (EST))

> From: Jim Blandy <jimb@zwingli.cygnus.com>
> Date: Fri,  8 Feb 2002 14:27:55 -0500 (EST)
> 
> Michael's recent fixes missed a separate discussion of the limitations
> of breakpoints, which is now obsolete.  This patch also goes into more
> detail on how _ovly_debug_event behaves, and why it is necessary.

Thanks.  I have a few minor comments on this.

> ! However, @value{GDBN}'s breakpoint commands have some special
> ! requirements.  @value{GDBN} supports two different implementations of
> ! breakpoints:

This is a very useful description, but I don't think it belongs to a
section which talks about debugging overlays.  So I suggest to move
this text to the beginning of the "Breakpoints" node, before the
menu, and leave in "Overlay Commands" an xref to that description
(you can use @anchor to land the reader exactly on the relevant chunk
of text, since we now require Texinfo 4.0 or later).

> + These two breakpoint implementations have different characteristics:
> + 
> + @itemize @bullet
> + 
> + @item
> + Since software breakpoints depend on modifying the program's code,
> + @value{GDBN} clearly cannot place them in code located in read-only
> + memory.  In that case, @value{GDBN} could use hardware breakpoints
> + instead, if the processor supports them.

Is the read-only memory issue relevant only to overlays?  If not, this
part, too, should go to the "Breakpoints" node.

> + @item
> + When the overlay manager copies an overlay's code from its load address
> + to its mapped address

I don't have the CVS version of gdb.texinfo where I type this; does
the reader already know, by the time she reads this, what are ``load
address'' and ``mapped address''?  If not, perhaps we should explain
that here.

> + the overlay is unmapped.  For this reason, @value{GDBN} can only set
> + hardware breakpoints in overlays when you are using automatic overlay
> + debugging, and your overlay manager provides the
> + @code{_ovly_debug_event} function; @xref{Automatic Overlay Debugging}.

Please use "see @ref" instead of "@xref" here, since @xref is only
appropriate for the beginning of a statement (it generates an
upper-case "Note" in Info and an upper-case "See" in the printed
manual).

>   In addition, your overlay manager may define a function called
> ! @code{_ovly_debug_event}.  If this function is defined, @value{GDBN}
> ! silently sets a breakpoint there.  If your overlay manager calls this
> ! function whenever it has changed the overlay table, @value{GDBN}
> ! re-reads the overlay table from the inferior, relocates any breakpoints
> ! whose addresses are affected, and silently continues your program.

I suggest an index entry here for _ovly_debug_event.

> ! If your overlay manager does not provide the @code{_ovly_debug_event}
> ! function, then @value{GDBN} has no way to know when an overlay becomes
> ! mapped or unmapped.  This means it is impossible for @value{GDBN} to
> ! support hardware breakpoints, or to place any kind of breakpoint in an
> ! overlay stored in read-only memory; see the discussion in @ref{Overlay
> ! Commands}.

I suggest an index entry here, something like this:

  @cindex hardware breakpoints, and overlays

Otherwise, this can go in.


  reply	other threads:[~2002-02-09  7:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-08 11:26 Jim Blandy
2002-02-08 23:46 ` Eli Zaretskii [this message]
2002-02-09  8:16   ` Jim Blandy
2002-02-09  8:45     ` Eli Zaretskii
2002-02-09  9:34       ` Andrew Cagney
2002-02-09 10:05         ` 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=2593-Sat09Feb2002094444+0200-eliz@is.elta.co.il \
    --to=eliz@is.elta.co.il \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@zwingli.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