This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog amd64-windows-tdep.c
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Tue, 24 Sep 2013 16:13:40 +0000
- Subject: src/gdb ChangeLog amd64-windows-tdep.c
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2013-09-24 16:13:40
Modified files:
gdb : ChangeLog amd64-windows-tdep.c
Log message:
Reimplement function calls on amd64-windows
This patch provides a standalone implementation of function calls
on amd64-windows, instead of providing some bits and pieces hooking
into the function call implementation meant for sysV (in amd64-tdep).
It makes better sense to do it this way, because the two ABIs are
actually very different; for instance, the concept of argument
classification, which is so central in the sysV ABI and drove the
the implementation in amd64-tdep, makes no sense for Windows. It
is therefore better for the Windows implementation to be completely
separate, rather than rely on adaptations of the sysV implementation.
gdb/ChangeLog:
* amd64-tdep.c: #include "value.h"
(amd64_windows_classify): Delete.
(amd64_windows_passed_by_integer_register)
(amd64_windows_passed_by_xmm_register)
(amd64_windows_passed_by_pointer)
(amd64_windows_adjust_args_passed_by_pointer)
(amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
(amd64_windows_push_dummy_call): New functions.
(amd64_windows_init_abi): Remove setting of
tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
tdep->classify, tdep->memory_args_by_pointer and
tdep->integer_param_regs_saved_in_caller_frame.
Add call to set_gdbarch_push_dummy_call.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.16025&r2=1.16026
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/amd64-windows-tdep.c.diff?cvsroot=src&r1=1.17&r2=1.18