Commit graph

4254 commits

Author SHA1 Message Date
Fred Fish
51b80b0072 * complaints.c: New file, code moved from utils.c.
* complaints.c (complain):  Made into a varargs function.
	* complaints.h:  New file, code moved from symfile.h.
	* Makefile.in (SFILES_MAINDIR):  Add complaints.c.
	* Makefile.in (HFILES):  Add complaints.h.
	* Makefile.in (OBS):  Add complaints.o.
	* symfile.c (complaint_root, stop_whining, complaint_series,
	complain, clear_complaints, add_show_from_set for stop_whining):
	Moved to complaints.c.
	* symfile.h (struct complaint, complaint_root decl, complain
	prototype, clear_complaints prototype):  Moved to complaints.h.
	* buildsym.c, coffread.c, dbxread.c, dwarfread.c, elfread.c,
	gdbtypes.c, mipsread.c, stbsread.c, symfile.c:  Include
	complaints.h.  Remove casts from arguments to complain(),
	which is now a varargs function, and remove unnecessary
	placeholder zero args.
	* defs.h (begin_line):  Add prototype.
	* defs.h (vprintf_filtered):  Add prototype.
	* dwarfread.c (varargs.h):  Remove, no longer needed.
	* dwarfread.c (dwarfwarn):  Remove prototype and function.
	* dwarfread.c (complaints):  Define a bunch of complaints.
	* dwarfread.c (SQUAWK):  Remove macro defs, convert all
	usages to standard complain() calls.
	* utils.c (begin_line):  New function that ensures that
	whatever gets filter-printed next starts on its own line.
	* utils.c (vprintf_filtered):  New func, like vfprintf_filtered,
	but to stdout (calls vfprintf_filtered internally).
1992-12-15 12:18:53 +00:00
John Gilmore
631f7a9f7c Avoid printf_filtered limit. 1992-12-15 11:19:30 +00:00
John Gilmore
fb29d68161 i860-tdep.c: Lint.
* remote.c:  Avoid printf_filtered line limit.  Suggested by
Robert R. Henry, <rrh@tera.com>.

* main.c (main):  Accept --silent as well as --quiet.  Change +help
to --help.  Suggested by Karl Berry, <karl@cs.umb.edu>.
1992-12-15 11:05:22 +00:00
John Gilmore
031dd1a9e7 Typo 1992-12-15 10:02:30 +00:00
David D. Zuhn
26de3d0cf6 update dates, HP700 target list 1992-12-15 08:36:57 +00:00
John Gilmore
df86eb44ad Lint 1992-12-15 07:29:28 +00:00
Jim Wilson
8fc0776d4e For SPARC V9, for RELOC_WDISP2_14, upper 2 bits start at bit 20 now, instead
of bit 19.
1992-12-15 03:46:14 +00:00
Fred Fish
85f0a8484f * gdbtypes.c (create_array_type): Complete rewrite. Now requires
a optional type to decorate as an array type, the type of the
	index, and the bounds of the array.  Records this additional info
	in the array type for use with languages with nonzero array
	bounds.
	* gdbtypes.h (enum type_code):  Update comment for TYPE_CODE_ARRAY
	to note that arrays may have bounds.
	* gdbtypes.h (create_array_type):  Update prototype.
	* c-exp.y (ptype production):  Adjust for new create_array_type
	calling conventions.
	* coffread.c (decode_type):  Call create_array_type rather than
	handcrafting array types.
	* convex-tdep.c (value_type):  Remove, now use create_array_type.
	* convex-tdep.c (value_of_trapped_internalvar):  Convert calls to
	vector_type into calls to create_array_type.
	* dwarfread.c (decode_subscr_data):  Name changed to
	decode_subscript_data_item throughout.
	* dwarfread.c (decode_subscript_data_item):  Rewrite to use
	create_array_type.  Now records index type and range as well.
	* dwarfread.c (dwarf_read_array_type):  Rewrite as part of
	change to use create_array_type.
	* dwarfread.c (read_subroutine_type):  Test existing user defined
	types before decorating them, to ensure they are blank, and
	complain about it if they are not.
	* dwarfread.c (decode_fund_type):  For unrecognized types, always
	return some valid type (type integer).  If the unrecognized type
	cannot be an implementation defined type, complain as well.
	* m88k-tdep.c (pushed_size):  Update comment for TYPE_CODE_ARRAY.
	* m88k-tdep.c (store_param):  Update comment for TYPE_CODE_ARRAY.
	* mipsread.c (upgrade_type):  Add FIXME comment that code to
	handcraft arrays should be replaced with call to create_array_type.
	* stabsread.c (read_array_type):  Replace code to handcraft
	array types with call to create_array_type.
	* valprint.c (type_print_varspec_prefix):  Minor formatting
	change, join lines that don't need to be split.
