Skip to content

Error when compiling on ARM64 #77

Description

@VerizonLover

It doesn't matter what the target is ('Release' or 'ReleaseDll').
When compiling on ARM64, I get the following errors:

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error (active)	E0135	class "_CONTEXT" has no member "Rip"	Explorer	C:\Users\Adam\source\repos\ExplorerEx\src\dbg.h	117		
Error (active)	E0135	class "_CONTEXT" has no member "Rbp"	Explorer	C:\Users\Adam\source\repos\ExplorerEx\src\dbg.h	119		
Error (active)	E0135	class "_CONTEXT" has no member "Rsp"	Explorer	C:\Users\Adam\source\repos\ExplorerEx\src\dbg.h	121		
Message	lnt-uninitialized-local	Local variable is not initialized.	Explorer	C:\Users\Adam\source\repos\ExplorerEx\src\dbg.h	164		
Message	lnt-uninitialized-local	Local variable is not initialized.	Explorer	C:\Users\Adam\source\repos\ExplorerEx\src\dbg.h	180		

It doesn't matter what the target is ('Release' or 'ReleaseDll).

The snippet in question (from dbg.h) is:

#if _WIN64
		STACKFRAME frame = {};
		frame.AddrPC.Offset = context.Rip;
		frame.AddrPC.Mode = AddrModeFlat;
		frame.AddrFrame.Offset = context.Rbp;
		frame.AddrFrame.Mode = AddrModeFlat;
		frame.AddrStack.Offset = context.Rsp;
		frame.AddrStack.Mode = AddrModeFlat;
#else
		STACKFRAME frame = {};
		frame.AddrPC.Offset = context.Eip;
		frame.AddrPC.Mode = AddrModeFlat;
		frame.AddrFrame.Offset = context.Ebp;
		frame.AddrFrame.Mode = AddrModeFlat;
		frame.AddrStack.Offset = context.Esp;
		frame.AddrStack.Mode = AddrModeFlat;
#endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions