mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-12 03:43:33 +08:00
btrace: fix output of "set record btrace"
Instead of giving a message that "set record btrace" needs a sub-command, GDB crashed. Fix it. A regression test comes with the next patch. gdb/ * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
This commit is contained in:
parent
1d509aa625
commit
b85310e1ec
@ -1,3 +1,7 @@
|
||||
2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
|
||||
|
||||
* record-btrace.c (cmd_set_record_btrace): Print sub-commands.
|
||||
|
||||
2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
|
||||
|
||||
* infrun.c (process_event_stop_test): Call
|
||||
|
@ -2958,7 +2958,10 @@ cmd_record_btrace_start (const char *args, int from_tty)
|
||||
static void
|
||||
cmd_set_record_btrace (const char *args, int from_tty)
|
||||
{
|
||||
cmd_show_list (set_record_btrace_cmdlist, from_tty, "");
|
||||
printf_unfiltered (_("\"set record btrace\" must be followed "
|
||||
"by an appropriate subcommand.\n"));
|
||||
help_list (set_record_btrace_cmdlist, "set record btrace ",
|
||||
all_commands, gdb_stdout);
|
||||
}
|
||||
|
||||
/* The "show record btrace" command. */
|
||||
|
Loading…
Reference in New Issue
Block a user