This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]