From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1020 invoked by alias); 26 Dec 2014 14:50:25 -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 990 invoked by uid 48); 26 Dec 2014 14:50:24 -0000 From: "nikolay.koldunov at oracle dot com" To: gdb-prs@sourceware.org Subject: [Bug server/17760] New: gdbserver (MinGW) reports incorrect pid for a process being debugged Date: Fri, 26 Dec 2014 14:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nikolay.koldunov at oracle 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: 2014-q4/txt/msg00443.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17760 Bug ID: 17760 Summary: gdbserver (MinGW) reports incorrect pid for a process being debugged Product: gdb Version: unknown Status: NEW Severity: normal Priority: P2 Component: server Assignee: unassigned at sourceware dot org Reporter: nikolay.koldunov at oracle dot com $ gdbserver :1234 C:/Users/tester/Documents/NetBeansProjects/Arguments_1/dist/Debug/MinGW-Windows/arguments_1.exe Process C:/Users/tester/Documents/NetBeansProjects/Arguments_1/dist/Debug/MinGW-Windows/arguments_1.exe created; pid = 864 Listening on port 1234 Remote debugging from host 127.0.0.1 pid = 864 $ gdb --interpreter mi =thread-group-added,id="i1" ~"GNU gdb (GDB) 7.6.1\n" ~"Copyright (C) 2013 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"mingw32\".\nFor bug reporting instructions, please see:\n" ~".\n" (gdb) target remote :1234 &"target remote :1234\n" ~"Remote debugging using :1234\n" =thread-group-started,id="i1",pid="42000" =thread-created,id="1",group-id="i1" ~"0x77a60fac in ?? ()\n" *stopped,frame={addr="0x77a60fac",func="??",args=[]},thread-id="1",stopped-threads="all" ^done (gdb) pid = 42000 -- You are receiving this mail because: You are on the CC list for the bug.