#ifdef __x86_64__
#include "arch/amd64.h"
#endif
+#include "x86-tdesc.h"
/* Return the right x86_linux_tdesc index for a given XCR0. Return
X86_TDESC_LAST if can't find a match. */
{
*tdesc = i386_create_target_description (xcr0, true);
- init_target_desc (*tdesc);
-
-#ifndef IN_PROCESS_AGENT
- static const char *expedite_regs_i386[] = { "ebp", "esp", "eip", NULL };
- (*tdesc)->expedite_regs = expedite_regs_i386;
-#endif
+ init_target_desc (*tdesc, i386_expedite_regs);
}
return *tdesc;;
{
*tdesc = amd64_create_target_description (xcr0, is_x32, true);
- init_target_desc (*tdesc);
-
-#ifndef IN_PROCESS_AGENT
- static const char *expedite_regs_amd64[] = { "rbp", "rsp", "rip", NULL };
- (*tdesc)->expedite_regs = expedite_regs_amd64;
-#endif
+ init_target_desc (*tdesc, amd64_expedite_regs);
}
return *tdesc;
}