]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Use thiscall calling convention for class members
authorHannes Domani <ssbssa@yahoo.de>
Mon, 27 Apr 2020 13:58:09 +0000 (15:58 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Thu, 30 Apr 2020 12:36:55 +0000 (14:36 +0200)
commit627c7fb8ea16388f349b6b26e20bf017d71e51fe
tree6c3768b72f7861c80244e1cc16c1bebf88c76e7c
parentc578f16ef18fde35d5887909d5faaf0bd0118e9d
Use thiscall calling convention for class members

Non-static member functions for Windows 32bit programs need the thiscall
calling convention, so the 'this' pointer needs to be passed in ECX.

gdb/ChangeLog:

2020-04-30  Hannes Domani  <ssbssa@yahoo.de>

PR gdb/15559
* i386-tdep.c (i386_push_dummy_call): Call
i386_thiscall_push_dummy_call.
(i386_thiscall_push_dummy_call): New function.
* i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
* i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
(i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
gdb/ChangeLog
gdb/i386-tdep.c
gdb/i386-tdep.h
gdb/i386-windows-tdep.c