From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8132 invoked by alias); 20 Nov 2002 17:35:18 -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 8125 invoked from network); 20 Nov 2002 17:35:18 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 20 Nov 2002 17:35:18 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id MAA27819; Wed, 20 Nov 2002 12:31:20 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id MAA25509; Wed, 20 Nov 2002 12:25:47 -0500 Message-ID: <197101c290bb$25e628c0$0202040a@catdog> From: "Kris Warkentin" To: "Andrew Cagney" Cc: , References: <200211201618.gAKGITW18622@pc960.cambridge.arm.com> <191601c290b1$942159e0$0202040a@catdog> <3DDBC3EC.4010401@redhat.com> Subject: Re: ARM stack alignment on hand called functions Date: Wed, 20 Nov 2002 09:35:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-11/txt/msg00269.txt.bz2 ----- Original Message ----- From: "Andrew Cagney" To: "Kris Warkentin" Cc: ; Sent: Wednesday, November 20, 2002 12:18 PM Subject: Re: ARM stack alignment on hand called functions > > The problem arises only with functions which return structures whose size is > > not evenly divisible by 4. Below is what I did to solve it. > > Kris, FYI, > It's very important to always reproduce problems using the current GDB > sources. That way, any confusion arrising from either local > modifications (does QNX 6 ship an un-modified GDB 5.2.1?) or out-of-date > sources (has the problem been fixed?). We had to pick a snapshot for our current release so we chose 5.2.1 which is the current, stable gdb release. Our modifications mostly lie in the procfs interface and the remote communications ends of things. > For the problem at hand, I suspect the post 5.3 architecture method - > gdbarch_frame_align() - is needed. That method is used to align each > element's stack address (e.g., struct return) and not the size of each > element. So perhaps this is a FIXME for us for later. The thing is, there isn't any QNX specific code down this path so I suspect this alignment issue is a generic gdb problem. Once we finish up with this release, the plan is to port our QNX modifications to the gdb head branch for eventual inclusion in the generic release. > (I think I might add a few more juicy comments to valops.c so its > clearer what the fix to your problem is :-). Thanks Andrew. Kris