cygwin gdb程序收到信号?,未知信号

问题描述 投票:3回答:2

my.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
2个回答
2
投票

这是此版本的GDB的已知错误。 This链接可以帮助你。


0
投票

当我将cygwin更改为64版本时,问题就得到了解决。我认为这可能是另一个与“众所周知的”GDB错误不同的错误。

© www.soinside.com 2019 - 2024. All rights reserved.