Commit Graph

13122 Commits

Author SHA1 Message Date
Steve Chamberlain d25079a096 * cofflink.c (process_embedded_commands): New function
reads and handles .drectve sections for PE.
	(coff_link_input_bfd): Call new function if PE.
1995-06-14 22:29:47 +00:00
Per Bothner 0faa324790 * ch-exp.y: Remove lots of unsupported productions and names.
Add support for IF-expressions, ORIF, ANDID, NUM, and ADDR.
This makes progress for PR 5826.
1995-06-14 21:30:58 +00:00
Steve Chamberlain b990c2443e dlltool.c: Support for internal names too. 1995-06-14 21:00:27 +00:00
Stu Grossman 73033da704 Copyright update in tm-est.h, and minor formatting cleanup.
Add remote-est.o to TDEPFILES in monitor.mt.
1995-06-14 20:31:58 +00:00
Steve Chamberlain 765e60a947 Wed Jun 14 13:27:22 1995 Steve Chamberlain <sac@slash.cygnus.com>
* deflex.l, defparse.y, dlltool.c: New files.
	* Makefile.in, configure.in: Support for them.

Mon Jun 12 11:27:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>

	* sysdump.c: Include sysdep.h
	(main): Open input with FOPEN_RB.  binutils/7137
1995-06-14 20:28:36 +00:00
Per Bothner a055dacb68 * chillvars.exp, string.exp: New tests for LOWER/UPPER/LENGTH 1995-06-14 20:05:59 +00:00
Per Bothner 6137983598 * parser-defs.h (enum precedence): Added PREC_BUILTIN_FUNCTION.
* expression.h (enum exp_opcode):  Added UNOP_LOWER, UNOP_UPPER,
	UNUP_LENGTH.
	* expprint.c (dump_expression):  Handle the new exp_opcodes.
	(print_subexp):  Handle PREC_BUILTIN_FUNCTION.
	(print_simple_m2_func):  Removed.
	(print_subexp):  Remove support for Modula2 builtin functions.
	* m2-lang.c (m2_op_print_tab):  Add support for builtin functions.
	* ch-exp.y:  Parse LOWER, UPPER, and LENGTH builtins.
	(write_lower_upper_value):  Convenience function for LOWER and UPPER.
	(upper_lower_argument, length_argument):  Removed non-terminals.
	* ch-lang.c (chill_op_print_tab):  Entries for UPPER, LOWER, LENGTH.
	(type_lower_upper):  New function.  Calculate LOWER/UPPER of type.
	(value_chill_length):  New function.  Calcalate LENGTH of ARRAY/STRING.
	(evaluate_subexp_chill):  Handle UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
This fixes PR 5015 (and 5826 which is a duplicate).
1995-06-14 19:59:35 +00:00
Ken Raeburn 69cb5925c9 whitespace & date-format cleanup 1995-06-13 23:13:28 +00:00
Steve Chamberlain 5cb74cfef5 * armos.c (ARMul_OSHandleSWI): New version to work with
newlib simply.
1995-06-13 17:57:26 +00:00
Steve Chamberlain 935cd0dd9d * ldlang.c (lang_size_sections): Any section with a DATA
statement has contents.
1995-06-13 16:12:04 +00:00
Jeff Law 4ff6f92ae8 * config/tc-hppa.c (pa_ip): Check for invalid register in single
precision fmpyadd and fmpysub instructions.
1995-06-13 04:29:41 +00:00
Jeff Law 0eb8ace818 * gas/hppa/parse/badfmpyadd.s: New test.
* gas/hppa/parse/parse.exp: Run it.
1995-06-13 04:28:17 +00:00
Stan Shebs 2e1cc80191 Windows support bits from Steve Chamberlain <sac@slash.cygnus.com>.
* defs.h: Don't declare strchr and friends if WIN32.
	(DIRNAME_SEPARATOR): Move here from source.c.
	(SLASH_P, SLASH_CHAR, SLASH_STRING, ROOTED_P): New macros,
	symbolic definitions for filename bits.
	* top.c (cd_command): Use these.
	* source.c (mod_path, openp): Ditto.
	* terminal.h: Disable termio/sgtty definitions if WIN32.
	* findvar.c (registers_changed): Call registers_changed_hook
	if it is defined.
1995-06-12 20:07:45 +00:00
J.T. Conklin 43b442f17c * Makefile.in (distclean, realclean): Remove config.cache and
config.log.
1995-06-12 19:33:08 +00:00
J.T. Conklin 9e4be2c7b6 * Makefile.in (distclean, realclean): Remove config.cache and
config.log.
1995-06-12 19:15:58 +00:00
Jeff Law 080f1fcb8b * bfd-in.h (bfd_set_section_vma): Case true to a boolean.
(bfd_set_cacheable): Likewise.
	* bfd-in2.h: Rebuilt.
1995-06-12 18:12:00 +00:00
Jeff Law ca95702a3a Zap static data problem off the TODO list. 1995-06-12 06:27:26 +00:00
Jeff Law 99e0981c60 * somsolib.c: Include gdb-stabs.h.
(som_solib_section_offsets): Use SECT_OFF_XXX rather than 0, 1,
	etc.  Initialize offsets for RODATA & BSS too.
