mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
* dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
* dwarfread.c (add_partial_symbol): Do not enter opaque aggregate definitions into the psymtab.
This commit is contained in:
parent
cbc174e7ab
commit
4386eff2d1
@ -1,3 +1,9 @@
|
|||||||
|
Fri Feb 4 01:14:20 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
|
||||||
|
|
||||||
|
* dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
|
||||||
|
* dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
|
||||||
|
definitions into the psymtab.
|
||||||
|
|
||||||
Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
* m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
|
* m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* DWARF debugging format support for GDB.
|
/* DWARF debugging format support for GDB.
|
||||||
Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||||
Written by Fred Fish at Cygnus Support. Portions based on dbxread.c,
|
Written by Fred Fish at Cygnus Support. Portions based on dbxread.c,
|
||||||
mipsread.c, coffread.c, and dwarfread.c from a Data General SVR4 gdb port.
|
mipsread.c, coffread.c, and dwarfread.c from a Data General SVR4 gdb port.
|
||||||
|
|
||||||
@ -1997,7 +1997,13 @@ process_dies (thisdie, enddie, objfile)
|
|||||||
switch (di.die_tag)
|
switch (di.die_tag)
|
||||||
{
|
{
|
||||||
case TAG_compile_unit:
|
case TAG_compile_unit:
|
||||||
|
/* Skip Tag_compile_unit if we are already inside a compilation
|
||||||
|
unit, we are unable to handle nested compilation units
|
||||||
|
properly (FIXME). */
|
||||||
|
if (current_subfile == NULL)
|
||||||
read_file_scope (&di, thisdie, nextdie, objfile);
|
read_file_scope (&di, thisdie, nextdie, objfile);
|
||||||
|
else
|
||||||
|
nextdie = thisdie + di.die_length;
|
||||||
break;
|
break;
|
||||||
case TAG_global_subroutine:
|
case TAG_global_subroutine:
|
||||||
case TAG_subroutine:
|
case TAG_subroutine:
|
||||||
@ -2618,6 +2624,9 @@ add_partial_symbol (dip, objfile)
|
|||||||
case TAG_structure_type:
|
case TAG_structure_type:
|
||||||
case TAG_union_type:
|
case TAG_union_type:
|
||||||
case TAG_enumeration_type:
|
case TAG_enumeration_type:
|
||||||
|
/* Do not add opaque aggregate definitions to the psymtab. */
|
||||||
|
if (!dip -> has_at_byte_size)
|
||||||
|
break;
|
||||||
ADD_PSYMBOL_TO_LIST (dip -> at_name, strlen (dip -> at_name),
|
ADD_PSYMBOL_TO_LIST (dip -> at_name, strlen (dip -> at_name),
|
||||||
STRUCT_NAMESPACE, LOC_TYPEDEF,
|
STRUCT_NAMESPACE, LOC_TYPEDEF,
|
||||||
objfile -> static_psymbols,
|
objfile -> static_psymbols,
|
||||||
|
Loading…
Reference in New Issue
Block a user