This is the mail archive of the
mailing list for the GDB project.
Re: about PR gdb/10002 (extern optimized out symbols print: Address of symbol is unknown)
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 25 Mar 2009 16:00:24 -0700
- Subject: Re: about PR gdb/10002 (extern optimized out symbols print: Address of symbol is unknown)
- References: <20090325222600.GI1583@adacore.com>
On Wed, Mar 25, 2009 at 3:26 PM, Joel Brobecker <firstname.lastname@example.org> wrote:
> This seems correct to me. However, the testcase itself is a little
> borderline in my opinion.
The test case depends on compiler's ability to optimize out reference to
"missing". If the compiler couldn't do that, you'd get an unresolved symbol
at link time.
> The variable was not "optimized out", but was never linked in.
Well, the reference to the variable was optimized out.
> It's as if it really does not exist.
I think it's not "as if"; it *really* doesn't.
> So I don't know if GDB is really all that incorrect, here. Thoughts?
I don't see anything wrong about GDB's output.