Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: Marc Khouzam <marc.khouzam@ericsson.com>
Subject: Re: Breakpoints and multi-process using the same binary
Date: Mon, 11 Apr 2011 17:16:00 -0000	[thread overview]
Message-ID: <201104111816.30042.pedro@codesourcery.com> (raw)
In-Reply-To: <F7CE05678329534C957159168FA70DEC5738DD2A0C@EUSAACMS0703.eamcs.ericsson.se>

On Monday 11 April 2011 15:52:45, Marc Khouzam wrote:
> Hi,
> 
> the next release of Eclipse CDT will make use of GDB's great
> multi-process (multi-exec) support.  Nice work!
> 
> Quick question about breakpoints in that case (with non-stop).
> I'm trying to set a breakpoint in a process that has one 
> thread stopped.  The problem is that there is another
> process fully running, which uses the same binary
> (parent/child of a fork()).
> 
> From what I can see, I cannot set such a breakpoint without
> interrupting a thread for each and every process sharing the 
> binary.
> 
> I just wanted to confirm that this was the right behavior
> for GDB.  

Yeah, it's a current limitation.  I've looked at this a
bit after Tom reporting some other multi-process breakage, and
it  didn't look like a quick fix.  You may not need that
against linux gdbserver since it allows reading/writing
memory even when threads are running, while native linux gdb
doesn't.  We're likely to get to fix all of this for
proper ptsets/itsets support (which we'll be starting
on real soon).

-- 
Pedro Alves


  reply	other threads:[~2011-04-11 17:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 14:53 Marc Khouzam
2011-04-11 17:16 ` Pedro Alves [this message]
2011-04-11 18:05   ` Marc Khouzam

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=201104111816.30042.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=marc.khouzam@ericsson.com \
    /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