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 tdep/31507] [gdb, aarch64] FAIL: gdb.arch/disp-step-insn-reloc.exp: can_relocate_adr_forward: relocated instruction
Date: Mon, 18 Mar 2024 15:11:51 +0000	[thread overview]
Message-ID: <bug-31507-4717-6N2NaaKlyd@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31507-4717@http.sourceware.org/bugzilla/>

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luis.machado at arm dot com
          Component|gdb                         |tdep

--- Comment #7 from Tom de Vries <vries at gcc dot gnu.org> ---
This may be a regression due to:
...
commit 0c27188999bfc5bf03536bf44593c4ed8df296c3
Author: Luis Machado <luis.machado@linaro.org>
Date:   Thu Jan 9 16:04:36 2020 -0300

    Fix step-over-syscall.exp failure

    In particular, this one:

    FAIL: gdb.base/step-over-syscall.exp: fork: displaced=on:
check_pc_after_cross_syscall: single step over fork final pc

    When ptrace fork event reporting is enabled, GDB gets a PTRACE_EVENT_FORK
    event whenever the inferior executes the fork syscall.

    Then the logic is that GDB needs to step the inferior yet again in order to
    receive a predetermined SIGTRAP, but no execution takes place because the
    signal was already queued for delivery. That means the PC should stay the
same.

    I noticed the aarch64 code is currently adjusting the PC in this situation,
    making the inferior skip an instruction without executing it.

    The following change checks if we did not execute the instruction
    (pc - to == 0), making proper adjustments for such case.

    Regression tested on aarch64-linux-gnu on the tryserver.

    gdb/ChangeLog:

    2020-01-21  Luis Machado  <luis.machado@linaro.org>
...

Luis, could you take a look?

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

  parent reply	other threads:[~2024-03-18 15:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-18 12:32 [Bug gdb/31507] New: " vries at gcc dot gnu.org
2024-03-18 14:03 ` [Bug gdb/31507] " vries at gcc dot gnu.org
2024-03-18 14:08 ` vries at gcc dot gnu.org
2024-03-18 14:08 ` vries at gcc dot gnu.org
2024-03-18 14:10 ` vries at gcc dot gnu.org
2024-03-18 14:55 ` vries at gcc dot gnu.org
2024-03-18 15:08 ` vries at gcc dot gnu.org
2024-03-18 15:11 ` vries at gcc dot gnu.org [this message]
2024-03-18 15:21 ` [Bug tdep/31507] " luis.machado at arm dot com
2024-03-18 15:21 ` luis.machado at arm dot com
2024-03-18 15:23 ` luis.machado at arm dot com
2024-03-18 17:20 ` luis.machado at arm dot com
2024-03-18 17:49 ` vries at gcc dot gnu.org
2024-03-18 18:05 ` luis.machado at arm dot com
2024-03-19  7:20 ` vries at gcc dot gnu.org
2024-03-19  8:13 ` luis.machado at arm dot com
2024-03-22 13:30 ` luis.machado at arm dot com
2024-05-06 12:09 ` 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-31507-4717-6N2NaaKlyd@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).