T-EMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Loader.h
Go to the documentation of this file.
1 //===-- temu-c/Loader.h - Binary image loading ------------------*- C++ -*-===//
2 //
3 // T-EMU: The Terma Emulator
4 // (c) Terma 2015
5 // Authors: Mattias Holm <maho (at) terma.com>
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #include <stdint.h>
14 
28 int temu_loadImage(void *mem, const char *file);
29 
30 int temu_loadRelocatedImage(void *mem, const char *file, uint64_t pa)
31  __attribute__((deprecated));
32 
45 int temu_loadBinaryImage(void *mem, const char *file, uint64_t pa);
46 
47 typedef void temu_DebugInfoCtxt;
48 
57 int temu_loadElfImage(void *mem, const char *file, uint64_t pa);
58 
59 
73 int temu_loadDebugInfo(const char *File, temu_DebugInfoCtxt **DICtxt);
74 
80 void temu_disposeDebugInfo(temu_DebugInfoCtxt *DICtxt);
81 
92 int temu_loadSrecImage(void *mem, const char *file, uint64_t pa);
93 
94 #ifdef __cplusplus
95 }
96 #endif
int temu_loadImage(void *mem, const char *file)
Loads a binary image to the memory object.
int temu_loadSrecImage(void *mem, const char *file, uint64_t pa)
Loads an SREC file without going through filetype detection.
int temu_loadBinaryImage(void *mem, const char *file, uint64_t pa)
Loads a raw binary image to the memory object at the given address.
void temu_DebugInfoCtxt
Definition: Loader.h:47
void temu_disposeDebugInfo(temu_DebugInfoCtxt *DICtxt)
Delete loaded debug info.
int temu_loadElfImage(void *mem, const char *file, uint64_t pa)
Loads an ELF file without going through filetype detection.
void void __attribute__((deprecated))
int temu_loadDebugInfo(const char *File, temu_DebugInfoCtxt **DICtxt)
Loads a debug info context from the given file.
int temu_loadRelocatedImage(void *mem, const char *file, uint64_t pa) __attribute__((deprecated))