Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] gdb.base/frame-args.exp
@ 2014-07-01  7:56 Luis Machado
  2014-07-03  6:46 ` Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Luis Machado @ 2014-07-01  7:56 UTC (permalink / raw)
  To: 'gdb-patches@sourceware.org'

Hi,

It looks like this test is a bit focused on results from only a few 
targets. On x86 it works correctly and displays the arguments just fine. 
When set to display only scalars, then GDB proceeds to display '...' on 
the fields that are not scalars.

On PowerPC 32-bit though, this is what i get:

(gdb) PASS: gdb.base/frame-args.exp: set print frame-arguments all
frame 1^M
#1  0x100006dc in call_me (i=3, f=5, s=<error reading variable: value 
has been optimized out>, ss=0xbffff788, u=<error reading variable: value 
has been optimized out>, e=green) at gdb.base/frame-args.c:40^M
40        break_me ();^M
(gdb) FAIL: gdb.base/frame-args.exp: frame 1 with print frame-arguments 
set to all
set print frame-arguments scalars^M
(gdb) PASS: gdb.base/frame-args.exp: set print frame-arguments scalars
frame 1^M
#1  0x100006dc in call_me (i=3, f=5, s=<error reading variable: value 
has been optimized out>, ss=0xbffff788, u=<error reading variable: value 
has been optimized out>, e=green) at gdb.base/frame-args.c:40^M
40        break_me ();^M
(gdb) FAIL: gdb.base/frame-args.exp: frame 1 with print frame-arguments 
set to scalars
set print frame-arguments none^M

So it looks like we are taking a different route and GDB ends up 
catching an error before displaying the optimized out information, thus 
not matching what the testcase expects.

I could add a different pattern to the testcase and that would solve the 
couple failures i see, but i wonder if we should tweak the testcase to 
dodge optimizations?

Thoughts?

Luis


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

end of thread, other threads:[~2014-07-03  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01  7:56 [RFC] gdb.base/frame-args.exp Luis Machado
2014-07-03  6:46 ` Yao Qi
2014-07-03  7:03   ` Luis Machado
2014-07-03  7:29     ` Yao Qi

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