Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: David Daney <ddaney@caviumnetworks.com>
To: Stan Shebs <stan@codesourcery.com>
Cc: gdb@sourceware.org
Subject: Re: [RFC] Global breakpoints
Date: Tue, 04 May 2010 23:34:00 -0000	[thread overview]
Message-ID: <4BE0AEDB.40600@caviumnetworks.com> (raw)
In-Reply-To: <4BE0A112.8080503@codesourcery.com>

On 05/04/2010 03:34 PM, Stan Shebs wrote:
[...]
>
> Another possible strategy is to hook into the dynamic loader, and it
> has the advantage of (probably) simplifying breakpoint insertion for
> library code, although it's not as clear to me how it gets GDB's
> attention.
>

Presumably you are talking about off-loading some of the work to some 
sort of stub running in the process.

Could you LD_PRELOAD something that communicates with its controlling 
GDB via a named-pipe/UNIX domain socket?  When an event of interest 
occurs, the stub would notify GDB, which would then attach to the process.

David Daney


  reply	other threads:[~2010-05-04 23:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-04 22:35 Stan Shebs
2010-05-04 23:34 ` David Daney [this message]
2010-05-05  0:17 ` Frank Ch. Eigler

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=4BE0AEDB.40600@caviumnetworks.com \
    --to=ddaney@caviumnetworks.com \
    --cc=gdb@sourceware.org \
    --cc=stan@codesourcery.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