This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Provide default for USE_STRUCT_CONVENTION


Hello,

The attached cleans up another bit of the multi-arch conversion. 
gdbarch.sh (instead of values.c) provides the non-multi-arch default for 
USE_STRUCT_CONVENTION.

enjoy,
Andrew
2001-11-07  Andrew Cagney  <ac131313@redhat.com>

	* gdbarch.sh (USE_STRUCT_CONVENTION): Default to
	generic_use_struct_convention.
	* gdbarch.h, gdbarch.c: Regenerate.
	* values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
	gdbarch.h.

Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.90
diff -p -r1.90 gdbarch.sh
*** gdbarch.sh	2001/11/07 04:28:38	1.90
--- gdbarch.sh	2001/11/07 22:38:18
*************** f:2:POP_FRAME:void:pop_frame:void:-:::0
*** 484,490 ****
  f:2:STORE_STRUCT_RETURN:void:store_struct_return:CORE_ADDR addr, CORE_ADDR sp:addr, sp:::0
  f:2:STORE_RETURN_VALUE:void:store_return_value:struct type *type, char *valbuf:type, valbuf:::0
  F:2:EXTRACT_STRUCT_VALUE_ADDRESS:CORE_ADDR:extract_struct_value_address:char *regbuf:regbuf:::0
! f:2:USE_STRUCT_CONVENTION:int:use_struct_convention:int gcc_p, struct type *value_type:gcc_p, value_type:::0
  #
  f:2:FRAME_INIT_SAVED_REGS:void:frame_init_saved_regs:struct frame_info *frame:frame::0:0
  F:2:INIT_EXTRA_FRAME_INFO:void:init_extra_frame_info:int fromleaf, struct frame_info *frame:fromleaf, frame:::0
--- 484,490 ----
  f:2:STORE_STRUCT_RETURN:void:store_struct_return:CORE_ADDR addr, CORE_ADDR sp:addr, sp:::0
  f:2:STORE_RETURN_VALUE:void:store_return_value:struct type *type, char *valbuf:type, valbuf:::0
  F:2:EXTRACT_STRUCT_VALUE_ADDRESS:CORE_ADDR:extract_struct_value_address:char *regbuf:regbuf:::0
! f:2:USE_STRUCT_CONVENTION:int:use_struct_convention:int gcc_p, struct type *value_type:gcc_p, value_type:::generic_use_struct_convention::0
  #
  f:2:FRAME_INIT_SAVED_REGS:void:frame_init_saved_regs:struct frame_info *frame:frame::0:0
  F:2:INIT_EXTRA_FRAME_INFO:void:init_extra_frame_info:int fromleaf, struct frame_info *frame:fromleaf, frame:::0
Index: values.c
===================================================================
RCS file: /cvs/src/src/gdb/values.c,v
retrieving revision 1.25
diff -p -r1.25 values.c
*** values.c	2001/10/16 01:58:07	1.25
--- values.c	2001/11/07 22:38:20
*************** generic_use_struct_convention (int gcc_p
*** 1382,1392 ****
  	       || TYPE_LENGTH (value_type) == 8));
  }
  
- #ifndef USE_STRUCT_CONVENTION
- #define USE_STRUCT_CONVENTION(gcc_p,type) generic_use_struct_convention (gcc_p, type)
- #endif
- 
- 
  /* Return true if the function specified is using the structure returning
     convention on this machine to return arguments, or 0 if it is using
     the value returning convention.  FUNCTION is the value representing
--- 1382,1387 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]