[英]Debugging using RealView Debug(RVDebug)
I have some C code for an ARM926 target. 我有一些用于ARM926目标的C代码。 I am trying to debug it using "Arm Xtended Debugger" (AXD).
我正在尝试使用“ Arm Xtended Debugger”(AXD)对其进行调试。 The
main()
of this code, takes 14 command line arguments which are mentioned in the code warrior project settings at proper place and behavior of the code is as expected. 该代码的
main()
接受14个命令行参数,这些参数在代码战士项目设置中的适当位置提到,并且代码的行为符合预期。
But when I try to use the same AXF (Arm eXecutable Format file) file and try to do source level debugging using the RVDEBUG by changing the settings of the Codewarrior project, and start debugging, then the argc value is 1. Then the behavior of the code is unexpected. 但是,当我尝试使用相同的AXF(Arm可执行格式文件)文件并尝试通过更改Codewarrior项目的设置来使用RVDEBUG进行源代码级调试时,并开始调试,那么argc值为1。该代码是意外的。
When I select RVDEBUG in code warrior settings I give the same options as I used during AXD debug session. 当我在代码战士设置中选择RVDEBUG时,将提供与AXD调试会话期间相同的选项。
So my question is: 所以我的问题是:
I am using the same AXD for both the debugging sessions(AXD and RVDEBUG), why are they behaving differently? 我在两个调试会话(AXD和RVDEBUG)中都使用了相同的AXD,为什么它们的行为有所不同? They should behave the same.
它们的行为应相同。
I don't use CodeWarrior but I know AXD and RVD: I remember Code Warrior can invoke AXD with the suitable arguments for the image, and so on. 我不使用CodeWarrior,但是我知道AXD和RVD:我记得Code Warrior可以使用适合图像的参数来调用AXD,依此类推。 I don't know if Code Warrior can invoke RVD as well.
我不知道Code Warrior是否也可以调用RVD。 So I suppose you run RVD yourself, outside any Code Warrior menu, don't you?
所以我想您是在任何Code Warrior菜单之外自己运行RVD的,不是吗? Then you just have to add the arguments in the dedicated input box at the bottom of the Load Image menu.
然后,您只需要在“加载图像”菜单底部的专用输入框中添加参数即可。
If this still does not work, I suggest you have a look at the semihosting options (they're rather in the connections options of RVD than in Code Warrior's). 如果仍然不能解决问题,建议您看一下半主机选项(它们更像是RVD的连接选项,而不是Code Warrior的)。
Good luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.