From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15111 invoked by alias); 24 Sep 2009 20:32:30 -0000 Received: (qmail 15097 invoked by uid 22791); 24 Sep 2009 20:32:29 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_37 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Sep 2009 20:32:26 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id EF4A710DCE; Thu, 24 Sep 2009 20:32:30 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id CC206105BF; Thu, 24 Sep 2009 20:32:30 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1MquzH-0008QN-Qv; Thu, 24 Sep 2009 16:32:23 -0400 Date: Thu, 24 Sep 2009 20:32:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: Caz Yokoyama , gdb-patches@sourceware.org Subject: Re: patch to eliminate ADDR on loading symbols of Linux module Message-ID: <20090924203223.GA32360@caradoc.them.org> Mail-Followup-To: Tom Tromey , Caz Yokoyama , gdb-patches@sourceware.org References: <4D3A256890A9458FB055F19527A022A2@xpjpn> <20090924201644.GA30712@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-09/txt/msg00760.txt.bz2 On Thu, Sep 24, 2009 at 02:21:57PM -0600, Tom Tromey wrote: > >>>>> "Daniel" == Daniel Jacobowitz writes: > > Daniel> ... Except you'd need gdb.parse_and_eval, wouldn't you. Tom, that > Daniel> missed 7.0, I guess? > > Yes, I never got around to rewriting the documentation. > Sorry about that. > > Does this need parse_and_eval, or just gdb.execute? parse_and_eval is > for expressions, execute invokes gdb commands. The latter is in CVS. I think you'd need parse_and_eval to search the kernel's module list. At least, besides gdb.Frame.read_var, I can't find any other way to look up a symbol in the target... -- Daniel Jacobowitz CodeSourcery