Fred Fish
2d6d969c61
Fix to dwarfread.c to target pointer and target long sizes, fixes for
mapped symbol file handling, and a couple of other misc small fixes.
35 years ago
Fred Fish
13b5a7ff3e
Extensive changes to replace swapin() function with target_to_host()
and fix all usages to be independent of host/target integer size
mismatches. However, cross debugging will still not work until the
sign extension issue is resolved either by fixing the bfd library
or implementing sign extension in the gdb code.
35 years ago
Fred Fish
95967e7379
Add swapin() function, and SWAPIN macro that calls it, to do byte swapping
copies using appropriate bfd routines.
35 years ago
John Gilmore
84ffdec2cb
Create and use macros for iterating on symtabs, psymtabs, msymbols.
* minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
* symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
* coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
(patch_opaque_types): Avoid dummy args and result.
* objfiles.c (have_partial_symbols, have_full_symbols,
have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
(iterate_over_objfiles, iterate_over_symtabs,
iterate_over_psymtabs): Remove, clunky and slow.
* objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
ALL_PSYMTABS, and ALL_MSYMBOLS macros.
* symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
dump_objfile): Remove dummy args and results. Move filename
comparisons to callers.
(printsyms_command, printpsyms_command, printmsyms_command,
printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
* symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
list_symbols, make_symbol_completion_list): Replace explicit
iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
Eliminate Dijkstra flag crap, break out of loops with gotos.
(lookup_symtab_1): Protect '/' tests from short filenames.
(cplus_mangled_symbol): Move inline into lookup_symbol.
* xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
(relocate_minimal_symbol): Move inline to vmap_symtab.
(vmap_symtab): Replace iteration with ALL_OBJFILES,
iterate_over_msymbols with ALL_MSYMBOLS.
Misc cleanup prior to release.
* dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
* mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
* mipsread.c: Add prototypes for all static functions.
* symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
dump_blockvector, dump_block, dump_addrchass, dump_namespace,
dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
* xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
dump_blockvector, dump_block, dump_addrchass, dump_namespace,
dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
unused copy!
* buildsym.c (define_symbol): Handle global register variables
(from Pierre Willard). Complain if register numbers are too large.
35 years ago
Fred Fish
5e2e79f859
Many changes, most related to creating entry point information on a per-objfile
basis. See comments in objfiles.h and details in ChangeLog. Also remove
redundant definitions of FRAME_CHAIN_VALID from most of the tm-* files and
use a default definition in frame.h.
35 years ago
Fred Fish
318bf84ffe
Globs of changes. See the ChangeLog for details. Most related to
using the new mmalloc package.
35 years ago
Michael Tiemann
d747e0af3d
Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
* All GDB files that #include defs.h: Removed stdio.h.
(defs.h): #include stdio.h.
This has been tested by building GDBs for all targets hosted on Sun4.
None of the build problems were related to stdio.h inclusion. (n.b.
many configurations don't build for other reasons.)
35 years ago
John Gilmore
93fe4e330e
Saberlint.
* symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
35 years ago
John Gilmore
1ab3bf1b14
* Check in Fred Fish's changes in these modules. Fred
will make ChangeLog entries for all of them.
35 years ago
Fred Fish
9e4c1921e5
Add code to handle TAG_pointer_type DIE's (DWARF Information Entries)
that are produced by the i486/SVR4 MetaWare compiler, but not by the
AT&T or GCC compilers.
35 years ago
Fred Fish
af21362450
When creating user defined types for subroutine and array types, check
first to see if a partial type already exists due to a forward reference,
and if so, bash it to fit.
35 years ago
Fred Fish
99140c31fe
The list_in_scope pointer needs to be initialized to point to a
valid scope. Use the file scope as the initial scope.
35 years ago
Fred Fish
a5bd5ba617
Changes to fix bug with static variables within function scopes.
35 years ago
Fred Fish
4d315a071a
Many changes to convert over to generic symbol table reading code in
buildsym.c (second cvs ci attempt)
35 years ago
Per Bothner
a3723a4352
Missed some stuff last time.
Also, recognize constructors specially in gdb_mangle_name().
35 years ago
Fred Fish
b440b1e9e4
Various changes to clean up ADD_PSYMBOL_TO_LIST and ADD_PSYMBOL_ADDR_TO_LIST
usages.
35 years ago
Per Bothner
7e258d18e0
Oodles of changes. The most important is adding support for stabs
encapsulated in mips ecoff. See ChangeLog for the gory details.
35 years ago
Fred Fish
f8b76e70b7
Numerous small changes and a complete reorganization of solib.c, to support
SVR4 shared libraries in a manner very close to the original SunOS support.
See the ChangeLog for details.
35 years ago
Fred Fish
84ce6717b0
More fixes for opaque and anonymous enumerations, structures, and unions.
Now passes all current gdb test suite tests.
35 years ago
Fred Fish
5edf98d7a2
Fixes to improve opaque struct/union handling. Still fails to find the
complete definition for files outside the one containing the complete
definition, if that file has not yet been read in. (Working on it...)
35 years ago
John Gilmore
7b2a87cab2
* symtab.c (decode_line_1): If SKIP_PROLOGUE leaves us in
mid-line, be more careful about possibly advancing to the next line.
35 years ago
Fred Fish
715cafcbde
Several changes to fix misc problems with enums, structs, and unions,
including building symbol table entries for enumeration members.
35 years ago
Fred Fish
98618bf78a
Arrange for enumeration members to be manipulated in source code order,
since they are stored in the Dwarf info in reverse order.
35 years ago
Fred Fish
8b5b6fae67
Handle structures and unions which contain DIE's other than just member
DIE's.
35 years ago
Steve Chamberlain
f5f0679af0
Changes due to include file renaming:
* xcoffread.c: internalcoff.h ->coff/internal.c,
coff-rs6000.h ->coff/rs6000.h
* mipsread.c: coff-mips.h ->coff/mips.h
* elfread.c: elf-common.h ->elf/common.h
elf-external.h ->elf/external.h,
elf-internal.h ->elf/internal.h
* dwarfread.c dwarf.h ->elf/dwarf.h
* dbxread.c: aout64.h ->aout/aout64.h
stab.gnu.h ->aout/stab_gnu.h
* coffread.c: internalcoff.h ->coff/internal.h
* buildsym.c: stab.gnu.h ->aout/stab_gnu.h
* depend Updated to take the above into account.
35 years ago
Fred Fish
8c6e9f05f2
Add tm-i386v4.h and xm-i386v4.h to Sanitize, add i386/SVR4 to configuration
file, recognize names beginning with '.' as compiler generated "fake" tags
for anonymous structures, unions and enums. Add target dependent functions
for SVR4 /proc register interface (i386-tdep.c).
35 years ago
Fred Fish
4cfd3c4990
Initialize the c++ specific portion of the type structure for union types
as well as struct types, since gdb attempts to reference that portion for
both types. Was getting core dumps due to NULL pointer dereferencing.
35 years ago
John Gilmore
7d9884b927
* defs.h: Incorporate param.h. All users changed.
* param-no-tm.h: Change users to define TM_FILE_OVERRIDE instead.
* param.h, param-no-tm.h: Removed.
* Update copyrights in all changed files.
* dbxread.c, dwarfread.c, inflow.c, infrun.c, m2-exp.y, putenv.c,
solib.c, symtab.h, tm-umax.h, valprint.c: Lint.
* tm-convex.h, tm-hp300hpux.h, tm-merlin.h, tm-sparc.h,
xm-merlin.h: Avoid host include files in target descriptions.
* getpagesize.h: Removed, libiberty copes now.
35 years ago
Fred Fish
768be6e12b
Recognize obsolete form of AT_element_list attribute still used by AT&T
compilers on one platform, and possibly more.
35 years ago
Fred Fish
0db97eedc1
Ignore names invented by helpful compilers for anonymous structs, unions,
and enums.
35 years ago
Fred Fish
2d6186f4fa
Changes to match new DWARF draft 5 version of include/dwarf.h.
35 years ago
Michael Tiemann
572acbbedc
Make changes needed to handle code which uses ANSI-mangled names (and
new G++ 1.95 dbxout output).
35 years ago
David Henkel-Wallace
5805020985
ansi name abuse changes
35 years ago
Fred Fish
a7446af61b
Changes to build misc function vector entries from canonical bfd symbol
table entries.
35 years ago
Fred Fish
58ae87f612
Remove internal gdb definition of fixed arg count concat() function and
convert to use of variable arg count concat() in libiberty.
35 years ago
Fred Fish
b662efeddc
Remove leftover call to do_cleanups() which resulted from a previous change.
Was being called with a random pointer.
35 years ago
John Gilmore
a048c8f537
Add tracking of object files (that contain symbols) to gdb.
This includes a "struct objfile" that owns symtabs and psymtabs
that were read in from that binary file. See ChangeLog.
35 years ago
Per Bothner
545af6ce07
Add C++ as a separate language.
Also, fix a C++ problem when looking for methods in super-classes.
(There was confusion between base and derived types.)
35 years ago
John Gilmore
d47d5315c8
* symfile.c (syms_from_bfd): New routine.
(add_symbol_file): Call it to do the real work.
(syms_from_bfd): Initialize entry_point before calling symfile_init.
* symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c:
Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
35 years ago
Fred Fish
c8c0a2bd59
Add casts to remove compiler warnings from native Sun cc.
35 years ago
Fred Fish
b662acae40
Remove prototype for dwarfwarn(). Breaks with <varargs.h>.
35 years ago
John Gilmore
313fdead0e
Use <varargs.h>, since <stdarg.h> is not portable.
35 years ago
Fred Fish
35f5886ebb
New files for DWARF debugging format support, ELF object file support, SVR4
/proc (process file system) support, Amiga UNIX target and host defines, SVR4
target and host defines, and m68k hosts defines.
35 years ago