Re: can target code change architecture setting?
Tim Newsome <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAGDihendk5wTurD+4tesEePK09f3eSxpKZ=0BmDq1dEoaFOiZA@mail.gmail.com> |
On Mon, Oct 10, 2016 at 9:48 AM, <[email protected]> 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