aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
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/top.c
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/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 2 insertions, 0 deletions
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)
{