Index: lldb/trunk/source/Core/ValueObject.cpp =================================================================== --- lldb/trunk/source/Core/ValueObject.cpp +++ lldb/trunk/source/Core/ValueObject.cpp @@ -1821,13 +1821,14 @@ case Value::eValueTypeLoadAddress: case Value::eValueTypeFileAddress: - case Value::eValueTypeHostAddress: { if(address_type) *address_type = m_value.GetValueAddressType (); return m_value.GetScalar().ULongLong(LLDB_INVALID_ADDRESS); } break; + case Value::eValueTypeHostAddress: + break; } if (address_type) *address_type = eAddressTypeInvalid; @@ -3785,7 +3786,7 @@ const bool scalar_is_load_address = false; addr_t addr = GetAddressOf (scalar_is_load_address, &address_type); error.Clear(); - if (addr != LLDB_INVALID_ADDRESS) + if (addr != LLDB_INVALID_ADDRESS && address_type != eAddressTypeHost) { switch (address_type) { @@ -3799,7 +3800,6 @@ case eAddressTypeFile: case eAddressTypeLoad: - case eAddressTypeHost: { ClangASTType clang_type = GetClangType(); if (clang_type) @@ -3816,6 +3816,8 @@ } } break; + default: + break; } } else Index: lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py =================================================================== --- lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py +++ lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py @@ -17,7 +17,6 @@ self.buildDsym() self.const_variable() - @expectedFailureClang @dwarf_test @expectedFailureGcc #xfail to get buildbot green, test failed with gcc4.8.2 def test_with_dwarf_and_run_command(self):