aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
diff options
context:
space:
mode:
authornobody <>2002-05-15 21:19:22 +0000
committernobody <>2002-05-15 21:19:22 +0000
commit0540f4547886519cdcf972d171961c0b6a33e02e (patch)
tree9770a17b0706adabda4874b86f2609570654f887 /gdb/gnu-v3-abi.c
parent275602c398b33b8475860af024b006bbbbd495ac (diff)
downloadgdb-0540f4547886519cdcf972d171961c0b6a33e02e.zip
gdb-0540f4547886519cdcf972d171961c0b6a33e02e.tar.gz
gdb-0540f4547886519cdcf972d171961c0b6a33e02e.tar.bz2
This commit was manufactured by cvs2svn to create branchcagney_regbuf-20020515-branchpoint
'cagney_regbuf-20020515-branch'. Sprout from jimb-macro-020506-branch 2002-05-06 21:00:22 UTC nobody 'This commit was manufactured by cvs2svn to create branch 'jimb-' Cherrypick from master 2002-05-15 21:19:21 UTC Jim Blandy <jimb@codesourcery.com> 'Add macro structures to GDB's symbol tables. Nobody puts anything': Makefile.in bfd/elf-m10200.c bfd/elf-m10300.c bfd/elf32-arm.h bfd/elf32-fr30.c bfd/elf32-hppa.c bfd/elf32-i370.c bfd/elf32-i386.c bfd/elf32-i860.c bfd/elf32-m32r.c bfd/elf32-m68k.c bfd/elf32-mcore.c bfd/elf32-openrisc.c bfd/elf32-ppc.c bfd/elf32-s390.c bfd/elf32-xstormy16.c bfd/elf64-ppc.c bfd/elf64-s390.c bfd/elf64-x86-64.c bfd/elfxx-ia64.c bfd/libxcoff.h gdb/ChangeLog gdb/MAINTAINERS gdb/Makefile.in gdb/NEWS gdb/TODO gdb/alphabsd-nat.c gdb/alphabsd-tdep.c gdb/alphabsd-tdep.h gdb/alphanbsd-tdep.c gdb/arch-utils.c gdb/arch-utils.h gdb/arm-linux-tdep.c gdb/arm-tdep.c gdb/arm-tdep.h gdb/ax-gdb.c gdb/buildsym.c gdb/buildsym.h gdb/builtin-regs.c gdb/c-typeprint.c gdb/config/alpha/fbsd.mt gdb/config/alpha/nbsd.mh gdb/config/alpha/nbsd.mt gdb/config/arm/nm-nbsd.h gdb/config/djgpp/fnchange.lst gdb/config/i386/fbsd.mh gdb/config/i386/go32.mh gdb/config/i386/i386gnu.mh gdb/config/i386/i386sol2.mh gdb/config/i386/i386v42mp.mh gdb/config/i386/linux.mh gdb/config/i386/nbsd.mh gdb/config/i386/nbsd.mt gdb/config/i386/nbsdelf.mh gdb/config/i386/nbsdelf.mt gdb/config/i386/obsd.mh gdb/config/i386/tm-nbsd.h gdb/config/i386/x86-64linux.mh gdb/config/m68k/nbsd.mh gdb/config/m88k/tm-m88k.h gdb/config/ns32k/nbsd.mh gdb/config/powerpc/nbsd.mh gdb/config/sh/nbsd.mh gdb/config/sh/nbsd.mt gdb/config/sh/nm-nbsd.h gdb/config/sh/tm-nbsd.h gdb/config/sh/tm-sh.h gdb/config/sparc/nbsd.mh gdb/config/sparc/nbsdelf.mh gdb/configure gdb/configure.host gdb/configure.in gdb/configure.tgt gdb/d10v-tdep.c gdb/dbxread.c gdb/doc/ChangeLog gdb/doc/gdb.texinfo gdb/doc/gdbint.texinfo gdb/doc/stabs.texinfo gdb/dstread.c gdb/dwarf2cfi.c gdb/dwarf2read.c gdb/event-loop.c gdb/expprint.c gdb/findvar.c gdb/frame.c gdb/gdbarch.c gdb/gdbarch.h gdb/gdbarch.sh gdb/gdbserver/mem-break.c gdb/gdbtypes.c gdb/gdbtypes.h gdb/gnu-v3-abi.c gdb/go32-nat.c gdb/gregset.h gdb/hpread.c gdb/i386-linux-nat.c gdb/i386-tdep.c gdb/i386-tdep.h gdb/i386bsd-nat.c gdb/i386gnu-nat.c gdb/i386nbsd-tdep.c gdb/i386v4-nat.c gdb/i387-tdep.c gdb/i387-tdep.h gdb/ia64-tdep.c gdb/jv-valprint.c gdb/language.c gdb/language.h gdb/linespec.c gdb/m88k-tdep.c gdb/macroexp.c gdb/macroexp.h gdb/macrotab.c gdb/macrotab.h gdb/mdebugread.c gdb/memattr.c gdb/mips-tdep.c gdb/nbsd-tdep.c gdb/nbsd-tdep.h gdb/objfiles.c gdb/objfiles.h gdb/p-lang.c gdb/printcmd.c gdb/regcache.c gdb/remote-rdi.c gdb/remote-rdp.c gdb/remote.c gdb/rs6000-tdep.c gdb/ser-tcp.c gdb/sh-tdep.c gdb/shnbsd-nat.c gdb/shnbsd-tdep.c gdb/shnbsd-tdep.h gdb/signals/signals.c gdb/solib-sunos.c gdb/solib-svr4.c gdb/solib.c gdb/solib.h gdb/stabsread.c gdb/symfile.c gdb/symmisc.c gdb/symtab.c gdb/symtab.h gdb/testsuite/ChangeLog gdb/testsuite/gdb.asm/asm-source.exp gdb/testsuite/gdb.asm/v850.inc gdb/testsuite/gdb.base/a2-run.exp gdb/testsuite/gdb.base/break.exp gdb/testsuite/gdb.base/default.exp gdb/testsuite/gdb.base/ending-run.exp gdb/testsuite/gdb.base/long_long.exp gdb/testsuite/gdb.base/maint.exp gdb/testsuite/gdb.base/printcmds.exp gdb/testsuite/gdb.c++/annota2.exp gdb/testsuite/gdb.c++/method.exp gdb/testsuite/gdb.mi/mi-var-child.exp gdb/testsuite/gdb.mi/mi0-var-child.exp gdb/testsuite/lib/gdb.exp gdb/tracepoint.c gdb/valops.c gdb/value.h gdb/values.c gdb/version.in gdb/x86-64-linux-nat.c gdb/x86-64-tdep.c include/elf/ChangeLog include/elf/common.h include/gdb/ChangeLog include/gdb/signals.h include/gdb/sim-sh.h libiberty/configure libiberty/configure.in libiberty/getruntime.c libiberty/waitpid.c opcodes/cgen-dis.in opcodes/ppc-opc.c opcodes/vax-dis.c sim/arm/ChangeLog sim/arm/armos.c Cherrypick from master 2002-05-11 00:00:05 UTC Alan Modra <amodra@gmail.com> 'daily update': ChangeLog bfd/ChangeLog bfd/coff-rs6000.c bfd/coff64-rs6000.c bfd/elf-bfd.h bfd/elflink.h bfd/elfxx-target.h bfd/version.h libiberty/ChangeLog opcodes/ChangeLog Delete: gdb/alphanbsd-nat.c gdb/config/avr/avr.mt gdb/i386nbsd-nat.c gdb/i387-nat.c gdb/i387-nat.h
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 720364b..e86af89 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -1,6 +1,7 @@
/* Abstraction of GNU v3 abi.
Contributed by Jim Blandy <jimb@redhat.com>
- Copyright 2001 Free Software Foundation, Inc.
+
+ Copyright 2001, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -174,7 +175,8 @@ build_gdb_vtable_type (struct gdbarch *arch)
static int
vtable_address_point_offset ()
{
- struct type *vtable_type = gdbarch_data (vtable_type_gdbarch_data);
+ struct type *vtable_type = gdbarch_data (current_gdbarch,
+ vtable_type_gdbarch_data);
return (TYPE_FIELD_BITPOS (vtable_type, vtable_field_virtual_functions)
/ TARGET_CHAR_BIT);
@@ -185,7 +187,8 @@ static struct type *
gnuv3_rtti_type (struct value *value,
int *full_p, int *top_p, int *using_enc_p)
{
- struct type *vtable_type = gdbarch_data (vtable_type_gdbarch_data);
+ struct type *vtable_type = gdbarch_data (current_gdbarch,
+ vtable_type_gdbarch_data);
struct type *value_type = check_typedef (VALUE_TYPE (value));
CORE_ADDR vtable_address;
struct value *vtable;
@@ -293,7 +296,8 @@ gnuv3_virtual_fn_field (struct value **value_p,
struct fn_field *f, int j,
struct type *type, int offset)
{
- struct type *vtable_type = gdbarch_data (vtable_type_gdbarch_data);
+ struct type *vtable_type = gdbarch_data (current_gdbarch,
+ vtable_type_gdbarch_data);
struct value *value = *value_p;
struct type *value_type = check_typedef (VALUE_TYPE (value));
struct type *vfn_base;
@@ -368,7 +372,8 @@ int
gnuv3_baseclass_offset (struct type *type, int index, char *valaddr,
CORE_ADDR address)
{
- struct type *vtable_type = gdbarch_data (vtable_type_gdbarch_data);
+ struct type *vtable_type = gdbarch_data (current_gdbarch,
+ vtable_type_gdbarch_data);
struct type *basetype = TYPE_BASECLASS (type, index);
struct value *full_object, *vbase_object, *orig_object;
struct value *vtable, *orig_typeinfo, *orig_base_info;