aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.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/dwarf2read.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/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 5c06e9a..2793817 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -432,6 +432,10 @@ struct dwarf2_pinfo
char *dwarf_line_buffer;
+ /* Size of dwarf_line_buffer, in bytes. */
+
+ unsigned int dwarf_line_size;
+
/* Pointer to start of dwarf string buffer for the objfile. */
char *dwarf_str_buffer;
@@ -447,6 +451,7 @@ struct dwarf2_pinfo
#define DWARF_ABBREV_BUFFER(p) (PST_PRIVATE(p)->dwarf_abbrev_buffer)
#define DWARF_ABBREV_SIZE(p) (PST_PRIVATE(p)->dwarf_abbrev_size)
#define DWARF_LINE_BUFFER(p) (PST_PRIVATE(p)->dwarf_line_buffer)
+#define DWARF_LINE_SIZE(p) (PST_PRIVATE(p)->dwarf_line_size)
#define DWARF_STR_BUFFER(p) (PST_PRIVATE(p)->dwarf_str_buffer)
#define DWARF_STR_SIZE(p) (PST_PRIVATE(p)->dwarf_str_size)
@@ -1166,6 +1171,7 @@ dwarf2_build_psymtabs_hard (struct objfile *objfile, int mainline)
DWARF_ABBREV_BUFFER (pst) = dwarf_abbrev_buffer;
DWARF_ABBREV_SIZE (pst) = dwarf_abbrev_size;
DWARF_LINE_BUFFER (pst) = dwarf_line_buffer;
+ DWARF_LINE_SIZE (pst) = dwarf_line_size;
DWARF_STR_BUFFER (pst) = dwarf_str_buffer;
DWARF_STR_SIZE (pst) = dwarf_str_size;
baseaddr = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
@@ -1467,6 +1473,7 @@ psymtab_to_symtab_1 (struct partial_symtab *pst)
dwarf_abbrev_buffer = DWARF_ABBREV_BUFFER (pst);
dwarf_abbrev_size = DWARF_ABBREV_SIZE (pst);
dwarf_line_buffer = DWARF_LINE_BUFFER (pst);
+ dwarf_line_size = DWARF_LINE_SIZE (pst);
dwarf_str_buffer = DWARF_STR_BUFFER (pst);
dwarf_str_size = DWARF_STR_SIZE (pst);
baseaddr = ANOFFSET (pst->section_offsets, SECT_OFF_TEXT (objfile));
@@ -2479,8 +2486,6 @@ read_structure_scope (struct die_info *die, struct objfile *objfile,
/* No children, must be stub. */
TYPE_FLAGS (type) |= TYPE_FLAG_STUB;
}
-
- finish_cv_type (die->type);
}
/* Given a pointer to a die which begins an enumeration, process all