使用断点集运行时,GDB接收未知信号

时间:2013-03-19 23:24:27

标签: c++ gcc gdb mingw codeblocks

我正在使用Code :: Blocks 12.11,并且一直在尝试使用Pretty Printers,因为最新版本的调试器手表没有使用最新版本的GCC处理std :: strings等。所以我将支持Python的MinGW-Build放在Code :: Blocks的MinGW之上,并禁用Code :: Blocks中的Watch Scripts。

它可以正常运行,但是当我设置了断点时,在遇到断点之后会出现这个问题,除了调用堆栈中的问号之外什么都没有显示:


    [debug]Command-line: C:\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/Hayley/Documents/CodeBlocks/StringTest/bin/Debug/StringTest.exe
    [debug]Working dir : C:\Users\Hayley\Documents\CodeBlocks\StringTest

    Starting debugger: C:\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/Hayley/Documents/CodeBlocks/StringTest/bin/Debug/StringTest.exe
    done

    [debug]> set prompt >>>>>>cb_gdb:
    [debug]Skip initializing the scripting!

    Setting breakpoints

    [debug]Reading symbols from C:\Users\Hayley\Documents\CodeBlocks\StringTest\bin\Debug\StringTest.exe...done.
    [debug](gdb) >>>>>>cb_gdb:
    [debug]> show version
    [debug]GNU gdb (GDB) 7.5.1
    [debug]Copyright (C) 2012 Free Software Foundation, Inc.
    [debug]License GPLv3+: GNU GPL version 3 or later 
    [debug]This is free software: you are free to change and redistribute it.
    [debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    [debug]and "show warranty" for details.
    [debug]This GDB was configured as "x86_64-w64-mingw32".
    [debug]For bug reporting instructions, please see:
    [debug].
    [debug]>>>>>>cb_gdb:
    [debug]> set confirm off

    Debugger name and version: GNU gdb (GDB) 7.5.1

    [debug]>>>>>>cb_gdb:
    [debug]> set width 0
    [debug]>>>>>>cb_gdb:
    [debug]> set height 0
    [debug]>>>>>>cb_gdb:
    [debug]> set breakpoint pending on
    [debug]>>>>>>cb_gdb:
    [debug]> set print asm-demangle on
    [debug]>>>>>>cb_gdb:
    [debug]> set unwindonsignal on
    [debug]>>>>>>cb_gdb:
    [debug]> set print elements 0
    [debug]>>>>>>cb_gdb:
    [debug]> set new-console on
    [debug]>>>>>>cb_gdb:
    [debug]> set disassembly-flavor att
    [debug]>>>>>>cb_gdb:
    [debug]> directory C:/Users/Hayley/Documents/CodeBlocks/StringTest/
    [debug]Source directories searched: C:/Users/Hayley/Documents/CodeBlocks/StringTest;$cdir;$cwd
    [debug]>>>>>>cb_gdb:
    [debug]> break "C:/Users/Hayley/Documents/CodeBlocks/StringTest/main.cpp:20"
    [debug]Breakpoint 1 at 0x40139b: file C:\Users\Hayley\Documents\CodeBlocks\StringTest\main.cpp, line 20.
    [debug]>>>>>>cb_gdb:
    [debug]> run
    [debug]Starting program: C:\Users\Hayley\Documents\CodeBlocks\StringTest\bin\Debug\StringTest.exe 

    Child process PID: 10720

    [debug][New Thread 10720.0x2818]
    [debug]Do you need "set solib-search-path" or "set sysroot"?
    [debug]Do you need "set solib-search-path" or "set sysroot"?
    [debug]Do you need "set solib-search-path" or "set sysroot"?
    [debug]Do you need "set solib-search-path" or "set sysroot"?
    [debug]Program received signal ?, Unknown signal.
    [debug]0x0008de08 in ?? ()
    [debug]>>>>>>cb_gdb:

这里发生了什么?

0 个答案:

没有答案