public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug testsuite/26997] [-m32] FAIL: gdb.fortran/array-slices.exp: repack=on: test 9: check sizes match Date: Fri, 08 Jan 2021 14:14:05 +0000 [thread overview] Message-ID: <bug-26997-4717-obxhbZWslU@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-26997-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=26997 --- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> --- ... $ gdb -batch outputs/gdb.fortran/array-slices/array-slices \ -ex "break 66" \ -ex run \ -ex "continue 4" \ -ex up \ -ex "print /x &array4d" \ -ex "p /x sizeof (array4d)" \ -ex "print /x (&array4d) + sizeof (array4d)" ... $1 = 0xffffbe00 $2 = 0xc40 $3 = 0x95ce00 ... So, we expect the last to print 0xffffbe00 + 0xc40 == 0xffffca40, but instead we get 0x95ce00. Using this patch, the FAILs are fixed: ... $ git diff diff --git a/gdb/testsuite/gdb.fortran/array-slices.exp b/gdb/testsuite/gdb.fortran/array-slices .exp index f45a299b268..3ea17bdf777 100644 --- a/gdb/testsuite/gdb.fortran/array-slices.exp +++ b/gdb/testsuite/gdb.fortran/array-slices.exp @@ -208,7 +208,7 @@ proc run_test { repack } { set start_addr [get_hexadecimal_valueof "&${full_var_name}" \ "start unknown"] set end_addr [get_hexadecimal_valueof \ - "(&${full_var_name}) + sizeof (${full_var_name})" \ + "(int)(&${full_var_name}) + sizeof (${full_var_name})" \ "end unknown"] # The Fortran compiler can choose to either send a descriptor that ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-01-08 14:14 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-02 15:18 [Bug testsuite/26997] New: " vries at gcc dot gnu.org 2020-12-02 15:29 ` [Bug testsuite/26997] " vries at gcc dot gnu.org 2020-12-02 18:48 ` vries at gcc dot gnu.org 2021-01-08 14:14 ` vries at gcc dot gnu.org [this message] 2021-01-08 14:17 ` vries at gcc dot gnu.org 2021-01-15 10:04 ` vries at gcc dot gnu.org 2021-01-15 11:14 ` cvs-commit at gcc dot gnu.org 2021-01-15 11:15 ` vries at gcc dot gnu.org
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=bug-26997-4717-obxhbZWslU@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).