Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* "optimized out" on gdb.base/gdb1090.exp
@ 2011-04-12  1:16 Edjunior Barbosa Machado
  2011-04-12  2:21 ` Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Edjunior Barbosa Machado @ 2011-04-12  1:16 UTC (permalink / raw)
  To: gdb

Hi,

running the testcase gdb.base/gdb1090.exp on ppc64 using gcc 4.3.4, noticed an unexpected error in the second test:

#1  0x00000000100005dc in foo () at ../../../gdb.git/gdb/testsuite/gdb.base/gdb1090.c:39^M
39        marker (s24);^M
(gdb) PASS: gdb.base/gdb1090.exp: up from marker
print s24^M
$1 = <optimized out>^M
(gdb) FAIL: gdb.base/gdb1090.exp: print s24

According to readelf output, s24 uses r9, which is a volatile register.
However, the content is properly printed when using gcc 4.4.5 (var s24 goes to r30, which is not volatile on power)

Just wondering, can we consider this last test as untested (or even pass) when print returns "optimized out", since it does not print garbage (which was the original issue from gdb/1090)?

Thanks,
-- 
Edjunior


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-12 16:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-12  1:16 "optimized out" on gdb.base/gdb1090.exp Edjunior Barbosa Machado
2011-04-12  2:21 ` Yao Qi
2011-04-12 13:44   ` Edjunior Barbosa Machado
2011-04-12 16:02     ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox