100 split(list<string> args, reference<list<string>> wrp_args, reference<*string> pgm_name, reference<list<string>> pgm_args);
108 int verbose = DUV_NONE;
117 log(
int verbosity,
string fmt);
125 string ln_prompt =
'qdbg> ';
143 'desc':
'get help about command',
148 'desc':
'get version info',
155 'desc':
'load history from file',
160 'desc':
'save history to file',
166 'desc':
'load or save history to file',
169 'desc':
'quit debugger',
175 'desc':
'get list of debugged programs and stopped threads',
182 'desc':
'load and run script, filename [args..]',
187 'desc':
'regex search for a program',
194 'desc':
'verbose program listing',
199 'desc':
'list programs, [full] for a verbose listing',
205 'desc':
'set current program, arg: programId',
213 'desc':
'get current program',
218 'desc':
'add current program for debugging',
223 'desc':
'remove current program from debugging',
228 'desc':
'stop current program, args: [threadId] to stop particular thread',
234 'desc':
'get/set global variable',
240 'desc':
'get/set global variable',
244 'desc':
'get defines',
252 'desc':
'get defines',
255 'desc':
'list parse options',
260 'desc':
'get info about current program and list threads',
265 'desc':
'program related commands',
270 'desc':
'list breakpoints',
275 'desc':
'create breakpoint',
281 'desc':
'delete breakpoint',
287 'desc':
'get breakpoint',
291 'desc':
'enable breakpoint',
297 'desc':
'enable breakpoint',
301 'desc':
'disable breakpoint',
307 'desc':
'disable breakpoint',
311 'desc':
'get breakpoint policy',
315 'desc':
'set breakpoint policy',
324 'desc':
'breakpoint policy',
328 'desc':
'get/set threads assigned to breakpoint, args: "+"/"-" threadId | threadId ..',
334 'desc':
'get thread handled by breakpoint',
340 'desc':
'get statement list assigned to breakpoint',
346 'desc':
'statement stuff',
349 'desc':
'breakpoint related commands',
354 'desc':
'list statements',
360 'desc':
'assign statement to breakpoint, args: breakpoint [function([args, ...]] | [file] lineno',
366 'desc':
'assign statement to breakpoint, args: breakpoint [function([args, ...]] | [file] lineno',
370 'desc':
'unassign statement from breakpoint, args: breakpoint [function([args, ...]] | [file] lineno',
376 'desc':
'unassign statement from breakpoint, args: breakpoint [function([args, ...]] | [file] lineno',
379 'desc':
'statement related commands',
386 'desc':
'set current thread, arg: threadId',
394 'desc':
'get current thread',
400 'desc':
'get/set local variable',
406 'desc':
'get/set global variable',
410 'desc':
'get/set special debug variable',
416 'desc':
'get/set special debug variable',
419 'desc':
'thread related commands',
422 'desc':
'get stack for current thread',
428 'desc':
'go thread with specified runstate, arg: runstate',
434 'desc':
'go thread with default runstate',
447 abstract *
hash doCommandImpl(
hash data);
448 doCommand(
hash data);
450 static showPrograms(
hash ph);
452 auto parseValue(softlist args);
454 auto getContextValue(
string key);
456 setContextValue(
string key,
auto value);
462 list splitCmd(
string line);
466 *
hash findCmd(
list args,
bool findHelp =
False, *reference<int> last_param) {
hash result;
470 while (args.size() > 0);
478 list ln_callback(
string line);
484 printData(
auto data);
486 int checkProgramId();
490 static softlist enumBreakpointId(
DebugCommandLine dcl, softlist path, softlist args);
split(list< string > args, reference< list< string >> wrp_args, reference< *string > pgm_name, reference< list< string >> pgm_args)
Parses input arguments until a standalone argument is found.
Definition: DebugCmdLine.qm.dox.h:60
debug command line class
Definition: DebugCmdLine.qm.dox.h:121
class that can be used for logging
Definition: DebugCmdLine.qm.dox.h:104
the DebugCmdLine namespace contains all the definitions in the DebugCmdLine module ...
Definition: DebugCmdLine.qm.dox.h:42
constructor(hash options)
create the object with the given GetOpt option hash