Commit Graph

14968 Commits

Author SHA1 Message Date
Michael Meissner 07a159dbd4 Make @GOT relocations work 1996-01-04 00:44:32 +00:00
Fred Fish ef4d61874b * symmisc.c (print_objfile_statistics): Print memory use statistics
for objfile psymbol, symbol, and type obstacks.
	Update copyright to 1996.
1996-01-03 22:00:45 +00:00
Fred Fish 655492f4ff * obstack.h: Update copyright to 1996.
(_obstack_memory_used): Declare.
	(obstack_memory_used): Define macro.
1996-01-03 21:58:13 +00:00
Ian Lance Taylor d812945a9a * coffcode.h (coff_write_object_contents): If we don't know the
section of the entry point for an XCOFF executable, always set the
	entry address to -1.
1996-01-03 20:07:39 +00:00
Michael Meissner 1d935cf62c Add Pentium Pro support 1996-01-03 16:51:46 +00:00
Jeff Law 978be38ec2 * lib/gdb.exp (skip_chill_tests): Skip them on the PA too.
I hate skipping tests, but these seem pretty broken on the PA...
1996-01-03 08:33:24 +00:00
Jeff Law 0069d9a02a * gdb.stabs/weird.exp: Use ${target_triplet} to determine
which sed script to run.  Expect failure for v_comb test
        on PA targets too.
Should get weird-stabs tests running on supported targets again.

