From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27494 invoked by alias); 10 Jul 2003 12:23:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27486 invoked from network); 10 Jul 2003 12:23:09 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 10 Jul 2003 12:23:08 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id IAA13961; Thu, 10 Jul 2003 08:14:19 -0400 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id IAA14872; Thu, 10 Jul 2003 08:23:07 -0400 Message-ID: <0a6c01c346de$15ba22b0$0202040a@catdog> From: "Kris Warkentin" To: "Jason Molenda" Cc: "Gdb@Sources.Redhat.Com" References: <062401c34590$97cd09b0$0202040a@catdog> <55757AD0-B24D-11D7-9281-000393D457E2@apple.com> Subject: Re: [rfc] Print solib events in mi-mode Date: Thu, 10 Jul 2003 12:23:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-07/txt/msg00119.txt.bz2 > For the case where stop-on-shlibs-added is not set, we have an MI > notification that gets posted each time a shared library is loaded. It > looks like this to the UI side: > > =shlibs-updated > =shlibs-added,shlib-info=[num="54",name="SKTDrawDocument.ob",kind="- > ",dyld-addr="0x271000",reason="dyld",requested- > state="?",state="N",path="/Developer/Examples/AppKit/Sketch/build/ > Sketch.build/Sketch > (Upgraded).build/Objects-normal/ppc/ > SKTDrawDocument.ob",slide="",addr="",prefix=""] > ~"Re-enabling shared library breakpoints: 1\n" > <- > =shlibs-added,shlib-info=[num="55",name="SKTGraphic.ob",kind="-",dyld- > addr="0x28a000",reason="dyld",requested-state="?",state="N",path="/ > Developer/Examples/AppKit/Sketch/build/Sketch.build/Sketch > (Upgraded).build/Objects-normal/ppc/ > SKTGraphic.ob",slide="",addr="",prefix=""] > > > In our case, this message is emitted by one of our arch-specific files, > macosx/macosx-nat-dyld.c, in a function called macosx_solib_add(). Good idea, unfortunately we're mostly using the generic svr4 stuff. I probably COULD do it in our backend but the problem is that this is not QNX specific. It needs to be a standard part of GDB because the Eclipse CDT is going to rely on it. > The future-break patches were posted at least once in the past along > with the save-breakpoints command; I can find a URL ref if anyone > cares. I read that thread. Very interesting. This is one of those cases where it would be nice to have the functionality in gdb but the IDE should be able to do it easier as long as it has notification. It should be fairly easy to get notification from gdb but it doesn't look like Daniel wants people to rely on stop-on-solib-events so he won't let me mi-ificate it. cheers, Kris