免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1129 | 回复: 0
打印 上一主题 下一主题

[原创]AXD常用命令 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-15 19:00 |只看该作者 |倒序浏览
Here lists common commands that you can issue using the command-line interface:breakbr[ 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.
clearwatchcwpt 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. loadbinarylb 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  memorySyntax
mem 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 obeyobey 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. runr[ 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 setmemsmem 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 setregsreg [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.
stepst[ 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] watchwat expr[ format]

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/58341/showart_465065.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP