mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-01 03:40:02 +00:00
when building locals map given a raddbg*voff, capture locals from previously-exited scopes
This commit is contained in:
+11
-12
@@ -1,18 +1,17 @@
|
||||
// Copyright (c) 2024 Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <windows.h>
|
||||
int Foo(int x, int y)
|
||||
{
|
||||
return x + y;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
printf("1\n");
|
||||
|
||||
VOID *code = VirtualAlloc(0, 0x1000, MEM_COMMIT|MEM_RESERVE, PAGE_EXECUTE_READWRITE);
|
||||
*((uint32_t*)code) = 0xCCCCCCCC;
|
||||
|
||||
((void (__fastcall *)()) code)();
|
||||
|
||||
printf("2\n");
|
||||
int main(void)
|
||||
{
|
||||
{
|
||||
int x = 23;
|
||||
int y = 45;
|
||||
Foo(x, y);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user