This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 4/4] m68k: Install return_with_first_hidden_param_p
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: <cltang at codesourcery dot com>
- Date: Wed, 18 Apr 2012 21:17:53 +0800
- Subject: [PATCH 4/4] m68k: Install return_with_first_hidden_param_p
- References: <1334755073-26528-1-git-send-email-yao@codesourcery.com>
Build m68k-linux gdb. Completely untested.
gdb:
2012-04-18 Yao Qi <yao@codesourcery.com>
* m68k-tdep.c (m68k_return_with_first_hidden_param_p): New.
(m68k_gdbarch_init): Install m68k_return_with_first_hidden_param_p.
---
gdb/m68k-tdep.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index ee72026..fe609c2 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -1051,6 +1051,16 @@ m68k_get_longjmp_target (struct frame_info *frame, CORE_ADDR *pc)
}
+/* This is the implementation of gdbarch method
+ return_with_first_hidden_param_p. */
+
+static int
+m68k_return_with_first_hidden_param_p (struct gdbarch *gdbarch,
+ struct type *type)
+{
+ return 0;
+}
+
/* System V Release 4 (SVR4). */
void
@@ -1236,6 +1246,8 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Function call & return. */
set_gdbarch_push_dummy_call (gdbarch, m68k_push_dummy_call);
set_gdbarch_return_value (gdbarch, m68k_return_value);
+ set_gdbarch_return_with_first_hidden_param_p (gdbarch,
+ m68k_return_with_first_hidden_param_p);
/* Disassembler. */
--
1.7.0.4