Commit Graph

14952 Commits

Author SHA1 Message Date
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
Brendan Kehoe 0b0124c6cc * configure.in (noconfigdirs): Add gas or ld if --with-gnu-as=no or
--with-gnu-ld=no.

Don't build/configure gas or ld if we said we don't want them.
1995-12-21 01:42:59 +00:00
Ken Raeburn 86587dd4ca * elf.c (copy_private_bfd_data): When attaching sections to segments ignore
sections that won't be allocated.  Patch from Andreas Schwab.
1995-12-21 00:41:20 +00:00
Michael Meissner d1265690b1 Add switches to control AIX multlibs 1995-12-20 20:17:24 +00:00
Ian Lance Taylor 5e69b693c9 * config/tc-mips.c (load_address): Correctly handle a constant in
SVR4_PIC case.  From Richard Kenner <kenner@vlsi1.ultra.nyu.edu>.
1995-12-20 19:56:41 +00:00
Ken Raeburn bf7f243f7e configure m68k-cbm non-sysv4 correctly 1995-12-20 01:13:05 +00:00
Ian Lance Taylor af3f877153 * ld-srec/srec.exp: Add setup_xfails for XCOFF targets. 1995-12-19 23:00:26 +00:00
Ian Lance Taylor 67cf67787d * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
relocateable before calling ldctor_build_sets if the output file
	is in an XCOFF format.
1995-12-19 22:36:03 +00:00
Ian Lance Taylor d9518e2edc * coff-i960.c (CALC_ADDEND): Define.
(coff_i960_relocate_section): Add the input section VMA to the
	addend for PC relative relocs.
PR 8697.
1995-12-19 21:38:51 +00:00
Michael Meissner a9ddbbf5a1 12/19 release from Andrew that fixes Netbsd break problem 1995-12-19 16:41:06 +00:00
Jason Molenda aef95a96bc * configure.in (i386-win32): Don't build expect if we're not
building the tcl subdir.
1995-12-19 01:56:18 +00:00
Stan Shebs 33bc6fe5fc * Makefile.in: (configure-target-examples, all-target-examples):
New targets, configure and build example programs.
1995-12-18 19:50:07 +00:00
Michael Meissner 98a497b3e9 Work with new and old BFDs; Do not inline model externs functions by default 1995-12-16 15:02:48 +00:00
Stan Shebs a585028b88 * mpw-configure: If an mpw-config.in generated a file mk.sed,
use it as input to sedit the generated MPW makefile.
	* mpw-README: Add a suggestion about Gestalt.h.
1995-12-16 00:20:14 +00:00
J.T. Conklin 29861dd01a * config/tc-sh.c (parse_reg): Recognize SH3 registers.
(get_specific): Handle A_SSR, A_SPC and A_REG_B.
(build_Mbytes): Handle REG_B.
1995-12-15 22:30:33 +00:00
Ian Lance Taylor ab0ec5d046 * disassemble.c (disassembler): Use new bfd_big_endian macro. 1995-12-15 21:45:00 +00:00
Ian Lance Taylor 656db2ed89 * ld-srec/srec.exp: Remove i960 COFF setup_xfail. 1995-12-15 21:39:35 +00:00