debugger_gdbmi does not seem to be able to trace across a call.
When I put an asm("int3"); in the code, on the next function call no more stepping is possible and the frame window shows only strange results.
When this happens, the step next button is enabled but nothing happens on the screen. There is no current debug line pointer. The only way out is to either "run" (then cb exits) or to use the stop debugger button.
None of these problems occur using the regular debugger in the debugger branch. I'll document that for you if you'd like.
Active debugger config: GDB/MI:Default
start debugger
Building to ensure sources are up-to-date
Selecting target:
src
Adding file: C:\Usr\Proj\cbDebug\trunk\src\devel\codeblocks.exe
[debug]PATH=.;C:\Usr\Proj\cbDebug\trunk\src\base\tinyxml;C:\Usr\Proj\wxWidgets2810\lib\gcc_dll;C:\Usr\Proj\cbDebug\trunk\src\devel;C:\Usr\mingw431\bin;C:\Usr\mingw431;C:\Usr\Proj\ImageCraft\ImageCraft_IDB\trunk\src\output;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Dell\Dell Wireless WLAN Card;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;C:\Usr\bin;C:\Program Files (x86)\CollabNet Subversion;C:\Program Files (x86)\TortoiseSVN\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Common Files\Adobe\AGL;c:\Usr\mingw431\bin
GDB path: c:\Usr\mingw463\bin\gdb.exe
DEBUGGEE path: C:\Usr\Proj\cbDebug\trunk\src\devel\codeblocks.exe
Command-line: c:\Usr\mingw463\bin\gdb.exe -fullname -quiet --interpreter=mi -args C:\Usr\Proj\cbDebug\trunk\src\devel\codeblocks.exe
Working dir : C:\Usr\Proj\cbDebug\trunk\src\devel
Starting debugger:
[debug]Executing command: c:\Usr\mingw463\bin\gdb.exe -fullname -quiet --interpreter=mi -args C:\Usr\Proj\cbDebug\trunk\src\devel\codeblocks.exe
done
[debug]Executor stopped
[debug]Debugger_GDB_MI::CommitBreakpoints
[debug]ActionsMap::Run -> starting action: 05AADEA8 id: 1
[debug]cmd==>10000000000-interpreter-exec console "source c:\\Usr\\mingw431\\bin\\stl.gdb"
[debug]ActionsMap::Run -> starting action: 05AAE4D8 id: 2
[debug]cmd==>20000000000-interpreter-exec console "source c:\\Usr\\mingw431\\bin\\wx.gdb"
[debug]ActionsMap::Run -> starting action: 05AAE9E8 id: 3
[debug]cmd==>30000000000-enable-pretty-printing
[debug]output==>=thread-group-added,id="i1"
[debug]notification event recieved!
[debug]unparsable_output==>~"Reading symbols from C:\\Usr\\Proj\\cbDebug\\trunk\\src\\devel\\codeblocks.exe..."
[debug]unparsable_output==>~"done.\n"
[debug]unparsable_output==>(gdb)
[debug]unparsable_output==>&"c:\\Usr\\mingw431\\bin\\stl.gdb:6: Error in sourced command file:\n"
[debug]unparsable_output==>&"Python scripting is not supported in this copy of GDB.\n"
[debug]output==>10000000000^error,msg="c:\\Usr\\mingw431\\bin\\stl.gdb:6: Error in sourced command file:\nPython scripting is not supported in this copy of GDB."
[debug]unparsable_output==>(gdb)
[debug]unparsable_output==>&"c:\\Usr\\mingw431\\bin\\wx.gdb:6: Error in sourced command file:\n"
[debug]unparsable_output==>&"Python scripting is not supported in this copy of GDB.\n"
[debug]output==>20000000000^error,msg="c:\\Usr\\mingw431\\bin\\wx.gdb:6: Error in sourced command file:\nPython scripting is not supported in this copy of GDB."
[debug]unparsable_output==>(gdb)
[debug]output==>30000000000^done
[debug]unparsable_output==>(gdb)
[debug]ActionsMap::Run -> starting action: 054D3E90 id: 4
[debug]RunAction::OnStart -> -exec-run
[debug]cmd==>40000000000-exec-run
[debug]output==>=thread-group-started,id="i1",pid="2612"
[debug]output==>=thread-created,id="1",group-id="i1"
[debug]unparsable_output==>~"[New Thread 2612.0x2b8]\n"
[debug]output==>40000000000^running
[debug]output==>*running,thread-id="all"
[debug]notification event recieved!
Found child pid: 2612
[debug]notification event recieved!
[debug]RunAction success, the debugger is !stopped!
[debug]RunAction::Output - type: result
class: running
results:
[debug]Executor started
[debug]notification event recieved!
[debug]unparsable_output==>(gdb)
[debug]RunAction::destructor
[debug]unparsable_output==>&"warning: Can not parse XML library list; XML support was disabled at compile time\n"
[debug]output==>*stopped,reason="signal-received",signal-name="SIGTRAP",signal-meaning="Trace/breakpoint trap",frame={addr="0x0049dee1",func="CodeBlocksApp::OnInit",args=[{name="this",value="0x26317c0"}],file="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",fullname="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",line="501"},thread-id="1",stopped-threads="all"
[debug]unparsable_output==>(gdb)
[debug]notification event recieved!
[debug]Executor stopped
[debug]ActionsMap::Run -> starting action: 055C7E70 id: 5
[debug]cmd==>50000000000-stack-info-frame
[debug]cmd==>50000000001-stack-list-frames 0 30
[debug]cmd==>50000000002-stack-list-arguments 1 0 30
[debug]output==>50000000000^done,frame={level="0",addr="0x0049dee1",func="CodeBlocksApp::OnInit",file="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",fullname="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",line="501"}
[debug]unparsable_output==>(gdb)
[debug]output==>50000000001^done,stack=[frame={level="0",addr="0x0049dee1",func="CodeBlocksApp::OnInit",file="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",fullname="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",line="501"},frame={level="1",addr="0x004c063c",func="wxAppConsole::CallOnInit",file="C:/Usr/Proj/wxWidgets2810/include/wx/app.h",fullname="C:/Usr/Proj/wxWidgets2810/include/wx/app.h",line="76"},frame={level="2",addr="0x10038a15",func="??"},frame={level="3",addr="0x1009d89a",func="??"},frame={level="4",addr="0x004a1182",func="WinMain@16",file="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",fullname="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",line="262"},frame={level="5",addr="0x004bb528",func="main"}]
[debug]unparsable_output==>(gdb)
[debug]output==>50000000002^done,stack-args=[frame={level="0",args=[{name="this",value="0x26317c0"}]},frame={level="1",args=[{name="this",value="0x26317c0"}]},frame={level="2",args=[]},frame={level="3",args=[]},frame={level="4",args=[{name="hInstance",value="0x400000"},{name="hPrevInstance",value="0x0"},{name="lpCmdLine",value="0xdb3e13 \"\""},{name="nCmdShow",value="10"}]},frame={level="5",args=[]}]
[debug]unparsable_output==>(gdb)
[debug]GenerateBacktrace::OnCommandOutput: tuple size 6 stack=[frame={level=0,addr=0x0049dee1,func=CodeBlocksApp::OnInit,file=C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp,fullname=C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp,line=501},frame={level=1,addr=0x004c063c,func=wxAppConsole::CallOnInit,file=C:/Usr/Proj/wxWidgets2810/include/wx/app.h,fullname=C:/Usr/Proj/wxWidgets2810/include/wx/app.h,line=76},frame={level=2,addr=0x10038a15,func=??},frame={level=3,addr=0x1009d89a,func=??},frame={level=4,addr=0x004a1182,func=WinMain@16,file=C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp,fullname=C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp,line=262},frame={level=5,addr=0x004bb528,func=main}]
[debug]GenerateBacktrace::OnCommandOutput arguments
[debug]ActionsMap::Run -> starting action: 054D3E90 id: 6
[debug]RunAction::OnStart -> -exec-next
[debug]cmd==>60000000000-exec-next
[debug]output==>60000000000^running
[debug]output==>*running,thread-id="all"
[debug]unparsable_output==>(gdb)
[debug]output==>*stopped,reason="end-stepping-range",frame={addr="0x618af790",func="??",args=[]},thread-id="1",stopped-threads="all"
[debug]unparsable_output==>(gdb)
[debug]RunAction success, the debugger is !stopped!
[debug]RunAction::Output - type: result
class: running
results:
[debug]Executor started
[debug]notification event recieved!
[debug]notification event recieved!
[debug]ParseStateInfo does not have valid source
[debug]Executor stopped
[debug]RunAction::destructor
[debug]ActionsMap::Run -> starting action: 055C7E70 id: 7
[debug]cmd==>70000000000-stack-info-frame
[debug]cmd==>70000000001-stack-list-frames 0 30
[debug]cmd==>70000000002-stack-list-arguments 1 0 30
[debug]output==>70000000000^done,frame={level="0",addr="0x618af790",func="??"}
[debug]unparsable_output==>(gdb)
[debug]output==>70000000001^done,stack=[frame={level="0",addr="0x618af790",func="??"},frame={level="1",addr="0x004c063c",func="wxAppConsole::CallOnInit",file="C:/Usr/Proj/wxWidgets2810/include/wx/app.h",fullname="C:/Usr/Proj/wxWidgets2810/include/wx/app.h",line="76"},frame={level="2",addr="0x10038a15",func="??"},frame={level="3",addr="0x1009d89a",func="??"},frame={level="4",addr="0x004a1182",func="WinMain@16",file="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",fullname="C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp",line="262"},frame={level="5",addr="0x004bb528",func="main"}]
[debug]unparsable_output==>(gdb)
[debug]output==>70000000002^done,stack-args=[frame={level="0",args=[]},frame={level="1",args=[{name="this",value="0x26317c0"}]},frame={level="2",args=[]},frame={level="3",args=[]},frame={level="4",args=[{name="hInstance",value="0x400000"},{name="hPrevInstance",value="0x0"},{name="lpCmdLine",value="0xdb3e13 \"\""},{name="nCmdShow",value="10"}]},frame={level="5",args=[]}]
[debug]GenerateBacktrace::OnCommandOutput: tuple size 6 stack=[frame={level=0,addr=0x618af790,func=??},frame={level=1,addr=0x004c063c,func=wxAppConsole::CallOnInit,file=C:/Usr/Proj/wxWidgets2810/include/wx/app.h,fullname=C:/Usr/Proj/wxWidgets2810/include/wx/app.h,line=76},frame={level=2,addr=0x10038a15,func=??},frame={level=3,addr=0x1009d89a,func=??},frame={level=4,addr=0x004a1182,func=WinMain@16,file=C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp,fullname=C:\\Usr\\Proj\\cbDebug\\trunk\\src\\src\\app.cpp,line=262},frame={level=5,addr=0x004bb528,func=main}]
[debug]GenerateBacktrace::OnCommandOutput arguments
[debug]ActionsMap::Run -> starting action: 0BFD4C00 id: 8
[debug]cmd==>80000000000-stack-select-frame 1
[debug]unparsable_output==>(gdb)
[debug]output==>80000000000^done
[debug]unparsable_output==>(gdb)
[debug]ActionsMap::Run -> starting action: 054D3FF0 id: 9
[debug]RunAction::OnStart -> -exec-next
[debug]cmd==>90000000000-exec-next
[debug]output==>90000000000^error,msg="Cannot find bounds of current function"
[debug]unparsable_output==>(gdb)
[debug]RunAction::destructor
[debug]ActionsMap::Run -> starting action: 054D3FF0 id: 10
[debug]RunAction::OnStart -> -exec-next
[debug]cmd==>100000000000-exec-next
[debug]output==>100000000000^error,msg="Cannot find bounds of current function"
[debug]unparsable_output==>(gdb)
[debug]RunAction::destructor
[debug]ActionsMap::Run -> starting action: 054D3FF0 id: 11
[debug]RunAction::OnStart -> -exec-next
[debug]cmd==>110000000000-exec-next
[debug]output==>110000000000^error,msg="Cannot find bounds of current function"
[debug]unparsable_output==>(gdb)
[debug]RunAction::destructor