From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20804 invoked by alias); 4 May 2010 23:34:52 -0000 Received: (qmail 20792 invoked by uid 22791); 4 May 2010 23:34:52 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail3.caviumnetworks.com (HELO mail3.caviumnetworks.com) (12.108.191.235) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 May 2010 23:34:46 +0000 Received: from caexch01.caveonetworks.com (Not Verified[192.168.16.9]) by mail3.caviumnetworks.com with MailMarshal (v6,7,2,8378) id ; Tue, 04 May 2010 16:35:00 -0700 Received: from caexch01.caveonetworks.com ([192.168.16.9]) by caexch01.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 4 May 2010 16:33:47 -0700 Received: from dd1.caveonetworks.com ([12.108.191.236]) by caexch01.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 4 May 2010 16:33:47 -0700 Message-ID: <4BE0AEDB.40600@caviumnetworks.com> Date: Tue, 04 May 2010 23:34:00 -0000 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4 MIME-Version: 1.0 To: Stan Shebs CC: gdb@sourceware.org Subject: Re: [RFC] Global breakpoints References: <4BE0A112.8080503@codesourcery.com> In-Reply-To: <4BE0A112.8080503@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00020.txt.bz2 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