【问题标题】:cygwin gdb Program received signal ?, Unknown signalcygwin gdb 程序收到信号?,未知信号
【发布时间】:2016-11-17 10:23:31
【问题描述】:

我的.cpp:

#include<stdio.h>
int main()
{
  printf("hello main");
  return 0;
}

使用 gcc 构建,然后 我使用gdb运行程序,发生错误。 gdb: 0x75fca6f2 处的未知目标异常 0x406d1388

Program received signal ?, Unknown signal.
0x75fca6f2 in RaiseException ()
   from /cygdrive/c/WINDOWS/System32/KERNELBASE.dll

gcc 信息:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/5.4.0/lto-wrapper.exe
Target: i686-pc-cygwin
Thread model: posix
gcc version 5.4.0 (GCC)

gdb 信息:

GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

【问题讨论】:

    标签: gdb cygwin


    【解决方案1】:

    这是这个版本的 GDB 的一个已知错误。 This 链接可能对您有所帮助。

    【讨论】:

    • 感谢您的回复,但这不能解决我的问题。我已经尝试过了。
    【解决方案2】:

    当我将我的 cygwin 更改为 64 版本时,问题出乎意料地解决了。 我认为这可能是另一个不同于“众所周知”的 GDB 错误的错误。

    【讨论】:

      猜你喜欢
      • 2017-10-06
      • 1970-01-01
      • 1970-01-01
      • 2019-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多