Commit graph

5083 commits

Author SHA1 Message Date
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
Ken Raeburn
39d4b51986 new test cases 1993-03-30 16:57:45 +00:00
Peter Schauer
72ea43e648 * gdb.t16/printcmds.exp: Remove misplaced xfail that caused an early
test termination.
1993-03-30 16:38:23 +00:00
Ken Raeburn
4478def83a go back to const instead of CONST 1993-03-30 16:23:32 +00:00
Ken Raeburn
2b1b569795 checkpoint, for lots of recent changes 1993-03-30 16:18:16 +00:00
Jim Kingdon
b27be7926c *** empty log message *** 1993-03-30 16:07:17 +00:00
Jim Kingdon
0791c5ea6c add comment 1993-03-30 15:59:01 +00:00
Ken Raeburn
c0f1bbb6d0 build file symbol fwd pointers properly, don't deref symbol #s as pointers 1993-03-30 15:22:27 +00:00
Ken Raeburn
68878ef1aa move local include after system ones; use CONST not const 1993-03-30 15:17:58 +00:00
Ken Raeburn
0193302d9b start using new texinfo stuff -- variables, conditionals. far from complete 1993-03-30 15:16:08 +00:00
Ken Raeburn
d303835063 look for GAS_VERSION macro, not external version_string var 1993-03-30 15:15:53 +00:00
Peter Schauer
aa66fddd75 * mips-pinsn.c: Add missing include of dis-asm.h. 1993-03-30 08:16:25 +00:00
Roland Pesch
d76ae847f0 Fix index reference (h8/300, not i960). 1993-03-30 06:55:41 +00:00
David D. Zuhn
48686e6d22 top level CC settings for special tweaks needed 1993-03-30 04:01:55 +00:00
Fred Fish
239121e2b7 * Makefile.in (clean, distclean, realclean): Recursively apply
to subdirs first, rather than last.  This avoids, for example,
	Makefile being removed in a parent directory before the recursive
	make is run.
1993-03-30 01:49:04 +00:00
Fred Fish
7007db9600 * configure.in (subdirs): Put back gdb.t17 which mysteriously
disappeared.
1993-03-30 01:38:19 +00:00
Fred Fish
141ccc0350 Update for just completed file renamings. 1993-03-30 01:14:35 +00:00
Fred Fish
2225eb851e * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
* m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
	tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
	tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}:  Include tm-m68k.h
	instead of tm-68k.h.
	* Makefile.in (HFILES):  tm-68k.h renamed to tm-m68k.h.
	* README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
	m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
	nm-hp300bsd.h, config/m68k/xm-apollo68b.h}:  Map '68k' to 'm68k'.
	* a29k/tm-a29k.h, doc/gdbint.texinfo:  Account for renaming of
	tm-68k.h to tm-m68k.h.
	* m68k/m68k-fp.mt (TM_FILE):  tm-68k-fp.h renamed to tm-m68k-fp.h.
	* m68k/m68k-nofp.mt (TM_FILE):  tm-68k-nofp.h renamed to
	tm-m68k-nofp.h.
1993-03-30 00:33:44 +00:00
Jim Kingdon
0a97f6c4a1 Add comments regarding breakpoint_re_set 1993-03-29 23:46:12 +00:00
Fred Fish
d7d35f004c * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
* a29k-pinsn.c:  Renamed from am29k-pinsn.c.
	* a29k-tdep.c:  Renamed from am29k-tdep.c.
	* remote-eb.c, config/a29k/tm-ultra3.h:  Include renamed tm-a29k.h.
	* remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
	tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
	testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
	Map '29k' to 'a29k'.
	* config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
	(TDEPFILES):  Use renamed a29k-pinsn.o and a29k-tdep.o.
	* config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE):  Use renamed
	tm-a29k.h.
	* config/a29k/a29k-udi.mt (MT_CFLAGS):  Remove TARGET_AM29K
	define that does not appear anywhere else in the gdb source tree.
	* doc/gdbinit.texinfo:  Document renaming of tm-29k.h to tm-a29k.h.
1993-03-29 23:38:30 +00:00
Jim Kingdon
e5c007603f * xcoffread.c (sort_syms, compare_symbols): Remove.
(xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
	not our own sort_syms (it is identical).
1993-03-29 22:25:59 +00:00
Jim Kingdon
ad3768932d * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used). 1993-03-29 21:58:29 +00:00
Steve Chamberlain
e02eaa5943 * config/obj-coffbfd.c (do_relocs_for): Fix bug where nrelocs
wasn't being stored into scnhdr.
	* config/obj-coffbfd.h: Add prototype of s_get_segment.
	* read.c (TC_START_LABEL): Default definition.
	(read_a_source_file): Use TC_START_LABEL macro to work out
	if a label has been seen.
1993-03-29 21:56:49 +00:00
Ian Lance Taylor
c39b3eba78 * configure.in: Set BFDDEF and BFDLIB at the top of Makefile, not
the bottom (make expands variables in dependencies when the
	dependencies are read, not when they are used).
1993-03-29 21:49:44 +00:00
Jim Kingdon
0eaaa46a44 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
it in breakpoint_re_set.
1993-03-29 21:49:39 +00:00