From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14894 invoked by alias); 15 May 2002 17:46:09 -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 14860 invoked from network); 15 May 2002 17:46:05 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 15 May 2002 17:46:05 -0000 Received: by fw-cam.cambridge.arm.com; id SAA00289; Wed, 15 May 2002 18:46:04 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma029963; Wed, 15 May 02 18:45:34 +0100 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [172.16.1.91]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id SAA05018; Wed, 15 May 2002 18:45:33 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id SAA16914; Wed, 15 May 2002 18:45:33 +0100 (BST) Message-Id: <200205151745.SAA16914@cam-mail2.cambridge.arm.com> To: Elena Zannoni cc: Andrew Cagney , Richard.Earnshaw@arm.com, gdb@sources.redhat.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: REGISTER_BYTE() and pseudos In-reply-to: Your message of "Wed, 15 May 2002 13:35:14 EDT." <15586.40018.722458.418880@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 May 2002 10:46:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00173.txt.bz2 > Yeah, I was going to chime in, but I am behind on this thread. > Richard, look at the sh-tdep.c file. I checked in the sh5 work. It > still needs another round of cleaning but ti should pretty much all be > there. OK, I'll have another look. The bit I'm worried about though is if we call something like generic_get_saved_register for a pseudo and we hit a call_dummy frame. The code in there goes: if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame)) { if (lval) /* found it in a CALL_DUMMY frame */ *lval = not_lval; if (raw_buffer) memcpy (raw_buffer, generic_find_dummy_frame (frame->pc, frame->frame) + REGISTER_BYTE (regnum), REGISTER_RAW_SIZE (regnum)); return; Which will try to look up the pseudo in the buffer even if it isn't there.