aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2018-02-01 14:31:18 +0100
committerMarkus Metzger <markus.t.metzger@intel.com>2018-04-13 11:30:15 +0200
commitb85310e1ec0419c4e1ca091cdd48f7597ebbefd3 (patch)
treef554d5e6e022afc2bec6b9650c4e170ecd3f9cba /gdb
parent1d509aa625f891e20b37b8cee4659771e87b1ba4 (diff)
downloadgdb-b85310e1ec0419c4e1ca091cdd48f7597ebbefd3.zip
gdb-b85310e1ec0419c4e1ca091cdd48f7597ebbefd3.tar.gz
gdb-b85310e1ec0419c4e1ca091cdd48f7597ebbefd3.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/record-btrace.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f379680..c3f59e6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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
gdbarch_in_indirect_branch_thunk.
* gdbarch.sh (in_indirect_branch_thunk): New.
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 7264b8e..455e254 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -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. */