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

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

--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
OK, so this hits the "PC did not move. Discarding PC adjustment" case:
...
Breakpoint 5, pass () at
/home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31
31      }
+x /i $pc
=> 0xaaaaaaaa0894 <pass>:       nop
+continue
[displaced] displaced_step_prepare_throw: displaced-stepping 1307111.1307111.0
now
[displaced] displaced_step_prepare_throw: original insn 0xaaaaaaaa0894: 1f 20
03 d5      nop
[displaced] prepare: selected buffer at 0xaaaaaaaa0788
[displaced] prepare: saved 0xaaaaaaaa0788: 1e 00 80 d2
[displaced] aarch64_displaced_step_copy_insn: writing insn d503201f at
0xaaaaaaaa0788
[displaced] displaced_step_prepare_throw: prepared successfully
thread=1307111.1307111.0, original_pc=0xaaaaaaaa0894,
displaced_pc=0xaaaaaaaa0788
[displaced] displaced_step_prepare_throw: replacement insn 0xaaaaaaaa0788: 1f
20 03 d5   nop
[displaced] finish: restored 1307111.1307111.0 0xaaaaaaaa0788
[displaced] aarch64_displaced_step_fixup: PC after stepping: 0xaaaaaaaa0788
(was 0xaaaaaaaa0788).
[displaced] aarch64_displaced_step_fixup: adjusting PC by 4
[displaced] aarch64_displaced_step_fixup: PC did not move. Discarding PC
adjustment.
[displaced] aarch64_displaced_step_fixup: fixup: set PC to 0xaaaaaaaa0894:0

Breakpoint 5, pass () at
/home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31
31      }
+x /i $pc
=> 0xaaaaaaaa0894 <pass>:       nop
...

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

  parent reply	other threads:[~2024-03-18 15:08 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 [this message]
2024-03-18 15:11 ` [Bug tdep/31507] " vries at gcc dot gnu.org
2024-03-18 15:21 ` 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-pfXWXE8lVJ@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).