简体   繁体   English

使用RealView Debug(RVDebug)进行调试

[英]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.

相关问题 如何在NASM代码中包括调试符号以在Windows上使用GDB进行调试? - How to include debug symbols in NASM code for debugging using GDB on Windows? 在带有OpenCV的Visual Studio Express中使用“开始调试”或“不进行调试就开始” - Using Start Debug or Start without Debugging in Visual Studio Express with OpenCV 是否可以单步执行RoR应用程序?或者只使用调试断点进行调试? - Is it possible to step through a RoR application? or only debug using the debugging breakpoint? 使用 Dalvik 调试监视器调试 Android - Debugging Android with Dalvik Debug Monitor Eclipse 调试报错:检查调试命令,调试 - Eclipse Debugging Error: Check Debug Command, Debug 在SQL Server Management Studio中调试存储过程(使用上下文菜单调试存储过程) - Debugging stored procedure in SQL Server Management Studio (using context menu debug stored procedure 如何使用PHP调试在Visual Code中调试时设置变量值? - How to set variable values while debugging in Visual Code using PHP debug? 调试完成而没有完成调试 - the debugging finish without completing the debug 如何调试使用Clion -> armgdb -> J-link gdb server调试 - How to debug debugging using Clion -> armgdb -> J-link gdb server Qt Creator GDB使用调试助手进行远程调试 - Qt creator gdb remote debugging with debug helpers
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM