On 10/16/25 13:51, Yodel Eldar via wrote:
Since your review, I've noticed that Richard Henderson already authored a host-to-GDB errno mapping function in commit 7327e6023: host_to_gdb_errno:target/m68k/m68k-semi.c; it's functionally identical to the mapping proposed in this patch (albeit missing two errno values that were undocumented in the GDB manual until recently), but written in the context of semihosting for the m68k.
Heh. I had glanced at your patch and thought "don't we do that already"?
So as to avoid duplicating code, I'm considering exporting the existing host_to_gdb_errno in a minor refactor to use that instead; do you think that's a better route?
Yes. r~
