From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28234 invoked by alias); 9 Jun 2011 14:09:55 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 28225 invoked by uid 22791); 9 Jun 2011 14:09:54 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,DATE_IN_PAST_03_06,SPF_FAIL,TW_BJ X-Spam-Check-By: sourceware.org Date: Thu, 09 Jun 2011 14:09:00 -0000 From: Gary Benson To: archer@sourceware.org Subject: Re: gdb side of improved linker-debugger interface Message-ID: <20110609091557.GA2655@redhat.com> Mail-Followup-To: archer@sourceware.org References: <20110607094808.GB4143@redhat.com> <20110608141239.GE2680@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SW-Source: 2011-q2/txt/msg00024.txt.bz2 Tom Tromey wrote: > Gary> I did it that way to ensure we're looking for the probes in > Gary> the correct object. It uses the original code to locate > Gary> _dl_debug_state, then assumes that the object containing > Gary> _dl_debug_state is the linker and looks for the probes in > Gary> that. I don't know if this is the right solution though. > > Ok, I see. I think it would be fine the other way, but this is > ok with me too. What would the other way be? I'm aware the way I've done it is convoluted, and obviously it would be neater and simpler to just check at the top of enable_break, but I don't know how you would locate the objfile (unless there another way of locating probes that doesn't require that?) I guess my thinking was that there is all this code in enable_break for dealing with all kinds of different platforms---and that obviously works---and I wanted to take advantage of that. Cheers, Gary -- http://gbenson.net/