public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "ssbssa at sourceware dot org" <sourceware-bugzilla@sourceware.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	[thread overview]
Message-ID: <bug-9834-4717-8M00WwEHJJ@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-9834-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=9834

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #3 from Hannes Domani <ssbssa at sourceware dot org> ---
(In reply to Jeff Bradley from comment #0)
> O/S: Windows XP Prof
> IDE: GNAT Pro
> 
> 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 
> [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.
> 
> Upon further investigation we get this error while debugging any application 
> 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2024-01-07 12:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-9834-4717@http.sourceware.org/bugzilla/>
2015-05-17 17:44 ` netjoker45 at gmail dot com
2015-05-18  2:14 ` vapier at gentoo dot org
2024-01-07 12:12 ` ssbssa at sourceware dot org [this message]
2024-01-10 18:33 ` tromey at sourceware dot org

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-9834-4717-8M00WwEHJJ@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: link
Be 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).