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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to