ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
emu_trace.h
Go to the documentation of this file.
1
20
21#pragma once
22
23#include <stdint.h>
24#include <unicorn/unicorn.h>
25
26#include "emu_elf.h"
27#include "ra8_attributes.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
44typedef enum : uint32_t {
47
67void eth_hook_return(uc_engine* uc, uint32_t r0);
68
89void eth_seam_hook(uc_engine* uc, const emu_elf_source_t* elf, const char* name, void* cb);
90
107void sym_trace_install(uc_engine* uc,
108 const emu_elf_source_t* elf,
109 const char* const* names,
110 uint32_t count);
111
112#ifdef __cplusplus
113}
114#endif
ELF32 image services for the board emulator (load / symbols / vectors).
void sym_trace_install(uc_engine *uc, const emu_elf_source_t *elf, const char *const *names, uint32_t count)
Install a --trace-sym entry hook for every requested symbol present.
Definition emu_trace.c:98
void eth_seam_hook(uc_engine *uc, const emu_elf_source_t *elf, const char *name, void *cb)
Hook one symbol (if present) to cb; record it for the report.
Definition emu_trace.c:43
emu_trace_cfg_t
Sizing for the –trace-sym instrument.
Definition emu_trace.h:44
@ k_trace_sym_max
Max –trace-sym functions per run.
Definition emu_trace.h:45
void eth_hook_return(uc_engine *uc, uint32_t r0)
Emulate "return r0;" from a hooked function: set R0, branch to LR.
Definition emu_trace.c:32
Annotation-attribute framework macros for ra8-firmware.
One independently owned immutable raw-descriptor ELF source.
Definition emu_elf.h:91