From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: Markus Metzger <markus.t.metzger@intel.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb, record: rephrase the 'not recording' error message
Date: Fri, 18 Dec 2020 14:18:31 -0500 [thread overview]
Message-ID: <37e805e9-7d6f-2447-05a4-88255d51b0f9@polymtl.ca> (raw)
In-Reply-To: <20201217151212.1179058-1-markus.t.metzger@intel.com>
On 2020-12-17 10:12 a.m., Markus Metzger via Gdb-patches wrote:
> When trying to use one of the record commands without having enabled
> recording first, GDB gives the error message:
>
> (gdb) record function-call-history
> No record target is currently active.
> Use one of the "target record-<TAB><TAB>" commands first.
>
> In the record help, however, we say:
>
> (gdb) help record
> record, rec
> Start recording.
>
> List of record subcommands:
>
> record btrace, record b -- Start branch trace recording.
> record delete, record del, record d -- Delete the rest of execution log and start recording it anew.
> record full -- Start full execution recording.
> record function-call-history -- Prints the execution history at function granularity.
> record goto -- Restore the program to its state at instruction number N.
> record instruction-history -- Print disassembled instructions stored in the execution log.
> record save -- Save the execution log to a file.
> record stop, record s -- Stop the record/replay target.
>
> Change the above error message to
>
> (gdb) record function-call-history
> No recording is currently active.
> Use the "record full" or "record btrace" command first.
>
> to align with the help text.
>
> gdb/ChangeLog:
> 2020-12-03 Markus Metzger <markus.t.metzger@intel.com>
>
> * record.c (require_record_target): Rephrase error message.
> (info_record_command): Likewise.
>
> gdb/testsuite/ChangeLog:
> 2020-12-03 Markus Metzger <markus.t.metzger@intel.com>
>
> * gdb.btrace/enable.exp: Update error message.
> * gdb.btrace/multi-inferior.exp: Likewise.
> * gdb.btrace/reconnect.exp: Likewise.
> * gdb.python/py-record-btrace.exp: Likewise.
> * gdb.python/py-record-full.exp: Likewise.
Thanks, that LGTM.
Simon
prev parent reply other threads:[~2020-12-18 19:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 15:12 Markus Metzger via Gdb-patches
2020-12-17 15:12 ` [PATCH 1/4] testsuite, gdb.btrace: make test names unique Markus Metzger via Gdb-patches
2020-12-18 19:34 ` Simon Marchi via Gdb-patches
2020-12-21 7:26 ` Metzger, Markus T via Gdb-patches
2020-12-17 15:12 ` [PATCH 2/4] testsuite, gdb.python: make py-record-*.exp " Markus Metzger via Gdb-patches
2020-12-18 19:35 ` Simon Marchi via Gdb-patches
2020-12-17 15:12 ` [PATCH 3/4] testsuite, gdb.btrace: skip multi-inferior.exp on gdbserver targets Markus Metzger via Gdb-patches
2020-12-18 19:49 ` Simon Marchi via Gdb-patches
2020-12-21 7:27 ` Metzger, Markus T via Gdb-patches
2020-12-21 13:50 ` Simon Marchi via Gdb-patches
2020-12-17 15:12 ` [PATCH 4/4] testsuite, gdb.btrace: fix 32-bit PIE false positives Markus Metzger via Gdb-patches
2020-12-18 20:01 ` Simon Marchi via Gdb-patches
2020-12-21 7:27 ` Metzger, Markus T via Gdb-patches
2020-12-18 19:18 ` Simon Marchi via Gdb-patches [this message]
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=37e805e9-7d6f-2447-05a4-88255d51b0f9@polymtl.ca \
--to=gdb-patches@sourceware.org \
--cc=markus.t.metzger@intel.com \
--cc=simon.marchi@polymtl.ca \
/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