You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Improve the wording of what happens if another abstract command
is started while the previous one still executes. Make the
order of events very clear.
- Unify the wording of cmderr "busy" requirement for all concerned
DM registers. Make it clearer to the reader that the prescribed
behavior is the same in all the cases.
Copy file name to clipboardexpand all lines: debug_module.adoc
+7-4
Original file line number
Diff line number
Diff line change
@@ -328,12 +328,15 @@ that case, the command will return "not supported".
328
328
====
329
329
330
330
Debuggers execute abstract commands by writing them to {dm-command}. They can
331
-
determine whether an abstract command is complete by reading {abstractcs-busy} in {dm-abstractcs}. If the debugger starts a new command while {abstractcs-busy} is set, {abstractcs-cmderr} becomes 1 (busy), the
332
-
currently executing command still gets to run to completion, but any
333
-
error generated by the currently executing command is lost. After
331
+
determine whether an abstract command is complete by reading {abstractcs-busy} in {dm-abstractcs}. After
334
332
completion, {abstractcs-cmderr} indicates whether the command was successful or not.
335
333
Commands may fail because a hart is not halted, not running,
336
-
unavailable, or because they encounter an error during execution.
334
+
unavailable, because they encounter an error during execution.
335
+
336
+
If the debugger attempts to start a new command while {abstractcs-busy} is set,
337
+
the new command will not get started and the currently executing command still
338
+
gets to run to completion. After that, {abstractcs-cmderr} becomes 1 (busy),
339
+
and any error generated by the completed command is lost.
337
340
338
341
If the command takes arguments, the debugger must write them to the
339
342
`data` registers before writing to {dm-command}. If a command returns results, the
0 commit comments