+2011-09-23 Joseph Myers <joseph@codesourcery.com>
+
+ PR gdb/13079
+ * i386-tdep.c (i386_frame_align): New.
+ (i386_gdbarch_init): Use i386_frame_align.
+
2011-09-23 Yao Qi <yao@codesourcery.com>
* i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
/* See the end of i386_push_dummy_call. */
return frame_id_build (fp + 8, get_frame_pc (this_frame));
}
+
+/* _Decimal128 function return values need 16-byte alignment on the
+ stack. */
+
+static CORE_ADDR
+i386_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp)
+{
+ return sp & -(CORE_ADDR)16;
+}
\f
/* Figure out where the longjmp will land. Slurp the args out of the
/* Call dummy code. */
set_gdbarch_push_dummy_call (gdbarch, i386_push_dummy_call);
+ set_gdbarch_frame_align (gdbarch, i386_frame_align);
set_gdbarch_convert_register_p (gdbarch, i386_convert_register_p);
set_gdbarch_register_to_value (gdbarch, i386_register_to_value);