Debugging memory and CPU state dump routines. More...
Go to the source code of this file.
Macros | |
#define | B(F) ((rflags & F) ? 1 : 0) |
Functions | |
int | dump_registers (char *buf, size_t bufsize, const registers_t *regs) |
Dump the contents of a CPU registers structure to a string buffer. More... | |
int | dump_cpuflags (char *buf, size_t bufsize, uint64_t rflags) |
Dump the contents of the CPU flags register. More... | |
int | dump_memory (char *buf, size_t bufsize, const void *mem, size_t memsize, enum dumpstyle style) |
Dump the contents of memory. More... | |
Variables | |
static const char | digit [] = "0123456789abcdef" |
Debugging memory and CPU state dump routines.
Definition in file dump.c.
#define B | ( | F | ) | ((rflags & F) ? 1 : 0) |
Referenced by dump_cpuflags().
int dump_registers | ( | char * | buf, |
size_t | bufsize, | ||
const registers_t * | regs | ||
) |
Dump the contents of a CPU registers structure to a string buffer.
[in] | buf | Pointer to the character buffer to hold the resulting null-terminated string. |
[in] | bufsize | Size of the buffer used to hold the string. |
[in] | regs | Pointer to a CPU registers structure. |
Definition at line 16 of file dump.c.
Referenced by dump_context().
int dump_cpuflags | ( | char * | buf, |
size_t | bufsize, | ||
uint64_t | rflags | ||
) |
Dump the contents of the CPU flags register.
[in] | buf | Pointer to the character buffer to hold the resulting null-terminated string. |
[in] | bufsize | Size of the buffer used to hold the string. |
[in] | rflags | The 64-bit rflags register value. |
Definition at line 33 of file dump.c.
Referenced by dump_context().
int dump_memory | ( | char * | buf, |
size_t | bufsize, | ||
const void * | mem, | ||
size_t | memsize, | ||
enum dumpstyle | style | ||
) |
Dump the contents of memory.
[in] | buf | Pointer to the character buffer to hold the resulting null-terminated string. |
[in] | bufsize | Size of the buffer used to hold the string. |
[in] | mem | Pointer to the first byte of memory to dump. |
[in] | memsize | Number of memory bytes to dump. |
[in] | style | The output style used for the memory dump. |
Definition at line 50 of file dump.c.
Referenced by dump_context().
|
static |
Definition at line 13 of file dump.c.
Referenced by dump_memory().