public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug testsuite/31450] [gdb/testsuite] FAIL: gdb.base/ending-run.exp: step out of main
Date: Thu, 28 Mar 2024 07:26:40 +0000	[thread overview]
Message-ID: <bug-31450-4717-QATDUB73d1@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31450-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=31450

--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4ef6173d2dfeafd33deedf7ce0d384cfbcf1170d

commit 4ef6173d2dfeafd33deedf7ce0d384cfbcf1170d
Author: Tom de Vries <tdevries@suse.de>
Date:   Thu Mar 28 08:26:31 2024 +0100

    [gdb/testsuite] Fix gdb.base/ending-run.exp on manjaro linux

    On aarch64-linux, using the manjaro linux distro, I run into:
    ...
    (gdb) next^M
    32      }^M
    (gdb) next^M
    0x0000fffff7d67b80 in ?? () from /usr/lib/libc.so.6^M
    (gdb) FAIL: gdb.base/ending-run.exp: step out of main
    ...

    What happens here is described in detail in this clause:
    ...
        -re "0x.*\\?\\? \\(\\) from /lib/powerpc.*$gdb_prompt $" {
            # This case occurs on Powerpc when gdb steps out of main and the
            # needed debug info files are not loaded on the system, preventing
            # GDB to determine which function it reached
(__libc_start_call_main).
            # Ideally, the target system would have the necessary debugging
            # information, but in its absence, GDB's behavior is as expected.
            ...
        }
    ...
    but the clause only matches for powerpc.

    Fix this by:
    - making the regexp generic enough to also match /usr/lib/libc.so.6, and
    - updating the comment to not mention powerpc.

    Tested on aarch64-linux.

    PR testsuite/31450
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31450

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2024-03-28  7:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-05  7:06 [Bug testsuite/31450] New: " vries at gcc dot gnu.org
2024-03-14  9:56 ` [Bug testsuite/31450] " vries at gcc dot gnu.org
2024-03-28  7:26 ` cvs-commit at gcc dot gnu.org [this message]
2024-03-28  7:28 ` vries at gcc dot gnu.org
2024-04-16 16:55 ` cvs-commit 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-31450-4717-QATDUB73d1@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: 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).