Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: sumanth <sumanth.gundapneni@redpinesignals.com>
Cc: gdb@sourceware.org
Subject: Re: gcc - gdb compatibility issue
Date: Mon, 27 Apr 2009 06:30:00 -0000	[thread overview]
Message-ID: <8ac60eac0904262303q4f5b430ak5a14ba34f3dedd7f@mail.gmail.com> (raw)
In-Reply-To: <49F53FD6.5040209@redpinesignals.com>

On Sun, Apr 26, 2009 at 10:17 PM, sumanth
<sumanth.gundapneni@redpinesignals.com> wrote:

> I am using gcc-4.3.3 and gdb 5.3 version.

That's a rather new GCC and rather old GDB.

> I have problems in  debugging my  binaries (a.out)  concerned to local
> variable's address location.

What kind of problems?
Did you compile with -O, -O2, or -O3?
Debugging optimized code is always problematic: the compiler may not
have assigned address for a local variable at all.

> Is there any gcc-gdb compatibility issue here. If so how can I generate the
> correct debugging information and use it.

Start by compiling with '-g -O0'.
If that doesn't work, try current GDB built from CVS Head.
If that still doesn't work, show us your compile line, and output from
'gcc --version'.

Cheers,
-- 
Paul Pluzhnikov


  reply	other threads:[~2009-04-27  6:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-27  6:03 sumanth
2009-04-27  6:30 ` Paul Pluzhnikov [this message]
2009-04-27  6:32   ` Joel Brobecker
2009-04-27  6:42     ` sumanth
2009-04-27  6:55       ` Joel Brobecker
2009-04-27 13:19         ` sumanth
2009-04-28  4:41         ` Eli Zaretskii
2009-04-28  6:22           ` sumanth
2009-04-27  6:36   ` sumanth

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=8ac60eac0904262303q4f5b430ak5a14ba34f3dedd7f@mail.gmail.com \
    --to=ppluzhnikov@google.com \
    --cc=gdb@sourceware.org \
    --cc=sumanth.gundapneni@redpinesignals.com \
    /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