2016-11-17 130 views
2

my.cpp:cygwin的gdb的程序接收到的信號,未知信號

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

構建與海灣合作委員會,然後 我使用gdb來運行程序,發生錯誤。 GDB:未知的目標異常0x406d1388在0x75fca6f2

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". 

回答

0

在我的情況下,我將我的cygwin更改爲64版本,並解決了問題。 我認爲這可能是與「知名」GDB BUG不同的錯誤。

2

正是由於這個版本的GDB的一個已知的bug。 This鏈接可能會幫助你。

+0

感謝您的回覆,但這不能解決我的問題。我已經嘗試過了。 – francis

相關問題