public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "asmwarrior at gmail dot com" <sourceware-bugzilla@sourceware.org> 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 [thread overview] Message-ID: <bug-15806-4717@http.sourceware.org/bugzilla/> (raw) 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 <iostream> 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.
next reply other threads:[~2013-07-30 15:42 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-07-30 15:42 asmwarrior at gmail dot com [this message] 2013-07-31 3:36 ` [Bug mi/15806] " asmwarrior at gmail dot com 2013-07-31 15:29 ` asmwarrior at gmail dot com 2013-12-26 14:54 ` asmwarrior at gmail dot com 2013-12-27 2:30 ` asmwarrior at gmail dot com 2014-04-24 15:28 ` [Bug mi/15806] Some fields in async MI events get escaped twice simon.marchi at ericsson dot com 2014-04-24 15:28 ` simon.marchi at ericsson dot com 2014-04-24 15:32 ` simon.marchi at ericsson dot com 2014-04-24 15:33 ` simon.marchi at ericsson dot com 2014-04-25 0:52 ` asmwarrior at gmail dot com 2014-04-25 2:30 ` asmwarrior at gmail dot com 2014-04-25 3:10 ` asmwarrior at gmail dot com 2014-04-25 14:16 ` simon.marchi at ericsson dot com 2014-04-25 14:56 ` asmwarrior at gmail dot com 2014-04-25 19:37 ` simon.marchi at ericsson dot com 2014-04-25 19:51 ` marc.khouzam at ericsson dot com 2014-04-26 10:03 ` asmwarrior at gmail dot com 2014-09-25 18:14 ` simon.marchi at ericsson dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-15806-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).