diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-05-05 15:42:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-05-05 15:42:53 +0000 |
commit | 10a4b113218bc2f44aa4f511cc504e9b1c658bf4 (patch) | |
tree | 8083559643586b447ea1081e68a798e1494e7164 | |
parent | 06fc8a8ce6dc6e3896c672e2b809fc9a44077fed (diff) | |
download | gdb-10a4b113218bc2f44aa4f511cc504e9b1c658bf4.zip gdb-10a4b113218bc2f44aa4f511cc504e9b1c658bf4.tar.gz gdb-10a4b113218bc2f44aa4f511cc504e9b1c658bf4.tar.bz2 |
2004-05-05 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (PARM_BOUNDARY): Delete.
gdbarch.h, gdbarch.c: Re-generate.
* valops.c (PARM_BOUNDARY): Delete macro.
(value_push): Delete PARM_BOUNDARY code.
* m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/gdbarch.c | 26 | ||||
-rw-r--r-- | gdb/gdbarch.h | 9 | ||||
-rwxr-xr-x | gdb/gdbarch.sh | 1 | ||||
-rw-r--r-- | gdb/m68k-tdep.c | 1 | ||||
-rw-r--r-- | gdb/valops.c | 9 |
6 files changed, 8 insertions, 46 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7e4c9ef..d1b4101 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2004-05-05 Andrew Cagney <cagney@redhat.com> + + * gdbarch.sh (PARM_BOUNDARY): Delete. + gdbarch.h, gdbarch.c: Re-generate. + * valops.c (PARM_BOUNDARY): Delete macro. + (value_push): Delete PARM_BOUNDARY code. + * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary. + 2004-05-04 Jim Blandy <jimb@redhat.com> * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers): diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 74a799e..2523701 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -229,7 +229,6 @@ struct gdbarch gdbarch_deprecated_reg_struct_has_addr_ftype *deprecated_reg_struct_has_addr; gdbarch_stabs_argument_has_addr_ftype *stabs_argument_has_addr; int frame_red_zone_size; - int parm_boundary; const struct floatformat * float_format; const struct floatformat * double_format; const struct floatformat * long_double_format; @@ -390,7 +389,6 @@ struct gdbarch startup_gdbarch = 0, /* deprecated_reg_struct_has_addr */ default_stabs_argument_has_addr, /* stabs_argument_has_addr */ 0, /* frame_red_zone_size */ - 0, /* parm_boundary */ 0, /* float_format */ 0, /* double_format */ 0, /* long_double_format */ @@ -1875,14 +1873,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) "gdbarch_dump: NUM_REGS = %d\n", NUM_REGS); #endif -#ifdef PARM_BOUNDARY - fprintf_unfiltered (file, - "gdbarch_dump: PARM_BOUNDARY # %s\n", - XSTRING (PARM_BOUNDARY)); - fprintf_unfiltered (file, - "gdbarch_dump: PARM_BOUNDARY = %d\n", - PARM_BOUNDARY); -#endif #ifdef PC_REGNUM fprintf_unfiltered (file, "gdbarch_dump: PC_REGNUM # %s\n", @@ -4673,22 +4663,6 @@ set_gdbarch_frame_red_zone_size (struct gdbarch *gdbarch, gdbarch->frame_red_zone_size = frame_red_zone_size; } -int -gdbarch_parm_boundary (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_parm_boundary called\n"); - return gdbarch->parm_boundary; -} - -void -set_gdbarch_parm_boundary (struct gdbarch *gdbarch, - int parm_boundary) -{ - gdbarch->parm_boundary = parm_boundary; -} - const struct floatformat * gdbarch_float_format (struct gdbarch *gdbarch) { diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 0ba782c..660c68f 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1900,15 +1900,6 @@ extern void set_gdbarch_frame_red_zone_size (struct gdbarch *gdbarch, int frame_ #define FRAME_RED_ZONE_SIZE (gdbarch_frame_red_zone_size (current_gdbarch)) #endif -extern int gdbarch_parm_boundary (struct gdbarch *gdbarch); -extern void set_gdbarch_parm_boundary (struct gdbarch *gdbarch, int parm_boundary); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (PARM_BOUNDARY) -#error "Non multi-arch definition of PARM_BOUNDARY" -#endif -#if !defined (PARM_BOUNDARY) -#define PARM_BOUNDARY (gdbarch_parm_boundary (current_gdbarch)) -#endif - extern const struct floatformat * gdbarch_float_format (struct gdbarch *gdbarch); extern void set_gdbarch_float_format (struct gdbarch *gdbarch, const struct floatformat * float_format); #if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (TARGET_FLOAT_FORMAT) diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index f63dcbb..ad37034 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -673,7 +673,6 @@ M:::CORE_ADDR:frame_align:CORE_ADDR address:address F:2:DEPRECATED_REG_STRUCT_HAS_ADDR:int:deprecated_reg_struct_has_addr:int gcc_p, struct type *type:gcc_p, type m:::int:stabs_argument_has_addr:struct type *type:type:::default_stabs_argument_has_addr::0 v::FRAME_RED_ZONE_SIZE:int:frame_red_zone_size -v:2:PARM_BOUNDARY:int:parm_boundary # v:2:TARGET_FLOAT_FORMAT:const struct floatformat *:float_format::::::default_float_format (current_gdbarch)::%s:(TARGET_FLOAT_FORMAT)->name v:2:TARGET_DOUBLE_FORMAT:const struct floatformat *:double_format::::::default_double_format (current_gdbarch)::%s:(TARGET_DOUBLE_FORMAT)->name diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index 3c465ee..c54602a 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -1107,7 +1107,6 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* Stack grows down. */ set_gdbarch_inner_than (gdbarch, core_addr_lessthan); - set_gdbarch_parm_boundary (gdbarch, 32); set_gdbarch_believe_pcc_promotion (gdbarch, 1); set_gdbarch_decr_pc_after_break (gdbarch, 2); diff --git a/gdb/valops.c b/gdb/valops.c index c638c91..25c7443 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1005,10 +1005,6 @@ push_bytes (CORE_ADDR sp, char *buffer, int len) return sp; } -#ifndef PARM_BOUNDARY -#define PARM_BOUNDARY (0) -#endif - /* Push onto the stack the specified value VALUE. Pad it correctly for it to be an argument to a function. */ @@ -1019,11 +1015,6 @@ value_push (CORE_ADDR sp, struct value *arg) int container_len = len; int offset; - /* How big is the container we're going to put this value in? */ - if (PARM_BOUNDARY) - container_len = ((len + PARM_BOUNDARY / TARGET_CHAR_BIT - 1) - & ~(PARM_BOUNDARY / TARGET_CHAR_BIT - 1)); - /* Are we going to put it at the high or low end of the container? */ if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) offset = container_len - len; |