blob: 0e63f48850c7f55f2b24c2266f0636771253419a [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- CommandObject.cpp ---------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "lldb/Interpreter/CommandObject.h"
11
12#include <string>
13#include <map>
14
15#include <getopt.h>
16#include <stdlib.h>
17#include <ctype.h>
18
19#include "lldb/Core/Address.h"
Jim Ingham84cdc152010-06-15 19:49:27 +000020#include "lldb/Interpreter/Options.h"
Chris Lattner24943d22010-06-08 16:52:24 +000021
22// These are for the Sourcename completers.
23// FIXME: Make a separate file for the completers.
24#include "lldb/Core/FileSpec.h"
25#include "lldb/Core/FileSpecList.h"
26#include "lldb/Target/Process.h"
27#include "lldb/Target/Target.h"
28
29#include "lldb/Interpreter/CommandInterpreter.h"
30#include "lldb/Interpreter/CommandReturnObject.h"
31#include "lldb/Interpreter/ScriptInterpreter.h"
32#include "lldb/Interpreter/ScriptInterpreterPython.h"
33
34using namespace lldb;
35using namespace lldb_private;
36
37//-------------------------------------------------------------------------
38// CommandObject
39//-------------------------------------------------------------------------
40
Greg Clayton238c0a12010-09-18 01:14:36 +000041CommandObject::CommandObject
42(
43 CommandInterpreter &interpreter,
44 const char *name,
45 const char *help,
46 const char *syntax,
47 uint32_t flags
48) :
49 m_interpreter (interpreter),
Chris Lattner24943d22010-06-08 16:52:24 +000050 m_cmd_name (name),
51 m_cmd_help_short (),
52 m_cmd_help_long (),
53 m_cmd_syntax (),
Jim Inghamd40f8a62010-07-06 22:46:59 +000054 m_is_alias (false),
Caroline Ticefb355112010-10-01 17:46:38 +000055 m_flags (flags),
56 m_arguments()
Chris Lattner24943d22010-06-08 16:52:24 +000057{
58 if (help && help[0])
59 m_cmd_help_short = help;
60 if (syntax && syntax[0])
61 m_cmd_syntax = syntax;
62}
63
64CommandObject::~CommandObject ()
65{
66}
67
68const char *
69CommandObject::GetHelp ()
70{
71 return m_cmd_help_short.c_str();
72}
73
74const char *
75CommandObject::GetHelpLong ()
76{
77 return m_cmd_help_long.c_str();
78}
79
80const char *
81CommandObject::GetSyntax ()
82{
Caroline Ticefb355112010-10-01 17:46:38 +000083 if (m_cmd_syntax.length() == 0)
84 {
85 StreamString syntax_str;
86 syntax_str.Printf ("%s", GetCommandName());
87 if (GetOptions() != NULL)
88 syntax_str.Printf (" <cmd-options> ");
89 if (m_arguments.size() > 0)
90 {
91 syntax_str.Printf (" ");
92 GetFormattedCommandArguments (syntax_str);
93 }
94 m_cmd_syntax = syntax_str.GetData ();
95 }
96
Chris Lattner24943d22010-06-08 16:52:24 +000097 return m_cmd_syntax.c_str();
98}
99
100const char *
101CommandObject::Translate ()
102{
103 //return m_cmd_func_name.c_str();
104 return "This function is currently not implemented.";
105}
106
107const char *
108CommandObject::GetCommandName ()
109{
110 return m_cmd_name.c_str();
111}
112
113void
114CommandObject::SetCommandName (const char *name)
115{
116 m_cmd_name = name;
117}
118
119void
120CommandObject::SetHelp (const char *cstr)
121{
122 m_cmd_help_short = cstr;
123}
124
125void
126CommandObject::SetHelpLong (const char *cstr)
127{
128 m_cmd_help_long = cstr;
129}
130
131void
132CommandObject::SetSyntax (const char *cstr)
133{
134 m_cmd_syntax = cstr;
135}
136
137Options *
138CommandObject::GetOptions ()
139{
140 // By default commands don't have options unless this virtual function
141 // is overridden by base classes.
142 return NULL;
143}
144
145Flags&
146CommandObject::GetFlags()
147{
148 return m_flags;
149}
150
151const Flags&
152CommandObject::GetFlags() const
153{
154 return m_flags;
155}
156
157bool
158CommandObject::ExecuteCommandString
159(
160 const char *command_line,
Chris Lattner24943d22010-06-08 16:52:24 +0000161 CommandReturnObject &result
162)
163{
164 Args command_args(command_line);
Greg Clayton238c0a12010-09-18 01:14:36 +0000165 return ExecuteWithOptions (command_args, result);
Chris Lattner24943d22010-06-08 16:52:24 +0000166}
167
168bool
169CommandObject::ParseOptions
170(
171 Args& args,
Chris Lattner24943d22010-06-08 16:52:24 +0000172 CommandReturnObject &result
173)
174{
175 // See if the subclass has options?
176 Options *options = GetOptions();
177 if (options != NULL)
178 {
179 Error error;
180 options->ResetOptionValues();
181
182 // ParseOptions calls getopt_long, which always skips the zero'th item in the array and starts at position 1,
183 // so we need to push a dummy value into position zero.
184 args.Unshift("dummy_string");
185 error = args.ParseOptions (*options);
186
187 // The "dummy_string" will have already been removed by ParseOptions,
188 // so no need to remove it.
189
190 if (error.Fail() || !options->VerifyOptions (result))
191 {
192 const char *error_cstr = error.AsCString();
193 if (error_cstr)
194 {
195 // We got an error string, lets use that
196 result.GetErrorStream().PutCString(error_cstr);
197 }
198 else
199 {
200 // No error string, output the usage information into result
Greg Clayton238c0a12010-09-18 01:14:36 +0000201 options->GenerateOptionUsage (m_interpreter, result.GetErrorStream(), this);
Chris Lattner24943d22010-06-08 16:52:24 +0000202 }
203 // Set the return status to failed (this was an error).
204 result.SetStatus (eReturnStatusFailed);
205 return false;
206 }
207 }
208 return true;
209}
210bool
Greg Clayton238c0a12010-09-18 01:14:36 +0000211CommandObject::ExecuteWithOptions (Args& args, CommandReturnObject &result)
Chris Lattner24943d22010-06-08 16:52:24 +0000212{
213 for (size_t i = 0; i < args.GetArgumentCount(); ++i)
214 {
215 const char *tmp_str = args.GetArgumentAtIndex (i);
216 if (tmp_str[0] == '`') // back-quote
Greg Clayton238c0a12010-09-18 01:14:36 +0000217 args.ReplaceArgumentAtIndex (i, m_interpreter.ProcessEmbeddedScriptCommands (tmp_str));
Chris Lattner24943d22010-06-08 16:52:24 +0000218 }
219
Greg Clayton238c0a12010-09-18 01:14:36 +0000220 Process *process = m_interpreter.GetDebugger().GetExecutionContext().process;
Chris Lattner24943d22010-06-08 16:52:24 +0000221 if (process == NULL)
222 {
223 if (GetFlags().IsSet(CommandObject::eFlagProcessMustBeLaunched | CommandObject::eFlagProcessMustBePaused))
224 {
225 result.AppendError ("Process must exist.");
226 result.SetStatus (eReturnStatusFailed);
227 return false;
228 }
229 }
230 else
231 {
232 StateType state = process->GetState();
233
234 switch (state)
235 {
236
237 case eStateAttaching:
238 case eStateLaunching:
239 case eStateSuspended:
240 case eStateCrashed:
241 case eStateStopped:
242 break;
243
244 case eStateDetached:
245 case eStateExited:
246 case eStateUnloaded:
247 if (GetFlags().IsSet(CommandObject::eFlagProcessMustBeLaunched))
248 {
249 result.AppendError ("Process must be launched.");
250 result.SetStatus (eReturnStatusFailed);
251 return false;
252 }
253 break;
254
255 case eStateRunning:
256 case eStateStepping:
257 if (GetFlags().IsSet(CommandObject::eFlagProcessMustBePaused))
258 {
259 result.AppendError ("Process is running. Use 'process interrupt' to pause execution.");
260 result.SetStatus (eReturnStatusFailed);
261 return false;
262 }
263 }
264 }
265
Greg Clayton238c0a12010-09-18 01:14:36 +0000266 if (!ParseOptions (args, result))
Chris Lattner24943d22010-06-08 16:52:24 +0000267 return false;
268
269 // Call the command-specific version of 'Execute', passing it the already processed arguments.
Greg Clayton238c0a12010-09-18 01:14:36 +0000270 return Execute (args, result);
Chris Lattner24943d22010-06-08 16:52:24 +0000271}
272
273class CommandDictCommandPartialMatch
274{
275 public:
276 CommandDictCommandPartialMatch (const char *match_str)
277 {
278 m_match_str = match_str;
279 }
280 bool operator() (const std::pair<std::string, lldb::CommandObjectSP> map_element) const
281 {
282 // A NULL or empty string matches everything.
283 if (m_match_str == NULL || *m_match_str == '\0')
284 return 1;
285
286 size_t found = map_element.first.find (m_match_str, 0);
287 if (found == std::string::npos)
288 return 0;
289 else
290 return found == 0;
291 }
292
293 private:
294 const char *m_match_str;
295};
296
297int
298CommandObject::AddNamesMatchingPartialString (CommandObject::CommandMap &in_map, const char *cmd_str,
299 StringList &matches)
300{
301 int number_added = 0;
302 CommandDictCommandPartialMatch matcher(cmd_str);
303
304 CommandObject::CommandMap::iterator matching_cmds = std::find_if (in_map.begin(), in_map.end(), matcher);
305
306 while (matching_cmds != in_map.end())
307 {
308 ++number_added;
309 matches.AppendString((*matching_cmds).first.c_str());
310 matching_cmds = std::find_if (++matching_cmds, in_map.end(), matcher);;
311 }
312 return number_added;
313}
314
315int
316CommandObject::HandleCompletion
317(
318 Args &input,
319 int &cursor_index,
320 int &cursor_char_position,
321 int match_start_point,
322 int max_return_elements,
Jim Ingham802f8b02010-06-30 05:02:46 +0000323 bool &word_complete,
Chris Lattner24943d22010-06-08 16:52:24 +0000324 StringList &matches
325)
326{
327 if (WantsRawCommandString())
328 {
329 // FIXME: Abstract telling the completion to insert the completion character.
330 matches.Clear();
331 return -1;
332 }
333 else
334 {
335 // Can we do anything generic with the options?
336 Options *cur_options = GetOptions();
337 CommandReturnObject result;
338 OptionElementVector opt_element_vector;
339
340 if (cur_options != NULL)
341 {
342 // Re-insert the dummy command name string which will have been
343 // stripped off:
344 input.Unshift ("dummy-string");
345 cursor_index++;
346
347
348 // I stick an element on the end of the input, because if the last element is
349 // option that requires an argument, getopt_long will freak out.
350
351 input.AppendArgument ("<FAKE-VALUE>");
352
Jim Inghamadb84292010-06-24 20:31:04 +0000353 input.ParseArgsForCompletion (*cur_options, opt_element_vector, cursor_index);
Chris Lattner24943d22010-06-08 16:52:24 +0000354
355 input.DeleteArgumentAtIndex(input.GetArgumentCount() - 1);
356
357 bool handled_by_options;
Greg Clayton238c0a12010-09-18 01:14:36 +0000358 handled_by_options = cur_options->HandleOptionCompletion (m_interpreter,
Greg Clayton63094e02010-06-23 01:19:29 +0000359 input,
360 opt_element_vector,
361 cursor_index,
362 cursor_char_position,
363 match_start_point,
364 max_return_elements,
Jim Ingham802f8b02010-06-30 05:02:46 +0000365 word_complete,
Greg Clayton63094e02010-06-23 01:19:29 +0000366 matches);
Chris Lattner24943d22010-06-08 16:52:24 +0000367 if (handled_by_options)
368 return matches.GetSize();
369 }
370
371 // If we got here, the last word is not an option or an option argument.
Greg Clayton238c0a12010-09-18 01:14:36 +0000372 return HandleArgumentCompletion (input,
Greg Clayton63094e02010-06-23 01:19:29 +0000373 cursor_index,
374 cursor_char_position,
375 opt_element_vector,
376 match_start_point,
377 max_return_elements,
Jim Ingham802f8b02010-06-30 05:02:46 +0000378 word_complete,
Greg Clayton63094e02010-06-23 01:19:29 +0000379 matches);
Chris Lattner24943d22010-06-08 16:52:24 +0000380 }
381}
382
Chris Lattner24943d22010-06-08 16:52:24 +0000383// Case insensitive version of ::strstr()
384// Returns true if s2 is contained within s1.
385
386static bool
387contains_string (const char *s1, const char *s2)
388{
389 char *locase_s1 = (char *) malloc (strlen (s1) + 1);
390 char *locase_s2 = (char *) malloc (strlen (s2) + 1);
391 int i;
392 for (i = 0; s1 && s1[i] != '\0'; i++)
393 locase_s1[i] = ::tolower (s1[i]);
394 locase_s1[i] = '\0';
395 for (i = 0; s2 && s2[i] != '\0'; i++)
396 locase_s2[i] = ::tolower (s2[i]);
397 locase_s2[i] = '\0';
398
399 const char *result = ::strstr (locase_s1, locase_s2);
400 free (locase_s1);
401 free (locase_s2);
402 // 'result' points into freed memory - but we're not
403 // deref'ing it so hopefully current/future compilers
404 // won't complain..
405
406 if (result == NULL)
407 return false;
408 else
409 return true;
410}
411
412bool
Greg Clayton238c0a12010-09-18 01:14:36 +0000413CommandObject::HelpTextContainsWord (const char *search_word)
Chris Lattner24943d22010-06-08 16:52:24 +0000414{
415 const char *short_help;
416 const char *long_help;
417 const char *syntax_help;
418 std::string options_usage_help;
419
420
421 bool found_word = false;
422
423 short_help = GetHelp();
424 long_help = GetHelpLong();
425 syntax_help = GetSyntax();
426
427 if (contains_string (short_help, search_word))
428 found_word = true;
429 else if (contains_string (long_help, search_word))
430 found_word = true;
431 else if (contains_string (syntax_help, search_word))
432 found_word = true;
433
434 if (!found_word
435 && GetOptions() != NULL)
436 {
437 StreamString usage_help;
Greg Clayton238c0a12010-09-18 01:14:36 +0000438 GetOptions()->GenerateOptionUsage (m_interpreter, usage_help, this);
Chris Lattner24943d22010-06-08 16:52:24 +0000439 if (usage_help.GetSize() > 0)
440 {
441 const char *usage_text = usage_help.GetData();
442 if (contains_string (usage_text, search_word))
443 found_word = true;
444 }
445 }
446
447 return found_word;
448}
Caroline Ticefb355112010-10-01 17:46:38 +0000449
450int
451CommandObject::GetNumArgumentEntries ()
452{
453 return m_arguments.size();
454}
455
456CommandObject::CommandArgumentEntry *
457CommandObject::GetArgumentEntryAtIndex (int idx)
458{
459 if (idx < m_arguments.size())
460 return &(m_arguments[idx]);
461
462 return NULL;
463}
464
465CommandObject::ArgumentTableEntry *
466CommandObject::FindArgumentDataByType (CommandArgumentType arg_type)
467{
468 const ArgumentTableEntry *table = CommandObject::GetArgumentTable();
469
470 for (int i = 0; i < eArgTypeLastArg; ++i)
471 if (table[i].arg_type == arg_type)
472 return (ArgumentTableEntry *) &(table[i]);
473
474 return NULL;
475}
476
477void
478CommandObject::GetArgumentHelp (Stream &str, CommandArgumentType arg_type, CommandInterpreter &interpreter)
479{
480 const ArgumentTableEntry* table = CommandObject::GetArgumentTable();
481 ArgumentTableEntry *entry = (ArgumentTableEntry *) &(table[arg_type]);
482
483 // The table is *supposed* to be kept in arg_type order, but someone *could* have messed it up...
484
485 if (entry->arg_type != arg_type)
486 entry = CommandObject::FindArgumentDataByType (arg_type);
487
488 if (!entry)
489 return;
490
491 StreamString name_str;
492 name_str.Printf ("<%s>", entry->arg_name);
493
494 if (entry->help_function != NULL)
495 interpreter.OutputFormattedHelpText (str, name_str.GetData(), "--", (*(entry->help_function)) (),
496 name_str.GetSize());
497 else
498 interpreter.OutputFormattedHelpText (str, name_str.GetData(), "--", entry->help_text, name_str.GetSize());
499}
500
501const char *
502CommandObject::GetArgumentName (CommandArgumentType arg_type)
503{
504 return CommandObject::GetArgumentTable()[arg_type].arg_name;
505}
506
507void
508CommandObject::GetFormattedCommandArguments (Stream &str)
509{
510 int num_args = m_arguments.size();
511 for (int i = 0; i < num_args; ++i)
512 {
513 if (i > 0)
514 str.Printf (" ");
515 CommandArgumentEntry arg_entry = m_arguments[i];
516 int num_alternatives = arg_entry.size();
517 StreamString names;
518 for (int j = 0; j < num_alternatives; ++j)
519 {
520 if (j > 0)
521 names.Printf (" | ");
522 names.Printf ("%s", GetArgumentName (arg_entry[j].arg_type));
523 }
524 switch (arg_entry[0].arg_repetition)
525 {
526 case eArgRepeatPlain:
527 str.Printf ("<%s>", names.GetData());
528 break;
529 case eArgRepeatPlus:
530 str.Printf ("<%s> [<%s> [...]]", names.GetData(), names.GetData());
531 break;
532 case eArgRepeatStar:
533 str.Printf ("[<%s> [<%s> [...]]]", names.GetData(), names.GetData());
534 break;
535 case eArgRepeatOptional:
536 str.Printf ("[<%s>]", names.GetData());
537 break;
538 }
539 }
540}
541
542const CommandArgumentType
543CommandObject::LookupArgumentName (const char *arg_name)
544{
545 CommandArgumentType return_type = eArgTypeLastArg;
546
547 std::string arg_name_str (arg_name);
548 size_t len = arg_name_str.length();
549 if (arg_name[0] == '<'
550 && arg_name[len-1] == '>')
551 arg_name_str = arg_name_str.substr (1, len-2);
552
553 for (int i = 0; i < eArgTypeLastArg; ++i)
554 if (arg_name_str.compare (g_arguments_data[i].arg_name) == 0)
555 return_type = g_arguments_data[i].arg_type;
556
557 return return_type;
558}
559
560static const char *
561BreakpointIDHelpTextCallback ()
562{
563 return "Breakpoint ID's consist major and minor numbers; the major number corresponds to the single entity that was created with a 'breakpoint set' command; the minor numbers correspond to all the locations that were actually found/set based on the major breakpoint. A full breakpoint ID might look like 3.14, meaning the 14th location set for the 3rd breakpoint. You can specify all the locations of a breakpoint by just indicating the major breakpoint number. A valid breakpoint id consists either of just the major id number, or the major number, a dot, and the location number (e.g. 3 or 3.2 could both be valid breakpoint ids).";
564}
565
566static const char *
567BreakpointIDRangeHelpTextCallback ()
568{
569 return "A 'breakpoint id range' is a manner of specifying multiple breakpoints. This can be done through several mechanisms. The easiest way is to just enter a space-separated list of breakpoint ids. To specify all the breakpoint locations under a major breakpoint, you can use the major breakpoint number followed by '.*', eg. '5.*' means all the locations under breakpoint 5. You can also indicate a range of breakpoints by using <start-bp-id> - <end-bp-id>. The start-bp-id and end-bp-id for a range can be any valid breakpoint ids. It is not legal, however, to specify a range using specific locations that cross major breakpoint numbers. I.e. 3.2 - 3.7 is legal; 2 - 5 is legal; but 3.2 - 4.4 is not legal.";
570}
571
572CommandObject::ArgumentTableEntry
573CommandObject::g_arguments_data[] =
574{
575 { eArgTypeAddress, "address", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
576 { eArgTypeArchitecture, "architecture", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
577 { eArgTypeBoolean, "boolean", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
578 { eArgTypeBreakpointID, "breakpoint-id", CommandCompletions::eNoCompletion, BreakpointIDHelpTextCallback, NULL },
579 { eArgTypeBreakpointIDRange, "breakpoint-id-range", CommandCompletions::eNoCompletion, BreakpointIDRangeHelpTextCallback, NULL },
580 { eArgTypeByteSize, "byte-size", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
581 { eArgTypeChannel, "channel", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
582 { eArgTypeCount, "count", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
583 { eArgTypeExpression, "expression", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
584 { eArgTypeFilename, "filename", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
585 { eArgTypeFormat, "format", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
586 { eArgTypeFullName, "full-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
587 { eArgTypeFunctionName, "function-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
588 { eArgTypeIndex, "index", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
589 { eArgTypeLineNum, "line-num", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
590 { eArgTypeMethod, "method", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
591 { eArgTypeName, "name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
592 { eArgTypeNumLines, "num-lines", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
593 { eArgTypeNumberPerLine, "number-per-line", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
594 { eArgTypeOffset, "offset", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
595 { eArgTypeOther, "other", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
596 { eArgTypePath, "path", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
597 { eArgTypePathPrefix, "path-prefix", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
598 { eArgTypePathPrefixPair, "path-prefix-pair", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
599 { eArgTypePid, "pid", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
600 { eArgTypePlugin, "plugin", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
601 { eArgTypeProcessName, "process-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
602 { eArgTypeQueueName, "queue-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
603 { eArgTypeRegisterName, "register-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
604 { eArgTypeRegularExpression, "regular-expression", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
605 { eArgTypeRunMode, "run-mode", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
606 { eArgTypeSearchWord, "search-word", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
607 { eArgTypeSelector, "selector", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
608 { eArgTypeSettingIndex, "setting-index", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
609 { eArgTypeSettingKey, "setting-key", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
610 { eArgTypeSettingPrefix, "setting-prefix", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
611 { eArgTypeSettingVariableName, "setting-variable-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
612 { eArgTypeShlibName, "shlib-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
613 { eArgTypeSourceFile, "source-file", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
614 { eArgTypeStartAddress, "start-address", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
615 { eArgTypeSymbol, "symbol", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
616 { eArgTypeThreadID, "thread-id", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
617 { eArgTypeThreadIndex, "thread-index", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
618 { eArgTypeThreadName, "thread-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
619 { eArgTypeUUID, "UUID", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
620 { eArgTypeUnixSignalNumber, "unix-signal-number", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
621 { eArgTypeVarName, "var-name", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
622 { eArgTypeValue, "value", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
623 { eArgTypeWidth, "width", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
624 { eArgTypeNone, "none", CommandCompletions::eNoCompletion, NULL, "Help text goes here." },
625};
626
627const CommandObject::ArgumentTableEntry*
628CommandObject::GetArgumentTable ()
629{
630 return CommandObject::g_arguments_data;
631}
632
633