From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21919 invoked by alias); 12 Jan 2012 11:25:52 -0000 Received: (qmail 21879 invoked by uid 22791); 12 Jan 2012 11:25:51 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from gbenson.demon.co.uk (HELO gbenson.demon.co.uk) (80.177.220.214) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jan 2012 11:25:36 +0000 Date: Thu, 12 Jan 2012 11:40:00 -0000 From: Gary Benson To: gdb-patches@sourceware.org Subject: Re: RFC: hacky fix for PR 12406 Message-ID: <20120112112533.GA4183@redhat.com> Mail-Followup-To: gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00399.txt.bz2 Tom Tromey wrote: > I would like to get some feedback on this. > > PR 12406 concerns what is printed when stop-on-solib-events is set: > > (gdb) set stop-on-solib-events 1 > (gdb) r > Starting program: /tmp/q > Stopped due to shared library event > > What is missing here is any indication of what library was loaded. > > This patch changes the output to: > > (gdb) set stop-on-solib-events 1 > (gdb) r > Starting program: /tmp/q > [Inferior loaded library /lib64/ld-linux-x86-64.so.2] > Stopped due to shared library event Could this be a separate option, trace-solib-events maybe? It seems like this printing might also be useful when stop-on-solib-events is off. Also, as Jan said, it would be nice to have unload notifications too. > I could not find a good way to get the information about what > library was loaded from the library-loading code to the bpstat_print > code. This approach seems like a hack to me -- so I was wondering > if anyone has a better suggestion. I like Joel's idea of a flag, it's what I'd try. You would probably need to do something like that for unload notifications anyway. Cheers, Gary -- http://gbenson.net/