On Sun, Mar 19, 2023 at 11:13 PM Luca <l...@orpolo.org> wrote:
> > How do you even attach gdb to qemu properly without racing against
> > Mach starting up? qemu -S doesn't work (unlike on i386), since if you
> > attach GDB immediately at startup, it freaks out about some message
> > size mismatch, apparently related to the long mode switch.
>
> The only time I've seen this error was when using qemu-system-x86_64 to
> debug a 32-bit kernel, or vice-versa.

This is the issue I was facing: https://wiki.osdev.org/QEMU_and_GDB_in_long_mode

"Workaround 3: Connecting from GDB after long mode has been enabled"
is how I've tried to work around this, but this _is_ racing against
Mach startup.

> > In the meantime, please try
> > building my glibc branch with the hello world static executable and
> > see if that works on your setup.
> I might have missed it from the previous emails, do you have a git repo
> I can pull from?

Not a public one, no. But you should be able to 'git am' my patchset
onto your local repo (that is how I test your and Flavio's patches
before Samuel pushes them). If this is too inconvenient, I can attempt
to set up a publically accessible glibc repo (with my patches
included) on darnassus, but that would require some disk space and
network traffic that Richard may not appreciate.

(Isn't the git-over-email workflow "great"?)

Sergey

Reply via email to