Hi All,

I  am  working on a GDB stub that will create a bridge between GDB and
the  VirtualBox debugger interface. When I was doing basic tests, I've
noticed  that  VirtualBox  does not support setting registers from the
debugger interface:

VMMR3DECL(int) DBGFR3RegNmSet(PVM pVM, VMCPUID idDefCpu, const char *pszReg, 
PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType)
{
    return VERR_NOT_IMPLEMENTED;
}

I have implemented the function based on the dbgfR3RegCpuQueryWorker()
function and tested it via a debugger plugin.

I  have  attached  a  patch  available  under  the MIT license. Please
let  me  know  if  I  need  to change anything before the patch can be
included in the main repository.

The patch also fixes a bug in dbgcHlpVarToNumber() (*pu64Number is not
changed for DBGCVAR_TYPE_NUMBER).

-- 
Best Regards,
 Ivan Shcherbakov                          mailto:[email protected]

Attachment: setRegister.patch
Description: Binary data

_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to