Commit Graph

5157 Commits

Author SHA1 Message Date
Ian Lance Taylor 013e4fa8fa * build-all.mk: Set GCC to gcc -O -G 8 for MIPS targets, since gcc
with gas currently defaults to -G 0.
1993-04-02 17:03:23 +00:00
Ian Lance Taylor ed364bb694 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
* configure.in (mips-sgi-irix*): Set gas_host to irix.
1993-04-02 16:57:17 +00:00
Ian Lance Taylor e9aff87e19 Maybe we should change ansidecl.h to define const as well as CONST?
* a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
	const.
1993-04-02 15:27:17 +00:00
Stu Grossman ccced87a0b * findvar.c (value_from_register): H8500 specific, check to see
if we are looking at short pointer.  If so, skip crock.
	* h8500-tdep.c (h8500_frame_chain):  Mask down value from
	read_memory_integer() to avoid getting messed up by sign extension.
1993-04-02 02:47:05 +00:00
K. Richard Pixley 0e18483336 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
ifdef protect using BAD_RICH_HACK.  This should be removed soon.
	* config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
1993-04-02 00:50:30 +00:00
Jim Kingdon 720b3aed42 New print_address for disassemblers, merge a29k and i960 disassemblers 1993-04-02 00:18:47 +00:00
Jim Kingdon 3245e377e4 * sparc-dis.c: Use fprintf_func a few places where I forgot,
and double percent signs a few places.
1993-04-01 23:24:57 +00:00
Ian Lance Taylor 7dcc06649a * Makefile.in (all-flex): flex depends on byacc. 1993-04-01 23:14:10 +00:00
Ian Lance Taylor 12eda6202b * build-all.mk: If host not specified, use config.guess. Pass TAG
to test-build.mk as RELEASE_TAG.
	* test-build.mk (configargs): New variable containing arguments to
	pass to configure.  Set to -with-gnu-as on mips-dec-ultrix.
	(FLAGS_TO_PASS): Pass down RELEASE_TAG.

	* config.guess: Use /bin/uname when checking -X argument on SCO,
	to avoid invoking GNU uname which doesn't understand -X.
1993-04-01 19:56:32 +00:00
Jim Kingdon e08c332141 Make circumvention of sun make VPATH bug include all relevant files 1993-04-01 18:56:02 +00:00
Ian Lance Taylor 43ba04b151 * test-build.mk: Don't use /usr/unsupported/bin/as on AIX. 1993-04-01 18:50:31 +00:00
Ian Lance Taylor 37ed0b119b Revert automatic setting of -with-gnu-ld and -with-gnu-as. 1993-04-01 18:49:02 +00:00
Jim Kingdon 117733ad8d make it work with recent sparc changes 1993-04-01 18:42:39 +00:00
Jim Kingdon f79feb23c0 remove another reference to sparc-pinsn.c 1993-04-01 18:36:14 +00:00
Ian Lance Taylor 3dcd81b926 * configure.in: Build gas for mips-*-*. If configuring gas and/or
ld, and the source directories exist, assume -with-gnu-as and/or
	-with-gnu-ld.
1993-04-01 18:34:14 +00:00
Jim Kingdon a6cead71cd Fix prototype problems related to recent disassembler changes 1993-04-01 18:04:51 +00:00
Peter Schauer 494503c776 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
entire breakpoint chain and print only the first entry that needs to
	be printed and needs to be stopped for. Fixes problems with printing
	of multiple breakpoints with different conditions.
	* breakpoint.c (print_it_done): Renamed from print_it_noop as it
	effectively stops printing of the breakpoint chain.
	* breakpoint.c (print_it_noop): New routine to print nothing
	for this breakpoint entry and dont stop printing.
	* breakpoint.c (breakpoint_re_set_one): mention the reevaluated
	watchpoint only if it is enabled.
	* mipsread.c (parse_procedure): Correct incorrect setjmp procedure
	descriptor from the library to make backtraces through setjmp work.
	* mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
	sigtramp.
	* mips-tdep.c (read_next_frame_reg): Provide correct values for
	all registers saved within sigtramp, cleanup.
1993-04-01 17:43:42 +00:00
Jim Kingdon 3ac166b105 this is part of the binutils/gdb sparc disassembler merge 1993-04-01 16:58:41 +00:00
Jim Kingdon f7ed13c7d5 merge binutils and gdb sparc disassemblers 1993-04-01 16:56:06 +00:00
Ken Raeburn d1c89c2817 merging this directory into testsuite 1993-04-01 13:18:55 +00:00
K. Richard Pixley bf097a0b40 * core.c (dis_asm_read_memory): drop fourth arg which conflicts with
prototype in ../include/dis-asm.h.
1993-04-01 05:27:06 +00:00
K. Richard Pixley 46d0ca81bd Insert a missing backslash. 1993-04-01 05:22:08 +00:00
K. Richard Pixley 05545edc03 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
deliberately return non-zero to setjmp from longjmp.  Otherwise
  this code fails to compile.
