* [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
* Re: [RFC] gdb.base/frame-args.exp
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
0 siblings, 1 reply; 4+ messages in thread
From: Yao Qi @ 2014-07-03 6:46 UTC (permalink / raw)
To: lgustavo, 'gdb-patches@sourceware.org'
On 07/01/2014 03:56 PM, Luis Machado wrote:
> 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?
Hi Luis,
Andrew Burgess had a patch changing "<error reading variable: value has
been optimized out>" to "<optimized out>" in this thread,
PATCH: error reading variable: value has been optimized out
https://sourceware.org/ml/gdb-patches/2012-08/msg00715.html
so I think "<optimized out>" is the right direction to go. We should
fix gdb rather than update test case to match the current output, IMO.
--
Yao (é½å°§)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] gdb.base/frame-args.exp
2014-07-03 6:46 ` Yao Qi
@ 2014-07-03 7:03 ` Luis Machado
2014-07-03 7:29 ` Yao Qi
0 siblings, 1 reply; 4+ messages in thread
From: Luis Machado @ 2014-07-03 7:03 UTC (permalink / raw)
To: Yao Qi, 'gdb-patches@sourceware.org'
Hi Yao,
On 07/03/2014 07:44 AM, Yao Qi wrote:
> On 07/01/2014 03:56 PM, Luis Machado wrote:
>> 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?
>
> Hi Luis,
> Andrew Burgess had a patch changing "<error reading variable: value has
> been optimized out>" to "<optimized out>" in this thread,
>
> PATCH: error reading variable: value has been optimized out
> https://sourceware.org/ml/gdb-patches/2012-08/msg00715.html
>
> so I think "<optimized out>" is the right direction to go. We should
> fix gdb rather than update test case to match the current output, IMO.
>
Excellent! Thanks for pointing that out. Seeing the date of the patch, i
suppose it has not gone in.
Regards,
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