aboutsummaryrefslogtreecommitdiff
path: root/gdb/v850-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-11-23 12:35:23 +0000
committerAndrew Cagney <cagney@redhat.com>1998-11-23 12:35:23 +0000
commit98760eab33f4963e075077cb094f9f195ca33d01 (patch)
tree60590f385f7cdd40ccf6ce14fa0437140b19686a /gdb/v850-tdep.c
parent554eb429e4555ceaa7892a8ab93c7a41045a6824 (diff)
downloadgdb-98760eab33f4963e075077cb094f9f195ca33d01.zip
gdb-98760eab33f4963e075077cb094f9f195ca33d01.tar.gz
gdb-98760eab33f4963e075077cb094f9f195ca33d01.tar.bz2
CARP: Convert macro definitions of USE_STRUCT_CONVENTION into target
specific functions.
Diffstat (limited to 'gdb/v850-tdep.c')
-rw-r--r--gdb/v850-tdep.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index d6da5f3..0824724 100644
--- a/gdb/v850-tdep.c
+++ b/gdb/v850-tdep.c
@@ -48,6 +48,17 @@ struct prologue_info
static CORE_ADDR v850_scan_prologue PARAMS ((CORE_ADDR pc,
struct prologue_info *fs));
+
+
+/* Should call_function allocate stack space for a struct return? */
+int
+v850_use_struct_convention (gcc_p, type)
+ int gcc_p;
+ struct type *type;
+{
+ return (TYPE_NFIELDS (type) > 1 || TYPE_LENGTH (type) > 4);
+}
+
/* Function: scan_prologue
Scan the prologue of the function that contains PC, and record what