From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9313 invoked by alias); 24 Feb 2005 17:11:07 -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 8928 invoked from network); 24 Feb 2005 17:10:55 -0000 Received: from unknown (HELO webmail.streamline-computing.com) (82.133.39.164) by sourceware.org with SMTP; 24 Feb 2005 17:10:55 -0000 Received: from amavis by webmail.streamline-computing.com with scanned-ok (Exim 3.35 #1 (Debian)) id 1D4MSH-0001O9-00 for ; Thu, 24 Feb 2005 17:07:13 +0000 Received: from webmail.streamline-computing.com ([127.0.0.1]) by localhost (webmail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00704-06 for ; Thu, 24 Feb 2005 17:07:12 +0000 (GMT) Received: from [82.133.39.162] (helo=delmo.priv.wark.uk.streamline-computing.com) by webmail.streamline-computing.com with esmtp (Exim 3.35 #1 (Debian)) id 1D4MSG-0001Nz-00 for ; Thu, 24 Feb 2005 17:07:12 +0000 Subject: ia64 dodgy stack From: David Lecomber To: gdb Content-Type: text/plain Date: Thu, 24 Feb 2005 18:28:00 -0000 Message-Id: <1109264963.23124.24.camel@delmo.priv.wark.uk.streamline-computing.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-02/txt/msg00157.txt.bz2 I have a stacktrace problem with some, ahem,.. Fortran code.. (intel compiler 8) on the Itanium and current CVS of GDB. The problem did not exist on GDB 5.2.2 - this got the answer perfectly.. The code for this is included (should anyone wish to compile it.) The issue is that the stacktrace just fails: shows the current stack and then it's 0x00000000 (gdb) b def Breakpoint 1 at 0x4000000000002e92: file myyuck.f90, line 8. (gdb) r Starting program: /home/david/a.out Breakpoint 1, def (a=31.3402061) at myyuck.f90:8 8 END Current language: auto; currently fortran (gdb) bt #0 def (a=31.3402061) at /home/david/myyuck.f90:8 #1 0x0000000000000000 in ?? () The code: SUBROUTINE DEF(A) REAL :: A END PROGRAM ABC REAL A CALL DEF(A) END The function def's disassembly is: 0x4000000000002e80 : [MII] alloc r33=ar.pfs,4,4,0 0x4000000000002e81 : adds r12=-176,r12 0x4000000000002e82 : mov r34=r32;; 0x4000000000002e90 : [MMI] adds r35=128,r12;; 0x4000000000002e91 : st8 [r35]=r34 0x4000000000002e92 : adds r12=176,r12 and the section around the call to def is: 0x4000000000002f20 : [MMI] adds r20=144,r12;; 0x4000000000002f21 : ld8 r34=[r20] 0x4000000000002f22 : nop.i 0x0;; 0x4000000000002f30 : [MII] mov r1=r34 0x4000000000002f31 : adds r35=128,r12 0x4000000000002f32 : nop.i 0x0;; 0x4000000000002f40 : [MIB] mov r36=r35 0x4000000000002f41 : nop.i 0x0 0x4000000000002f42 : br.call.sptk.many b0=0x4000000000002e80 ;; 0x4000000000002f50 : [MMI] mov r34=1;; 0x4000000000002f51 : nop.m 0x0 0x4000000000002f52 : mov b0=r33;; Any advice? -- David Lecomber -- David Lecomber