This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
newbie :issue regarding back trace
- From: sumanth <sumanth dot gundapneni at redpinesignals dot com>
- To: gdb at sourceware dot org
- Date: Tue, 28 Apr 2009 11:44:03 +0530
- Subject: newbie :issue regarding back trace
hi,
I have a gdb issue regarding back trace .
ex:
int add(int d,int e)
{
return (d+e);
}
int main()
{
int a, b, c,i;
a = 10;
b =20;
c = add(a,b);
return 0;
}
Issue: when i am trying to use "back trace command" in add function of
above program, it is printing only current frame...
(gdb) bt
#0 add (d=10, e=20) at abc.c:4
#1 0x20010364 in ?? ()
Where should we provide previous frame information so that bt command
can work properly... Currently i am using gdb 5.3
Thanks in advance,
SUmanth