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 | |
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')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/top.c | 2 |
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. @@ -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) { |