Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jim Blandy <jimb@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: prologue value modules
Date: Tue, 28 Mar 2006 18:58:00 -0000	[thread overview]
Message-ID: <uy7yubyn7.fsf@gnu.org> (raw)
In-Reply-To: <vt21wwntp5m.fsf@theseus.home.> (message from Jim Blandy on Mon, 	27 Mar 2006 15:59:33 -0800)

> Cc: gdb-patches@sources.redhat.com
> From: Jim Blandy <jimb@codesourcery.com>
> Date: Mon, 27 Mar 2006 15:59:33 -0800
> 
> >>
> >> Are we going to have this documented in gdbint.texinfo?
> >
> > Yes --- I promised that before.  Thanks for reminding me.
> 
> How's this doc patch?

It's fine, modulo some minor comments below.  Thanks.

> +Modern versions of GCC emit Dwarf call frame information (``CFI'')
> +that gives @value{GDBN} all the information it needs to do this.

AFAICS, this is the first time the manual mentions "CFI", so I think
at least an index entry is in order, if not a short explanation of
what it is (perhaps in a footnote for now, pending some real
documentation in the future), or a pointer to some doc on the net.

> +and fragile.  Keeping the prologue analyzers working as GCC (and the
> +ISA's themselves) evolved became a substantial task.

Ditto for "ISA".

> +@cindex @file{prologue-value.c}
> +@cindex abstract interpretation of function prologues
> +@cindex pseudo-evaluation of function prologues
> +To try to address this problem, the code in
> +@file{gdb/prologue-value.h} and @file{gdb/prologue-value.c} provide a

Should these file names include the leading "gdb/" directory?  I'm not
sure it's really required; OTOH, having too long strings in @file{}
might produce ugly printed version, because TeX does not know how to
hyphenate inside @file{}.

> +@example
> +   mov r2, r1      # set r2 to r1's value
> +@end example

This @example is indented differently than the rest.  Any reason?

> +@example
> +mov (fp+4), r2
> +@end example
> +@noindent
> +Then we'd know that the stack slot four bytes above the frame pointer
   ^^^^
This should be a lowercase "then", since it doesn't start a sentence.

> +register's original value.  If the ABI suggests a standard place

We have a section about the ABI, so I think a cross-reference there
will be a good idea.

>                                                      So I think it's
> +worthwhile to look for an approach that will be easier to understand
> +and maintain.  In the approach used here:

I think we need to reword ``I'' and ``here'', so that they look
natural in the context of the manual (as opposed to a mail message or
a source file).

> +The file @file{prologue-value.h} contains detailed comments explaining
> +the framework and how to use it.

Would it be a good idea to have the listing of the API in the manual,
with short explanations?  I'm not saying it is necessarily required,
but please give it a thought.


  reply	other threads:[~2006-03-28 11:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-23  5:20 Jim Blandy
2006-03-23  5:24 ` Daniel Jacobowitz
2006-03-23  5:32   ` Randolph Chung
2006-03-23  5:39   ` Jim Blandy
2006-03-23 14:06     ` Jim Blandy
2006-03-24  1:03     ` Jim Blandy
2006-03-24  2:40       ` Jim Blandy
2006-03-28  7:51         ` Jim Blandy
2006-03-24 14:48 ` Eli Zaretskii
2006-03-24 22:43   ` Jim Blandy
2006-03-28  2:24     ` Jim Blandy
2006-03-28 18:58       ` Eli Zaretskii [this message]
2006-03-28 19:15         ` Jim Blandy
2006-03-28 21:17           ` Eli Zaretskii
2006-03-28 21:59             ` Jim Blandy
2006-04-07 19:19               ` Ulrich Weigand
2006-04-08 23:40                 ` Jim Blandy

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=uy7yubyn7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@codesourcery.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