From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31163 invoked by alias); 30 Jul 2013 15:42:23 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 31140 invoked by uid 48); 30 Jul 2013 15:42:23 -0000 From: "asmwarrior at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/15806] New: file path separator becomes "\\\\" instead of "\\" when GDB report breakpoint-modified in MI mode Date: Tue, 30 Jul 2013 15:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: asmwarrior at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q3/txt/msg00137.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15806 Bug ID: 15806 Summary: file path separator becomes "\\\\" instead of "\\" when GDB report breakpoint-modified in MI mode Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: mi Assignee: unassigned at sourceware dot org Reporter: asmwarrior at gmail dot com Hi, when debug a simple helloworld program under Codeblocks, I have such log (the log is copied from Codeblocks' gdb-debugger-mi plugin's log, so there are some log messages which is the plugin itself) Active debugger config: GDB/MI:Default start debugger Selecting target: Debug Adding file: E:\code\cb\test_code\helloworld\bin\Debug\helloworld.exe [debug]PATH=.;E:\code\gcc\PCXMinGW463\bin;E:\code\gcc\PCXMinGW463;.;F:\cb_sf_git\trunk\src\lib;E:\code\cb\wx\wxWidgets-2.8.12\lib\gcc_dll;F:\cb_sf_git\trunk\src\devel;E:\code\common_bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;D:\Program Files\TortoiseSVN\bin GDB path: E:\code\gcc\PCXMinGW463\bin\gdb.exe DEBUGGEE path: E:\code\cb\test_code\helloworld\bin\Debug\helloworld.exe Command-line: E:\code\gcc\PCXMinGW463\bin\gdb.exe -fullname -quiet --interpreter=mi -args E:\code\cb\test_code\helloworld\bin\Debug\helloworld.exe Working dir : E:\code\cb\test_code\helloworld\. Starting debugger: [debug]Executing command: E:\code\gcc\PCXMinGW463\bin\gdb.exe -fullname -quiet --interpreter=mi -args E:\code\cb\test_code\helloworld\bin\Debug\helloworld.exe done [debug]Executor stopped [debug]Debugger_GDB_MI::CommitBreakpoints [debug]ActionsMap::Run -> starting action: 0ADA2DE0 id: 1 [debug]BreakpointAddAction::m_initial_cmd = 10000000000 [debug]cmd==>10000000000-break-insert -f E:\code\cb\test_code\helloworld\main.cpp:7 [debug]ActionsMap::Run -> starting action: 060E4E40 id: 2 [debug]cmd==>20000000000-exec-arguments [debug]ActionsMap::Run -> starting action: 060E5278 id: 3 [debug]cmd==>30000000000-enable-pretty-printing [debug]ActionsMap::Run -> starting action: 0A841698 id: 4 [debug]cmd==>40000000000-interpreter-exec console "source E:\\code\\gcc\\PCXMinGW463\\bin\\my.gdb" [debug]output==>=thread-group-added,id="i1" [debug]unparsable_output==>~"Reading symbols from E:\\code\\cb\\test_code\\helloworld\\bin\\Debug\\helloworld.exe..." [debug]notification event recieved! [debug]unparsable_output==>~"done.\n" [debug]unparsable_output==>(gdb) [debug]output==>10000000000^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x004016ee",func="main()",file="E:\\code\\cb\\test_code\\helloworld\\main.cpp",fullname="E:\\code\\cb\\test_code\\helloworld\\main.cpp",line="7",thread-groups=["i1"],times="0",original-location="E:\\code\\cb\\test_code\\helloworld\\main.cpp:7"} [debug]unparsable_output==>(gdb) [debug]output==>20000000000^done [debug]unparsable_output==>(gdb) [debug]output==>30000000000^done [debug]unparsable_output==>(gdb) [debug]output==>=cmd-param-changed,param="filename-display",value="absolute" [debug]output==>40000000000^done [debug]unparsable_output==>(gdb) [debug]BreakpointAddAction::OnCommandResult: 10000000000 [debug]BreakpointAddAction::breakpoint index is 1 [debug]BreakpointAddAction::Finishing1 [debug]notification event recieved! [debug]BreakpointAddAction::destructor [debug]ActionsMap::Run -> starting action: 064400A0 id: 5 [debug]RunAction::OnStart -> -exec-run [debug]cmd==>50000000000-exec-run [debug]output==>=thread-group-started,id="i1",pid="3080" [debug]output==>=thread-created,id="1",group-id="i1" [debug]unparsable_output==>~"[New Thread 3080.0x824]\n" [debug]output==>50000000000^running [debug]output==>*running,thread-id="all" [debug]unparsable_output==>(gdb) [debug]output==>=library-loaded,id="C:\\WINDOWS\\system32\\ntdll.dll",target-name="C:\\WINDOWS\\system32\\ntdll.dll",host-name="C:\\WINDOWS\\system32\\ntdll.dll",symbols-loaded="0",thread-group="i1" [debug]output==>=library-loaded,id="C:\\WINDOWS\\system32\\kernel32.dll",target-name="C:\\WINDOWS\\system32\\kernel32.dll",host-name="C:\\WINDOWS\\system32\\kernel32.dll",symbols-loaded="0",thread-group="i1" [debug]output==>=library-loaded,id="C:\\WINDOWS\\system32\\msvcrt.dll",target-name="C:\\WINDOWS\\system32\\msvcrt.dll",host-name="C:\\WINDOWS\\system32\\msvcrt.dll",symbols-loaded="0",thread-group="i1" [debug]notification event recieved! Found child pid: 3080 [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]notification event recieved! [debug]notification event recieved! [debug]notification event recieved! [debug]output==>=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x004016ee",func="main()",file="E:\\\\code\\\\cb\\\\test_code\\\\helloworld\\\\main.cpp",fullname="E:\\\\code\\\\cb\\\\test_code\\\\helloworld\\\\main.cpp",line="7",thread-groups=["i1"],times="1",original-location="E:\\\\code\\\\cb\\\\test_code\\\\helloworld\\\\main.cpp:7"} [debug]RunAction::destructor [debug]output==>*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x004016ee",func="main",args=[],file="E:\\code\\cb\\test_code\\helloworld\\main.cpp",fullname="E:\\code\\cb\\test_code\\helloworld\\main.cpp",line="7"},thread-id="1",stopped-threads="all" [debug]unparsable_output==>(gdb) [debug]notification event recieved! [debug]notification event recieved! [debug]Executor stopped --------------------------------------------------------------------- Here, I simply set a breakpoint, then start running the inferior, than the bp get hit, but I see that there is a message from GDB which I believe is wrong: file="E:\\\\code\\\\cb\\\\test_code\\\\helloworld\\\\main.cpp" I think it should be: file="E:\\code\\cb\\test_code\\helloworld\\main.cpp" --------------------------------------------------------------------- I'm using the latest GDB cvs 2013-07-30 build myself. (MinGW 4.6.3), the testing code is below: -------------------------------------- #include using namespace std; int main() { int a = 0; a = 1; cout << "Hello world!" << endl; return 0; } -------------------------------------- -- You are receiving this mail because: You are on the CC list for the bug.