From: "nagaraju.m" <nagaraju.m@redpinesignals.com>
To: gdb@sourceware.org
Subject: back trace issue
Date: Wed, 29 Apr 2009 07:53:00 -0000 [thread overview]
Message-ID: <49F7EF2B.4090805@redpinesignals.com> (raw)
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
next reply other threads:[~2009-04-29 6:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 7:53 nagaraju.m [this message]
2009-04-29 17:01 ` Joel Brobecker
[not found] ` <49FC0D86.6090809@redpinesignals.com>
2009-05-04 16:56 ` Joel Brobecker
2009-04-29 18:29 ` Anthony Berent
2009-05-02 9:21 nagaraju.m
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49F7EF2B.4090805@redpinesignals.com \
--to=nagaraju.m@redpinesignals.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox