public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31691] New: Cannot read high address memory on riscv64
@ 2024-05-02  3:07 tsng.nullptr at outlook dot com
  2024-05-02 15:07 ` [Bug gdb/31691] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tsng.nullptr at outlook dot com @ 2024-05-02  3:07 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31691
           Summary: Cannot read high address memory on riscv64
           Product: gdb
           Version: 14.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: tsng.nullptr at outlook dot com
  Target Milestone: ---

When emulating bare metal riscv64 program with qemu, gdb is unable to read
memory of high address and saying an error "That operation is not available on
integers of more than 8 bytes".

To be more specefic, assuming the program is loadded at 0x80000000, and it uses
SV39 address translation. The page table is translating 0xffffffff80000000 to
0x80000000 and 0x80000000 to 0x80000000. Now, when I try to use "x 0x80000000",
gdb works as expected, while If I try "x 0xffffffff80000000", it shows the
error mentioned above.

The last normal version of gdb is 13.1, qemu version does not affect the
result.

riscv-system-qemu version: 7.1.0-9.0.0
riscv-elf-gdb version: 14.2

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

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

* [Bug gdb/31691] Cannot read high address memory on riscv64
  2024-05-02  3:07 [Bug gdb/31691] New: Cannot read high address memory on riscv64 tsng.nullptr at outlook dot com
@ 2024-05-02 15:07 ` tromey at sourceware dot org
  2024-05-02 15:20 ` tsng.nullptr at outlook dot com
  2024-05-02 15:33 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2024-05-02 15:07 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
What does 'show lang' say?

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

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

* [Bug gdb/31691] Cannot read high address memory on riscv64
  2024-05-02  3:07 [Bug gdb/31691] New: Cannot read high address memory on riscv64 tsng.nullptr at outlook dot com
  2024-05-02 15:07 ` [Bug gdb/31691] " tromey at sourceware dot org
@ 2024-05-02 15:20 ` tsng.nullptr at outlook dot com
  2024-05-02 15:33 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tsng.nullptr at outlook dot com @ 2024-05-02 15:20 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from tsng.nullptr at outlook dot com <tsng.nullptr at outlook dot com> ---
(In reply to Tom Tromey from comment #1)
> What does 'show lang' say?

It shows 'The current source language is "auto; current rust".'

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

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

* [Bug gdb/31691] Cannot read high address memory on riscv64
  2024-05-02  3:07 [Bug gdb/31691] New: Cannot read high address memory on riscv64 tsng.nullptr at outlook dot com
  2024-05-02 15:07 ` [Bug gdb/31691] " tromey at sourceware dot org
  2024-05-02 15:20 ` tsng.nullptr at outlook dot com
@ 2024-05-02 15:33 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2024-05-02 15:33 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Ok, thanks.

As a workaround you can temporarily 'set lang c' before the 'x'
operation.

I'm going to mark this bug as a dup of the other one.

*** This bug has been marked as a duplicate of bug 31565 ***

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

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

end of thread, other threads:[~2024-05-02 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-02  3:07 [Bug gdb/31691] New: Cannot read high address memory on riscv64 tsng.nullptr at outlook dot com
2024-05-02 15:07 ` [Bug gdb/31691] " tromey at sourceware dot org
2024-05-02 15:20 ` tsng.nullptr at outlook dot com
2024-05-02 15:33 ` 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).