diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-11 20:38:57 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-11 20:38:57 +0000 |
commit | 6dc3565dc43f1438fd234744a53c7ebc281d2b35 (patch) | |
tree | bb4d2c1e344349fadd90b34b9f32562410eb42fa /gdb/top.c | |
parent | 4e6ca6d54b2eb427f62cb31f144a48ed3f006ae5 (diff) | |
download | gdb-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |