Merge pull request #2272 from npwoods/fix_debug_symlist_command

Fixed a crash in the 'symlist' debugger command (MT#6575)
This commit is contained in:
Robert 2017-05-03 23:10:50 +10:00 committed by GitHub
commit a669884ec9

View File

@ -2931,8 +2931,7 @@ void debugger_commands::execute_symlist(int ref, const std::vector<std::string>
symbol_table *symtable;
int symnum, count = 0;
if (!params[0].empty())
if (!params.empty())
{
/* validate parameters */
if (!validate_cpu_parameter(params[0].c_str(), cpu))