diff options
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObject.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index 5e2ef9a2d22..2210fc850a3 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -508,7 +508,12 @@ CommandObject::GetArgumentName (CommandArgumentType arg_type) if (entry->arg_type != arg_type) entry = CommandObject::FindArgumentDataByType (arg_type); - return entry->arg_name; + if (entry) + return entry->arg_name; + + StreamString str; + str << "Arg name for type (" << arg_type << ") not in arg table!"; + return str.GetData(); } bool |