Commit graph

10413 commits

Author SHA1 Message Date
Ken Raeburn
c063fc4558 * Makefile.in (objdump.o): Deleted special rule.
* configure.in: Don't bother building ARCHDEFS variable for Makefile.
* objdump.c (ARCH_*): Deleted handling.
(disassemble_data): Call `disassembler' from opcodes library.
1994-05-05 22:52:31 +00:00
Ken Raeburn
6bd7601ee1 (yywrap): Define as function if not defined as a macro. 1994-05-05 22:51:27 +00:00
Ian Lance Taylor
6d41de1976 * config/tc-mips.c (mips_emit_delays): Make call to
mips_no_prev_insn unconditional.
1994-05-05 22:22:24 +00:00
Ken Raeburn
a139d99b3c * config/obj-coff*.*: Merged coffbfd versions into coff versions, with a single
"#ifdef BFD_ASSEMBLER" controlling most of it for now.  Deleted obj-coffbfd.*
files.
* configure.in: Always use obj-coff.* for COFF targets.
1994-05-05 21:38:25 +00:00
Ken Raeburn
8f10906f94 * config/default.exp: Renamed from unix-gas.exp. 1994-05-05 21:34:11 +00:00
Stan Shebs
523ca9d0a2 Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
* rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
	error.
1994-05-05 19:07:10 +00:00
Ken Raeburn
9ea9e1af48 * configure.in (mips*-dec-bsd*): New target; do build linker.
(mips*-*-bsd*): New target; don't build linker.
1994-05-05 05:27:24 +00:00
Jim Kingdon
ee5fca1f12 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
(print_it_normal): Add annotations for the inferior starting and
	stopping, and for all the various messages related to how it
	stopped.

	* printcmd.c (do_one_display): Annotate.
	* stack.c (print_frame_info): Annotate printing of stack frames.
1994-05-05 04:35:09 +00:00
Jim Kingdon
f710410bf9 * annotate.texi: Change edition to 0.5 and date to May 1994.
Add index.
	(Frames): New node, for frame annotation.
	(Displays): New node, for display annotation.
1994-05-05 04:25:03 +00:00
Stu Grossman
731dca9461 * remote.c (get_offsets): Handle case where stub doesn't support
qOffsets message.
1994-05-05 01:18:26 +00:00
Per Bothner
36a2283dad Add partial support for g++ code compiled with -fvtable-thunks.
* c-valprint.c (c_val_print):  Add vtblprint support
	when using thunks.
	* cp-valprint.c (cp_is_vtbl_member):  A vtable can be an array of
	pointers (if using thunks) as well as array of structs (otherwise).
	* cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name):  Move to global
	level, and make the latter non-static (so define_symbol can use it).
	* stabsread.c (define_symbol):  If the type being defined is a
	pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
	* symtab.h (VTBL_PREFIX_P):  Allow "_VT" as well as "_vt".
	* values.c (value_virtual_fn_field):  Handle thunks.
	* values.c (value_headof):  Minor efficiency hack.
	* values.c (value_headof):   Incomplete thunk support.  FIXME.
1994-05-05 00:19:33 +00:00
Stu Grossman
d32a92614d * chardefs.h, rldefs.h: Move decls of string funcs from chardefs.h
to rldefs.h so that they don't pollute apps that include
	readline.h.
	* history.c:  include rldefs.h to get decls of string funcs.
1994-05-04 21:42:06 +00:00
Ken Raeburn
608a26dbb2 * config/te-dpx2.h (TARGET_FORMAT, REGISTER_PREFIX_OPTIONAL): Define.
* configure.in (m68k-bull-sysv3*): Enable.
1994-05-04 20:24:51 +00:00
Ian Lance Taylor
0573a3b135 * config/m68k.mt (EMUL): Set to m68kaout.
* emulparams/m68kaout.sh: New file.
	* Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
	(em_m68kaout.c): New target.
1994-05-04 20:22:15 +00:00
Ian Lance Taylor
2237e240e3 * config/tc-m68k.h (TARGET_FORMAT): If not TE_SUN3, define as
"a.out-zero.big".
1994-05-04 19:58:58 +00:00
Ian Lance Taylor
77d1128466 For PR 1927.
Changed m68k-aout to set flags to 0; m68k-sunos still uses 1.
	* aout0.c: New file.
	* targets.c (aout0_big_vec): Declare.
	(bfd_target_vector): Add aout0_big_vec.
	* config.bfd (m68*-*-aout*): Use m68k-0aout, not m68k-aout.
	* config/m68k-aout.mt (SELECT_VECS): Removed.
	* config/m68k-0aout.mt: New file.
	* configure.in (aout0_big_vec): New target vector: use aout0.o,
	aout32.o and stab-syms.o.
	* Makefile.in: Rebuilt dependencies.
	(BFD32_BACKENDS): Add aout0.o.
	(CFILES): Add aout0.c.

	* libaout.h (struct aout_backend_data): Add field exec_hdr_flags.
	* aout-target.h (MY_exec_hdr_flags): If not defined, define as 0.
	MY(backend_data): Initialize exec_hdr_flags field.
	* aoutf1.h (sunos_32_set_arch_mach): Make static.
	(aout32_sunos4_write_object_contents): Set flags from backend
	info.
	(MY_exec_hdr_flags): If not defined, define as 1.
	(sunos4_aout_backend): Initialize exec_hdr_flags field.
	* aout-encap.c (encap_write_object_contents): Set flags from
	backend info.
	(MY_exec_hdr_flags): Define as N_FLAGS_COFF_ENCAPSULATE.
	* hp300hpux.c (MY_exec_hdr_flags): Define as 0x2.
	(MY(write_object_contents)): Set flags from backend info.
	* i386aout.c (MY(backend_data)): Initialize exec_hdr_flags field.
	* i386mach3.c (MY(backend_data)): Likewise.
	* mipsbsd.c (MY(backend_data)): Likewise.
	* sparclynx.c (NAME(aout,sparclynx_write_object_contents)): Set
	flags from backend info.
	(sparclynx_aout_backend): Initialize exec_hdr_flags field.
1994-05-04 19:37:36 +00:00
Stan Shebs
b7ba9a57bd Wed May 4 12:15:11 1994 Stan Shebs (shebs@andros.cygnus.com)
* configure.in (rs6000-bull-bosx*): New configuration, RS/6000
	variant.

Fixes PR 4903.
1994-05-04 19:19:44 +00:00
Ken Raeburn
9267b020fa coff_gnu deletion 1994-05-04 17:38:50 +00:00
Ken Raeburn
7617444ce7 not used 1994-05-04 17:33:50 +00:00
Ken Raeburn
127f8e91ee * config.bfd (i386-*-gnu*): Treat like i386-*-mach*.
(m68*-apollo-*): Treat all Apollo configs the same, don't handle BSD specially.
1994-05-04 17:31:36 +00:00
Ian Lance Taylor
269ec825af For PR 4906.
* ldlang.c (lang_size_sections): If dot moves because of an
	assignment, don't try to insert a pad into the absolute output
	section, just change the address of the default memory region
	instead.
1994-05-04 16:14:00 +00:00
Ian Lance Taylor
083038a72a * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
cdtest-ur.out, and cdtest-ur.tmp.
1994-05-04 16:00:30 +00:00
Ian Lance Taylor
9fc63ce06a * config/obj-coffbfd.c (fixup_segment): Make common symbol and PC
relative adjustments when TE_LYNX is defined as well as when
	TC_I386 is defined.
1994-05-04 15:31:17 +00:00
Jim Kingdon
d24c05991f * valprint.c (print_longest): Clarify comment about use_local.
* printcmd.c, defs.h (print_address_numeric), callers in
	symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
	cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
	exec.c: New argument use_local.
	* source.c (identify_source_line): Use filtered output.  Use
	print_address_numeric.
1994-05-04 15:24:41 +00:00
Jim Kingdon
e16b9023f0 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
language.c (type_error, range_error): Use filtered output.
	* utils.c (error_begin): Update comment to tell people to use
	filtered output.
1994-05-04 14:20:32 +00:00
Jim Kingdon
997c6a1d84 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
(HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
	bfd.h.
1994-05-04 14:04:34 +00:00
Jim Kingdon
5940bfd964 * remote.texi (MIPS Remote): Say that set timeout doesn't apply
when waiting for your program to stop.
1994-05-04 13:28:23 +00:00
Ken Raeburn
3f048548cc adjust_symtab, as.h changes 1994-05-04 07:08:44 +00:00
Ken Raeburn
a3547e53b5 i386-gnu config, coff sync, i960 coff changes 1994-05-04 06:32:20 +00:00
Ken Raeburn
de66fe1f18 (i386-*-gnu*): New target, handled like i386-mach. 1994-05-04 06:29:30 +00:00
Ken Raeburn
8fb85d50cd * obj-coff.h (TARGET_FORMAT) [TC_I960]: Select little endian version.
* obj-coffbfd.h (TARGET_FORMAT) [TC_I960]: Ditto.

* obj-coff.c (coff_frob_section): Round up the size of every section to a
multiple of the alignment, so that BFD doesn't surprise us.

Eliminate many simple differences between the two COFF back ends:

* obj-coffbfd.c: Removed all uses of DEFUN and DEFUN_VOID.  Made minor
stylistic changes, deleted some register declarations.
(stack_top): Deleted.
(symbol_to_chars): Use absolute_section and reg_section instead of the
corresponding SEG_* symbols.
(obj_coff_endef, tag_find_or_make, fixup_segment): Likewise.
(stack typedef, stack_init, stack_delete, stack_push, stack_pop): Moved to just
after pseudo-op table.  All functions now static.
(stack_delete): Removed declaration.
(tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just after stack
functions.
* obj-coffbfd.h: Reordered some declarations and macros.
(stack_init, stack_delete, stack_push, stack_pop): Don't declare.
(stack typedef): Deleted.
(SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
(SYM_AUXENT): New macro.
(SA_GET_*, SA_SET_*): Define in terms of SYM_AUXENT when feasible.
(SF_GET_*, SF_SET_*): Define in terms of SF_GET when feasible.
(SA_GET_SYM_TAGNDX, SA_GET_SYM_ENDNDX, SA_SET_SYM_TAGNDX, SA_SET_SYM_ENDNDX,
object_headers typedef, data_section_header, text_section_header): Delete
non-BFD_HEADERS versions, since we always define that symbol now.

* obj-coff.c (stack_top): Deleted.
(obj_coff_endef, obj_coff_dim, obj_coff_line, obj_coff_size, obj_coff_scl,
obj_coff_tag, obj_coff_type, obj_coff_val): Change argument name from "ignored"
to "ignore".
(obj_coff_val): Use frag_now_fix.
(obj_pseudo_table): Removed IGNORE_DEBUG version, since it doesn't get used.
(stack typedef, stack_init, stack_delete, stack_push, stack_pop): Moved to just
after pseudo-op table.  All functions now static.
(tag_init, tag_insert, tag_find_or_make, tag_find): Moved to just after stack
functions.
* obj-coff.h: Reordered some declarations and macros.  Protected against
multiple inclusions.
(stack_init, stack_delete, stack_push, stack_pop): Don't declare.
(stack typedef): Deleted.
(SYMBOLS_NEED_BACKPOINTERS): Always undef then define; don't test.
(stdoutput): Deleted declaration.
(TARGET_FORMAT) [TC_I386]: Don't define if already defined.
1994-05-04 06:19:26 +00:00
Ken Raeburn
de9117a714 * configure.in (i[34]86-*-sco*): Move to be with other i386 targets.
(romp-*-*): New target.  Skip various binary utilities.
(vax-*-*): New target.  Don't build newlib.
(vax-*-vms): Renamed from *-*-vms.  Don't build opcodes or newlib.
1994-05-04 05:45:43 +00:00
Ian Lance Taylor
92400edbcd * cache.c: Rewrote to work correctly.
* libbfd.h: Rebuilt.
	* opncls.c (bfd_cache_init, bfd_open_file): Don't declare.
	(bfd_fdopenr): Check return value of bfd_cache_init.
1994-05-03 23:58:06 +00:00
Jim Kingdon
3f5e2fb58f * procfs.c (procfs_wait): Reinstate code which deduces the signal
from the fault, #ifndef FAULTED_USE_SIGINFO.
	* config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
1994-05-03 15:13:26 +00:00
Ian Lance Taylor
dd270b5ce5 Remove obsolete files. Add mt-slite to .Sanitize. 1994-05-03 00:15:24 +00:00
Steve Chamberlain
a3fcaa9ffc Kill three year old cruft. 1994-05-02 23:20:10 +00:00
Stan Shebs
89464c7a1d Keep Lynx linker scripts. 1994-05-02 22:51:34 +00:00
Ian Lance Taylor
1b96bdce15 * subsegs.h (segment_info_type): Use fix_tail field even if
BFD_ASSEMBLER.
	* subsegs.c (subseg_change): Initialize fix_tail field.
	(subseg_get): Likewise.
	* write.c (frags_chained): New static variable.
	(fix_new_internal): If frags_chained is set, use fix_root and
	fix_tail from seg_info (now_seg), rather than frchain_now.
	(chain_frchains_together_1): Set fix_tail field.
	(chain_frchains_together): Set frags_chained.
1994-05-02 21:26:55 +00:00
Jim Kingdon
b003875b63 * annotate.texi (Breakpoint Info): Document annotation of header
fields and record annotation.
1994-04-30 01:31:49 +00:00
Jim Kingdon
47ebe8fd88 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
Explicitly annotate each record.
1994-04-30 01:30:28 +00:00
Stan Shebs
0c4b30ea74 Fri Apr 29 15:56:18 1994 Stan Shebs (shebs@andros.cygnus.com)
* xcoffexec.c: Reformat to standards and lint.
	(language.h): Include.
	(exec_close): Declare arg "quitting".
	(file_command): Declare arg "from_tty".
	(map_vmap): Cast xmalloc result to PTR.
	* rs6000-nat.c: Reformat to standards and lint.
	(exec_one_dummy_insn): Use char array for saved instruction.
	(fixup_breakpoints): Declare.
	(vmap_ldinfo): Be more informative in fatal error messages.
	(xcoff_relocate_symtab): Define to return void.
	* xcoffsolib.h: Reformat to standards, improve comments.
	* config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
1994-04-30 00:04:43 +00:00
Stan Shebs
526637b56c Fri Apr 29 14:26:35 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (RUNTEST): Default to just "runtest".
1994-04-29 21:41:14 +00:00
Ian Lance Taylor
e3361fc35c * cf-m68klynx.c (CALC_ADDEND): Check for PC relative relocs by
enumerating them, since the reloc type can not serve as an index
	into the m68k COFF howto_table.
1994-04-29 19:09:51 +00:00
Steve Chamberlain
932315388d lint. 1994-04-29 16:51:18 +00:00
Steve Chamberlain
dbf13547b7 * config.bfd (*-go32): Changed to coff.
* coff-h8300.c (JMPL1): Get HOWTO right for 24bit branches.
	* srec.c (srec_write_symbols): Write out the correct number of
	symbols and don't stick in extra nulls.
1994-04-29 16:48:25 +00:00
Steve Chamberlain
7c6ba20141 * coff-h8300.c (JMPL1): Get HOWTO right for 24bit branches. 1994-04-29 16:44:48 +00:00
Ken Raeburn
204c914803 keep disassemble.c 1994-04-29 15:46:36 +00:00
Jim Kingdon
f3bfec59f0 new window management code 1994-04-29 00:04:16 +00:00
Ken Raeburn
7495f83bd4 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the opcode being
examined.
1994-04-28 22:59:09 +00:00
David MacKenzie
594c548a45 * configure.in: Only set host_makefile_frag if config
directory exists.
1994-04-28 22:04:49 +00:00