1993-04-01 04:52:59 +00:00
Ian Lance Taylor 4cb6685364 * build-all.mk, config/mh-irix4: Bump -XNh value to 1500 to match
gcc requirements.
1993-04-01 02:30:09 +00:00
Ian Lance Taylor 670a50ebf6 * subsegs.c (subseg_new): Set output_section of new section.
* as.c (perform_an_assemly_pass): Don't set output_section here.
	* expr.c (expr_part, expr): Turn off section assertions for ECOFF,
	since it has additional sections.
	* read.c (s_lcomm): For MIPS ECOFF, put small objects in .sbss,
	not bss_section.
	* config/obj-ecoff.h (TARGET_SYMBOL_FIELDS): Added
	ecoff_undefined field.
	* config/obj-ecoff.c (obj_symbol_new_hook): Initialize
	ecoff_undefined field.
	(add_file): If using stabs, just output a stabs symbol rather than
	creating a new fdr.
	(obj_ecoff_begin, obj_ecoff_bend): Ignore line number by reading
	it with get_absolute_expression, rather than skipping it by hand.
	(obj_ecoff_loc): If using stabs, just output a stabs symbol rather
	than ECOFF line number information.
	(obj_ecoff_stab): Accept non-zero values for stabs line number.
	(ecoff_build_symbols): Set ifilesym correctly.  Set storage class
	to small, undefined and/or readonly sections if appropriate.
	Don't output symbol names containing \001 characters.
	(ecoff_frob_file): Make sure at least one fdr is output.
	* config/tc-mips.h: Define TC_MIPS.
	* config/tc-mips.c (g_switch_value): New static variable.
	(md_assemble): Set gp size of output BFD.
	(gp_reference): New function; returns 1 if expression can be
	accesssed via gp.  Always returns 0 if not using ECOFF.
	(macro_build): Convert BFD_RELOC_LO16 to BFD_RELOC_MIPS_GPREL if
	possible.
	(macro): Generate sequences using gp if possible.
	(md_parse_option): Ignore -EL and -EB.  Parse -G.
	(md_apply_fix): Added BFD_RELOC_MIPS_GPREL to ignored case.
	(s_change_sec): Handle .rdata and .sdata for ECOFF.
	(s_extern): Mark symbol as external.  Set ecoff_undefined field.
1993-04-01 02:14:29 +00:00
Roland Pesch 8155a95d96 New material on H8/500, and better match between nodes and sections
(allows xrefs to work in printed version of doc).
1993-04-01 02:09:36 +00:00
Ian Lance Taylor 285a08ad73 * bfd.h: Updated for BFD_RELOC_MIPS_GPREL and bfd_[gs]et_gp_size
prototypes.
1993-04-01 01:52:47 +00:00
Roland Pesch 2d8e0f624d Back off last two checkins (this checkin identical with
devo/gas/doc/as.texinfo 1.38).
1993-04-01 01:14:33 +00:00
Stu Grossman cbe61cc651 * m68k-dis.c: Fix prototype for fetch_arg(). 1993-04-01 01:05:39 +00:00
Stu Grossman 5128f89208 * dis-asm.h: (disassemble_info): Fix typo in prototype of
dis_asm_memory_error().
1993-04-01 00:36:21 +00:00
Jim Kingdon aff22f452f New file dis-buf.c; part of read_memory_func changes just checked it 1993-03-31 21:45:59 +00:00
Jim Kingdon 5d0734a7d7 provide a new interface (using read_memory_func) to call the disassemblers
which copes with errors in a plausible way
1993-03-31 21:43:25 +00:00
Ian Lance Taylor 79337c85b8 * Makefile.in: Complete overhaul to merge many almost identical
targets.
1993-03-31 20:33:16 +00:00
David D. Zuhn 97c8694613 Keep mh-sun3 1993-03-31 02:54:10 +00:00
Ken Raeburn 40e16078da Build gas tar file, based on gdb code:
* Makefile.in (setup-dirs-gdb): Renamed from setup-dirs.
(gdb.tar.Z): Adjusted.

