diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-01-04 22:37:49 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-01-04 22:37:49 +0000 |
commit | 1e6982353631fce67c8b11e8f286395265caac49 (patch) | |
tree | cce6f7cc76d875f22e64ee18cfca434724aa04ed /gdb/hppa-tdep.c | |
parent | 46ca2cc2aa172416b15c91bf0751f03fd896ac59 (diff) | |
download | gdb-1e6982353631fce67c8b11e8f286395265caac49.zip gdb-1e6982353631fce67c8b11e8f286395265caac49.tar.gz gdb-1e6982353631fce67c8b11e8f286395265caac49.tar.bz2 |
gdb/
* buildsym.h (processing_hp_compilation): Remove obsolete variable.
* gdbarch.sh Remove include of "value.h" in gdbarch.h.
(COERCE_FLOAT_TO_DOUBLE): Remove.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
* Makefile.in: Remove value_h from gdbarch_h.
* valops.c (coerce_float_to_double): New variable.
(default_coerce_float_to_double): Remove.
(standard_coerce_float_to_double): Remove.
(value_arg_coerce): Use coerce_float_to_double.
(_initialize_valops): Add "set coerce-float-to-double".
* value.h (default_coerce_float_to_double): Remove prototype.
(standard_coerce_float_to_double): Remove prototype.
* hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
prototyped.
* mdebugread.c (parse_symbol): Likewise.
* stabsread.c (define_symbol): Mark all functions as prototyped.
* hppa-tdep.c (hppa_coerce_float_to_double): Remove.
* alpha-tdep.c (alpha_gdbarch_init): Remove call to
set_gdbarch_coerce_float_to_double.
* arm-tdep.c (arm_gdbarch_init): Likewise.
* frv-tdep.c (frv_gdbarch_init): Likewise.
* h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
* i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
* mips-tdep.c (mips_gdbarch_init): Likewise.
(mips_coerce_float_to_double): Remove.
* rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
(rs6000_coerce_float_to_double): Remove.
* s390-tdep.c (s390_gdbarch_init): Likewise.
* sh-tdep.c (sh_gdbarch_init): Likewise.
(sh_coerce_float_to_double): Remove.
* sparc-tdep.c (sparc_gdbarch_init): Likewise.
(sparc_coerce_float_to_double): Remove.
* v850-tdep.c (v850_gdbarch_init): Likewise.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
* config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
* config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
(hppa_coerce_float_to_double): Remove prototype.
* config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
doc/
* gdb.texinfo (Controlling GDB): Add ABI section. Document
"set coerce-float-to-double".
* gdbint.texinfo (COERCE_FLOAT_TO_DOUBLE): Remove documentation.
testsuite/
* gdb.base/callfuncs.exp: Don't XFAIL unprototyped functions for
stabs.
* gdb.base/completion.exp: Allow marker1(void) as well as marker1().
* gdb.base/whatis.exp: Always allow (void) after function names.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 3caa3fc..9fad7aa 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1,7 +1,7 @@ /* Target-dependent code for the HP PA architecture, for GDB. Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995, - 1996, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + 1996, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by the Center for Software Science at the University of Utah (pa-gdb-bugs@cs.utah.edu). @@ -175,7 +175,6 @@ CORE_ADDR hppa_smash_text_address (CORE_ADDR addr); CORE_ADDR hppa_target_read_pc (ptid_t ptid); void hppa_target_write_pc (CORE_ADDR v, ptid_t ptid); CORE_ADDR hppa_target_read_fp (void); -int hppa_coerce_float_to_double (struct type *formal, struct type *actual); typedef struct { @@ -4942,19 +4941,6 @@ hppa_smash_text_address (CORE_ADDR addr) return (addr &= ~0x3); } -int -hppa_coerce_float_to_double (struct type *formal, struct type *actual) -{ - /* FIXME: For the pa, it appears that the debug info marks the - parameters as floats regardless of whether the function is - prototyped, but the actual values are passed as doubles for the - non-prototyped case and floats for the prototyped case. Thus we - choose to make the non-prototyped case work for C and break the - prototyped case, since the non-prototyped case is probably much - more common. */ - return (current_language -> la_language == language_c); -} - static struct gdbarch * hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) { @@ -5040,7 +5026,6 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_read_pc (gdbarch, hppa_target_read_pc); set_gdbarch_write_pc (gdbarch, hppa_target_write_pc); set_gdbarch_read_fp (gdbarch, hppa_target_read_fp); - set_gdbarch_coerce_float_to_double (gdbarch, hppa_coerce_float_to_double); return gdbarch; } |