GDB命令中止所有命令

发布于 2025-01-21 19:50:49 字数 1280 浏览 0 评论 0原文

我试图在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 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文