1992-12-15 02:52:11 +00:00
Stu Grossman
7f70a27564 * gdbtypes.h: Remove const from decl for cplus_struct_default to
work around PA-GAS assembler bug.  Also, add trailing */ to some
comments.
* gdbtypes.c:  Remove const from decl for cplus_struct_default.
Same reason as above.
1992-12-15 02:02:21 +00:00
Stu Grossman
47bc42e606 * hppahpux.mt (TDEPFILES): Add exec.o.
* hppahpux.mh (NATDEPFILES):  Remove exec.o, add inftarg.o, and fork-child.o.
1992-12-15 01:49:05 +00:00
Stu Grossman
01d1590bab * convex-xdep.c, hppab-nat.c, i860-tdep.c, infptrace.c: Remove
decl for attach_flag, it now lives in inferior.h.
* hppa-pinsn.c:  Reformat opcode tables.  Add function prototypes.
Make most functions static.
* hppah-nat.c:  General cleanups, remove BSD specific code (since
that all lives in hppab-nat.c).
* hppah-tdep.c (frame_chain_valid), tm-hppa.h (FRAME_CHAIN):
Change sense of test against inside_entry_file().  This fix is
from U. of Utah.
* tm-hppa.h (PUSH_DUMMY_FRAME, POP_FRAME):  Use char * for 2nd arg
to read/write_register_bytes().
1992-12-15 01:45:15 +00:00
Stu Grossman
764c960db4 * hppahpux.h: Add defs for malloc() & realloc(). 1992-12-15 01:14:14 +00:00
Stu Grossman
76c7e44dde * hppa.c: #include "sysdep.h", not <sysdep.h>.
* libhppa.h:  Make millicode_start and millicode_end be unsigned
int to be same type as CORE_ADDR in GDB.  Why are these here?
1992-12-15 01:12:34 +00:00
Stu Grossman
f21de9333f * configure.in (hppa*-*-*): Don't remove bfd and gdb from
configdirs anymore.
1992-12-15 01:07:07 +00:00
David D. Zuhn
b1cceba2c0 * Makefile.in: extensive cleanup:: removed all of the explicit
clean-* targets, collapsed many wrappers around subdir_do into
 	one, added additional targets to satisfy standards.texi, deleted
 	some old targets, some changes for consistency
1992-12-13 09:08:29 +00:00
Ian Lance Taylor
016e0d4207 Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com)
* listing.c: Call xmalloc, not malloc; don't declare malloc.

	* Changes to support SCO 3.2v4:
	* read.c (s_align_bytes, s_align_ptwo): If not SEG_DATA or
	SEG_BSS, fill with NOP_OPCODE.
	* config/i386coff.mt: Add opcode/i386.h to TARG_CPU_DEPENDENTS.
	* config/obj-coffbfd.c (do_relocs_for): Increment addr even if not
	using ZERO_BASED_SEGMENTS.
	(fill_section): If ZERO_BASED_SEGMENTS, set segment addresses, but
	never set segment address for SEG_E2 (.bss) and don't write out
	SEG_E2 contents.  Set .init and .fini sections to STYP_TEXT.
	(obj_coff_endef): Don't merge labels or symbols awaiting forward
	definitions, and don't merge tags with non-tags.  Check for .bf
	rather than just checking whether the second character is b and
	the third character is f.
	(obj_coff_val): gcc can generate values which we don't handle
	correctly; discard information for now, since it only affects the
	debugging information.
	(tag_find_or_name): Don't insert tags in the symbol table.
	(yank_symbols): Don't merge labels.
	(write_object_file): Don't define SUB_SEGMENT_ALIGN if it is
	already defined.  Fill subsegments with NOP_OPCODE, not 0.  Don't
	set segment address if ZERO_BASED_SEGMENTS.
	(obj_coff_section): Accept and ignore a trailing quoted string, as
	used in AT&T i386 syntax.
	(fixup_segment): Take segment as argument.  On the i386, adjust PC
	relative addends by the segment vaddr.
	* tc-i386.h: Define SUB_SEGMENT_ALIGN.
	* tc-a29k.h: Define ZERO_BASED_SEGMENTS.
	* tc-i386.c: (i386_operand): If I386COFF, accept any segment type.
