Commit Graph

14665 Commits

Author SHA1 Message Date
David Edelsohn 177b193219 Clean up some comments. 1995-11-18 20:05:06 +00:00
Peter Schauer a94bead5fc * gdb.stabs/alpha.mt: Use $(CFLAGS) when building weird.o. 1995-11-18 12:25:18 +00:00
Peter Schauer 2e11fdd8f8 * annotate.c (annotate_source, annotate_frame_begin): Issue
`0x' prefix for the pc value, to remain consistent with previous
	GDB versions.

	* blockframe.c (find_pc_partial_function), config/pa/tm-hppa.h:
	Remove Sun shared library transfer hack and
	INHIBIT_SUNSOLIB_TRANSFER_TABLE_HACK, it is obsoleted by the
	mst_solib_trampoline minimal symbols.

	* blockframe.c (inside_main_func):  Check main_func_*pc against
	INVALID_ENTRY_*PC, not zero.
	* symfile.c (init_entry_point_info):  Initialize ei.*pc with
	INVALID_ENTRY_*PC.
	* mipsread.c (mipscoff_symfile_read):  If the entry_file bounds
	are still unknown after processing the partial symbols, then try
	to set them from the minimal symbols.

	* infcmd.c (registers_info):  Error out if selected_frame is NULL.
	* stack.c (return_command):  Select new current frame silently if
	not interactive.

	* mipsread.c (read_alphacoff_dynamic_symtab):  Ignore additional
	DT_MIPS_LOCAL_GOTNO and DT_MIPS_GOTSYM entries.

	* irix5-nat.c (solib_create_inferior_hook):  Call solib_add only
	if auto_solib_add_at_startup is nonzero.
	(_initialize_solib):  Add "set auto-solib-add" command.
	* osfsolib.c (solib_create_inferior_hook):  Call solib_add only
	if auto_solib_add_at_startup is nonzero.
	(_initialize_solib):  Add "set auto-solib-add" command.
1995-11-18 12:19:25 +00:00
David Edelsohn e47e480588 * armdefs.h (ARMul_State): New member `verbose'.
* armrdi.c (ARMul_ConsolePrint): Add missing va_end.
	* run.c (verbose): Make global.
	* wrapper.c (init): Set state->verbose.
	(ARMul_ConsolePrint): Don't print anything if !verbose.
1995-11-18 03:39:17 +00:00
Jim Wilson 708f6147e4 Patch for Hitachi PR 8433, avoid core dump on HPUX host
* gencode.c (tab): Add explicit NaN support for ftrc instruction.
1995-11-18 02:03:21 +00:00
Jason Molenda 77cd090ad5 * configure.in (target_configdirs): add target-winsup only
for win32 target systems.
1995-11-18 01:43:37 +00:00
Michael Meissner 15ec5b60e2 Add scheduling support for M{F,T}CR 1995-11-18 01:39:04 +00:00
Michael Meissner 54e986998a More scheduling stuff 1995-11-18 01:14:45 +00:00
Stan Shebs 9079ed57d8 Keep PowerMac emulation file. 1995-11-18 00:55:22 +00:00
Stan Shebs 5ac7a6e96e * configure.tgt (powerpc-*-macos*): New target.
* emulparams/ppcmacos.sh: New file, PowerMac emulation.
	* Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
	(eppcmacos.c): New target.
	* mpw-eppcmacos.c: Update.
	* mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
1995-11-18 00:50:06 +00:00
Rob Savoye 7bb5e83191 * configure.in: Change "idt" config to a generic "embed" config
for all mips*-*-ecoff or elf configurations.
	* configure: Regenerate using autoconf 2.4.
	* config/mips/{idt*.mt,tm-idt*.h}: Rename to "idt" part of the
	name to "embed". Build remote-array.o along with IDT protocols.
	* remote-array.c: Nuke setting the serial port to 4800 baud.
1995-11-18 00:25:35 +00:00
Ian Lance Taylor 535e9e2943 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
pointerize C_LEAFSTAT or C_LEAFEXT entries.
1995-11-17 21:59:17 +00:00
Michael Meissner 4220dcd698 checkpoint ppc simulator 1995-11-17 19:17:58 +00:00
Ian Lance Taylor e34314c45d Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
* elf-bfd.h (struct elf_link_hash_table): Change type of
	dynsymcount and bucketcount fields from size_t to bfd_size_type.
1995-11-17 15:43:18 +00:00
Ian Lance Taylor dfc84b08d6 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
$(host_canonical) and $(target_canonical).
	(CXX_FOR_TARGET): Likewise.
