简体   繁体   English

Omnet ++>导致调试错误

[英]Omnet++> Caused a Debugging error

I was debugging on Omnet++ program and I was trying to find the value of a constant so I went around with the options in the debugger. 我在Omnet ++程序上进行调试,并且试图找到常量的值,因此我在调试器中使用了选项。

Then when I wanted to debug again I got this error 然后,当我想再次调试时,出现此错误

Error in final launch sequence Failed to execute MI command: -exec-run Error message from debugger back end: 最终启动序列中的错误无法执行MI命令:-exec-run来自调试器后端的错误消息:
Warning:\\nCannot insert breakpoint 1.\\nCannot access memory at address 0x0\\n 警告:\\ n无法插入断点1。\\ n无法访问地址0x0处的内存\\ n
Warning:\\nCannot insert breakpoint 1.\\nCannot access memory at address 0x0\\n 警告:\\ n无法插入断点1。\\ n无法访问地址0x0处的内存\\ n

The program runs fine but not with debugging 程序运行正常,但无法调试

I searched online and found that this error has to do with GDB accessing memory at address 0x0 means that I am trying to dereference a null pointer. 我在线搜索,发现此错误与GDB访问地址0x0处的内存有关,这意味着我试图取消引用空指针。

Also this error is shown in the debug tab of omnet++ 此外,omnet ++的调试选项卡中也会显示此错误

terminated, exit value: 0 gdb (7.11.1) 已终止,退出值:0 gdb(7.11.1)

Any one have an idea what might be the problem. 任何人都知道可能是什么问题。 Should I remove the Omnet++ and download it again? 我应该删除Omnet ++并重新下载吗?

I don't know why but I found this line in the breakpoints tab as shown in the picture, solved by removing it. 我不知道为什么,但是我在断点选项卡中找到了这条线,如图所示,将其删除即可解决。

Omnet ++调试器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM