X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fdoc%2Fcmd_bp.html;h=e64e2bf6a7b3d2fe08befbff89e5b3bf999564fd;hb=f27da39dbcab5678aca6d8462f1cc37a643f37e9;hp=e786103db8d38747a65859d7ac2768686daa2622;hpb=7fe573ea83f6e0762dc73bc493f15fa2a8f6273d;p=fw%2Fsdcc diff --git a/sim/ucsim/doc/cmd_bp.html b/sim/ucsim/doc/cmd_bp.html index e786103d..e64e2bf6 100644 --- a/sim/ucsim/doc/cmd_bp.html +++ b/sim/ucsim/doc/cmd_bp.html @@ -1,15 +1,15 @@ -Breakpoints commands of uCsim +Breakpoints commands of µCsim -

Commands of uCsim to manage breakpoints

+

Commands of µCsim to manage breakpoints

-Two kind of breakpoints can be used: fetch and event +Two kind of breakpoint can be used: fetch and event breakpoint. Fetch breakpoints are classical breakpoints. They can be placed at any instruction in the code memory. Breakpoint will be hit if CPU fetches instruction code from the memory location @@ -19,26 +19,9 @@ it stops before the instruction at location specified by the breakpoint would be executed.

Event breakpoints are special onces. They cause stop of -execution if event specified by the breakpoint occures. Events are: - -

wi
writing into internal RAM at specified location; - -
ri
reading from internal RAM at specified address; - -
wx
writing into external RAM at specified location -(MOVX instruction); - -
rx
reading from external RAM at specified address (MOVX -instruction); - -
ws
writing into SFR area at specified location; - -
rs
reading from SFR area at specified address; - -
rc
reading from code memory at specified location (MOVC -instruction).
- -Event breakpoint stops execution after specified event occured. +execution if event specified by the breakpoint occures. Event can be a +read or a write operation on any address space location. Event +breakpoint stops execution after specified event occured.

Every breakpoint can be fix (permanent) or dynamic (temporary). Dynamic breakpoints are automatically removed when they @@ -50,11 +33,13 @@ href="#n">next. number specifies how many times the breakpoint must be hit before it causes the execution to stop. This hit number is 1 by default. +


+ -

break addr [hit] -
break memory_type r|w addr [hit]

-

tbreak addr [hit] -
tbreak memory_type r|w addr [hit]

+

break addr [hit] +
break memory_type r|w addr [hit]

+

tbreak addr [hit] +
tbreak memory_type r|w addr [hit]

Set fetch or event breakpoint. The command specifies if the breakpoint @@ -74,8 +59,8 @@ placed to. It should be address of an instruction.
Event breakpoint
First parameter specifies class name of memory where we are going -to watch for en event. Class names of memories can be checked by qconf command. +to watch for en event. Class names of memories can be checked by info memory command.
Second parameter specifies the event. It can be r to specify read operation or w which means write operation. @@ -113,8 +98,10 @@ Stop at 000160: (4) Breakpoint F 000160 > +
-

clear [addr...]

+ +

clear [addr...]

Delete fetch breakpoint. Parameter specifies address of breakpoint. If there is no breakpoint specified at given address this command prints @@ -139,8 +126,10 @@ Num Type Disp Hit Cnt Address What 1 event keep 1 1 0x000006 wi > +
+ -

delete [number...]

+

delete [number...]

Delete breakpoint(s) by its number.