dwarf-semantics/src/c_context.c

19 lines
427 B
C

#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#define NB_REGS 32 /* put the number of registers of your platform here */
typedef uintptr_t* regs_t; // Array of size at least NB_REGS
regs_t unwind_frame(uintptr_t ip, regs_t old_ctx) {
regs_t new_ctx = (regs_t) malloc(sizeof(uintptr_t) * NB_REGS);
assert(new_ctx != NULL);
// ===== INSERT GENERATED CODE HERE =====
end_ifs:
return new_ctx;
}