Skip to content

Commit

Permalink
Fix arm64 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
thaystg committed Mar 9, 2021
1 parent b5de06d commit a8f0318
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/debug/createdump/createdump.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ typedef int T_CONTEXT;
#include <elf.h>
#include <link.h>
#endif
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#else
#include <dbghelp.h>
Expand Down
2 changes: 2 additions & 0 deletions src/coreclr/debug/dbgutil/elfreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#include <clrdata.h>
#include <cor.h>
#include <cordebug.h>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include "elfreader.h"

Expand Down
6 changes: 4 additions & 2 deletions src/coreclr/debug/dbgutil/machoreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#include <clrdata.h>
#include <cor.h>
#include <cordebug.h>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <arrayholder.h>
#include "machoreader.h"
Expand Down Expand Up @@ -72,7 +74,7 @@ TryGetSymbol(ICorDebugDataTarget* dataTarget, uint64_t baseAddress, const char*
}

//--------------------------------------------------------------------
// MachO module
// MachO module
//--------------------------------------------------------------------

MachOModule::MachOModule(MachOReader& reader, mach_vm_address_t baseAddress, mach_header_64* header, std::string* name) :
Expand Down Expand Up @@ -202,7 +204,7 @@ MachOModule::ReadLoadCommands()
m_segments.push_back(segment);

// Calculate the load bias for the module. This is the value to add to the vmaddr of a
// segment to get the actual address.
// segment to get the actual address.
if (strcmp(segment->segname, SEG_TEXT) == 0)
{
m_loadBias = m_baseAddress - segment->vmaddr;
Expand Down
2 changes: 2 additions & 0 deletions src/coreclr/gc/unix/gcenv.unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#include <cstddef>
#include <cstdio>
#include <cassert>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <cinttypes>
#include <memory>
#include <pthread.h>
Expand Down
4 changes: 3 additions & 1 deletion src/coreclr/pal/src/exception/remote-unwind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "pal/debug.h"
#include "pal_endian.h"
#include "pal.h"
#ifndef DBI_COMPONENT_MONO
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
Expand Down Expand Up @@ -85,7 +85,9 @@ SET_DEFAULT_DEBUG_CHANNEL(EXCEPT);
#else // HOST_UNIX

#include <windows.h>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <libunwind.h>
#include "debugmacros.h"
Expand Down
2 changes: 2 additions & 0 deletions src/coreclr/pal/src/exception/seh-unwind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ Module Name:
#else // HOST_UNIX

#include <windows.h>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <libunwind.h>
#include "debugmacros.h"
Expand Down
2 changes: 2 additions & 0 deletions src/coreclr/pal/src/misc/sysinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ Revision History:
#include <sched.h>
#include <errno.h>
#include <unistd.h>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <sys/types.h>

Expand Down

0 comments on commit a8f0318

Please sign in to comment.