Commit Graph

14094 Commits

Author SHA1 Message Date
Steve Chamberlain f8e47484d9 * peicode.c (coff_swap_filehdr_in): If symptr is
zero, there aren't any symbols, even if nsyms is set.
1995-10-05 21:07:24 +00:00
Steve Chamberlain 0694bce619 Thu Oct 5 13:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
* win32.c: New file; support for debugging on windows NT.
	* configure.in: (i[345]86-*-win32): New target.
	* configure: Regnerated.
	* eval.c (evaluate_subexp_standard): Remove unused name.
	* serial.c (gdb_string.h): Include.
	* source.c (value.h): Include.
	* config/i386/i386win32.mh (XDEPFILES): Add win32.o
	* config/i386/i386win32.mt: New.
	* config/i386/tm-i386win32.h: New.
1995-10-05 20:57:30 +00:00
Brendan Kehoe f4791d95f1 * configure.in: Allow configuration and build of emacs19 for the alpha. 1995-10-05 20:27:24 +00:00
Ian Lance Taylor aca736871c * libecoff.h (struct ecoff_backend_data): Add adjust_headers
field.
	* ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
	sections, and set styp correctly for them: .got, .hash, .dynamic,
	.liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
	(_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
	types.
	(ecoff_sort_hdrs): New static function.
	(ecoff_compute_section_file_positions): Return boolean, not void.
	Sort the sections by VMA before looking through them.  Put the
	first non SEC_ALLOC section on a new page.  Put every SEC_ALLOC
	section on an appropriate boundary within the page.
	(ecoff_compute_reloc_file_positions): Check return value of
	ecoff_compute_section_file_positions.
	(_bfd_ecoff_set_section_contents): Likewise.
	(_bfd_ecoff_write_object_contents): Check for various Alpha
	section types when incrementing text_size and data_size.  Call
	adjust_headers backend function if it exists.
	* coff-alpha.c (alpha_adjust_headers): New static function.
	(alpha_ecoff_backend_data): Initialize adjust_headers field.
	* coff-mips.c (mips_ecoff_backend_data): Likewise.
PR 8141.
1995-10-05 17:48:32 +00:00
Ian Lance Taylor 90ce63bb0e * ecoff.h: Define section name macros and STYP macros for various
Alpha sections: .got, .hash, .dynsym, .dynstr, .rel.dyn, .conflic,
	.comment, .liblist, .dynamic.
PR 8141.
1995-10-05 17:04:31 +00:00
Ian Lance Taylor 2b874a2df4 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6. 1995-10-05 15:46:40 +00:00
Jason Molenda c67de58444 * configure.in (CC): Get ^CC, not just any old CC, from
${host_makefile_frag}.
1995-10-05 05:39:40 +00:00
Per Bothner 3c02944a98 * expression.h (enum exp_code): Added OP_NAME.
* expprint.c (print_subexp):  Add OP_NAME support.
	* parse.c (length_of_subexp, prefixify_subexp):  Likewise.
	* scm-lang.c (scm_unpack, in_eval_c, scm_lookup_name):  new function.
	* scm-lang.h:  Declare builtin_type_scm;  other minor tweaks.
	* values.c (unpack_long):  If type is SCM, call scm_unpack.
	* scm-valprint.c (scm_val_print):  Use extract_signed_integer,
	instead unpack_long
	* scm-lang.c: More Scheme expression parsing from here ...
	* scm-exp.c:  ... to here.  New file.
	Also, provide for gdb to evaluate simple constants and names..
	* Makefile.in:  Note new scm-exp.{c,o}.
1995-10-05 05:24:41 +00:00
Jason Molenda 4caf3f7d0e * configure.in (CC): Try to get CC from
${srcdir}/${host_makefile_frag}, not ${host_makefile_frag}.
1995-10-05 05:03:55 +00:00
Jason Molenda abf85a722c * Makefile.in (TARGET_CONFIGDIRS): configure targetdirs
only if it exists in $(srcdir).
1995-10-05 04:45:32 +00:00
Per Bothner f3415760cf * pr-8136.{ch,exp}, pr-8134.exp, func1.ch, Makefile.in: New test cases. 1995-10-05 01:24:44 +00:00
Per Bothner 706bfe5a1c * gdbtypes.c (get_discrete_bounds): New function.
(force_to_range_type):  Use get_discrete_bounds.
	* gdbtypes.h (get_discrete_bounds):  Add declaration.
	* valarith.c (value_bit_index):  Generalize to use get_discrete_bounds.
	* ch-valprint.c (chill_val_print):  Make (power)sets and bitstring
	support use get_discrete_bounds and generally be more robust.
This fixes PR chill/8136.
1995-10-05 01:09:53 +00:00
Jeff Law c780e5dbaf * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
of ALTERNATE_AIX_CORE_FORMAT.
	* configure.in (aix4): No longer need CORE_FLAGS.
	* configure: Updated.
1995-10-05 00:21:25 +00:00
Kim Knuttila eaaa2a42bc Better parsing, tocd, tocv started 1995-10-04 21:43:23 +00:00
Ian Lance Taylor f054ce204a * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
* ldexp.h (exp_get_abs_int): Update declaration.
	* ldlang.c (print_output_section_statement): Use fprintf_vma to
	print return value of exp_get_abs_int.
PR 8142.
1995-10-04 21:39:29 +00:00
Kim Knuttila ca0bd54f8d Better parsing, tocd, tocv started 1995-10-04 21:02:22 +00:00
Ian Lance Taylor 27b2da94a5 quote string for test 1995-10-04 20:46:20 +00:00
Ken Raeburn 2a01c351e3 NS32k changes from Ian Dall:
* aoutx.h (MY_final_link_relocate, MY_relocate_contents): New macros.
(aout_link_input_section_std, aout_link_input_section_ext,
aout_link_reloc_link_order): Call them instead of _bfd_* versions.
* aout-target.h (MY_exec_header_not_counted): New macro, defaults to zero.
(backend_data): Use it instead of hardcoded zero.

* aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
(MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.

* ns32knetbsd.c: Include bfd.h.
(MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
(MY_bfd_reloc_type_lookup): Declare function too.
* pc532-mach.c (set_sizes): Don't declare.
(MY_text_includes_header, MY_exec_header_not_counted): Define.
(backend_data, MY_backend_data): Don't define.

* config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and ns32k-*-lites*
like ns32k-*-netbsd*.

* hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to compile on
lites.
1995-10-04 20:25:21 +00:00
Ken Raeburn 7f56bc26e4 * chew.c: Include <stdio.h>. 1995-10-04 19:52:10 +00:00
Kim Knuttila db86ddb2b4 small rearranging, remove DEFAULT_* defines 1995-10-04 18:47:25 +00:00
Kim Knuttila 37c7b65a88 remove DEFAULT_* defines 1995-10-04 18:45:54 +00:00
Kim Knuttila a69fa22350 remove DEFAULT_* defines 1995-10-04 18:38:13 +00:00
Ian Lance Taylor 5944d75b46 * coffcode.h (coff_write_object_contents): Restore setting
f_timdat to 0, deleted on August 22.
1995-10-04 18:20:08 +00:00
Ian Lance Taylor cd557d83d6 * config/tc-ppc.c (ppc_frob_symbol): Don't create an aux entry for
an absolute symbol.
1995-10-04 18:05:59 +00:00
Ian Lance Taylor a7512014c6 * config/tc-m68k.c (isbyte): Accept all values from -65536 to
+65535,	so ~VAL will not be rejected.
1995-10-04 18:02:13 +00:00
Ian Lance Taylor ca2ce3b317 * configure: If CC and CXX are not set in the environment, set
them, based on either an existing Makefile or on searching for gcc
	in PATH.  Substitute for CC and CXX in Makefile.
	* configure.in: Remove libm from target_libs.  Separate
	target_configdirs from configdirs.  If CC is not set in
	environment, try to get it from a host Makefile fragment.  Rewrite
	changes of configdirs to use skipdirs instead.  A few minor
	tweaks.  Take directories out of target_configdirs as they are
	taken out of configdirs.  Remove existing Makefile files from
	subdirectories.  Substitute for TARGET_CONFIGDIRS and
	CONFIG_ARGUMENTS in Makefile.
	* Makefile.in (TARGET_CONFIGDIRS): New variable, automatically set
	by configure.in.
	(CONFIG_ARGUMENTS): Likewise.
	(CONFIGURE_TARGET_MODULES): New variable.
	($(DO_X)): Loop over TARGET_CONFIGDIRS as well as SUBDIRS.
	($(CONFIGURE_TARGET_MODULES)): New target.
	(configure-libg++, configure-libio): New targets.
	(all-libg++): Depend upon configure-libg++.
	(all-libio): Depend upon configure-libio.
	(configure-libgloss, all-libgloss): New targets.
	(configure-libstdc++): New target.
	(all-libstdc++): Depend upon configure-libstdc++.
	(configure-librx, all-librx): New targets.
	(configure-newlib): New target.
	(all-newlib): Depend upon configure-newlib
	(configure-xiberty): New target.
	(all-xiberty): Depend upon configure-xiberty.
1995-10-04 16:22:37 +00:00
Ian Lance Taylor 243b35d7a1 * arsup.c (ar_save): Use rename, not unlink/link/unlink. 1995-10-04 02:39:59 +00:00
Stan Shebs 82569cc199 * remote-nrom.c (nrom_ops): Add value for to_thread_alive,
add comment naming slots.
1995-10-03 23:58:49 +00:00
Steve Chamberlain db344f829d Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
* coffcode.h (coff_bfd_copy_private_symbol_data,
	coff_bfd_copy_private_section_data,
	coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
	* peicode.h (coff_bfd_copy_private_bfd_data): New
	(pe_bfd_copy_private_bfd_data): New.
	(coff_swap_scnhdr_in): Swap bss size into the right place.
	(pe_print_private_bfd_data): Add some newlines.
1995-10-03 23:44:34 +00:00
Jason Molenda e635c16ecb revert to stock autoconf 2.4 configure scripts. 1995-10-03 20:31:16 +00:00
Jeff Law 704257cb1b Remove last (incorrect) change. 1995-10-03 19:26:36 +00:00
Jeff Law 97f1feda83 * som.c (setup_sections): Don't die if a space has no subspaces. 1995-10-03 18:48:38 +00:00
Jeff Law 3ad9d625eb Opps. Forgot to commit this with the elf.c changes... 1995-10-03 18:21:17 +00:00
Jeff Law 8cd2f4fe43 * elf.c (_bfd_elf_assign_file_position_for_section): Always
align to the section's alignment.  "align" argument removed;
	all callers changed.
Loosely based on a patch from dupuy@smarts.com; keeps dbx from losing
when debugging programs that have been objcopy'd.
1995-10-03 17:57:17 +00:00
Ian Lance Taylor 42ac8fa83d * cond.c (s_endif): Call demand_empty_rest_of_line. In MRI mode,
skip characters after the pseudo-op.
	(s_else): Likewise.
	* read.c (get_line_sb): Don't look past buffer_limit.
	(s_include): In MRI mode, skip characters after the file name.
1995-10-03 16:43:45 +00:00
Steve Chamberlain e521d840f4 From David Mosberger-Tang <davidm@azstarnet.com>
* alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
  	(alpha_insn_set): added definitions for VAX floating point
 	instructions (Unix compilers don't generate these, but handcoded
 	assembly might still use them).

	* alpha-dis.c (print_insn_alpha): added support for disassembling
 	the miscellaneous instructions in the Alpha instruction set.
1995-10-03 15:35:55 +00:00
Jeff Law a25ffb081f * top.c (build_command_line): Demand arguments for if/while
commands.
1995-10-03 03:48:32 +00:00
Stan Shebs 3994972d62 No ChangeLog to keep. 1995-10-03 01:50:49 +00:00
Ian Lance Taylor eef6693478 * config/m68k-parse.y (m68k_reg_parse): In MRI mode, permit
periods in register names.
1995-10-02 21:00:22 +00:00
Jason Molenda bac75810d1 * Makefile.in (X11_CFLAGS): Set only to @X_INCDIR@. 1995-10-02 20:12:04 +00:00
Ian Lance Taylor 0efc22188b * binutils-all/ar.exp: New file.
* binutils-all/bintest.s: Make text_symbol and data_symbol global.
	Add new static symbols static_text_symbol and static_data_symbol.
	* binutils-all/nm.exp: Adjust accordingly.
	* config/default.exp (AR): Set if not set.
	(binutils_remove): New procedure.
	* lib/utils-lib.exp (default_binutils_run): Call
	prune_system_crud on program output.  Use verbose -log instead of
	both verbose and send_log.
	(default_binutils_remove): New procedure.
1995-10-02 19:58:43 +00:00
Michael Meissner 8b57093d33 Add # in front of CPU number 1995-10-02 18:33:17 +00:00
Michael Meissner e1aaf97993 update usage message 1995-10-02 18:21:46 +00:00
Michael Meissner 344d5a23f7 fix typo 1995-10-02 18:20:04 +00:00
Michael Meissner 83d96c6e3e Add support to count the number of instructions issued. 1995-10-02 18:19:17 +00:00
Ian Lance Taylor 3d7c42c988 * elflink.h (elf_link_add_object_symbols): Don't let a weak
dynamic symbol override a common symbol.  Don't change the size or
	type if they have been set and the new symbol is not a definition.
	Warn if the size or type changes.
1995-10-02 18:11:12 +00:00
Ian Lance Taylor 8055e7a883 * emultempl/elf32.em (global_stat): New file static variable.
(gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
	that the file has not already been included under another name.
	(gld${EMULATION_NAME}_stat_needed): New static function.
1995-10-02 17:59:14 +00:00
Ian Lance Taylor a6eed1d25f * lib/utils-lib.exp (default_binutils_assemble): Call
prune_system_crud on assembler output.
1995-10-02 16:42:47 +00:00
Ian Lance Taylor a19f84a79b * strings.c (main): Exit with zero status if no files are given
and standard input is read.
1995-10-02 16:11:07 +00:00
Michael Meissner 8eab189bce Add switch processing in gdb. 1995-10-02 15:47:57 +00:00