From: Tom Tromey <tromey@redhat.com>
To: Stan Shebs <stan@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Fast tracepoints
Date: Tue, 05 Jan 2010 22:43:00 -0000 [thread overview]
Message-ID: <m33a2k8967.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4B42A628.5060302@codesourcery.com> (Stan Shebs's message of "Mon, 04 Jan 2010 18:38:32 -0800")
>>>>> "Stan" == Stan Shebs <stan@codesourcery.com> writes:
Stan> This patch adds "fast" tracepoints to GDB.
Neat.
Stan> Most of the interesting trickery is on the target side - but don't
Stan> despair, Pedro has upcoming patches for a free version using gdbserver
Stan> and a special library.
I wonder whether this could somehow work with systemtap probe points.
Stan> + static void
Stan> + check_fast_tracepoint_sals (struct symtabs_and_lines *sals)
[...]
Stan> + if (!gdbarch_fast_tracepoint_valid_at (get_current_arch (),
Stan> + sal->pc, NULL))
Stan> + error (_("May not have a fast tracepoint at 0x%s"),
Stan> + paddress (get_current_arch (), sal->pc));
Stan> + static int
Stan> + i386_fast_tracepoint_valid_at (struct gdbarch *gdbarch,
Stan> + CORE_ADDR addr, int *isize)
[...]
Stan> + printf_filtered (_("Instruction at 0x%s is only %d bytes long, need at least %d bytes for the fast tracepoint jump\n"),
Stan> + paddress (gdbarch, addr), len, jumplen);
It seems like it would be nicer for the user if the _at method returned
a reason, so that it could be printed as "May not have a fast
tracepoint: ... : reason".
Similarly, it seems a little strange to me that a predicate function is
expected to print a warning.
Tom
next prev parent reply other threads:[~2010-01-05 22:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 2:38 Stan Shebs
2010-01-05 20:07 ` Eli Zaretskii
2010-01-05 22:43 ` Tom Tromey [this message]
2010-01-06 0:55 ` Stan Shebs
2010-01-06 9:39 ` Mark Wielaard
2010-01-06 23:09 ` Tom Tromey
2010-01-06 23:41 ` 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=m33a2k8967.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--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