From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5265 invoked by alias); 21 Jun 2005 22:19:52 -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 5252 invoked by uid 22791); 21 Jun 2005 22:19:48 -0000 Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 21 Jun 2005 22:19:48 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id j5LMJc6k008123; Wed, 22 Jun 2005 00:19:38 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id j5LMJcZN020867; Wed, 22 Jun 2005 00:19:38 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id j5LMJbic008540; Wed, 22 Jun 2005 00:19:37 +0200 (CEST) Date: Tue, 21 Jun 2005 22:19:00 -0000 Message-Id: <200506212219.j5LMJbic008540@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: kamalp@acm.org CC: gdb@sources.redhat.com In-reply-to: <20050621062550.51938.qmail@web52701.mail.yahoo.com> (kamalpr@yahoo.com) Subject: Re: stack unwinding on aix References: <20050621062550.51938.qmail@web52701.mail.yahoo.com> X-SW-Source: 2005-06/txt/msg00197.txt.bz2 Date: Mon, 20 Jun 2005 23:25:50 -0700 (PDT) From: "Kamal R. Prasad" Hello, I am trying to locate a piece of code in gdb 6.3 which does srack unwinding in AIX (5.3). When unwinding the stack in my C code, I noticed a lot of dummy frames whose pc points to the data segment and/or outside th text segment(s). Can someone tell me how gdb identifies such dummy frames and wherein the code base it is? rs6000-tdep.c contains some algo for frameless function detection etc.., but that isn't all to it. I'm afraid the AIX/RS6000/POWER code is suffering from quite a bit of bit-rot. It's a bit of a mess, so I can't blame you for failing to understand the code. The sparc, vax or m88k code might be much easier for you to understand.. Look frame functions name xxx_frame_cache, xxx_prev_register for code that does the stack unwinding. Anyway, the AIX/RS6000/POWER support in gdb really could use some loving care. AFAIK almost none of the gdb developers actually have access to an AIX system. So I'm not sure we'll be able to help you. Mark