diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-23 12:35:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-23 12:35:23 +0000 |
commit | 98760eab33f4963e075077cb094f9f195ca33d01 (patch) | |
tree | 60590f385f7cdd40ccf6ce14fa0437140b19686a /gdb/gould-tdep.c | |
parent | 554eb429e4555ceaa7892a8ab93c7a41045a6824 (diff) | |
download | gdb-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/gould-tdep.c')
-rw-r--r-- | gdb/gould-tdep.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/gould-tdep.c b/gdb/gould-tdep.c index 79575e0..736ab47 100644 --- a/gdb/gould-tdep.c +++ b/gdb/gould-tdep.c @@ -33,6 +33,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Number of elements in the opcode table. */ #define NOPCODES (sizeof gld_opcodes / sizeof gld_opcodes[0]) +/* Both gcc and cc return small structs in registers (i.e. in GDB + terminology, small structs don't use the struct return convention). */ +int +gould_use_struct_convention (gcc_p, type) + int gcc_p; + struct type *type; +{ + return (TYPE_LENGTH(type) > 8); +} + + /* Print the GOULD instruction at address MEMADDR in debugged memory, on STREAM. Returns length of the instruction, in bytes. */ |