#include <string.h>
#include <string>
+#define CONVERT_FROM_SIGN_EXTENDED(offset) ((ULONG_PTR)(offset))
+
ULONG g_currentThreadIndex = -1;
ULONG g_currentThreadSystemId = -1;
char *g_coreclrDirectory;
uint8_t byte;
int cch;
+ // lldb doesn't expect sign-extended address
+ offset = CONVERT_FROM_SIGN_EXTENDED(offset);
+
if (buffer == NULL)
{
hr = E_INVALIDARG;
lldb::SBError error;
size_t read = 0;
+ // lldb doesn't expect sign-extended address
+ offset = CONVERT_FROM_SIGN_EXTENDED(offset);
+
lldb::SBProcess process = GetCurrentProcess();
if (!process.IsValid())
{
lldb::SBError error;
size_t written = 0;
+ // lldb doesn't expect sign-extended address
+ offset = CONVERT_FROM_SIGN_EXTENDED(offset);
+
lldb::SBProcess process = GetCurrentProcess();
if (!process.IsValid())
{
lldb::SBSymbol symbol;
std::string str;
+ // lldb doesn't expect sign-extended address
+ offset = CONVERT_FROM_SIGN_EXTENDED(offset);
+
target = m_debugger.GetSelectedTarget();
if (!target.IsValid())
{
lldb::SBTarget target;
int numModules;
+ // lldb doesn't expect sign-extended address
+ offset = CONVERT_FROM_SIGN_EXTENDED(offset);
+
target = m_debugger.GetSelectedTarget();
if (!target.IsValid())
{
lldb::SBFileSpec fileSpec;
HRESULT hr = S_OK;
+ // lldb doesn't expect sign-extended address
+ base = CONVERT_FROM_SIGN_EXTENDED(base);
+
target = m_debugger.GetSelectedTarget();
if (!target.IsValid())
{
lldb::SBLineEntry lineEntry;
std::string str;
+ // lldb doesn't expect sign-extended address
+ offset = CONVERT_FROM_SIGN_EXTENDED(offset);
+
target = m_debugger.GetSelectedTarget();
if (!target.IsValid())
{