microsoft / WinDbg-Samples

Sample extensions, scripts, and API uses for WinDbg.
MIT License
702 stars 118 forks source link

Update EXDI description for UEFI and fix register write bug #108

Closed cfernald closed 3 months ago

cfernald commented 3 months ago
  1. Fixes a bug in CLiveExdiGdbSrvServer::SetContextEx where when setting floating point registers it still has the normal registers which as the routine will try to in terpret the values as pointers causing a access violation as those addresses are not valid in the process memory space. This is resolved by clearing the register list after each set to avoid trying to redundantly setting values at best and faulting at worst.

  2. Updates the UEFI EXDI configuration to include the vector registers as these are assumed to be present and the register set will fail early if they are not, causing not all registers to be updated.