diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-28 06:16:49 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-28 06:16:49 +0000 |
commit | 6b08edadd9323771e6f533f7bac2c0656b89f11d (patch) | |
tree | 6eb2abef2b4f4038177307e05af8ad7325cda486 /gdb | |
parent | 108d6ead324614db8f129e4f7b336cbf4dc464e5 (diff) | |
download | gdb-6b08edadd9323771e6f533f7bac2c0656b89f11d.zip gdb-6b08edadd9323771e6f533f7bac2c0656b89f11d.tar.gz gdb-6b08edadd9323771e6f533f7bac2c0656b89f11d.tar.bz2 |
2005-01-28 Andrew Cagney <cagney@gnu.org>
* gnu-v2-abi.h: New file.
* gnu-v2-abi.c: Include "gnu-v2-abi.h".
(gnuv2_baseclass_offset): Delete declaration.
* hpacc-abi.c: Include "gnu-v2-abi.h".
(gnuv2_baseclass_offset): Delete extern declaration.
* Makefile.in: Update dependencies.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/Makefile.in | 11 | ||||
-rw-r--r-- | gdb/gnu-v2-abi.c | 5 | ||||
-rw-r--r-- | gdb/gnu-v2-abi.h | 30 | ||||
-rw-r--r-- | gdb/hpacc-abi.c | 7 |
5 files changed, 49 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0b24bb8..72ec92b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2005-01-28 Andrew Cagney <cagney@gnu.org> + * gnu-v2-abi.h: New file. + * gnu-v2-abi.c: Include "gnu-v2-abi.h". + (gnuv2_baseclass_offset): Delete declaration. + * hpacc-abi.c: Include "gnu-v2-abi.h". + (gnuv2_baseclass_offset): Delete extern declaration. + * Makefile.in: Update dependencies. + * doublest.c (floatformat_is_negative, floatformat_is_nan) (floatformat_mantissa, get_field): Make the buffer a const bfd_byte, simplify. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 5184070..5305da5 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -700,6 +700,7 @@ gdb_vfork_h = gdb_vfork.h gdb_wait_h = gdb_wait.h glibc_tdep_h = glibc-tdep.h gnu_nat_h = gnu-nat.h +gnu_v2_abi_h = gnu-v2-abi.h gregset_h = gregset.h hppa_tdep_h = hppa-tdep.h i386bsd_nat_h = i386bsd-nat.h @@ -1965,7 +1966,8 @@ gnu-nat.o: gnu-nat.c $(gdb_string_h) $(defs_h) $(inferior_h) $(symtab_h) \ $(gnu_nat_h) $(exc_request_S_h) $(notify_S_h) $(process_reply_S_h) \ $(msg_reply_S_h) $(exc_request_U_h) $(msg_U_h) gnu-v2-abi.o: gnu-v2-abi.c $(defs_h) $(gdb_string_h) $(symtab_h) \ - $(gdbtypes_h) $(value_h) $(demangle_h) $(cp_abi_h) $(cp_support_h) + $(gdbtypes_h) $(value_h) $(demangle_h) $(cp_abi_h) $(cp_support_h) \ + $(gnu_v2_abi_h) gnu-v3-abi.o: gnu-v3-abi.c $(defs_h) $(value_h) $(cp_abi_h) $(cp_support_h) \ $(demangle_h) $(gdb_assert_h) $(gdb_string_h) go32-nat.o: go32-nat.c $(defs_h) $(inferior_h) $(gdb_wait_h) $(gdbcore_h) \ @@ -1973,7 +1975,7 @@ go32-nat.o: go32-nat.c $(defs_h) $(inferior_h) $(gdb_wait_h) $(gdbcore_h) \ $(i387_tdep_h) $(i386_tdep_h) $(value_h) $(regcache_h) \ $(gdb_string_h) hpacc-abi.o: hpacc-abi.c $(defs_h) $(value_h) $(gdb_regex_h) $(gdb_string_h) \ - $(gdbtypes_h) $(gdbcore_h) $(cp_abi_h) + $(gdbtypes_h) $(gdbcore_h) $(cp_abi_h) $(gnu_v2_abi_h) hppabsd-nat.o: hppabsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \ $(hppa_tdep_h) hppabsd-tdep.o: hppabsd-tdep.c $(defs_h) $(arch_utils_h) $(osabi_h) \ @@ -2337,7 +2339,8 @@ ppc-linux-nat.o: ppc-linux-nat.c $(defs_h) $(gdb_string_h) $(frame_h) \ ppc-linux-tdep.o: ppc-linux-tdep.c $(defs_h) $(frame_h) $(inferior_h) \ $(symtab_h) $(target_h) $(gdbcore_h) $(gdbcmd_h) $(symfile_h) \ $(objfiles_h) $(regcache_h) $(value_h) $(osabi_h) $(regset_h) \ - $(solib_svr4_h) $(ppc_tdep_h) $(trad_frame_h) $(frame_unwind_h) + $(solib_svr4_h) $(ppc_tdep_h) $(trad_frame_h) $(frame_unwind_h) \ + $(tramp_frame_h) ppcnbsd-nat.o: ppcnbsd-nat.c $(defs_h) $(inferior_h) $(gdb_assert_h) \ $(gdbcore_h) $(regcache_h) $(bsd_kvm_h) $(ppc_tdep_h) \ $(ppcnbsd_tdep_h) $(inf_ptrace_h) @@ -2438,7 +2441,7 @@ rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(symtab_h) \ $(reggroups_h) $(libbfd_h) $(coff_internal_h) $(libcoff_h) \ $(coff_xcoff_h) $(libxcoff_h) $(elf_bfd_h) $(solib_svr4_h) \ $(ppc_tdep_h) $(gdb_assert_h) $(dis_asm_h) $(trad_frame_h) \ - $(frame_unwind_h) $(frame_base_h) + $(frame_unwind_h) $(frame_base_h) $(reggroups_h) s390-nat.o: s390-nat.c $(defs_h) $(tm_h) $(regcache_h) $(inferior_h) \ $(s390_tdep_h) s390-tdep.o: s390-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) $(inferior_h) \ diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index b89bdb9..20b6975 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -1,6 +1,6 @@ /* Abstraction of GNU v2 abi. - Copyright 2001, 2002, 2003 Free Software Foundation, Inc. + Copyright 2001, 2002, 2003, 2005 Free Software Foundation, Inc. Contributed by Daniel Berlin <dberlin@redhat.com> @@ -31,14 +31,13 @@ #include "demangle.h" #include "cp-abi.h" #include "cp-support.h" +#include "gnu-v2-abi.h" #include <ctype.h> struct cp_abi_ops gnu_v2_abi_ops; static int vb_match (struct type *, int, struct type *); -int gnuv2_baseclass_offset (struct type *type, int index, char *valaddr, - CORE_ADDR address); static enum dtor_kinds gnuv2_is_destructor_name (const char *name) diff --git a/gdb/gnu-v2-abi.h b/gdb/gnu-v2-abi.h new file mode 100644 index 0000000..baca2bf --- /dev/null +++ b/gdb/gnu-v2-abi.h @@ -0,0 +1,30 @@ +/* Abstraction of GNU v2 abi. + + Copyright 2005 Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or + modify + it under the terms of the GNU General Public License as published + by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#ifndef GNU_V2_ABI_H +#define GNU_V2_ABI_H + +extern int gnuv2_baseclass_offset (struct type *type, int index, + char *valaddr, CORE_ADDR address); + +#endif diff --git a/gdb/hpacc-abi.c b/gdb/hpacc-abi.c index a9dcdbf..9830b0d 100644 --- a/gdb/hpacc-abi.c +++ b/gdb/hpacc-abi.c @@ -1,9 +1,10 @@ /* Abstraction of HP aCC ABI. + Contributed by Daniel Berlin <dberlin@redhat.com> Most of the real code is from HP, i've just fiddled it to fit in the C++ ABI abstraction framework. - Copyright 2001 Free Software Foundation, Inc. + Copyright 2001, 2005 Free Software Foundation, Inc. This file is part of GDB. @@ -31,6 +32,7 @@ #include "gdbtypes.h" #include "gdbcore.h" #include "cp-abi.h" +#include "gnu-v2-abi.h" struct cp_abi_ops hpacc_abi_ops; @@ -285,9 +287,6 @@ hpacc_value_rtti_type (struct value *v, int *full, int *top, int *using_enc) return rtti_type; } -extern int gnuv2_baseclass_offset (struct type *type, int index, - char *valaddr, CORE_ADDR address); - static void init_hpacc_ops (void) { |