博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
活用AXD Debugger调试器的命令行,实现u-boot的源代码级调试
阅读量:4231 次
发布时间:2019-05-26

本文共 524 字,大约阅读时间需要 1 分钟。

其实AXD的功能非常强大,特别是其命令行。

打开AXD,按下 Alt + L ,就可以打开一个命令行,

非常有用的命令如:

LoadBinary = 将一个文件导入SDRAM 
LoadSymbols = 导入符号表
SetPC = 设置PC寄存器
Run = 开始运行
OB + 文件名 = 按照批处理文件运行

所有的命令在GUI里面也是有的,可以利用批处理文件(OB命令)来免去敲命令和点菜单的麻烦,

以调试u-boot为例,写一个批处理文件放在D盘,文件名为u-boot.txt,内容如下:
loadbinary Y:/u-boot-1.1.4/u-boot.bin 0x00100000
loadsymbols Y:/u-boot-1.1.4/u-boot.axf
setpc 0x00100000
run
打开AXD,按下ALT+L,键盘输入:ob d:/u-boot.txt
那么AXD会自动运行批处理文件内的命令,自动载入u-boot的二进制代码,自动载入符号表,设置指针为0x00100000,并开始运行,如果在AXD中断运行,会自动显示源代码! cool~~!

如果有命令不清楚的话,在命令行下,输入 help ,可以打开帮助文件!

转载地址:http://sjsqi.baihongyu.com/

你可能感兴趣的文章
SQL Server 2005 T-SQL Recipes: A Problem-Solution Approach
查看>>
Core Python Programming
查看>>
Creating Database Web Applications with PHP and ASP
查看>>
ASP.NET 2.0 Demystified
查看>>
Pattern-Oriented Software Architecture, Volume 2, Patterns for Concurrent and Networked Objects
查看>>
Pattern-Oriented Software Architecture, Volume 1: A System of Patterns
查看>>
Database Programming with Visual Basic® .NET and ADO.NET: Tips, Tutorials, and Code
查看>>
ISO 9001: 2000 For Small Businesses
查看>>
Microsoft Visual Studio 2005 Unleashed
查看>>
Windows Server 2003 Security Infrastructures: Core Security Features
查看>>
Configuring ISA Server 2000
查看>>
Microsoft Money 2006 For Dummies
查看>>
Vision with Direction: A Systematic Introduction to Image Processing and Computer Vision
查看>>
Oracle Internals: Tips, Tricks, and Techniques for DBAs
查看>>
Programming Wcf Services
查看>>
AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Second Edition
查看>>
Pro Open Source Mail: Building an Enterprise Mail Solution
查看>>
Visual SourceSafe 2005 Software Configuration Management in Practice
查看>>
Beginning EJB 3 Application Development: From Novice to Professional
查看>>
Breakthrough Windows Vista(TM): Find Your Favorite Features and Discover the Possibilities
查看>>