From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8822 invoked by alias); 27 Apr 2010 02:47:27 -0000 Received: (qmail 8808 invoked by uid 22791); 27 Apr 2010 02:47:26 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SARE_MSGID_LONG45 X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Apr 2010 02:47:22 +0000 Received: by pvg12 with SMTP id 12so188550pvg.0 for ; Mon, 26 Apr 2010 19:47:21 -0700 (PDT) Received: by 10.142.5.29 with SMTP id 29mr2593330wfe.102.1272336441116; Mon, 26 Apr 2010 19:47:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.43.21 with HTTP; Mon, 26 Apr 2010 19:47:01 -0700 (PDT) In-Reply-To: <20100426173601.GD15722@adacore.com> References: <4BD5CBA4.8030906@vmware.com> <20100426173601.GD15722@adacore.com> From: Hui Zhu Date: Tue, 27 Apr 2010 02:47:00 -0000 Message-ID: Subject: Re: Can GDB stub report every module loading event so that the host can load every module symbol automatically? To: Joel Brobecker Cc: Michael Snyder , "?$BPd?pzx" , "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-04/txt/msg00152.txt.bz2 On Tue, Apr 27, 2010 at 01:36, Joel Brobecker wrote: >> There is no such message because the stub doesn't know >> anything about modules. =A0There is no particular "event" >> when execution first enters a module. > > Could these modules be seen as "shared libraries"? The remote protocol > supports that... > I think we have 2 trouble about it: 1. Some stub for example a qemu, let itself set the breakpoint to stop the event and get the lib name and address is not easy. 2. For GDB part, let it know where is the solib in sometime is not easy. For example, cross compile kernel will be put to anywhere and each module will be put a different dir. Regards, Hui