I'd also expect most (if not all) stabs targets to fail v_comb...
1996-01-03 08:28:42 +00:00
Rob Savoye f9ac2066da Add a "\n" to the "go" command so it'll start right away. 1996-01-02 23:59:48 +00:00
Ian Lance Taylor e1c145993e Implement generic debugging support. Implement a stabs reader and
a generic printer.
	* budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
	* objdump.c: Include "debug.h" and "budbg.h".
	(dump_debugging): New global variable.
	(usage): Mention --debugging.
	(long_options): Add "debugging".
	(display_bfd): Handle --debugging.
	* Makefile.in (OBJDUMP_OBJS): New variable.
	($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
	* binutils.texi, objdump.1: Document --debugging.
1996-01-02 22:48:58 +00:00
Ian Lance Taylor cd46af111e * Makefile.in: Add targets to automatically rebuild dependencies.
Remove targets which just listed dependencies of .o files.
	(DEP): New variable.
	(HFILES, GENERATED_HFILES): New variables.
	(CFILES, GENERATED_CFILES): New variables.
	(underscore.c): Don't do anything, just depend upon stamp-under.
	(stamp-under): New target; do what underscore.c used to do.
	(nlmconv.o): Depend upon sym.h and ecoff.h.
	(.dep, .dep1, dep.sed, dep, dep-in): New targets.
	(stage1, stage2, stage3, against, comparison): Remove.
	(de-stage1, de-stage2, de-stage3): Remove.
	(clean, distclean): Remove stamp-under and dep.sed.
	* dep-in.sed: New file.

	* Makefile.in (OBJDUMP_OBJS): New variable.
	($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
1996-01-02 22:48:13 +00:00
Stan Shebs 54b8b5c342 keep nm-irix5.h 1996-01-02 21:59:11 +00:00
Stan Shebs 543a9face4 Keep 1995 ChangeLog 1996-01-02 21:57:59 +00:00
Stan Shebs d1856a18a3 Last year's changes to its own file. 1996-01-02 21:56:00 +00:00
Stan Shebs 2d7bc1e59c * config/mips/nm-irix5.h: Restore.
(TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
	from Lee Iverson <leei@ai.sri.com>.
	* config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
	* config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
1996-01-02 21:55:10 +00:00
Jim Wilson 10c8c95ec0 For SH port, make relocation overflow an error instead of a warning. 1996-01-02 20:45:49 +00:00
Michael Meissner 3a56d0b427 Add support for .note sections 1996-01-02 19:17:17 +00:00
Ian Lance Taylor c4406e5068 * elf32-ppc.c: Remove trailing newline from calls to
_bfd_error_handler.
	(ppc_elf_merge_private_bfd_data): Only warn about endianness
	difference if target endianness is known.
1996-01-02 18:06:55 +00:00
Brendan Kehoe d4cf72b3cc * configure.in (noconfigdirs): Put ld or gas in this early, if the
user specifically used --with-gnu-ld=no or --with-gnu-as=no.
1996-01-02 03:06:56 +00:00
Jeff Law cb84431489 * ecoff.c (ecoff_stab): Simplify. Correctly handle sym + offset
addresses for static variables.
So we can access statics in the static block on mips/alpha when using
gas.
1995-12-31 06:41:24 +00:00
Jeff Law 64c50fc5db * gprof.c (long_options): Add "--function-ordering" and
"--file-ordering" options.
	(usage): Add new options to usage message.
	(main): Handle new options.
	* gprof.h (STYLE_FUNCTION_ORDER): Define.
	(STYLE_FILE_ORDER): Define.
	(function_mapping_file): Declare.
	* cg_arcs.c (arcs, numarcs): New globals.
	(arc_add): Put new arcs into the arc array so the function/file
	ordering code can examine them.
	* cg_arcs.h (struct arc): New field "has_been_placed".
	(arcs, numarcs): Declare new globals.
	* core.c (symbol_map, symbol_map_count): New globals.
	(read_function_mappings): New function to read in a function
	to object map file.
	(core_init): Call read_function_mappings if a function mapping
	file exists.
	(core_create_function_syms): Handle function to object file
	mappings.
	* symtab.h (struct sym): New fields "mapped", "has_been_placed",
	"nuses", "prev".
	* cg_print.c (cmp_arc_count): New function for sorting arcs.
	(cmp_fun_nuses): Likewise for functions.
	(cg_print_function_ordering): New function to print a suggested
	function ordering.
	(cg_print_file_ordering): Likewise for ordering .o files.
	(order_and_dump_functions_by_arcs): Helper function for function
	and object file ordering code.
Gprof changes for mentor vm work.
1995-12-31 06:36:30 +00:00
Jeff Law 71128bd7a9 Just so we have them checked in somewhere; they're sanitized away as we
really don't want to distribute them as part of gprof (not without major
work).
1995-12-31 06:28:22 +00:00
David Edelsohn a493dcd8ba * config-ml.in: Add support for
--disable-{softfloat,m68881,m68000,m68020} on m68*-*-*.
	Simplify setting of multidirs from --disable-foo.
1995-12-31 00:13:13 +00:00
Fred Fish 5a8a03d881 * tests2.exp: Setup_xfail "i*86-*-linux" and
"mips-sgi-irix*" for "real write 4" and "real write 8".
	Conditionalize both tests for system specific value
	of "infinity" string.
1995-12-31 00:03:54 +00:00
Fred Fish af6d4d16ea Forgot a few things... 1995-12-30 22:35:57 +00:00
Fred Fish b887e9ad36 * builtins.exp (test_size): Alpha seems to have long builtins.
* tests1.exp: Setup xfail "*-*-*" for "ptype r2".
	* tests2.exp: Add check to skip chill tests.
1995-12-30 22:31:31 +00:00
Fred Fish 89e6c70d53 * lib/gdb.exp (default_gdb_start): Fix typo.
* gdb.base/corefile.exp: Allow "Core was generated by ..."
	messages to not include the full program name that caused
	the core dump since some systems (such as solaris) apparently
	truncate this path to about 80 characters.
	When generating a core file first try increasing the core file
	size limit to unlimited since some systems may default it to
	zero, and it is harmless to try it.  Move the test for failing
	to generate a core file to where it will actually get executed.
	* gdb.c++/templates.exp (test_ptype_of_templates): Accept
	new gdb result from g++ debug info improvements and make old
	pattern obsolescent.  Also account for size_t differences
	(may be int or long).
	* gdb.base/a1-selftest.exp (test_with_self): Check for case where
	initialization before function call is placed in the delay slot
	and thus appears to be skipped over by commands such as "next".
1995-12-30 22:27:24 +00:00
Jeff Law dcd6706b1a * nm.c ( long_options): Add "--defined-only" option.
(usage): Update for new "--defined-only" option.
        (filter_symbols): Handle "--defined-only".
Part of mentor vm work.
1995-12-30 17:02:06 +00:00
Stan Shebs 5eccb7dc89 * symfile.c (find_sym_fns): Add PowerMac to xcoff file recognition
kludge.
1995-12-30 01:33:40 +00:00
Stan Shebs f526457cf8 * gdb.base/a1-selftest.exp (test_with_self): Run without windows. 1995-12-30 00:23:40 +00:00
Ian Lance Taylor 428e7fb4c2 * arparse.y: Include "bucomm.h", not <sysdep.h>.
* nlmheader.y: Don't include "sysdep.h".
1995-12-29 21:02:02 +00:00
Michael Meissner 2ab80461fc Allow toplevel make to over certain GCC variables; add all-bootstrap target 1995-12-29 13:43:06 +00:00
Stan Shebs 3dcd429fd6 * README.GDBTK: Polish introductory paragraph. 1995-12-28 23:16:41 +00:00
David Edelsohn 953fbd6593 * config-ml.in (ml_realsrcdir): New, to account for ${subdir}. 1995-12-27 23:52:53 +00:00
Gordon Irlam 8fadf76997 Adding perl to devo (perl5.002beta1). 1995-12-27 22:51:42 +00:00
Ian Lance Taylor 5d0bc3b9df * nm.c (print_symdef_entry): Check return value of
bfd_get_elt_at_index.
1995-12-26 23:20:35 +00:00
Ian Lance Taylor 54fe92c5a1 * ld-srec/srec.exp: If powerpc*-*-eabi*, use --defsym to define
__eabi.
1995-12-26 22:35:31 +00:00
Michael Meissner 04bdf3229e Add Pentium DG/UX support 1995-12-26 16:43:40 +00:00
Jeff Law 32843f948c * core.c (core_sym_class): Ignore symbols without BSF_FUNCTION
set if ignore_non_function is set.
        * gprof.h (ignore_non_functions): Declare.
        * gprof.c (ignore_non_functions): Define.
        (long_options): Add "ignore-non-functions".
        (usage): Add new options.
        (main): Recognize "-D" and "--ignore-non-functions" option.
So we can get more accurate information on Solaris, HPUX and other
systems that can uniquely identify function symbols.
1995-12-25 04:32:29 +00:00
Michael Meissner 7920c1d195 Build dlltool if config is powerpc*-*-win* 1995-12-23 16:05:03 +00:00
Jason Molenda ad3d97748b keep configure 1995-12-23 01:07:12 +00:00
Michael Meissner 63ed8181e6 correctly name file 1995-12-22 16:42:06 +00:00
Michael Meissner 3222ff2e52 Add DG/UX x86 host 1995-12-22 16:10:46 +00:00
Rob Savoye b284227cca * remote-array.c (array_wait): Poll the keyboard along with the
serial port so users can tpye at the target while their
	application is running.
1995-12-22 02:09:38 +00:00
Michael Meissner d3c0ec6387 Add PentiumPro support 1995-12-21 21:09:43 +00:00
Michael Meissner 63ae682eae Add ppcbug-rom.o, srec.o dependencies 1995-12-21 20:01:22 +00:00
Michael Meissner 29a766d2d4 Add ifndef wrappers 1995-12-21 19:51:55 +00:00
Michael Meissner 36cb0e7c73 Make @got be real GOT reloc; make @xgot be old TOC16 reloc 1995-12-21 17:54:31 +00:00
Michael Meissner 08556813ed Work in progress to add real GOT support 1995-12-21 17:50:22 +00:00
Michael Meissner 721ccd808f Make ppcbug work 1995-12-21 17:06:04 +00:00
Fred Fish 2dd30c722b * defs.h: Delete extraneous whitespace at end of file.
* symfile.h: Move #include of demangle.h outside conditional.
	* objfiles.h (struct objstats, OBJSTAT, OBJSTATS): New struct
	and macros to hold per-objfile statistics for internal instrumentation.
	(struct objfile): Add OBJSTATS member, which is optional.
	* buildsym.h (next_symbol_text_func): Now takes objfile argument.
	Also update copyright to 1995.
	* dbxread.c (dbx_next_symbol_text): Now takes objfile argument.
	(dbx_symfile_init, coffstab_build_psymtabs, elfstab_build_psymtabs,
	stabsect_build_psymtabs): Accumulate string table size.
	(dbx_next_symbol_text, read_dbx_symtab, read_ofile_symtab):
	Accumulate number of stabs symbols read.
	* dwarfread.c (new_symbol, symthesize_typedef):
	Accumulate number of full symbols created.
	* gdbtypes.c (alloc_type): Accumulate number of types.
	* maint.c (maintenance_print_statistics): New function.
	* mdebugread.c (mdebug_next_symbol_text): Now takes objfile argument.
	* minsyms.c (prim_record_minimal_symbol_and_info): Accumulate
	number of minimal symbols read.
	* os9kread.c (read_os9k_psymtab): next_symbol_text takes objfile arg.
	* partial-stab.h: next_symbol_text takes objfile arg.
	* stabsread.c (error_type, STABS_CONTINUE): Now takes objfile arg and
 	uses it to call next_symbol_text.
	* symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
	Accumulate number of partial symbols created.
	* symfile.h (ADD_PSYMBOL_VT_TO_LIST): Accumulate number of partial
	symbols created.
	* symmisc.c (print_objfile_statistics): Print the per-objfile
	internal instrumentation statistics gathered.
	* xcoffread.c (xcoff_next_symbol_text): Now takes objfile argument.
1995-12-21 04:08:27 +00:00