From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32157 invoked by alias); 21 Jul 2003 15:26:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32149 invoked from network); 21 Jul 2003 15:26:37 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 21 Jul 2003 15:26:37 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4D49F2B7F; Mon, 21 Jul 2003 11:26:37 -0400 (EDT) Message-ID: <3F1C062D.2050607@redhat.com> Date: Mon, 21 Jul 2003 15:26:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steve Watt Cc: gdb-patches@sources.redhat.com Subject: Re: [patch rfc] Add NUM_REGS pseudo regs to MIPS References: <200307190013.h6J0DS7B098077@oberon.asicdesigners.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2003-07/txt/msg00370.txt.bz2 Sigh. Something in the backtrace is still amiss. > #2 0x080ca201 in gdbarch_register_sim_regno (gdbarch=0x82fdc48, reg_nr=90) > at ../../combined/gdb/gdbarch.c:4078 > #3 0x08125173 in gdbsim_fetch_register (regno=90) at ../../combined/gdb/remote-sim.c:299 > #4 0x08093e0b in legacy_read_register_gen (regnum=90, > myaddr=0xbffff140 " ñÿ¿HÜ/\bhñÿ¿î\211\f\bHÜ/\bZ") > at ../../combined/gdb/regcache.c:727 As far as I can tell, frame_register_unwind doesn't call legacy_read_register_gen. > #5 0x08113891 in frame_register_unwind (frame=0x82e0f40, regnum=90, > optimizedp=0xbffff0e8, lvalp=0xbffff0ec, addrp=0xbffff0f0, realnump=0xbffff014, > bufferp=0xbffff140) at ../../combined/gdb/frame.c:534 > #6 0x080dbd82 in mips_get_saved_register ( > raw_buffer=0xbffff140 " ñÿ¿HÜ/\bhñÿ¿î\211\f\bHÜ/\bZ", optimizedp=0xbffff0e8, > addrp=0xbffff0f0, frame=0x82e0f40, regnum=90, lvalp=0xbffff0ec) > at ../../combined/gdb/mips-tdep.c:5603 I suspect some agressive tail-call optimization by GCC is involved. Can you update your sources (so that we both have the same code) and then configure/build gdb using: CFLAGS="-O -g" .../configure .... so that -O2 is disabled (or at least should be). Andrew