From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29854 invoked by alias); 29 Sep 2005 12:36:02 -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 29182 invoked by uid 22791); 29 Sep 2005 12:35:56 -0000 Received: from lizzard.sbs.de (HELO lizzard.sbs.de) (194.138.37.39) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 29 Sep 2005 12:35:56 +0000 Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.12.6/8.12.6) with ESMTP id j8TCZrVg013134 for ; Thu, 29 Sep 2005 14:35:53 +0200 Received: from nsprim.swb.siemens.de ([141.73.80.3]) by mail1.sbs.de (8.12.6/8.12.6) with ESMTP id j8TCZr4t018081 for ; Thu, 29 Sep 2005 14:35:53 +0200 Received: from haiti.swb.siemens.de (haiti.swb.siemens.de [141.73.80.6]) by nsprim.swb.siemens.de (8.9.1/8.9.1) with ESMTP id OAA11187 for ; Thu, 29 Sep 2005 14:35:17 +0200 (MET DST) Received: from fiji (fiji [141.73.80.26]) by haiti.swb.siemens.de (8.11.7+Sun/8.11.7) with SMTP id j8TCZHg16388 for ; Thu, 29 Sep 2005 14:35:17 +0200 (MEST) Message-Id: <200509291235.j8TCZHg16388@haiti.swb.siemens.de> Date: Thu, 29 Sep 2005 12:36:00 -0000 From: Ruppert Reply-To: Ruppert Subject: Re: Convenience variable for filename in add-symbol-file not expanded To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: LtlfoctQ7daWC12F53Vuqg== X-SW-Source: 2005-09/txt/msg00241.txt.bz2 >Does anyone know if a patch exists for that ? >If not, could you give me some hints to implement it (any >parse_and_eval_string or equivalent i can use...) ? > If you can't find a more general solution: I got this working with the following local hack in parse-and_eval_address (this was gdb-6.1): CORE_ADDR addr; if (exp[0] == '$') { struct value* valx; valx = value_of_internalvar(lookup_internalvar(&exp[1])); if (TYPE_CODE( VALUE_TYPE(valx)) != TYPE_CODE_INT) error("Invalid type given as section address."); addr = value_as_address(valx); } else { ... the current code goes here HTH regards d.ruppert dieter_ruppert@siemens.com