Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Luis Machado <lgustavo@codesourcery.com>
To: "'gdb-patches@sourceware.org'" <gdb-patches@sourceware.org>
Subject: [RFC] gdb.base/frame-args.exp
Date: Tue, 01 Jul 2014 07:56:00 -0000	[thread overview]
Message-ID: <53B26994.8000306@codesourcery.com> (raw)

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


             reply	other threads:[~2014-07-01  7:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01  7:56 Luis Machado [this message]
2014-07-03  6:46 ` Yao Qi
2014-07-03  7:03   ` Luis Machado
2014-07-03  7:29     ` Yao Qi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53B26994.8000306@codesourcery.com \
    --to=lgustavo@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox