From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13228 invoked by alias); 27 Apr 2010 02:57:58 -0000 Received: (qmail 13220 invoked by uid 22791); 27 Apr 2010 02:57:58 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45 X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Apr 2010 02:57:52 +0000 Received: by pwi10 with SMTP id 10so3517384pwi.0 for ; Mon, 26 Apr 2010 19:57:51 -0700 (PDT) Received: by 10.142.151.5 with SMTP id y5mr2645583wfd.190.1272337071090; Mon, 26 Apr 2010 19:57:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.43.21 with HTTP; Mon, 26 Apr 2010 19:57:31 -0700 (PDT) In-Reply-To: References: <4BD5CBA4.8030906@vmware.com> <20100426173601.GD15722@adacore.com> From: Hui Zhu Date: Tue, 27 Apr 2010 02:57: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/msg00153.txt.bz2 On Tue, Apr 27, 2010 at 10:47, Hui Zhu wrote: > On Tue, Apr 27, 2010 at 01:36, Joel Brobecker wro= te: >>> 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. =A0Some 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. =A0For GDB part, let it know where is the solib in sometime is not > easy. =A0For example, cross compile kernel will be put to anywhere and > each module will be put a different dir. > http://sourceware.org/ml/gdb/2010-02/msg00022.html This thread is talk about LKM in before. Regards, Hui