Remainder of mentor-6302.
1995-06-12 06:24:20 +00:00
Ken Raeburn 74b3ead343 m68k elf linker fixes from Andreas Schwab 1995-06-11 19:30:02 +00:00
Jeff Law b7202faa33 * hppa-tdep.c (frame_chain): Try to compensate for incomplete
register information in core files when backtracing.
1995-06-11 00:03:02 +00:00
Jeff Law 6167a840e5 * targets.c: Add copy_private_symbol_data and link_split_section
to the target vector.
	* libbfd-in.h (_bfd_generic_bfd_copy_private_symbol_data): Define.
	(_bfd_nolink_bfd_link_split_section): Likewise.
	(bfd_generic_link_split_section): Declare.
	* syms.c (bfd_copy_private_symbol_data): Define.
	* linker.c (bf_link_split_section): Likewise.
	* som.c (som_bfd_copy_private_symbol_data): New function
	(som_bfd_link_split_section): Likewise.
	* All other targets updated with default versions of new routines.

	* Take out my braindamaged bfd_true/bfd_false changes from earlier
	today.  Replace with just:
	* bfd-in.h: (TRUE_FALSE_ALREADY_DEFINED): Define this if
	compiling with g++-2.6 or later.
	* bfd-in2.h: Rebuilt.
1995-06-10 00:05:51 +00:00
Stu Grossman e431d135cf * remote-nrom.c: Remove everything but download code. More
cleanups.
1995-06-09 21:53:55 +00:00
Michael Meissner 4b6d0f7873 PR 7046: use unsigned compares in looking up items in the sorted symbol list, not signed; Also add --wide to print on wide columns 1995-06-09 21:42:47 +00:00
Ken Raeburn 3c650d09e8 vms cleanup, fixes from Pat Rankin 1995-06-09 21:16:07 +00:00
Jeff Law 9f28686c2b * bfd-in.h (bfd_true, bfd_false): Define these to true and false
if TRUE_FALSE_ALREADY_DEFINED is not defined.
        * bfd-in2.h: Rebuilt.
1995-06-09 19:40:00 +00:00
Steve Chamberlain d1ec549d7b * elfcode.h (elf_sort_hdrs): Rewrite to be symmetrical. 1995-06-09 19:21:47 +00:00
Jeff Law 3b1f83adad * bfd-in.h: (TRUE_FALSE_ALREADY_DEFINED): Define this if
compiling with g++-2.6 or later.
        (bfd_set_section_vma): Use bfd_true and bfd_false rather than
        true and false.
        (bfd_set_section_alignment): Likewise.
        (bfd_set_section_userdata): Likewise.
        (bfd_set_cacheable): Likewise.
        * bfd-in2.h: Rebuilt.
