Debugging long mode kernel (gdb + qemu)?
Posted: Thu Apr 14, 2016 12:50 am
Hi.
I noticed that gdb has trouble when qemu switches from protected mode to long mode.
I found 'kind of a solution' in http://forum.osdev.org/viewtopic.php?f=1&t=28262
so I can gt around this in an ugly way: either disconnect+reconnect every time or
recompile gdb with this hack. So far I've just reconnected every time..
So the question is, do you know if there has been any official improvements on
this, either in gdb or qemu, or some cleaner solution to get around the issue?
I noticed that gdb has trouble when qemu switches from protected mode to long mode.
I found 'kind of a solution' in http://forum.osdev.org/viewtopic.php?f=1&t=28262
so I can gt around this in an ugly way: either disconnect+reconnect every time or
recompile gdb with this hack. So far I've just reconnected every time..
So the question is, do you know if there has been any official improvements on
this, either in gdb or qemu, or some cleaner solution to get around the issue?