1992-12-13 00:56:14 +00:00
Ian Lance Taylor
b09b3dabfd Sat Dec 12 15:54:36 1992 Ian Lance Taylor (ian@cygnus.com)
* coff-i386.c (CALC_ADDEND): if reloc is PC relative, add the
	vaddr of the section to the addend.
	* targets.c: if MINIMIZE is 1, and SCO_CORE is defined, add
	SCO_CORE to SELECT_VECS.
	(target_vector): add sco_core_vec.
	* sco-core.c (sco_core_vec): add leading underscore initializer.
	* configure.in (i[34]86-*-sco*): use target i386-sco.
	* config/i386-sco.mt: new file; define SCO_CORE.
1992-12-13 00:52:11 +00:00
David D. Zuhn
ba4513e74f * configure.in: handle some programs as cross-only, and others as
native only
	* test-build.mk: handle partial holes in a more generic manner
	* Makefile.in: m4 depends on libiberty

also updated dates in test-build.mk and build-all.mk
1992-12-12 04:20:03 +00:00
John Gilmore
491a12058f * config/{vxworks68,vxworks960}: Don't include xdr_regs.o. 1992-12-10 09:56:01 +00:00
John Gilmore
c8aac932c6 * mipsread.c (parse_symbol): When checking whether a structured
type is an enum, check qualifiers of its first member, as well as
the base type of the member.  Bug found and fixed by John M.
Farrell, <farrell@fjort.reo.dec.com>.

* config/{vxworks68,vxworks960}:  Don't include xdr_regs.o.
1992-12-10 09:55:34 +00:00
John Gilmore
c09fde96d8 Update dependencies after deleting files. 1992-12-10 06:44:06 +00:00
John Gilmore
b69d843255 * vx-share/{reg.h,xdr_regs.h,xdr_regs.c}: Remove, unused.
* remote-vx.c:  Don't include vx-share/reg.h.
* vx-share/ptrace.h:  Reproduce from scratch.
1992-12-10 03:56:36 +00:00
Fred Fish
d62e7a20d8 * c-lang.c (_initialize_c_language): Name changed from
_initialize_c_exp.
	* m2-lang.c (_initialize_m2_language):  Name changed from
	_initialize_m2_exp.
	* m2-lang.c (_initialize_m2_language):  Change malloc to xmalloc since
	it is no longer inside m2-exp.y, where it was remapped by Makefile.
	**** start-sanitize-chill ****
	* ch-lang.c (_initialize_chill_language):  Name changed from
	_initialize_chill_exp.
	**** end-sanitize-chill ****
1992-12-09 07:01:43 +00:00
Fred Fish
22e3975901 * c-exp.y, m2-exp.y: Migrate code that has nothing to do with
expression parsing into c-lang.c and m2-lang.c respectively.
	* c-lang.c, m2-lang.c:  New files, code migrated from c-exp.y and
	m2-exp.y respectively.
	* c-lang.h, m2-lang.h:  New files, internal interfaces between c-*
	and m2-* files respectively.
	* Makefile.in (SFILES_MAINDIR):  Add c-lang.c, m2-lang.c.
	* Makefile.in (HFILES):  Add c-lang.h, m2-lang.h.
	* Makefile.in (OBS):  Add c-lang.o, m2-lang.o.
	* expression.h (struct block):  Forward declaration for prototypes.
	* language.h (struct objfile):  Forward declaration for prototypes.
	**** start-sanitize-chill ****
	* Makefile.in (SFILES_MAINDIR):  Add ch-lang.c.
	* Makefile.in (HFILES):  Add ch-lang.h.
	* Makefile.in (OBS):  Add ch-lang.o.
	* ch-exp.y:  Migrate code that has nothing to do with expression
	parsing into ch-lang.c.
	* ch-lang.c:  New file, code migrated from c-exp.y.
	* ch-lang.h:  New file, internal interface between ch-* files.
	**** end-sanitize-chill ****
