public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/28486] New: [riscv64] GDB doesn't allow stepping over cbreak trap instruction
@ 2021-10-21 20:25 kip at thevertigo dot com
  2021-10-21 22:38 ` [Bug gdb/28486] " wilson at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kip at thevertigo dot com @ 2021-10-21 20:25 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 28486
           Summary: [riscv64] GDB doesn't allow stepping over cbreak trap
                    instruction
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: kip at thevertigo dot com
  Target Milestone: ---

While trying to create a #define macro to programmatically generate a
breakpoint on RISC-V using the cbreak instruction in the ISA, I noticed GDB
halts execution as it should, but it doesn't allow stepping over it.

This behaviour is unusual because on other architectures that have similar trap
instructions, GDB allows the user to step over it.

On mips I use "teq $0, $0"; POWER it's "twge %r2, %r2"; on x86 it's "int
$0x03"; on arm64 it's "brk #0", etc. They all halt as they should, and then
allow the user to step over the breakpoint.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-04-09 15:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 20:25 [Bug gdb/28486] New: [riscv64] GDB doesn't allow stepping over cbreak trap instruction kip at thevertigo dot com
2021-10-21 22:38 ` [Bug gdb/28486] " wilson at gcc dot gnu.org
2021-10-22  5:43 ` kip at thevertigo dot com
2021-10-25 20:53 ` wilson at gcc dot gnu.org
2021-10-25 21:14 ` kip at thevertigo dot com
2022-04-09 15:03 ` [Bug tdep/28486] " tromey at sourceware dot org

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).