365{
367
368 if (SplitCommand.size() == 1)
369 {
370
371
372
374 }
375 else if (SplitCommand.size() == 2 && !SplitCommand.at(1).compare("query"))
376 {
377
378
379
381 }
382 else if (SplitCommand.size() == 2 && !SplitCommand.at(1).compare("trap-status"))
383 {
384
385
386
388 }
389 else if (SplitCommand.size() == 2 && !SplitCommand.at(1).compare("pool"))
390 {
391
392
393
395 }
396 else if (SplitCommand.size() == 2 && !SplitCommand.at(1).compare("sync-task"))
397 {
398
399
400
402 }
403 else if (SplitCommand.size() == 2 && !SplitCommand.at(1).compare("async-task"))
404 {
405
406
407
409 }
410 else if (SplitCommand.size() == 3 && !SplitCommand.at(1).compare("target-core-task"))
411 {
413 {
414 ShowMessages(
"err, you should enter a valid hex number as the core id\n\n");
415 return;
416 }
417
418
419
420
422 }
423 else if (SplitCommand.size() == 3 && !SplitCommand.at(1).compare("breakpoint"))
424 {
425
426
427
428 if (!SplitCommand.at(2).compare("on"))
429 {
431 }
432 else if (!SplitCommand.at(2).compare("off"))
433 {
435 }
436 else
437 {
438 ShowMessages(
"err, couldn't resolve error at '%s'\n\n", SplitCommand.at(2).c_str());
439 return;
440 }
441 }
442 else if (SplitCommand.size() == 3 && !SplitCommand.at(1).compare("trap"))
443 {
444
445
446
447 if (!SplitCommand.at(2).compare("on"))
448 {
450 }
451 else if (!SplitCommand.at(2).compare("off"))
452 {
454 }
455 else
456 {
457 ShowMessages(
"err, couldn't resolve error at '%s'\n\n", SplitCommand.at(2).c_str());
458 return;
459 }
460 }
461 else
462 {
465 return;
466 }
467}
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
unsigned __int64 UINT64
Definition BasicTypes.h:21
unsigned int UINT32
Definition BasicTypes.h:48
BOOLEAN ConvertStringToUInt64(string TextToConvert, PUINT64 Result)
check and convert string to a 64 bit unsigned integer and also check for special notations like 0x,...
Definition common.cpp:240
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
NULL()
Definition test-case-generator.py:530
VOID CommandTestSetTargetTaskToTargetCore(UINT32 CoreNumber)
test command for setting target task to the specified core
Definition test.cpp:285
VOID CommandTestSetTargetTaskToHaltedCores(BOOLEAN Synchronous)
test command for setting target tasks to halted cores
Definition test.cpp:263
VOID CommandTestQueryPreAllocPoolsState()
test command for query the state of pre-allocated pools
Definition test.cpp:241
VOID CommandTestSetDebugBreakState(BOOLEAN State)
test command for turning on/off the debug breaks (#DB)
Definition test.cpp:334
BOOLEAN CommandTestPerformTest()
perform test on the remote process
Definition test.cpp:106
VOID CommandTestQueryState()
test command for query the state
Definition test.cpp:199
VOID CommandTestSetBreakpointState(BOOLEAN State)
test command for turning on/off the breakpoints (#DB)
Definition test.cpp:306
VOID CommandTestHelp()
help of the test command
Definition test.cpp:25
VOID CommandTestQueryTrapState()
test command for query the trap state
Definition test.cpp:220