From: Eli Zaretskii <eliz@gnu.org>
To: Stan Shebs <stan@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Document tracepoint restrictions
Date: Fri, 12 Mar 2010 08:17:00 -0000 [thread overview]
Message-ID: <83ociu0x9l.fsf@gnu.org> (raw)
In-Reply-To: <4B99A9A0.20500@codesourcery.com>
> Date: Thu, 11 Mar 2010 18:40:32 -0800
> From: Stan Shebs <stan@codesourcery.com>
>
> While the savvy GDB hacker can use sekrit GDB internals knowledge to
> surmise what will and won't work with tracepoints, normal users can
> benefit from it being spelled out more explicitly. This patch adds a
> new section to the manual that explains some of the gotchas our new
> generation of tracepoint users has experienced already.
Thanks.
> + @node Tracepoint Restrictions
> + @subsection Tracepoint Restrictions
> +
> + There are a number of restrictions on the use of tracepoints.
As always, it is generally a good idea to have a @cindex entry whose
name is like the section name (in lower-case).
> + state variables). Objective-C and Objective-C++ features are not
> + supported.
I'm not sure I understand the last sentence. How are Objective-C/C++
features related to tracepoints? Perhaps you should add some
explanation.
> + program -- particularly if a conditional branch is stepped.
^^^^
This should be 3 dashes in a row, and probably without spaces
surrounding it. That way, it will look better in print.
> + collect not only the pointer, but the memory pointed to. For example
> + @code{*ptr@@50} can be used to collect the 50 element array pointed to
> + by @code{ptr}.
A comma is missing after "For example".
> + tracepoint. Instead you may collect the registers and a few hundred
^
A comma is missing here.
> + bytes from the stack pointer with something like @code{*$esp@@300}
> + (adjust to use the name of the actual stack pointer register on your
> + target architecture, and the amount of stack you wish to capture).
Isn't it better to just use the generic $sp here? Or are you saying
that it is not supported by tracepoints?
> + The above is not intended as an exhaustive list of restrictions. As
> + described above, tracepoint data gathering occurs on the target
> + without interaction from GDB. Thus the full capabilities of GDB are
> + not available during data gathering.
This should probably be moved to before the list, and rephrased
appropriately.
Okay with these changes.
next prev parent reply other threads:[~2010-03-12 8:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 2:40 Stan Shebs
2010-03-12 8:17 ` Eli Zaretskii [this message]
2010-03-12 18:51 ` Stan Shebs
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=83ociu0x9l.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=stan@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