gdb/gdbserver/i386-mmx-linux.c - gdb
Global variables defined
Functions defined
Source code
-
- #include "server.h"
- #include "regdef.h"
- #include "tdesc.h"
- static struct reg regs_i386_mmx_linux[] = {
- { "eax", 0, 32 },
- { "ecx", 32, 32 },
- { "edx", 64, 32 },
- { "ebx", 96, 32 },
- { "esp", 128, 32 },
- { "ebp", 160, 32 },
- { "esi", 192, 32 },
- { "edi", 224, 32 },
- { "eip", 256, 32 },
- { "eflags", 288, 32 },
- { "cs", 320, 32 },
- { "ss", 352, 32 },
- { "ds", 384, 32 },
- { "es", 416, 32 },
- { "fs", 448, 32 },
- { "gs", 480, 32 },
- { "st0", 512, 80 },
- { "st1", 592, 80 },
- { "st2", 672, 80 },
- { "st3", 752, 80 },
- { "st4", 832, 80 },
- { "st5", 912, 80 },
- { "st6", 992, 80 },
- { "st7", 1072, 80 },
- { "fctrl", 1152, 32 },
- { "fstat", 1184, 32 },
- { "ftag", 1216, 32 },
- { "fiseg", 1248, 32 },
- { "fioff", 1280, 32 },
- { "foseg", 1312, 32 },
- { "fooff", 1344, 32 },
- { "fop", 1376, 32 },
- { "", 1408, 0 },
- { "", 1408, 0 },
- { "", 1408, 0 },
- { "", 1408, 0 },
- { "", 1408, 0 },
- { "", 1408, 0 },
- { "", 1408, 0 },
- { "", 1408, 0 },
- { "", 1408, 0 },
- { "orig_eax", 1408, 32 },
- };
- static const char *expedite_regs_i386_mmx_linux[] = { "ebp", "esp", "eip", 0 };
- static const char *xmltarget_i386_mmx_linux = "i386-mmx-linux.xml";
- const struct target_desc *tdesc_i386_mmx_linux;
- void
- init_registers_i386_mmx_linux (void)
- {
- static struct target_desc tdesc_i386_mmx_linux_s;
- struct target_desc *result = &tdesc_i386_mmx_linux_s;
- result->reg_defs = regs_i386_mmx_linux;
- result->num_registers = sizeof (regs_i386_mmx_linux) / sizeof (regs_i386_mmx_linux[0]);
- result->expedite_regs = expedite_regs_i386_mmx_linux;
- result->xmltarget = xmltarget_i386_mmx_linux;
- init_target_desc (result);
- tdesc_i386_mmx_linux = result;
- }