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

标签 gdb cygwin

我的.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

海湾合作委员会信息:

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 的一个已知错误。 This链接可能对您有帮助。

关于gdb - cygwin gdb 程序收到信号?,未知信号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40652302/

相关文章:

c - 变量名与 GDB 调试器冲突

gdb - 带汇编程序的gdb:带进位标志的打印状态

windows - 从 cygwin 程序的输出中剥离 ^M

cygwin - 在我的 zsh 自定义提示(cygwin)中呈现时,一些表情符号图标被切成两半

linux - 从命令输出在 GDB 中设置环境变量

c++ - 代码块断点忽略范围

assembly - 汇编jmp内存表达式

c++ - 安装了 Cygwin64 并且在 Eclipse 中无法在 <iostream> 中找到 Unresolved inclusion

python - 如何使用最新版本的 pip 下载或安装 Gitlib 作为独立库?

bash - Windows 上的 GCC - Windows 上 Ubuntu 上的 Bash (WSL)、CygWin、MinGW