From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14275 invoked by alias); 9 Dec 2008 13:34:56 -0000 Received: (qmail 14262 invoked by uid 22791); 9 Dec 2008 13:34:56 -0000 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; Tue, 09 Dec 2008 13:34:12 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 282F210EEC; Tue, 9 Dec 2008 13:34:10 +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 07B6B10CDC; Tue, 9 Dec 2008 13:34:10 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LA2j2-0004Fy-W9; Tue, 09 Dec 2008 08:34:09 -0500 Date: Tue, 09 Dec 2008 13:34:00 -0000 From: Daniel Jacobowitz To: Paul Pluzhnikov Cc: gdb-patches@sourceware.org Subject: Re: [patch] Fix a glitch in debugging 32-bit process with 64-bit GDB. Message-ID: <20081209133408.GA16288@caradoc.them.org> Mail-Followup-To: Paul Pluzhnikov , gdb-patches@sourceware.org References: <20081209013252.9E1C83A6B2E@localhost> <20081209020744.GA11173@caradoc.them.org> <8ac60eac0812081842l6ac5344fw2fd57011d3dfef42@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ac60eac0812081842l6ac5344fw2fd57011d3dfef42@mail.gmail.com> User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2008-12/txt/msg00171.txt.bz2 On Mon, Dec 08, 2008 at 06:42:52PM -0800, Paul Pluzhnikov wrote: > That value was set here: > > #0 define_symbol (valu=4294967280, string=0x2aaaabd3285c > "ar_ptr:p(0,32)", desc=2742, type=160, objfile=0xed4070) > at ../../src/gdb/stabsread.c:936 I was afraid we were going to come back to the stabs reader somehow. The bit of GDB you're patching is not at fault; either BFD or the stabs reader is. The right fix is to end up with a -16 in the symbol. Something like Peter's patch, I suppose; although I thought something else had been posted for this recently, maybe by Joel... -- Daniel Jacobowitz CodeSourcery