1995-11-17 15:38:44 +00:00
Ian Lance Taylor a42cadde44 * gas/mri/immconst.d: New test.
* gas/mri/mri.exp: Run it.
	* gas/mri/constants.s: Test immediate constants.
	* gas/mri/constants.d: Corresponding change.
1995-11-17 15:36:38 +00:00
Ian Lance Taylor 73a684473d * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
DT_INIT and DT_FINI entries if the _init or _fini symbol is
	defined or mentioned in a regular file.
PR 8462.
1995-11-17 15:05:44 +00:00
Geoffrey Noer aee7f7a306 complete.c: Change WIN32 to __WIN32__, added #else return NULL
to end of that define.
1995-11-16 23:43:47 +00:00
Michael Meissner 84bbbc3577 Delete old functional_unit support; Add --enable-sim-model-issue; Monitor branch prediction success 1995-11-16 21:42:27 +00:00
Kim Knuttila cd2b240203 Reloc fixes for PowerPC PE 1995-11-16 20:51:08 +00:00
David Edelsohn c4a14eefe2 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
so the malloc heap begins at a sane place.
1995-11-16 19:28:05 +00:00
Michael Meissner 867b71685a fix bug in last checkin 1995-11-16 19:25:47 +00:00
Ian Lance Taylor 71a164f70a * Makefile.in (all-target-libgloss): Depend upon
configure-target-newlib, since when libgloss is built it looks to
	see if the newlib directory exists.
1995-11-16 19:05:52 +00:00
Michael Meissner 845ff5a45f more functional unit changes 1995-11-16 19:02:52 +00:00
Ian Lance Taylor aa8a6656ee * config/m68k-parse.y (yylex): In MRI mode, '@' can start an octal
number.
	* expr.c (operand): Handle MRI suffixes after unadorned 0.
1995-11-16 17:51:35 +00:00
Ken Raeburn b218076e59 version 2.6 1995-11-16 10:12:33 +00:00
Ken Raeburn da9b55af46 version 2.6 1995-11-16 09:58:27 +00:00
Ken Raeburn 7b889f5eed * config/obj-coff.c (write_object_file): Change use of md_do_align to pass a
pointer rather than a fill value, to match other uses.

* config/tc-ns32k.h (TC_FIX_TYPE): Add missing semicolon.
1995-11-16 05:38:58 +00:00
Stan Shebs 21ef3a298e * utils.c: Don't include sys/ioctl.h etc if MPW is host. 1995-11-16 01:24:25 +00:00
Ken Raeburn ae75c4a423 log for this morning's makefile (make dep) change 1995-11-16 00:32:34 +00:00
Ian Lance Taylor e9f3061668 * targets.c (bfd_target): Change type of second argument to
_bfd_print_private_bfd_data from void * to PTR.
	* libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
	using PTR rather than void *.
	* bfd-in2, libbfd.h: Rebuild.
	* peicode.h (pe_print_private_bfd_data): Change vfile from void *
	to PTR.
	* elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
	_bfd_generic_bfd_print_private_bfd_data rather than casting
	bfd_true.
1995-11-15 23:17:21 +00:00
Michael Meissner acb06d3040 Add option to make options inline 1995-11-15 23:01:47 +00:00
Michael Meissner 80948f392b More model specific changes 1995-11-15 22:53:59 +00:00
Ian Lance Taylor 1b09c02b17 * ld-srec/srec.exp: New tests.
* ld-srec/sr1.c, ld-srec/sr2.c, ld-srec/sr3.cc: New files.
	* lib/ld.exp (ld_simple_link): Discard warnings about not being
	able to find the entry symbol.
1995-11-15 22:44:56 +00:00
David Edelsohn d7cde714c1 * config/arm/tm-arm.h (ADDITIONAL_REGISTER_NAMES): Fix r5.
(FRAME_SAVED_PC): Minor clean up.
1995-11-15 20:18:00 +00:00
Ian Lance Taylor febc1fc3e3 * binutils-all/objcopy.exp: If assembly fails, call unresolved.
Test running objcopy and strip on a final executable.
	* binutils-all/testprog.c: New file.
	* config/default.exp (STRIP, STRIPFLAGS): Define.
	(binutils_compile): New procedure.
	* lib/utils-lib.exp (default_binutils_compile): New procedure.
1995-11-15 17:21:26 +00:00
Ian Lance Taylor 29386972b9 * configure: Handle LD and LD_FOR_TARGET when configuring a
Canadian Cross.
1995-11-15 16:46:19 +00:00
Michael Meissner cc7ef3c306 ppcbug-rom checkin 1995-11-15 15:36:47 +00:00
Ken Raeburn 46618ae6e7 move md_end use, and make use of it in cpu back ends. clean up empty, unused
md_end functions.

