Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
To: gdb@sources.redhat.com, tausq@debian.org
Subject: native hppa2.0w-hp-hpux11.00, 32-bit versus 64-bit
Date: Sat, 26 Jun 2004 23:28:00 -0000	[thread overview]
Message-ID: <20040626232848.1D36F4B104@berman.michael-chastain.com> (raw)

We've got this test script to print hp register values,
gdb/testsuite/gdb.hp/gdb.base-hp/reg.exp.  I'm working on it because
the hp register code changed between 6.1 and HEAD.  There's some
cosmetic differences in the results, which are easy for me to fix,
and there's some 32-bit/64-bit changes, which I need help with.

I'm testing with gdb 6.1.1 and with gdb HEAD 2004-06-01.
My gdb's are native hppa2.0w-hp-hpux11.00, and I built them with
gcc 3.3.2 using no special flags.

Here is my actual output:

  # gdb 6.1.1
  # gdb built with gcc 3.3.2, no special flags
  (gdb) info reg r19
  r19 deadbeefbadcadee
  (gdb) print /x $r19
  $1 = 0xbadcadee^M

  # gdb HEAD 2004-06-01
  # gdb built with gcc 3.3.2, no special flags
  (gdb) info reg r19
  r19            0xbadcadee       3135024622
  (gdb) print /x $r19
  $1 = 0xbadcadee^M

The inferior program has used assembly language to build a 64-bit
value in $r19, and I'm using gdb to examine the value.

In three of these four instances, there's 32-bit truncation going on.
I need to figure out how to mark these in the test suite.

In my view, the only correct result is the full 64-bit result.
I want to make the test results be:

  # gdb 6.1.1
  PASS: gdb.base-hp/reg.exp: info reg r19
  KFAIL: gdb.base-hp/reg.exp: print /x $r19 (pr gdb/NNNN)

  # gdb HEAD 2004-06-01
  KFAIL: gdb.base-hp/reg.exp: info reg r19 (pr gdb/NNNN)
  KFAIL: gdb.base-hp/reg.exp: print /x $r19 (pr gdb/NNNN)

The alternative would be to consider 32-bit truncation to be okay
issue a PASS on all four results.

Advice please?

Michael C


             reply	other threads:[~2004-06-26 23:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-26 23:28 Michael Elizabeth Chastain [this message]
2004-06-27  1:52 ` Andrew Cagney
2004-06-27  4:20 Michael Elizabeth Chastain
2004-06-27 18:40 ` Randolph Chung
2004-06-27 18:57   ` Daniel Jacobowitz
2004-06-28 14:51   ` Andrew Cagney

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=20040626232848.1D36F4B104@berman.michael-chastain.com \
    --to=mec.gnu@mindspring.com \
    --cc=gdb@sources.redhat.com \
    --cc=tausq@debian.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