This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] gdb.base/frame-args.exp
- From: Yao Qi <yao at codesourcery dot com>
- To: <lgustavo at codesourcery dot com>, "'gdb-patches at sourceware dot org'" <gdb-patches at sourceware dot org>
- Date: Thu, 3 Jul 2014 14:44:54 +0800
- Subject: Re: [RFC] gdb.base/frame-args.exp
- Authentication-results: sourceware.org; auth=none
- References: <53B26994 dot 8000306 at codesourcery dot com>
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 (éå)