This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: can target code change architecture setting?
On Mon, Oct 10, 2016 at 9:48 AM, <duane@duaneellis.com> wrote:
> Question #1 Is this dual mode possible in RISCV?
Not currently, and I don't think there will be a dual mode.
There was a proposal that should allow 32-bit code to just work on
64-bit architectures, but I'm pretty sure it was not by adding a
different mode. It sounded more like the MIPS model where the ISA is
cleverly defined to not care. But unfortunately I can't find the
e-mail thread right now.
> Question #2 - How should the remote debugger respond to GDB?
For RISCV, what I would want is for it to tell GDB that it's running
on 64-bit hardware, because it is. I see no reason to hide from the
user what's actually happening in the hardware.
Tim