aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-11 20:38:57 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-11 20:38:57 +0000
commit6dc3565dc43f1438fd234744a53c7ebc281d2b35 (patch)
treebb4d2c1e344349fadd90b34b9f32562410eb42fa /gdb
parent4e6ca6d54b2eb427f62cb31f144a48ed3f006ae5 (diff)
downloadgdb-6dc3565dc43f1438fd234744a53c7ebc281d2b35.zip
gdb-6dc3565dc43f1438fd234744a53c7ebc281d2b35.tar.gz
gdb-6dc3565dc43f1438fd234744a53c7ebc281d2b35.tar.bz2
2011-03-11 Michael Snyder <msnyder@vmware.com>
* top.c (set_verbose): Assert showcmd was found.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/top.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 97dfee0..2181f35 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-11 Michael Snyder <msnyder@vmware.com>
+
+ * top.c (set_verbose): Assert showcmd was found.
+
2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (warning_once): Correct style issues.
diff --git a/gdb/top.c b/gdb/top.c
index df2b163..c453a71 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1425,6 +1425,8 @@ set_verbose (char *args, int from_tty, struct cmd_list_element *c)
struct cmd_list_element *showcmd;
showcmd = lookup_cmd_1 (&cmdname, showlist, NULL, 1);
+ gdb_assert (showcmd != NULL
+ && showcmd != (struct cmd_list_element *) -1);
if (info_verbose)
{