Hi guys,
I'm trying to debug a hypervisor program at EL2 on QEMU with gdb, and a few questions coming up.
I can step thru the code at EL1 before hitting the hvc instruction, once that instruction invoked, the gdb hangs.
I read the spec, and follow the man to do the following things: pstate.d is unmasked, and mdscr_el1.kde is on, and mdcr_el2.tde is on.
Then an exception taken in el2 vec table. My question are:
Q1: Do I have to write my own debug exception handler or gdb can handle that automatically?
Q2: Is this not the properly way to debug EL2?
Q2: If I run the OS & Hypervisor on QEMU, is it possible to debug them thru DS-5? (without using Fast Model)
Thanks a lot
I checked into past versions of DS-5 and even going back a few years doesn't help the problem. The best way forward may be to modify the qemu gdbserver. The error is probably not a version number, but the qemu gdbserver is reporting a packet type as unsupported.
Just to confirm, using DS-5 with a Fast Model doesn't require any hardware or software support. The DS-5 debugger makes a direct connection to the model with full debugging.
Thanks,
Jason