Skip to content

Instantly share code, notes, and snippets.

View A2nkF's full-sized avatar
💭

A2nkF

💭
View GitHub Profile
5689449dfa59f73c0492cbf4aff9bca26c5a6adc38f186ec912710642375960d
#define _GNU_SOURCE
#include <pty.h>
#include <poll.h>
#include <sched.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@A2nkF
A2nkF / lldb_dump_FPU.patch
Created December 25, 2020 19:17
This patch gets lldb to save all the FPU registers when creating coredumps.
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index 463a2a52f5d..b8e9804b0e0 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -224,89 +224,52 @@ public:
PrintRegisterValue(reg_ctx, "fs", nullptr, 8, data);
PrintRegisterValue(reg_ctx, "gs", nullptr, 8, data);
- // // Write out the FPU registers
- // const size_t fpu_byte_size = sizeof(FPU);
######################################################
# IDApython script to parse the stringliteral.json
# file, Il2CppDumper spits out and load the strings
# into an idadb
#
# Usage:
# Just excute the script from within IDA and
# select the generated `stringliteral.json `
# in the file prompt
#