HomePhabricator

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

Authored by stella.stamenova on Jul 2 2018, 2:50 PM.

Description

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

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.

Reviewers: asmith, labath, zturner

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D48844

llvm-svn: 336147