debugging stl containers using mingw, issue with python script

后端 未结 1 1114
南方客
南方客 2021-01-25 11:47

edit: ok, i wont give up.

i tried to set this up in codeblocks, but that doesnt work well either:

Starting debugger: C:\\MinGW\\bin\\gdb-python27.exe -nx         


        
1条回答
  •  别那么骄傲
    2021-01-25 12:31

    MinGW GDB 7.5.1 uses Python Scripts from normal GDB 7.6. Therefore the Scripts fail.

    After i copied the syscalls and python folders out of

    http://ftp.gnu.org/gnu/gdb/gdb-7.5.1.tar.gz

    and tried everything again, it miraculously worked.

    Starting debugger: C:\MinGW\bin\gdb-python27.exe -nx -fullname  -quiet 
    done
    Setting breakpoints
    Attaching to program with pid: 7428
    Debugger name and version: GNU gdb (GDB) 7.5
    Attaching to process 7428
    Continuing...
    At D:\work\ludum-dare\src\main.cpp:39
    Continuing...
    At D:\work\ludum-dare\src\main.cpp:41
    Continuing...
    At D:\work\ludum-dare\src\componentEntitySystem\componentEntitySystem.cpp:393
    > print funcText
    $1 = {static npos = , _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x24504f4 "'ces:getEntitiesWithComponent(\"position\")'"}}
    > source C:\MingW\bin\.gdbinit
    > print funcText
    $2 = "'ces:getEntitiesWithComponent(\"position\")'"
    

    So, "nice job" to the person who put the gdb 7.6 python scripts into the MinGW GDB 7.5.1 package. NOT.

    0 讨论(0)
提交回复
热议问题