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.
This commit is contained in:
Andrew Cagney
2005-01-28 06:16:49 +00:00
parent 108d6ead32
commit 6b08edadd9
5 changed files with 49 additions and 11 deletions

View File

@ -1,5 +1,12 @@
2005-01-28 Andrew Cagney <cagney@gnu.org> 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) * doublest.c (floatformat_is_negative, floatformat_is_nan)
(floatformat_mantissa, get_field): Make the buffer a const (floatformat_mantissa, get_field): Make the buffer a const
bfd_byte, simplify. bfd_byte, simplify.

View File

@ -700,6 +700,7 @@ gdb_vfork_h = gdb_vfork.h
gdb_wait_h = gdb_wait.h gdb_wait_h = gdb_wait.h
glibc_tdep_h = glibc-tdep.h glibc_tdep_h = glibc-tdep.h
gnu_nat_h = gnu-nat.h gnu_nat_h = gnu-nat.h
gnu_v2_abi_h = gnu-v2-abi.h
gregset_h = gregset.h gregset_h = gregset.h
hppa_tdep_h = hppa-tdep.h hppa_tdep_h = hppa-tdep.h
i386bsd_nat_h = i386bsd-nat.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) \ $(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) $(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) \ 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) \ 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) $(demangle_h) $(gdb_assert_h) $(gdb_string_h)
go32-nat.o: go32-nat.c $(defs_h) $(inferior_h) $(gdb_wait_h) $(gdbcore_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) \ $(i387_tdep_h) $(i386_tdep_h) $(value_h) $(regcache_h) \
$(gdb_string_h) $(gdb_string_h)
hpacc-abi.o: hpacc-abi.c $(defs_h) $(value_h) $(gdb_regex_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) \ hppabsd-nat.o: hppabsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
$(hppa_tdep_h) $(hppa_tdep_h)
hppabsd-tdep.o: hppabsd-tdep.c $(defs_h) $(arch_utils_h) $(osabi_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) \ ppc-linux-tdep.o: ppc-linux-tdep.c $(defs_h) $(frame_h) $(inferior_h) \
$(symtab_h) $(target_h) $(gdbcore_h) $(gdbcmd_h) $(symfile_h) \ $(symtab_h) $(target_h) $(gdbcore_h) $(gdbcmd_h) $(symfile_h) \
$(objfiles_h) $(regcache_h) $(value_h) $(osabi_h) $(regset_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) \ ppcnbsd-nat.o: ppcnbsd-nat.c $(defs_h) $(inferior_h) $(gdb_assert_h) \
$(gdbcore_h) $(regcache_h) $(bsd_kvm_h) $(ppc_tdep_h) \ $(gdbcore_h) $(regcache_h) $(bsd_kvm_h) $(ppc_tdep_h) \
$(ppcnbsd_tdep_h) $(inf_ptrace_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) \ $(reggroups_h) $(libbfd_h) $(coff_internal_h) $(libcoff_h) \
$(coff_xcoff_h) $(libxcoff_h) $(elf_bfd_h) $(solib_svr4_h) \ $(coff_xcoff_h) $(libxcoff_h) $(elf_bfd_h) $(solib_svr4_h) \
$(ppc_tdep_h) $(gdb_assert_h) $(dis_asm_h) $(trad_frame_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-nat.o: s390-nat.c $(defs_h) $(tm_h) $(regcache_h) $(inferior_h) \
$(s390_tdep_h) $(s390_tdep_h)
s390-tdep.o: s390-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) $(inferior_h) \ s390-tdep.o: s390-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) $(inferior_h) \

View File

@ -1,6 +1,6 @@
/* Abstraction of GNU v2 abi. /* 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> Contributed by Daniel Berlin <dberlin@redhat.com>
@ -31,14 +31,13 @@
#include "demangle.h" #include "demangle.h"
#include "cp-abi.h" #include "cp-abi.h"
#include "cp-support.h" #include "cp-support.h"
#include "gnu-v2-abi.h"
#include <ctype.h> #include <ctype.h>
struct cp_abi_ops gnu_v2_abi_ops; struct cp_abi_ops gnu_v2_abi_ops;
static int vb_match (struct type *, int, struct type *); 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 static enum dtor_kinds
gnuv2_is_destructor_name (const char *name) gnuv2_is_destructor_name (const char *name)

30
gdb/gnu-v2-abi.h Normal file
View File

@ -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

View File

@ -1,9 +1,10 @@
/* Abstraction of HP aCC ABI. /* Abstraction of HP aCC ABI.
Contributed by Daniel Berlin <dberlin@redhat.com> Contributed by Daniel Berlin <dberlin@redhat.com>
Most of the real code is from HP, i've just fiddled it to fit in Most of the real code is from HP, i've just fiddled it to fit in
the C++ ABI abstraction framework. the C++ ABI abstraction framework.
Copyright 2001 Free Software Foundation, Inc. Copyright 2001, 2005 Free Software Foundation, Inc.
This file is part of GDB. This file is part of GDB.
@ -31,6 +32,7 @@
#include "gdbtypes.h" #include "gdbtypes.h"
#include "gdbcore.h" #include "gdbcore.h"
#include "cp-abi.h" #include "cp-abi.h"
#include "gnu-v2-abi.h"
struct cp_abi_ops hpacc_abi_ops; 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; return rtti_type;
} }
extern int gnuv2_baseclass_offset (struct type *type, int index,
char *valaddr, CORE_ADDR address);
static void static void
init_hpacc_ops (void) init_hpacc_ops (void)
{ {