1992-12-09 06:50:30 +00:00
Fred Fish
160be0ded9 Changes for Amiga Unix from rhealey@ub.d.umn.edu.
* config/amix.mh (NAT_FILE):  Add, set to nm-sysv4.h.
	* config/amix.mh (NATDEPFILES):  Add.
	* config/amix.mh (XDEPFILES):  Move procfs.o and fork-child.o
	to NATDEPFILES.

	* dwarfread.c (decode_subscr_data):  Remove spurious test that
	accepted only integer subscript types.  We don't do anything
	with the type at the moment anyway.
1992-12-08 21:47:49 +00:00
Jeffrey Osier
38dc971bec Incredibly obsolete install dox for 88k... 1992-12-08 21:47:07 +00:00
Ken Raeburn
af3b5ad238 missed tc-tahoe files 1992-12-08 09:42:06 +00:00
Ken Raeburn
2e29427469 as-m680x0.texinfo does not exist 1992-12-08 09:39:03 +00:00
Ken Raeburn
04bbab3ad4 regenerated from as.texinfo &c 1992-12-08 09:37:22 +00:00
Ken Raeburn
6c2b38e087 replaced with newer code 1992-12-08 09:31:57 +00:00
Ken Raeburn
b41390d23d updated for current list of files 1992-12-08 09:30:28 +00:00
Ken Raeburn
a474b5721b trad-core.h is gone 1992-12-08 09:25:47 +00:00
Ken Raeburn
30d9fb5730 obj-coffbfd.c: include libcoff.h 1992-12-08 08:48:16 +00:00
Ken Raeburn
db33220fbd tonight's changes 1992-12-08 08:11:15 +00:00
Ken Raeburn
70540d184f version 1.93 now 1992-12-08 08:07:52 +00:00
Ken Raeburn
9d007e2ca7 not needed 1992-12-08 08:05:48 +00:00
Ken Raeburn
eee109cdcf updated for added/deleted files 1992-12-08 08:05:32 +00:00
K. Richard Pixley
e7a8768db6 recording file death 1992-12-08 05:27:22 +00:00
K. Richard Pixley
017349fbcf recording file death 1992-12-08 05:21:19 +00:00
K. Richard Pixley
43bbd567f2 recording file death 1992-12-08 04:59:31 +00:00
K. Richard Pixley
a362ee2363 recording file death 1992-12-08 04:53:09 +00:00
K. Richard Pixley
181ba9ee43 recording file death 1992-12-08 04:44:16 +00:00
Roland Pesch
7b21432fde Fix fatal typo in an M4 substitution. 1992-12-07 23:22:55 +00:00
Steve Chamberlain
85e38cfa01 -y support
* ld.texinfo: new doc.
	* ldgram.y, ldlex.l: understand -y<symbol>
	* ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
	print info. (add_ysym): new function.
	* ldsym.h: (ldsym_type): new define SYM_Y.
1992-12-07 16:49:54 +00:00
Ken Raeburn
dde624eff9 recent changes to as.h, Makefile.in, write.c, obj-vms.c 1992-12-07 08:43:34 +00:00
Ken Raeburn
1f624b2117 changes for traditional C 1992-12-07 08:37:36 +00:00
Ken Raeburn
f42c91bb42 deleted local-vars comment 1992-12-07 08:37:23 +00:00
Per Bothner
701df84561 Add etc directory. 1992-12-05 23:48:21 +00:00
Ken Raeburn
785150c948 coffcode.h: bfd_coff_std_swap_table is now const and static 1992-12-04 19:05:41 +00:00
Ken Raeburn
355e5a8e0a rebuilt after library changes 1992-12-04 15:16:43 +00:00