aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-windows-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/i386-windows-tdep.c')
-rw-r--r--gdb/i386-windows-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-windows-tdep.c b/gdb/i386-windows-tdep.c
index 595c58e..686004a 100644
--- a/gdb/i386-windows-tdep.c
+++ b/gdb/i386-windows-tdep.c
@@ -114,7 +114,7 @@ i386_windows_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
calling convention is used, so the 'this' pointer is passed in ECX. */
bool thiscall = false;
- struct type *type = check_typedef (value_type (function));
+ struct type *type = check_typedef (function->type ());
if (type->code () == TYPE_CODE_PTR)
type = check_typedef (type->target_type ());