Here lists common commands that you can issue using the command-line interface:
- break
- br[ expr|posn [ n]]
where:
expr|posn Is either an expression or a position that defines where a new breakpoint is to be created.
n Specifies the number of times execution must arrive at the breakpoint in
order to trigger it. The default value is 1.
e.g.:br 0x8000 Sets a breakpoint at address 0x8000
br @main Sets a breakpoint on main.
br c:\test\main.c|130 100 Sets a breakpoint on line 130 of file main.c, requiring 100 arrivals to trigger it.
br #5|150 Sets a breakpoint at line 150 of file number 5. The index #5
must have been obtained using the files command.
clearbreakcbr
breakpoint|all
e.g.:cbr #2 Clears breakpoint number 2. The index #2
must have been obtained using the break command. unbreak all Clears all
current breakpoints. The parameter all is case-sensitive.
- clearwatch
- cwpt watchpoint|all
e.g:cwpt #2 Clears watchpoint number 2. The index #2 must have been obtained using the watchpt command.
unwatch all Clears all current watchpoints. The parameter all is case-sensitive.
disassembledis expr1[ [+]expr2[ asm]]
where:
expr1 Is an expression that evaluates to the starting address of the area of memory you want to see disassembled.
expr2
Is an expression that either evaluates to the end address of the area
of memory you want to see disassembled or, if preceded by +, evaluates
to the number of bytes you want disassembled. If a value is not
supplied on the command line, the value from the Bytes to display
property box is used.
asm Can be set to ARM, Thumb, ByteCode or auto. If not specified, the current value of the Instruction Size field of the CLI
properties dialog is used. e.g.:dis 0x8200 +64 ARM
Displays disassembled instructions that represent the ARM code
currently stored in the 64 bytes of memory starting at address 0x8200.
dis 0x8000 +10 ByteCode
Displays disassembled instructions that represent the Jazelle code
currently stored in the 10 bytes of memory starting at address 0x8000.
- loadbinary
- lb file addrexpr
where:
file Specifies the file containing the data to be loaded.
addrexpr Is an expression that evaluates to a memory address.
e.g.:lb sbtest.bin 0x8300
memorymem expr1[ [+]expr2[ memory[ format]]]
where:
expr1 Is an expression that evaluates to the starting address of the area of memory that you want to examine.
expr2
Is an expression that either evaluates to the end address of the area
of memory that you want to examine or, if preceded by a +, evaluates to
the number of bytes that you want to examine. If expr2 is not present,
the number of bytes displayed uses the value in the Bytes to display
dialog box.
memory Can be set to 8, 16, or 32.
format Can be
set to the RDI name as shown in the last displayed format list or to
the index number of any available format. e.g.:mem 0x8300 +256 8 hex
- obey
- obey file
where:
file
Identifies a file containing valid CLI commands, each separated by a
carriage return, with the end of file at the beginning of a new line.
registersreg[ regbank[ format]]
where:
regbank Specifies the register bank to be listed. If you do not specify a register bank, the one named Current is listed.
format
Specifies the format to be used in the list if you do not want the
default format. e.g.:reg user Displays the number, name, and contents
of each of the registers in the user register bank. You can issue a
regbk command to see a list of the current register banks.
- run
- r[ processor]
where:
processor Specifies the processor (the current processor is the default).
savebinarysb file expr1 [+]expr2
where:
file Specifies the file in which you want to save the contents of the specified area of memory.
expr1 Is an expression that evaluates to the starting address of the area of memory to save.
expr2
Is an expression that evaluates either to the end address of the area
of memory to save or, if preceded by +, to the number of bytes to save.
e.g.:sb sbtest.bin 0x8300 +256
- setmem
- smem addrexpr valexpr[ memory]
where:
addrexpr Evaluates to the memory address at which you want to insert the new value.
valexpr Evaluates to the value that you want to insert at the specified memory
address. This evaluation results in an 8-bit, a 16-bit, or a 32-bit value
depending on the setting of the memory parameter, or of the current
global variable value if you do not specify the memory parameter.
memory If used must be set to 8, 16, or 32.
e.g.:smem 0x83A8 0x41424344 32
setpcpc expr
- setreg
- sreg [regbank|]register expr
e.g.:sreg r12 100 Sets register r12 in register bank current to the value 100.
sreg FIQ|r12 IRQ|r13 Sets register r12 in register bank FIQ to the value of register r13 in register bank IRQ.
setwatchswat expr1 expr2
where:
expr1 Specifies an expression to which you want to assign a value.
expr2 Specifies a new value to be assigned to the expression.
e.g.:swat a1 100 Sets variable a1 to the value 100.
swat a b Sets variable a to the value of variable b.
- step
- st[ step][ instr]
where:
step Can be set to in or out.
instr Can be set to line or instr.
e.g.:step in line Steps one source line. If the line contains a subroutine call, steps into the subroutine.
step out instr Steps out of the current stack. If no stack frame information is available, steps one instruction.
step Steps, without forcing a step in or out, one instruction or source
line depending on the setting of instr. If a subroutine call is
encountered, this command steps over it.
stopstop[ processor]
- watch
- wat expr[ format]
阅读(1023) | 评论(0) | 转发(0) |