Handle events after modification.
502{
504 {
505
506
507
508
509
511 {
513 {
515 "(enabled|disabled|cleared) but "
516 "can't apply it to the user-mode structures\n");
517 }
518 }
520 {
522 {
524 "(enabled|disabled|cleared) but "
525 "can't apply it to the user-mode structures\n");
526 }
527 else
528 {
529
530
531
533 {
534
535
536
537
541 {
543 {
545 "auto-flush mode is disabled, if there is still "
546 "messages or buffers in the kernel, you continue to see "
547 "the messages when you run 'g' until the kernel "
548 "buffers are empty. you can run 'settings autoflush "
549 "on' and after disabling and clearing events, "
550 "kernel buffers will be flushed automatically\n");
551 }
552 else
553 {
554
555
556
558 }
559 }
560 }
561 }
562 }
564 {
566 {
568 "(enabled|disabled|cleared) but "
569 "can't apply it to the user-mode structures\n");
570 }
571 else
572 {
573
574
575
576
578 {
579 ShowMessages(
"%s successfully cleared, but please note in the Debugger Mode (current mode), HyperDbg "
580 "cannot clear events instantly. Instead, it first disables the events, and when "
581 "you continue the debuggee (e.g., by pressing the 'g' command), the event will be cleared. "
582 "Reapplying the same event without first continuing the debuggee may result in undefined behavior\n",
584 }
585
586
587
588
590 {
591
592
593
594
596 {
598 {
600 "auto-flush mode is disabled, if there is still "
601 "messages or buffers in the kernel, you continue to see "
602 "the messages when you run 'g' until the kernel "
603 "buffers are empty. you can run 'settings autoflush "
604 "on' and after disabling and clearing events, "
605 "kernel buffers will be flushed automatically\n");
606 }
607 else
608 {
609
610
611
613 }
614 }
615 }
616 }
617 }
620 {
621
622
623
624 }
625 else
626 {
628 "err, the event was successfully, (enabled|disabled|cleared) but "
629 "can't apply it to the user-mode structures\n");
630 }
631 }
632 else
633 {
634
635
636
638 return;
639 }
640}
unsigned int UINT32
Definition BasicTypes.h:48
#define DEBUGGER_OPERATION_WAS_SUCCESSFUL
General value to indicate that the operation or request was successful.
Definition ErrorCodes.h:23
BOOLEAN ShowErrorMessage(UINT32 Error)
shows the error message
Definition debugger.cpp:38
BOOLEAN g_IsSerialConnectedToRemoteDebugger
Shows if the debugger was connected to remote debugger (A remote host)
Definition globals.h:238
BOOLEAN g_IsConnectedToRemoteDebuggee
Shows whether the current debugger is the host and connected to a remote debuggee (guest)
Definition globals.h:74
BOOLEAN CommandEventEnableEvent(UINT64 Tag)
enables a special event
Definition events.cpp:336
BOOLEAN CommandEventDisableEvent(UINT64 Tag)
Disable a special event.
Definition events.cpp:286
BOOLEAN g_AutoFlush
Whether auto-flush mode is enabled or not enabled.
Definition globals.h:591
BOOLEAN g_BreakPrintingOutput
Shows whether the pause command or CTRL+C or CTRL+Break is executed or not.
Definition globals.h:499
VOID CommandFlushRequestFlush()
flush command handler
Definition flush.cpp:39
DEBUGGER_MODIFY_EVENTS_TYPE TypeOfAction
Definition Events.h:246
UINT64 KernelStatus
Definition Events.h:244