From: Eli Zaretskii <eliz@gnu.org>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Reverse debugging, part 2/3: core interface
Date: Sat, 01 Apr 2006 12:34:00 -0000 [thread overview]
Message-ID: <uhd5da2zk.fsf@gnu.org> (raw)
In-Reply-To: <442DAA95.6050708@redhat.com> (message from Michael Snyder on Fri, 31 Mar 2006 14:17:57 -0800)
> *************** finish_command (char *arg, int from_tty)
> *** 1311,1320 ****
> source. */
> if (from_tty)
> {
> ! printf_filtered (_("Run till exit from "));
> print_stack_frame (get_selected_frame (NULL), 1, LOCATION);
> }
>
> /* If running asynchronously and the target support asynchronous
> execution, set things up for the rest of the finish command to be
> completed later on, when gdb has detected that the target has
> --- 1303,1333 ----
> source. */
> if (from_tty)
> {
> ! if (target_get_execution_direction () == EXEC_REVERSE)
> ! printf_filtered ("Run back to call of ");
> ! else
> ! printf_filtered ("Run till exit from ");
> !
> print_stack_frame (get_selected_frame (NULL), 1, LOCATION);
> }
The original code was i18n-ready, but your code is not. Please use
_() to wrap messages we display to the user.
In addition, I think "Run back to call of FOO" is not very clear. I
wanted to suggest "Run to entry to FOO", but then I realized it would
be a lie: we do back up past the entry, to the instruction that
actually calls the function we are in, right? Perhaps "Run back to
before the call to FOO" is better, even though it is wordier?
> ! if (debug_infrun)
> ! fprintf_unfiltered (gdb_stdlog,
> ! "infrun: stepped to a different function\n");
_() is missing around the message string (yes, I know it was missing
in the original code as well, but...).
> + case NO_HISTORY:
> + /* Reverse execution: target ran out of history info. */
> + ui_out_text (uiout, "\nNo more reverse-execution history.\n");
_(), please.
next parent reply other threads:[~2006-04-01 12:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <442DAA95.6050708@redhat.com>
2006-04-01 12:34 ` Eli Zaretskii [this message]
2006-04-01 16:10 ` Daniel Jacobowitz
2006-04-01 16:24 ` Eli Zaretskii
2006-04-17 23:42 ` Michael Snyder
2006-04-18 9:04 ` Eli Zaretskii
2006-04-20 16:00 ` Daniel Jacobowitz
2006-04-20 19:49 ` Michael Snyder
2006-04-20 19:52 ` Daniel Jacobowitz
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=uhd5da2zk.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@redhat.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