This is an archive of the discontinued LLVM Phabricator instance.

[lldbsuite, windows] Don't crash LLDB when we try to retrieve a register on Windows
ClosedPublic

Authored by stella.stamenova on Jul 2 2018, 11:28 AM.

Details

Summary
  1. When ReadRegister is called with a null register into on Windows, rather than crashing due to an access violation, simply return false. Not all registers and properties will be read or calculated correctly, but that is consistent with other platforms that also return false in that case
  2. Update a couple of tests to reference pr37995 as their reason for failure since it is much more accurate. Support for floating point registers doesn't exist on Windows at all, rather than having issues.

Diff Detail

Repository
rL LLVM

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jul 2 2018, 2:55 PM
This revision was automatically updated to reflect the committed changes.