1995-06-09 19:16:33 +00:00
Steve Chamberlain e6304bc755 * versados.c (struct esd, get_4): Lint; use unsigned chars. 1995-06-09 15:24:09 +00:00
Steve Chamberlain 9ff2fb3d25 * coff-i960.c (coff_i960_relocate): Compare output section names
when converting for vxworks.
1995-06-09 14:57:17 +00:00
Stu Grossman 5bdf05c785 typo in tcp_open 1995-06-08 22:45:47 +00:00
Stu Grossman 4887063b3c * defs.h maint.c monitor.c remote-mips.c remote.c: Add support
for `watchdog' variable.  This allows the user to put an upper
	limit on the amount of time that GDB will wait for the target to
	return from a step or continue operation.  This will primarily be
	used for the testsuite, where it is difficult to come up with a
	reasonable timeout for things like function calls, which can take
	as long as three minutes under some circumstances.  If the
	watchdog timer expires, GDB will generate an error that looks like
	`Watchdog has expired.', and will detach from the target.

	* remote-mips.c (mips_open):  Setup initial frame from target.
	Print it out so that user is told where the program is stopped
	when they attach.

	* remote-nrom.c:  Loads of cleanups.  Use serial code to open
	network connections.  Use expect() to wait for response to
	download command.

	* ser-tcp.c (tcp_open):  Retry connection if we get ECONNREFUSED.

	* serial.c serial.h (serial_open serial_fdopen serial_close):
	Allow users to open the same device multiple times.  They all get
	to share the same serial_t.  This is about the only way to have
	multiple active targets use the same device (for download and
	debug).

	* sparcl-tdep.c:  Keep #include <unistd.h> away from GO32.

	* target.c:  Add `targetdebug' variable.  If this is non-zero,
	then a special target is put at the top of the target stack which
	will cause all calls through the target vector to have their args
	and results printed out.
1995-06-08 22:42:36 +00:00
Jason Merrill 311f7c4b6a use -fpic instead of -fPIC 1995-06-08 22:31:51 +00:00
Steve Chamberlain c8aea29bd6 * run.c (main): Grab return value from right register. 1995-06-08 21:37:35 +00:00
Steve Chamberlain ba0784fe48 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack. 1995-06-08 21:19:31 +00:00
Ken Raeburn 0ef449dfad * elfcode.h (elf_fake_sections): Permit .scommon or COMMON sections as random
SHT_NOBITS sections, in case a linker script is strange.
1995-06-08 20:12:25 +00:00
David Edelsohn 0cd2755006 * config/tc-arc.h (MD_APPLY_FIX3): Define.
* config/tc-arc.c (md_apply_fix3): Renamed from md_apply_fix.
	Undo effects of md_pcrel_from if symbol is in another section.
1995-06-08 18:45:33 +00:00
Per Bothner 7e965616ff * chillvars.ch (xptr): Declare new variable.
* chillvars.exp (test_ptr):  New function to test EXPR->MODENAME.
This is to test PR chill/6932.
1995-06-08 00:52:06 +00:00
Per Bothner 3029162cdf * ch-exp.y: Handle <primitive_value> "->" <modename>.
This fixes PR chill/6932.
1995-06-08 00:49:10 +00:00
Michael Meissner b726a3d884 Do not redefine {BIG,LITTLE}_BREAKPOINT if already defined. 1995-06-07 22:04:10 +00:00
Michael Meissner a4c7302a32 Define BREAKPOINT as either {BIG,LITTLE}_BREAKPOINT, depending on target byte order. 1995-06-07 21:48:28 +00:00
Jeff Law fbf8d7e17a * somsolib.c (som_solib_section_offsets): Handle relative pathnames.
Part of mentor-6302.
1995-06-07 18:48:00 +00:00
Jeff Law c38e0b58f3 * hppa-tdep.c (frame_saved_pc): Handle backtracing through signal
handler in dynamically linked executables.
mentor-7139
1995-06-07 18:43:58 +00:00
Ken Raeburn d5263ab426 * config/obj-vms.c (vms_write_object_file, case N_DATA): Use strcmp against
FAKE_LABEL_NAME instead of checking third character.  (Suggested by Pat Rankin.)

Mon  5 Jun 20:10:46 1995  Pat Rankin  (rankin@eql.caltech.edu)

Add support for N_ABS and N_ABS|N_EXT type symbols.

* config/obj-vms.h (LSY_S_M_{DEF,REL}, ENV_S_M_{DEF,NESTED}): New macros for
local symbols (from <lsydef.h> and <envdef.h>).
* config/obj-vms.c (Current_Environment): New file-scope variable.
(VMS_Local_Environment_Setup): New routine.
(GBLSYM_LCL): New macro.
(VMS_Global_Symbol_Spec): Handle local symbols too.
(VMS_Psect_Spec): Set GLOBALVALUE_BIT for absolute symbols.
(VMS_Emit_Globalvalues): Handle local and global absolute symbols.
(VMS_Store_PIC_Symbol_Reference): Ditto.
(vms_write_object_file: GSD symbol loop): Ditto.
1995-06-06 17:59:06 +00:00
Michael Meissner 5c172b4bfd Fix some little endian problems 1995-06-06 14:49:32 +00:00
Jason Merrill 4a44253637 Mon Jun 5 18:26:36 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* Makefile.in (PICFLAG, PICFLAG_FOR_TARGET): New macros.
	(FLAGS_TO_PASS): Pass them.
	(EXTRA_TARGET_FLAGS): Ditto.

	* config/m?-*pic: Define PICFLAG* instead of LIB*FLAGS*.

Support building both shared and archive libraries.
1995-06-06 01:34:52 +00:00
Steve Chamberlain dc1f8593d0 * coff-a29k.c (coff_a29k_adjust_symndx): Completely parenthesize
macro. (pr ld/7127)
1995-06-05 16:11:26 +00:00
Ken Raeburn 9e1b4d5750 Linker support for m68k-elf from Andreas Schwab
<schwab@issan.informatik.uni-dortmund.de>:

* elfcode.h (elf_link_add_object_symbols): Check for NULL when looping through
the symbol hashes.
(elf_bfd_final_link): When looking for _init and _fini don't use the symbol if
it is imported from another object.

* elf32-m68k.c: Relocation type changed from REL to RELA.  Regular and dynamic
linking support functions added, similar to other elf targets.
1995-06-05 07:04:51 +00:00
Ken Raeburn 1be0c30e50 change i386-gnu to elf 1995-06-05 06:36:11 +00:00
Steve Chamberlain c3c112fc84 *** empty log message *** 1995-06-03 02:26:19 +00:00
David Edelsohn 4f36d4ab73 * arc-tdep.c (arc_bfd_mach_type): New static global.
(codestream_fill): Handle byte order differences.
	(setup_prologue_scan): Don't read stdarg function's "sub sp,sp,N".
	(arc_get_frame_setup): Read it here.
	(arc_frame_saved_pc): And here.
	(arc_print_insn): New function.
	(arc_set_cpu_type): Set arc_bfd_mach_type.  Don't set tm_print_insn.
	(_initialize_arc_tdep): Set tm_print_insn to arc_print_insn.
1995-06-02 18:29:46 +00:00