when building locals map given a raddbg*voff, capture locals from previously-exited scopes

This commit is contained in:
Ryan Fleury
2024-01-24 13:00:17 -08:00
parent 8789e763fd
commit 26b8603a59
2 changed files with 68 additions and 24 deletions
+11 -12
View File
@@ -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;
}