From 5ff10022a7c8da74ead2e33b46174dccecbe642c Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Tue, 23 May 2023 10:25:41 +0700 Subject: debughlp: document gp command --- src/emu/debug/debughlp.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/emu/debug/debughlp.cpp b/src/emu/debug/debughlp.cpp index 38dc8cc1a63..ee455bd84f8 100644 --- a/src/emu/debug/debughlp.cpp +++ b/src/emu/debug/debughlp.cpp @@ -139,6 +139,7 @@ const help_item f_static_help_list[] = " gn[i] [] -- resumes execution, sets temp breakpoint instructions ahead\n" " ge[x] [[,]] -- resumes execution, setting temp breakpoint if is raised\n" " gi[nt] [] -- resumes execution, setting temp breakpoint if is taken (F7)\n" + " gp [] -- resumes execution, setting temp breakpoint if privilege level changes\n" " gt[ime] -- resumes execution until the given delay has elapsed\n" " gv[blank] -- resumes execution, setting temp breakpoint on the next VBLANK (F8)\n" " n[ext] -- executes until the next CPU switch (F6)\n" @@ -201,7 +202,7 @@ const help_item f_static_help_list[] = " epclear [] -- clears a given exception point or all if no specified\n" " epdisable [] -- disabled a given exception point or all if no specified\n" " epenable [] -- enables a given exception point or all if no specified\n" - " eplist -- lists all the registerpoints\n" + " eplist -- lists all the exception points\n" }, { "expressions", @@ -1048,6 +1049,27 @@ const help_item f_static_help_list[] = " Resume execution until the next break/watchpoint or until IRQ line 4 is asserted and " "acknowledged on the current CPU.\n" }, + { + "gp", + "\n" + " gp []\n" + "\n" + "The gp command resumes execution of the current code. Control will not be returned to " + "the debugger until a breakpoint or watchpoint is hit, or the privilege level of the current " + "CPU changes. The optional parameter lets you specify an expression that will " + "be evaluated each time the privilege level changes. If the expression evaluates to true " + "(non-zero), execution will halt; otherwise, execution will continue with no notification.\n" + "\n" + "Examples:\n" + "\n" + "gp\n" + " Resume execution until the next break/watchpoint or the privilege level of the current " + "CPU changes.\n" + "\n" + "gp {pc != 1234}\n" + " Resume execution until the next break/watchpoint or the privilege level of the current " + "CPU changes, disregarding the instruction at address 1234.\n" + }, { "gtime", "\n" -- cgit v1.2.3