gpt4 book ai didi

c++ - GDB 错误 : Selected architecture i386 is not compatible with reported target architecture i386:x86-64

转载 作者:IT王子 更新时间:2023-10-29 00:14:09 31 4
gpt4 key购买 nike

有谁知道这个错误是什么意思?

enter image description here

我在 Linux 机器上使用 Netbeans 8.0、gdb 7.8.1。两天前一切都很好,然后当我开始调试时突然开始出现这个错误,我不知道这是什么意思。
到目前为止,我正在尝试清理和重置我能想到的一切:重新安装 netbeans、清理所有本地文件、再次 rebase 我的代码、取消设置所有断点等等。
谁能帮我理解这个错误是什么意思?我从未设置过这些断点,Netbeans 从哪里获取它们?

提前致谢,
雷切尔

编辑

所以现在我有更多的细节:当我尝试直接使用 GDB 调试我的应用程序时,没有 netbeans 我收到以下错误:

Starting program: ....
warning: Selected architecture i386 is not compatible with reported target architecture i386:x86-64
warning: Architecture rejected target-supplied description
Warning:
Cannot insert breakpoint -1. Temporarily disabling shared library breakpoints: breakpoint #-1 Cannot insert breakpoint 1. Cannot access memory at address 0x8081527

我如何找出编译中的哪些代码\标志使我的应用程序成为 i386?我怎样才能强制它成为 x86_64?

再次感谢。

最佳答案

好的,我机器上的 gdb 安装被搞砸了。任何人都无法想象。我搬到了另一台机器,现在一切都很好。

关于c++ - GDB 错误 : Selected architecture i386 is not compatible with reported target architecture i386:x86-64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42135454/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com