GDB命令中止所有命令
我试图在Windows 10上调试由Bazel 5.0构建的Windows 10。我可以在Linux上使用调试器来运行它。但是,在Windows上,每个命令说命令中止
无论我做什么。我正在使用构建 - compilation_mode = dbg
应该使此工作。它甚至说它正在用二进制的符号阅读。有什么方法可以调试吗?
Starting program: C:\Users\katso\Documents\GitHub\product\bazel-bin\src\daemon.exe main.cpp
[New Thread 8584.0x1e34]
warning: FTH: (8584): *** Fault tolerant heap shim applied to current process. This is usually due to previous crashes. ***
[New Thread 8584.0x50d8]
[New Thread 8584.0x2078]
[New Thread 8584.0x41e4]
Warning:
Cannot insert breakpoint 4.
Cannot access memory at address 0x14001bf71
Cannot insert breakpoint 4.
Cannot access memory at address 0x140195a80
Cannot insert breakpoint 3.
Cannot access memory at address 0x1404f6fbd
Cannot insert breakpoint 1.
Cannot access memory at address 0x14092e7a0
Cannot insert breakpoint 1.
Cannot access memory at address 0x1409850b3
Cannot insert breakpoint 1.
Cannot access memory at address 0x140985133
Cannot insert breakpoint 1.
Cannot access memory at address 0x140e0c801
Cannot insert breakpoint 1.
Cannot access memory at address 0x140e0cb61
Cannot insert breakpoint 2.
Cannot access memory at address 0x140f36af0
Cannot insert breakpoint 3.
Cannot access memory at address 0x140f371b0
Command aborted.
I am trying to debug a binary on Windows 10 that was built with bazel 5.0. I can get it to run with a debugger on Linux just fine. However, on Windows every single command says Command Aborted
no matter what I do. I am building with --compilation_mode=dbg
which should make this work. It even says that it is reading in the symbols from the binary. Is there any way to debug this?
Starting program: C:\Users\katso\Documents\GitHub\product\bazel-bin\src\daemon.exe main.cpp
[New Thread 8584.0x1e34]
warning: FTH: (8584): *** Fault tolerant heap shim applied to current process. This is usually due to previous crashes. ***
[New Thread 8584.0x50d8]
[New Thread 8584.0x2078]
[New Thread 8584.0x41e4]
Warning:
Cannot insert breakpoint 4.
Cannot access memory at address 0x14001bf71
Cannot insert breakpoint 4.
Cannot access memory at address 0x140195a80
Cannot insert breakpoint 3.
Cannot access memory at address 0x1404f6fbd
Cannot insert breakpoint 1.
Cannot access memory at address 0x14092e7a0
Cannot insert breakpoint 1.
Cannot access memory at address 0x1409850b3
Cannot insert breakpoint 1.
Cannot access memory at address 0x140985133
Cannot insert breakpoint 1.
Cannot access memory at address 0x140e0c801
Cannot insert breakpoint 1.
Cannot access memory at address 0x140e0cb61
Cannot insert breakpoint 2.
Cannot access memory at address 0x140f36af0
Cannot insert breakpoint 3.
Cannot access memory at address 0x140f371b0
Command aborted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论