From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24744 invoked by alias); 29 Apr 2009 06:13:29 -0000 Received: (qmail 24729 invoked by uid 22791); 29 Apr 2009 06:13:28 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_13,J_CHICKENPOX_31,J_CHICKENPOX_33 X-Spam-Check-By: sourceware.org Received: from mail.redpinesignals.com (HELO mail.redpinesignals.com) (203.196.161.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Apr 2009 06:13:21 +0000 Received: from [192.168.40.83] ([192.168.40.83]) (authenticated user nagaraju.m@redpinesignals.com) by mail.redpinesignals.com for gdb@sourceware.org; Wed, 29 Apr 2009 11:39:55 +0530 Message-ID: <49F7EF2B.4090805@redpinesignals.com> Date: Wed, 29 Apr 2009 07:53:00 -0000 From: "nagaraju.m" User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: gdb@sourceware.org Subject: back trace issue Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00211.txt.bz2 Hi, I am new to gdb. I am using ported gdb to a specific target. when i am using back trace it is giving only the top most frame. example: int add(int x,int y) { int z; z=min(x,y); return z; } int min(int p,int q) { int r; r=max(p,q); return r; } int max(int d,int e) { return (d+e); } int main() { int a, b, c,i; a = 10; b =20; for(i=0;i<10;i++) c = add(a,b); return 0; } suppose if the control is in max function (gdb) bt #0 max (d=10, e=20) at abc.c:15 #1 0x20010348 in ?? () can you please suggest me where to provide the information to gdb so that "back trace" works properly..... Thanks in advance, Nagaraju