[英]How do I change a variable value in Xilinx SDK debugger using Linux TCF Agent connected to our target?
I am connected to our target over ethernet using the Linux TCF agent to debug an application.我使用 Linux TCF 代理通过以太网连接到我们的目标来调试应用程序。
I've used a lot of debuggers over my 25 year career, but this is my first time using Eclipse/Linux/Xilinx environment.在我 25 年的职业生涯中,我使用过很多调试器,但这是我第一次使用 Eclipse/Linux/Xilinx 环境。 I can set break points.
我可以设置断点。 I can single step through the code.
我可以单步执行代码。 I can view variables.
我可以查看变量。 I can view memory.
我可以查看内存。 I can type a new value in the memory location, but the variable value doesn't change.
我可以在内存位置键入一个新值,但变量值不会改变。 I tried to click or double click the value in the Variables pane.
我尝试单击或双击“变量”窗格中的值。 I tried right clicking to see if it would give me an option to modify the value.
我尝试右键单击以查看它是否会给我一个修改值的选项。
I'm not sure what good a debugging tool is if I can't change a variable value to alter the execution path of my software...如果我不能更改变量值来改变我的软件的执行路径,我不确定调试工具有什么用...
In addition to the hacky solution we came up in the comments, which is to get the address of a variable and then modify them through the mr
command from the xsct console
, the same console provide commands to properly g et/set a local variable .除了我们在评论中提出的 hacky 解决方案,即获取变量的地址,然后通过
xsct console
中的mr
命令修改它们之外,同一个控制台还提供了正确获取/设置局部变量的命令。
The syntax is the following:语法如下:
locals [options] [variable-name [variable-value]]
And an example:还有一个例子:
locals my_int_var 10
locals my_float_var 1.4
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.