From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E8CD3858C42; Sun, 7 Jan 2024 12:12:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E8CD3858C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704629534; bh=9ekoDsUJ1wFaFVhOOb6kKCrRmfPKRTxI+hxviSr96Kw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j112aK/Cf/l39AkVwNHdZiJwQDtGdmxSV/QsLHIZLVhV6uA0WmfFBTjJpbTjOKMht muQL+E/qP6iw2gTaAoc8CBEMJRIggWjnFFYSTQRfK39i/xY19+KwSDuMdiDwuIYB0w 9fzlU60SzpRscCRkY/2Rxu16X0iaHkR/cRhnpbfU= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/9834] GDB choosing wrong process when multiple processes have same name. Date: Sun, 07 Jan 2024 12:12:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 6.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 6.8 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D9834 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg --- Comment #3 from Hannes Domani --- (In reply to Jeff Bradley from comment #0) > O/S: Windows XP Prof > IDE: GNAT Pro >=20 > file P:/dev/p3_ph3/cns/143-4177-A02.rel/exec_main/e_sys_main.exe > (gdb) catch exception > Catchpoint 1: all Ada exceptions > (gdb) attach 2440=20 > [Switching to thread 2440.0x112c] > (gdb) break p_msn_status_page.2.ada:305 > Breakpoint 2 at 0x4ba4a6: file p:\dev\p3_ph3\cns\143-4177- > a02.rel\page\p_msn_status_page.2.ada, line 305. > (gdb) cont > Warning: > Cannot insert breakpoint 1. > Error accessing memory address 0x1282ca3: Input/output error. >=20 > Upon further investigation we get this error while debugging any applicat= ion=20 > when there are multiple applications with the same process name running. gdb uses the supplied PID directly in the call to DebugActiveProcess, not the process name, so that can't be true. And I've never seen that gdb attached to a wrong process. --=20 You are receiving this mail because: You are on the CC list for the bug.=