如何使用连接到我们的目标的Linux TCF代理更改Xilinx SDK调试器中的变量值?

发布于 2025-02-09 18:00:34 字数 246 浏览 0 评论 0原文

我使用Linux TCF代理将我的目标连接到我们的目标,以调试应用程序。

我在25年的职业生涯中使用了很多调试者,但这是我第一次使用Eclipse/Linux/Xilinx环境。我可以设置休息点。我可以一步浏览代码。我可以查看变量。我可以查看内存。我可以在内存位置键入新值,但是变量值不会更改。我尝试单击或双击变量窗格中的值。我尝试右键单击以查看它是否会给我一个修改值的选项。

我不确定如果不能更改变量值来更改软件的执行路径,那么调试工具是什么好的。

I am connected to our target over ethernet using the Linux TCF agent to debug an application.

I've used a lot of debuggers over my 25 year career, but this is my first time using Eclipse/Linux/Xilinx environment. 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...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

明媚如初 2025-02-16 18:00:34

除了hacky解决方案外,我们还出现在评论中,即获取变量的地址,然后通过MR命令从xsct Console修改它们。相同的控制台提供了正确g

语法如下:

locals [options] [variable-name [variable-value]]

一个示例:

locals my_int_var 10
locals my_float_var 1.4

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 get/set a local variable.

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文