* Makefile.in (setup-dirs, taz): New targets; should be general enough to adapt
for gdb sometime.  Build only .z file.
(gas.tar.z): New target.
1993-03-31 01:31:10 +00:00
Ken Raeburn 4b061a2a1a log doc change 1993-03-31 00:51:59 +00:00
K. Richard Pixley 2093fe6840 Teach sparc solaris to next over shared library functions.
* solib.[hc] (find_pc_section_from_so_list): new function and
  prototype.
* sparc-tdep.c (in_solib_trampoline): new function.
* symfile.[hc] (find_pc_section): new function and prototypes.
* target.[hc] (find_pc_section_from_targets): new function and
  prototypes.
* config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
  in_solib_trampoline.
1993-03-31 00:29:22 +00:00
Jim Kingdon deae7611a3 * infrun.c (wait_for_inferior): Revise comment. 1993-03-30 23:33:04 +00:00
Roland Pesch 2412a76837 ld.texinfo:
Conditionalize manual to maintain Cygnus, Hitachi versions in parallel.
(Texinfo conditionals are stable enough to permit this, at last!)
NOTE: @ignore'd passages from earlier versions DELETED; use CVS history
      to retrieve if wanted.

gen-doc.texi, h8-doc.texi: manual configuration definitions.

Makefile.in: link config defn (`gen' by default) to configdoc.texi, included
      by ld.texinfo

.Sanitize: add gen-doc.texi, h8-doc.texi
1993-03-30 23:25:03 +00:00
Jim Kingdon 359a097f9f Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
* command.c (do_setshow_command): Use %u with var_{u,z}integer.

	* command.{c,h}: New var_type var_integer.
	main.c: Use it for history_size.

	* rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
	Lint and byte-order fixups.
1993-03-30 23:06:29 +00:00
Steve Chamberlain ae35ae7f4c * bfd.h: Update for lma field of section. 1993-03-30 22:49:54 +00:00
Steve Chamberlain 9fce28edd5 Support for linking and loading at different places:
* ldlex.l: Add "AT" keyword.
	* ldgram.y: Cleanup, and parse AT.
	* ldlang.c (print_output_section_statement): Print output address
	of section in map. (lang_size_sections): Fill sections' lma with
	load address.
	* ldlang.h (lang_output_section_statement_type): Add load_base
	information.
1993-03-30 22:45:39 +00:00
Jim Kingdon 01b4d31847 Use ANSI versions on AIX regardless of __STDC__. 1993-03-30 20:34:57 +00:00
Jim Kingdon 3f031adf9f (print_it_normal): return 0 after hitting watchpoint 1993-03-30 19:10:31 +00:00
Jim Kingdon 8af68e4efb * breakpoint.h (bpstat): New field print_it.
breakpoint.c (bpstat_print): Use it.
	(print_it_normal): New function (from old bpstat_print code).
	(bpstat_{alloc,stop_status}): Set print_it field.

	* breakpoint.c (bpstat_stop_status): Use catch_errors when
	evaluating watchpoint condition, via new function watchpoint_check.
	Also stop if watchpoint disabled due to leaving its block.
1993-03-30 18:55:20 +00:00
Steve Chamberlain af6d4cf50d Reflect new indirect info 1993-03-30 18:25:27 +00:00
Ian Lance Taylor 6d98b3d2b0 * build-all.mk: Use CC=cc -Xs on Solaris. 1993-03-30 18:04:32 +00:00
Peter Schauer 1096d1de5d * config/unix-gdb.exp: Add missing return 0. 1993-03-30 18:00:50 +00:00
Steve Chamberlain 29f33467f2 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
* ldindr.c (add_indirect): Keep more information in the alias
	symbol chain.
	* ldlang.c (wild_doit):  Don't inherit NEVER_LOAD section
	attribute from an input section.
	* ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
	default. (Q_enter_file_symbos): Indirect symbols now are known by
	their section, not a special symbol flag.
	* ldsym.c (write_file_locals): Indirect symbols aren't local.
	(write_file_globals): Write the mapping for an indirect symbol.
	* relax.c (build_it): When forced to write a NEVER_LOAD section,
	fill it with zeros.
1993-03-30 17:49:00 +00:00
Steve Chamberlain 21c7770362 * aoutx.h (translate_from_native_sym_flags): Now handles indirect
symbols in a better way. (translate_to_native_sym_flag): Set the
	N_INDR bit when necessary. (aout<>slurp_symbol_table): Maintain
	indirect state.
	* section.c: Added BFD_IND_SECTION_NAME and bfd_ind_section.
	(bfd_make_section): Cope with new builtin section.
	* syms.c (bfd_decode_symclass): Can now print indirect section
	info.
1993-03-30 17:40:51 +00:00