[Lldb-commits] [lldb] [lldb][Windows] Fix "Invalid register name" for eax on x86_64 attach (PR #203498)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Sun Jun 14 22:23:00 PDT 2026
jasonmolenda wrote:
We have two gdb remote serial packets that tell us what kind of target we're working with -- `qHostInfo` tells us about the architecture of the computer, `qProcessInfo` tells us about the architecture of the process. For instance, you might have an x86_64 machine but if it's Darwin it may be able to run a 32-bit i386 process, so `qProcessInfo` is the one we want to use when the machine arch may not tell us the arch of the process.
Does your stub respond with those? We usually ask for `qHostInfo` and `qProcessInfo` before we fetch the `target.xml` register definitions. (fwiw many `target.xml` files also have a `<architecture>` key but it's never been load bearing for setting the Target's ArchSpec.
https://github.com/llvm/llvm-project/pull/203498
More information about the lldb-commits
mailing list