Handle events after modification.
506{
508 {
509
510
511
512
513
515 {
517 {
518 ShowMessages("err, the event was successfully, "
519 "(enabled|disabled|cleared) but "
520 "can't apply it to the user-mode structures\n");
521 }
522 }
524 {
526 {
527 ShowMessages("err, the event was successfully, "
528 "(enabled|disabled|cleared) but "
529 "can't apply it to the user-mode structures\n");
530 }
531 else
532 {
533
534
535
537 {
538
539
540
541
545 {
547 {
548 ShowMessages(
549 "auto-flush mode is disabled, if there is still "
550 "messages or buffers in the kernel, you continue to see "
551 "the messages when you run 'g' until the kernel "
552 "buffers are empty. you can run 'settings autoflush "
553 "on' and after disabling and clearing events, "
554 "kernel buffers will be flushed automatically\n");
555 }
556 else
557 {
558
559
560
562 }
563 }
564 }
565 }
566 }
568 {
570 {
571 ShowMessages("err, the event was successfully, "
572 "(enabled|disabled|cleared) but "
573 "can't apply it to the user-mode structures\n");
574 }
575 else
576 {
577
578
579
580
582 {
583 ShowMessages("%s successfully cleared, but please note in the Debugger Mode (current mode), HyperDbg "
584 "cannot clear events instantly. Instead, it first disables the events, and when "
585 "you continue the debuggee (e.g., by pressing the 'g' command), the event will be cleared. "
586 "Reapplying the same event without first continuing the debuggee may result in undefined behavior\n",
588 }
589
590
591
592
594 {
595
596
597
598
600 {
602 {
603 ShowMessages(
604 "auto-flush mode is disabled, if there is still "
605 "messages or buffers in the kernel, you continue to see "
606 "the messages when you run 'g' until the kernel "
607 "buffers are empty. you can run 'settings autoflush "
608 "on' and after disabling and clearing events, "
609 "kernel buffers will be flushed automatically\n");
610 }
611 else
612 {
613
614
615
617 }
618 }
619 }
620 }
621 }
624 {
625
626
627
628 }
629 else
630 {
631 ShowMessages(
632 "err, the event was successfully, (enabled|disabled|cleared) but "
633 "can't apply it to the user-mode structures\n");
634 }
635 }
636 else
637 {
638
639
640
642 return;
643 }
644}
BOOLEAN ShowErrorMessage(UINT32 Error)
shows the error message
Definition debugger.cpp:40
BOOLEAN g_IsConnectedToRemoteDebuggee
Shows whether the current debugger is the host and connected to a remote debuggee (guest).
Definition globals.h:96
BOOLEAN CommandEventEnableEvent(UINT64 Tag)
enables a special event
Definition events.cpp:340
BOOLEAN CommandEventDisableEvent(UINT64 Tag)
Disable a special event.
Definition events.cpp:290
BOOLEAN g_AutoFlush
Whether auto-flush mode is enabled or not enabled.
Definition globals.h:601
VOID CommandFlushRequestFlush()
flush command handler
Definition flush.cpp:40
BOOLEAN g_IsSerialConnectedToRemoteDebugger
Shows if the debugger was connected to remote debugger (A remote host).
Definition rev.cpp:18
BOOLEAN g_BreakPrintingOutput
Shows whether the pause command or CTRL+C or CTRL+Break is executed or not.
Definition globals.h:509
DEBUGGER_MODIFY_EVENTS_TYPE TypeOfAction
Definition Events.h:249
UINT64 KernelStatus
Definition Events.h:247