From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: kiranmaye.gannabathula@powervr.com
Cc: gdb@sources.redhat.com
Subject: Re: Static variables incorrect address
Date: Thu, 21 Mar 2002 11:34:00 -0000 [thread overview]
Message-ID: <2593-Thu21Mar2002213023+0200-eliz@is.elta.co.il> (raw)
In-Reply-To: <E821125BE8B4D5119E7E00A0C94BF0AD2158A6@smtp1.videologic.co.uk> (message from Kiranmaye Gannabathula on Thu, 21 Mar 2002 17:18:43 -0000)
> From: Kiranmaye Gannabathula <kiranmaye.gannabathula@powervr.com>
> Date: Thu, 21 Mar 2002 17:18:43 -0000
>
> static int Data = 9;
>
> int Func1(void)
> {
> return Data;
> }
>
> if i compile this with debug info and run it under gdb, when i breakpoint on
> the variable Data and try to print its value i get some value and
> if i look at the address
> p /x Data
> i get some invalid address.
I'm sorry, from your description I cannot figure out exactly what
happened. Please post a complete GDB session showing the commands you
typed and what GDB printed in response.
Also, what version of GDB is that, and on what platforms?
next prev parent reply other threads:[~2002-03-21 19:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-21 9:18 Kiranmaye Gannabathula
2002-03-21 11:34 ` Eli Zaretskii [this message]
2002-03-21 16:23 ` Michael Snyder
2002-03-21 17:11 Salman Khilji
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=2593-Thu21Mar2002213023+0200-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=gdb@sources.redhat.com \
--cc=kiranmaye.gannabathula@powervr.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