From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24891 invoked by alias); 29 Nov 2002 10:54:54 -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 24880 invoked from network); 29 Nov 2002 10:54:51 -0000 Received: from unknown (HELO birch.ripe.net) (193.0.1.96) by sources.redhat.com with SMTP; 29 Nov 2002 10:54:51 -0000 Received: from laptop.6bone.nl (cow.ripe.net [193.0.1.239]) by birch.ripe.net (8.12.5/8.11.6) with SMTP id gATAsoZl016948 for ; Fri, 29 Nov 2002 11:54:50 +0100 Received: (nullmailer pid 10896 invoked by uid 1000); Fri, 29 Nov 2002 10:54:48 -0000 Date: Fri, 29 Nov 2002 02:54:00 -0000 From: Mark Santcroos To: gdb@sources.redhat.com Subject: add-symbol-file parsing Message-ID: <20021129105448.GF598@laptop.6bone.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Handles: MS6-6BONE, MS18417-RIPE X-SW-Source: 2002-11/txt/msg00426.txt.bz2 Unlike the documentation says the 'address' argument to 'add-symbol-file' is not parsed as an expression but directly as an address. The following commands ... (gdb) set $text_addr = 0xdeadc0de (gdb) add-symbol-file /dir/symbol.file $text_addr .. will end up setting the address to 0 by strtoul down in the code path. The above will therefor not work. Is there another way I can achieve this? If this is not possible (in another way) will patches be accepted to make this an expression? Mark -- Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM