Commit Graph

10304 Commits

Author SHA1 Message Date
David MacKenzie ebd6f11797 * as.c (show_usage): New function.
(parse_args): Code moved from main.
	Recognize --help and --version.
	* config/tc-ns32k.h: Define TC_NS32K.
	* doc/as.texinfo: Document all of the target-independent command
	line options.
1994-06-02 21:00:19 +00:00
Ken Raeburn b166d61474 * Makefile.in (distclean): Remove site config files and gas.sum. 1994-06-02 19:09:30 +00:00
Karen Christiansen 055cc3ffb9 updated with new targets for 94q2 and hppa info 1994-06-02 18:02:28 +00:00
Stu Grossman 2e6784a89f * configure.in: Add nlm subdir to configdirs for alpha-*-netware
target.
	* defs.h (enum language):  Add language_asm.
	* findvar.c (read_register_bytes read_register_gen
	write_register_bytes read_register read_register_pid
	write_register write_register_pid supply_register):  Move multi-
	thread handling down into these routines.  Create XXX_pid routines
	that allow register references to specify the pid.
	* findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
	read_sp write_sp read_fp write_fp):  Move these routines from
	infcmd to findvar to centralize the whole mess.
	* i386-nlmstub.c:  Portability fixes.
	* infptrace.c (child_resume):  Conditionalize to allow other natives
	to override it.  Remove PIDGET gubbish, it's no longer necessary.
	* infrun.c (wait_for_inferior):  Put registers_changed() before
	target_wait() to speed up remote debugging.
	* Replace code that reads registers from other threads with much
	nicer looking new function calls (see changes to findvar.c).
	* Don't skip prologues if debugging assembly source.
	* lynx-nat.c (child_resume):  Lynx now needs it's own version of
	child_resume to handle multi-thread debugging properly.
	* remote.c:  Add O response to get console output from target.
	* (readchar): Add timeout parameter.  Handle SERIAL_EOF and
	SERIAL_ERROR here to simplify callers.
	* Change static var timeout to remote_timeout.
	* (fromhex):  Remove unnecessary return -1 at end of routine.
	* (remote_wait):  Turn this into a big switch statement.  Add
	support for O response.
	* (putpkt):  Remove unnecessary handling of SERIAL_EOF/ERROR.
	* (getpkt):  Split getpkt into two parts.  read_frame deals with
	all formatting issues, run-length encoding, and framing.  getpkt
	now handles error recovery, and frame detection.
	* ser-tcp.c (tcp_readchar):  Handle EINTR from read().
	* ser-unix.c (hardwire_raw):  Set CLOCAL so that we ignore modem
	control.  (hardwire_readchar):  Handle EINTR from read().
	* symfile.c (deduce_language_from_filename):  Add support for .s
	files.
	* config/nm-lynx.h:  Define CHILD_WAIT so that lynx-nat.c can
	override infptrace's child_wait.
	* config/rs6000/rs6000lynx.mh:  Use xm-rs6000ly.h & nm-rs6000ly.h
	instead of XXXlynx.h.
	* config/rs6000/rs6000lynx.mt:  Use tm-rs6000ly.h instead of
	tm-rs6000lynx.h.
	* nlm/gdbserve.c:  Portability fixes.
1994-06-02 16:58:48 +00:00
Ken Raeburn 314628f66c Various changes.. 1994-06-02 16:38:54 +00:00
Ken Raeburn 7577d7b645 (hash_new_table): Clear newly allocated table. 1994-06-02 16:37:55 +00:00
Ken Raeburn 82489ea062 68060 support 1994-06-02 16:35:41 +00:00
Ken Raeburn c84291b43c m68060 changes 1994-06-02 16:23:55 +00:00
Ken Raeburn 2283f8a02a (fixup_segment) [!BFD_ASSEMBLER] [DIFF_EXPR_OK]: Do conversion to pc-relative
for difference, even if pcrel is already set.
1994-06-02 16:18:33 +00:00
Ken Raeburn 6ef37255ad (potable): Add this_gcc_requires_the_gnu_assembler in all lower-case, in case
we're ignoring case of opcodes in the input file.
1994-06-02 16:15:56 +00:00
Ken Raeburn b418bc52c0 (target i386-*-netbsd0.8): Use 386bsd emulation. 1994-06-02 16:07:16 +00:00
Ken Raeburn 0952861cab Handle EV5 (21164/66/68) PALcode support.
* config/tc-alpha.c (machine): New variable.
(load_insn): New macro.
(load_insn_table): New function.
(md_begin): Call load_insn_table, once for basic instructions and
once for appropriate PAL instruction table.
(md_parse_option): Set `machine' based on -m##### arguments.

* config/alpha-opcode.h (alpha_pal21064_opcodes): Split out from alpha_opcodes.
(alpha_pal21164_opcodes): New table.
(NUM21064OPCODES, NUM21164OPCODES): New macros.
1994-06-02 16:06:43 +00:00
Ken Raeburn 4b9f440949 (.section): Document as unavailable for a.out type formats. 1994-06-02 16:03:41 +00:00
Ken Raeburn f299d06dd5 (install-info-gasp): Use $$dir when installing file. 1994-06-02 16:01:18 +00:00
Ian Lance Taylor 9402894306 * configure: If config.guess result is a prefix of the user
specified target, assume a native build and use the user specified
	target as the host alias.  Remove SunOS patch suffix removal hack.
	* configure.in: Remove SunOS patch suffix removal hack.
1994-06-02 04:40:34 +00:00
Ian Lance Taylor a0de4c4d9c * Makefile.in (CROSS_CHECK_MODULES): Remove check-flex, since it's
in NATIVE_CHECK_MODULES.
1994-06-02 04:14:05 +00:00
Jim Kingdon cb0520c4d1 * stabs.texinfo (Statics): Value of xcoff C_BSTAT points to
another symbol, it is not the address itself.
1994-06-01 23:14:45 +00:00
Bill Cox d237841cc5 * Makefile.in: Rename HOST_ONLY to NATIVE.
* configure: Delete SunOs patch suffix from host_canonical
	  and build_canonical variables that are prepended to Makefiles.
	* configure.in: Add comments to patch suffix removal for easier
          maintenance.
1994-06-01 21:38:29 +00:00
Rob Savoye 16451f9b70 Unneeded. 1994-06-01 20:40:53 +00:00
Rob Savoye 9346963065 Renamed. 1994-06-01 20:30:19 +00:00
Jim Kingdon 3de70f1dd8 * Makefile.in: Add all-libproc target similar to all-gui. 1994-06-01 19:35:51 +00:00
Jim Kingdon d3507982fb * inftarg.c (child_wait): Call proc_wait, not wait.
(child_mourn_inferior): Call proc_remove_foreign.
	* main.c (gdb_init): Call init_proc.
	* main.c: Provide dummy versions of init_proc, proc_wait, and
	proc_remove_foreign for the gdb case (the libgdb case provides its
	own versions of these functions).
	* Makefile.in (libgdb-files): Add libproc.a.
1994-06-01 19:28:24 +00:00
Ian Lance Taylor 220642fd47 * hosts/sun3.h: Don't declare qsort, malloc or realloc. 1994-06-01 18:39:43 +00:00
Ian Lance Taylor 210c52ac91 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
total_size, superfile and chain.
	* ldfile.c (open_a): Don't clear search_dirs_flag.
	(ldfile_open_file): Don't try to open superfile.  Assert that file
	has not already been opened.
	* ldlang.c (new_afile): Don't initialize superfile.
	* ldmain.c (add_archive_element): Don't initialize subfiles or
	chain or superfile.  Initialize search_dirs_flag to false.
1994-06-01 18:28:26 +00:00
Stan Shebs 6d40175db0 Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)
Hardware watchpoints for Linux, from Rick Sladkey
	(jrs@world.std.com).
	* infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
	new hardware breakpoint recovery method.
	* i386v-nat.c (i386_insert_watchpoint,
	i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
	i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
	New functions to support the 386 hardware debugging registers.
	* config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
	HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
	target_insert_watchpoint, target_remove_watchpoint): Define these
	macros to use the hardware debugging functions in i386v-nat.c.
1994-06-01 18:26:16 +00:00
Ian Lance Taylor 0221ddf71a * config/tc-mips.c (mips_ip): Force floating point values to be
aligned correctly.
1994-06-01 14:56:21 +00:00
Thomas Lord aa46093228 Tue May 31 17:16:33 1994 Tom Lord (lord@cygnus.com)
* Makefile.in (CHECK_MODULES): split into
	HOST_ONLY_CHECK_MODULES and CROSS_CHECK_MODULES.
1994-06-01 00:18:40 +00:00
Thomas Lord 4f0b8f2791 Don't check flex when cross building. 1994-06-01 00:16:26 +00:00
Per Bothner 0b9158e6fa * Makefile.in: Fix bit-rot in definitions of CHILL,
CHILL_FOR_TARGET and Chill_LIB.
1994-05-30 05:34:32 +00:00
Ken Raeburn 488442d458 put current timestamp on merge log 1994-05-27 17:06:21 +00:00
Ken Raeburn c06e55d99a changes from gas-2.3/binutils-2.4 dist (details in branch log msgs, changelogs) 1994-05-27 16:58:05 +00:00
Ian Lance Taylor 60e8a53407 * ldlang.c (entry_symbol): Make static.
(lang_add_entry): Add cmdline argument.
	* ldlang.h (lang_add_entry): Change prototype.
	* ldgram.y (statement_anywhere): Change lang_add_entry call.
	* lexsup.c (parse_args): Likewise.
1994-05-27 15:39:11 +00:00
Ian Lance Taylor 29371b1feb * ldlang.c (lang_add_entry): Only set the entry symbol if it has
not been set already.
1994-05-27 05:09:31 +00:00
Steve Chamberlain 3d3e5651cf * interp.c (trap): Fix irix incompatibility.
* run.c (main): open without specifying file type.
1994-05-27 02:06:14 +00:00
Jim Kingdon 1fd6553177 * Makefile.in: Add all-gui target (but not yet build by "all"). 1994-05-26 23:55:34 +00:00
Jim Kingdon 667fb5c3a7 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
build it.
1994-05-26 23:46:00 +00:00
Jeff Law ada45a2a82 * som.c (som_prep_headers): Do not set the system_id here, private
bfd data has not been copied yet.
	(som_write_headers): Instead do it here.
1994-05-26 16:13:47 +00:00
Bill Cox 66dea5074e * config.sub: Move deletion of patch suffix from here...
* configure.in: To here, at Ian's suggestion.  The top-
	  level scripts might need to know of a patch level.
1994-05-26 15:59:22 +00:00
Per Bothner 06f98d4908 * Makefile.in (TARGET_FLAGS_TO_PASS): Fix syntax of
sanitize-chill comments.
1994-05-26 00:12:21 +00:00
Bill Cox b28575936e * config.sub: Strip off patch suffix so rtl is recognized
as a sunos4.1.3 machine, even though it's been patched.
1994-05-25 16:23:13 +00:00
Thomas Lord 8eb7b7c354 Make all the libgdb objects even when building gdb. This is because
cyscm links against ../../gdb/{...}.o

Added a new target: libgdb-files.  It creates a file of that name
containing a list of files for libgdb.  If the variable LIBGDBPREFIX
is set, each file name has that prepended.
1994-05-25 15:39:12 +00:00
Jim Kingdon a13d789c7f Mention gdb-testers-request as well as gdb-testers. (not in ChangeLog
because gdb distributions should not contain references to snapshots).
1994-05-24 23:56:30 +00:00
Ian Lance Taylor 5315c42827 Make MIPS ELF use new ELF backend linker. No shared library
support yet.
	* elf32-mips.c (bfd_mips_elf32_swap_gptab_in): New function.
	(bfd_mips_elf32_swap_gptab_out): New function.
	(mips_elf_object_p): If last symbol is LOCAL, set elf_bad_symtab.
	(mips_elf_final_write_processing): Set sh_info field for .gptab.*
	sections.
	(mips_elf_fake_sections): Set sh_entsize for .gptab.* sections.
	(mips_elf_read_ecoff_info): Read and free external symbols last,
	not first, for clarity.
	(struct mips_elf_link_hash_entry): Define new structure.
	(struct mips_elf_link_hash_table): Define new structure.
	(mips_elf_link_hash_lookup): Define new macro.
	(mips_elf_link_hash_traverse): Define new macro.
	(mips_elf_hash_table): Define new macro.
	(mips_elf_link_hash_newfunc): New static function.
	(mips_elf_link_hash_table_create): New static function.
	(mips_elf_add_symbol_hook): New static function.
	(struct extsym_info): Define new structure.
	(mips_elf_get_extr, mips_elf_set_index): Remove.
	(mips_elf_output_extsym): New static function.
	(gptab_compare): New static function.
	(mips_elf_final_link): Rewrite to use ELF backend linker, and to
	merge gptab information in input files.
	(mips_elf_relocate_hi16): New static function.
	(mips_elf_relocate_section): New static function.
	(bfd_elf32_bfd_link_hash_table_create): Define as macro before
	including elf32-target.h.
	(elf_backend_relocate_section): Likewise.
	(elf_backend_add_symbol_hook): Likewise.
	* elf.c (_bfd_elf_link_hash_newfunc): Rename from
	elf_link_hash_newfunc and make globally visible.  Change caller.
	(_bfd_elf_link_hash_table_init): New function, broken out of
	_bfd_elf_link_hash_table_create.
	(_bfd_elf_link_hash_table_create): Use
	_bfd_elf_link_hash_table_init.
	* libelf.h (struct elf_obj_tdata): Add new field bad_symtab.
	(elf_bad_symtab): Define new accessor macro.
	(_bfd_elf_link_hash_newfunc): Declare.
	(_bew_elf_link_hash_table_init): Declare.
	* elfcode.h (elf_object_p): Call backend object_p hook after
	swapping in all the section headers.
	(map_program_segments): Correct typo: Internal for External.
	(elf_link_add_object_symbols): If elf_bad_symtab is set, read all
	the symbols.  Skip STB_LOCAL symbols rather than giving an error.
	(elf_bfd_final_link): If elf_bad_symtab is set, allocate space for
	all symbols, not just locals.
	(elf_link_output_extsym): Only skip a symbol not mentioned by a
	regular file if it is mentioned by a dynamic object.
	(elf_link_input_bfd): If elf_bad_symtab is set, read all the
	symbols.
1994-05-24 20:44:50 +00:00
Ian Lance Taylor f49f58c6a8 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
.reginfo an address.
	(OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
	(OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
	* scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
1994-05-24 20:21:27 +00:00
Bill Cox 90fba5fa0f * Revert the previous changes. Please see Rob's directory
/lisa/test/rob/progressive/gdb/testsuite for these fixes.
1994-05-21 17:24:22 +00:00
Ian Lance Taylor a193acc0cc * as.h: Don't declare parameters for strstr. 1994-05-20 22:02:39 +00:00
Ian Lance Taylor c8588f2f74 * coff-mips.c (mips_relocate_section): Add MIPS_R_JMPADDR overflow
checking.
1994-05-20 20:17:50 +00:00
Jeff Law 88bbe402bb * som.c (som_set_reloc_info): Do not set any relocation info
for SOM fixups which are never passed to BFD.
1994-05-20 19:43:18 +00:00
Ian Lance Taylor 08eceac316 Remove mention of keep-powerpc-netware: PowerPC NetWare is no longer
sanitized.
1994-05-20 18:26:18 +00:00
Ian Lance Taylor eb8f714f21 Remove sanitization of PowerPC NetWare 1994-05-20 18:25:30 +00:00