From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4421 invoked by alias); 27 Sep 2002 00:00:13 -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 4385 invoked from network); 27 Sep 2002 00:00:12 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 27 Sep 2002 00:00:12 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id BA90B3E0C; Thu, 26 Sep 2002 20:00:12 -0400 (EDT) Message-ID: <3D939F8C.1060304@redhat.com> Date: Thu, 26 Sep 2002 17:00:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kip Walker Cc: gdb@sources.redhat.com Subject: Re: add-symbol-file and CORE_ADDR References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00464.txt.bz2 > It looks like there might be a problem with add-symbol-file's parsing > of section addresses when CORE_ADDR is a 64-bit type, since 'strtoul' > is used. I haven't dug through the code to see if there are any > locations that already handle address parsing that works whether > CORE_ADDR is 32 or 64 bits. Have a look at cli/cli-dump.c where it calls scan_expression_with_cleanup() and parse_and_eval_address(). Andrew