i386 changes from Alan Modra for using multi-byte sequences instead of
single nops for code alignment.
1995-11-15 10:56:07 +00:00
Jeff Law dfbb1a26dc * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
* gdb.base/corefile.exp: Likewise.
        * gdb.base/funcargs.exp: Likewise.

Never should have been there anyway.
1995-11-15 07:30:52 +00:00
Ian Lance Taylor 4b71e164cd * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
not at the file position of the first section.
	* coffcode.h (coff_compute_section_file_positions): Avoid using
	unportable #elif.
	(coff_write_object_contents): When generating a PPC PE executable
	with no symbols, round up the file size to a COFF_PAGE_SIZE
	boundary.
	* cofflink.c (_bfd_coff_final_link): If there are no symbols,
	don't write out a string table.
1995-11-15 04:41:10 +00:00
Ian Lance Taylor 631b10f44e * elf.c (bfd_section_from_shdr): When using a different section
header, pass the new one to _bfd_elf_make_section_from_shdr.
	(elf_fake_sections): Don't set sh_info and sh_entsize fields.
	(elf_map_symbols): Add section VMA to symbol value when comparing
	against 0.
	(_bfd_elf_compute_section_file_positions): Only build symbol table
	if there are some symbols.  Set file offset of symtab and strtab
	sections.
	(assign_file_positions_except_relocs): Remove dosyms parameter.
	Change all callers.  Never set file offset of symtab and strtab
	sections.
	(_bfd_elf_copy_private_section_data): New function.
	(MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
	(_bfd_elf_copy_private_symbol_data): New function.
	(swap_out_syms): Check for special mapping of st_shndx created by
	copy_private_symbol_data.
	* elfxx-target.h: Use new copy routines.
	* elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
	(_bfd_elf_copy_private_section_data): Declare.
1995-11-15 01:34:56 +00:00
Ian Lance Taylor ab276dfa72 comment fix 1995-11-15 01:14:26 +00:00
Ian Lance Taylor 28f6feaf2e * ld-sh/sh2.c (__main): Define. 1995-11-15 01:05:26 +00:00
Stu Grossman fe2f8313f0 * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
actually uses pr+0.
1995-11-15 00:47:21 +00:00
Michael Meissner 97a002e72a Switch to using new fangled monitor.o routines for ppcbug, rather than remote 1995-11-15 00:11:14 +00:00
Stu Grossman 9999417ef6 * gencode.c: jsr actually saves pc+4, and rts actually uses pr+0. 1995-11-14 23:42:22 +00:00
Stu Grossman 7c0fe2ebbd * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
* config/monitor.exp:  Add support for setting baud rate.
1995-11-14 23:41:36 +00:00
Stu Grossman ee824ca663 * monitor.c (monitor_load_srec monitor_make_srec): Move all
S-record download code into srec.c.
	* srec.c srec.h:  New files.  Contain S-record loading routines
	formerly in monitor.c.
	* serial.c serial.h:  New routine just like fprintf, but uses
	serial_t instead of FILE *.
	* sh-tdep.c (frame_find_saved_regs init_extra_frame_info):
	Don't add four to saved pc (makes things match manual).  Also, fix
	bug where we didn't get pc from stack frame correctly.
	* config/sh/tm-sh.h (SAVED_PC_AFTER_CALL):  Don't add four to
	saved pc.  Real hardware does this for you.
	* sh3-rom.c (sh3_load):  New routine.  Sets up for download then
	calls generic S-record loader.
	* config/h8300/h8300.mt, config/h8500/h8500.mt,
	config/m68k/monitor.mt, config/pa/hppapro.mt, config/sh/sh.mt:
	Add srec.o to TDEPFILES.
1995-11-14 23:40:18 +00:00
Stu Grossman 5c8ba01776 * monitor.c (monitor_load_srec monitor_make_srec): Move all
S-record download code into srec.c.
	* srec.c srec.h:  New files.  Contain S-record loading routines
	formerly in monitor.c.
	* serial.c serial.h:  New routine just like fprintf, but uses
	serial_t instead of FILE *.
	* sh-tdep.c (frame_find_saved_regs init_extra_frame_info):
	Don't add four to saved pc (makes things match manual).  Also, fix
	bug where we didn't get pc from stack frame correctly.
	* config/sh/tm-sh.h (SAVED_PC_AFTER_CALL):  Don't add four to
	saved pc.  Real hardware does this for you.
	* sh3-rom.c (sh3_load):  New routine.  Sets up for download then
	calls generic S-record loader.
	* config/h8300/h8300.mt, config/h8500/h8500.mt,
	config/m68k/monitor.mt, config/pa/hppapro.mt, config/sh/sh.mt:
	Add srec.o to TDEPFILES.
1995-11-14 23:24:10 +00:00