Commit Graph

12585 Commits

Author SHA1 Message Date
J.T. Conklin 68c1bc9ca1 * nlmstub.def: Removed, this was moved to nlm/gdbserve.def
long ago.

* config/alpha/{alpha-nw.mt, gdbserve.mt, tm-alphanw.h}: Removed.
* nlm/{README-ALPHA-NETWARE, aio.h, alpha-io.S, alpha-regdef.h,
  alpha.c, alpha.h, altdebug.h}: Removed.
1995-03-15 21:24:56 +00:00
Jim Kingdon a59f104ed8 * gdb.base/printcmds.exp (test_character_literals_accepted): Test
printing of '\'' (which is what the comment says we are testing,
	even though we were not), not '''.
	(test_integer_literals_rejected): Test that printing ''' is an error.

	* gdb.fortran/exprs.exp, gdb.fortran/types.exp,
	gdb.chill/chexp.exp, gdb.base/printcmds.exp,
	gdb.c++/cplusfuncs.exp, gdb.chill/callch.exp, gdb.chill/misc.exp,
	gdb.chill/pr-6292.exp, gdb.chill/string.exp, gdb.chill/tuples.exp:
	Use gdb_test not test_print_accept.
	* lib/gdb.exp: Remove test_print_accept.
1995-03-15 21:23:14 +00:00
J.T. Conklin b1dda26e87 * nlm/gdbserve.c (main): Add support for processing BOARD=
argument, deprecate NODE=.
1995-03-15 21:07:10 +00:00
Ian Lance Taylor e5926c4a4c * ecoff.c (ecoff_build_debug): The cur_scope field of a fil_ptr
may be NULL when given strange input.  Don't core dump.
PR 6509.
1995-03-15 19:47:15 +00:00
Jim Kingdon 961b8ebd27 * c-exp.y (yylex): Make an empty character constant an error. 1995-03-15 19:18:26 +00:00
Ian Lance Taylor de906b511e * libelf.h (bfd_elf32__write_relocs): Don't declare.
(bfd_elf64__write_relocs): Don't declare.
1995-03-15 16:57:15 +00:00
Jim Kingdon 82f14c545b * gdb.base/signals.exp (signal_tests_1): Make pass message
consistent with fail message.
1995-03-15 16:09:58 +00:00
Jim Kingdon 67f356336f * gdb.base/whatis.exp: Remove xfails for printing char vs.
unsigned char; the bug (PR 1821) is fixed.

	* gdb.base/scope.exp: Remove xfails for PRs 1843 and 1868.

	* gdb.base/scope.exp (test_at_localscopes): Call pass for
	successful tests--makes xfailing them work right.
1995-03-15 12:23:45 +00:00
Ian Lance Taylor a7f668c02f * config/tc-mips.c (load_register): Don't use addiu for dli of an
unsigned seemingly negative number.  Don't bother shifting a zero
	value.
	(mips_ip): For case 'j', if there are more alternatives, and the
	ISA level is at least 3, don't accept an unsigned seemingly
	negative number.
1995-03-15 02:39:39 +00:00
Jim Kingdon 6b62554aee * gdb.base/nodebug.exp: Test ability to call a function and pass
it a string (even with no debugging info).
1995-03-15 01:57:01 +00:00
Ken Raeburn f6bc42a3c0 * read.c (s_app_line): Fix last patch to deal with a line number of 1. 1995-03-15 00:44:25 +00:00
Per Bothner 912cb3fdd5 * valops.c (value_arg_coerce): Do possible value_coerce_array
before determining type argument to value_cast.
1995-03-14 23:03:22 +00:00
Michael Meissner ce9a280583 Warn rather than cause an error if the reloc is not compatible with -mrelocatable. 1995-03-14 22:05:48 +00:00
Jim Kingdon 4081daa1ed * lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
only \r\n, not .*.  The test can pass .* as the last thing in
	$pattern if that is what it wants.  In addition to providing this
	flexibility, this change should speed up pattern matching in cases
	where the pattern already ended with .* (there were a number of
	them).  This change also helps catch bad patterns--in the old
	scheme the typo "char \*" instead of "char \\*" would pass.  Now
	it is caught.
	* Many .exp files: Update callers.
1995-03-14 21:25:19 +00:00
Stan Shebs 35f37e1e66 * mpw-README: Filled in more details about how to install,
use, and rebuild.
	* mpw-configure: Added copyright.
	(target_cpu, target_vendor, target_os): Move after reading
	of mpw-config.in, paste into generated Makefiles.
	(TDEFINES): Remove.
	* mpw-config.in: Check for presence of required build tools.
	(target_libs): Add newlib.
	(target_tools): Add examples.
	(Read Me): Generate as "Read Me for MPW" instead.
	* mpw-build.in: Base sub-builds on all-foo instead of do-foo.
	(all-byacc, do-byacc, all-flex, do-flex, do-newlib): New actions.
	(do-gas, do-gcc, do-gdb, do-ld): Build Version.r first.
1995-03-14 21:07:19 +00:00
Kung Hsu 1990231d57 * remote-es.c: Replace ignore with 0. 1995-03-14 18:48:06 +00:00
Jim Kingdon 9be82863cc * gdb.base/funcargs.exp: Replace \[(\]+ with \\(. The latter is
clearer and does not spuriously match multiple ('s.  Likewise for
	) and *.
1995-03-14 18:40:05 +00:00
Jim Kingdon fcb869f1f2 * gdb.base/nodebug.exp: Test ability to call a function and pass
it a string (even with no debugging info).
1995-03-14 18:06:26 +00:00
Ian Lance Taylor e66fa842d0 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
for -lc.N.  From H.J. Lu <hjl@nynexst.com>.
1995-03-14 17:32:12 +00:00
Jim Kingdon 05918905ce * gdb.base/printcmds.exp (test_integer_literals_rejected): Change
"p '\'", which is the same as "p ''" once tcl gets done with
	quoting, to "p '\\'", which I suspect is what is intended (one
	backslash gets sent to GDB).

	* gdb.base/printcmds.exp (test_artificial_arrays): New tests.
1995-03-14 16:47:38 +00:00
Jim Kingdon 2e12bf4fd1 * valops.c (value_repeat), eval.c (evaluate_subexp_standard):
If VALUE_REPEATED is already set, just error out.
1995-03-14 16:31:28 +00:00
Jim Kingdon 36633dcc4a * valops.c (value_cast, value_slice), parse.c (follow_types): Add
FIXME-type-allocation comments.
1995-03-14 14:59:24 +00:00
Jim Kingdon a3012272b0 * gdbtypes.h (struct type): Fix comment about what units the
TYPE_LENGTH is in.
1995-03-14 14:05:16 +00:00
Ken Raeburn 75236adbd2 stab-syms.c: Rewrite to improve performance. Shaves about 5% off gprof run
time, according to gprof itself, on i486-netbsd.
1995-03-14 11:02:19 +00:00
Ken Raeburn c024cc1110 Changes from Klaus Kaempf:
* alpha-opc.h (OSF_ASMCODE): define print pal-code names as defined in App C of
the Alpha Architecture Reference Manual

* alpha-dis.c: cleaned up output print stylized code forms as defined in App
A.4.3 of the Alpha Architecture Reference Manual
1995-03-14 07:17:20 +00:00
Ken Raeburn 03c35bcb6e * __bb_exit_func.c: New file, from David Mosberger-Tang.
Thu Feb  9 16:56:07 1995  David Mosberger-Tang  <davidm@piston.cs.arizona.edu>

* All *.c: More cleanup towards GNU format.

* gmon_out.h (struct gmon_hist_hdr, struct gmon_cg_arc_record): replaced sizeof
(bfd_vma) by size (char*) because Ken tells me that bfd_vma is only guaranteed
to be at least as big as a pointer.

(GMON_Record_tag): added explicit enumeration values to ensure compatibility
across compilers.

* gmon_io.c (get_vma, put_vma): replaced sizeof(bfd_vma) by sizeof(char*).
1995-03-14 02:58:16 +00:00
Stan Shebs 477b242500 * ch-valprint.c (annotate.h): Include.
* eval.c (evaluate_subexp_standard): Remove unused variable.
	(calc_f77_array_dims): Add parens to expression.
	* f-exp.y (yylex): Add parens to expression, remove unused label.
	* f-lang.h (calc_f77_array_dims): Declare.
	* f-valprint.c (f_val_print): Remove unused variables.
1995-03-14 02:37:20 +00:00
Ken Raeburn 85a30e5978 Mon Mar 13 17:03:46 1995 Pat Rankin (rankin@eql.caltech.edu)
* config/tc-vax.c (md_assemble):  issue a warning if a constant
	is used as an operand where an immediate value is not allowed.
1995-03-14 02:27:26 +00:00
Per Bothner d0b2a91c25 * gdb.texinfo (Define): Document $arg0... arguments to commands,
and new 'if' and 'while' commands.
1995-03-14 00:49:33 +00:00
Jim Kingdon 4f69fe4692 * alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
use the PDR, just examine prologues instead.
1995-03-13 23:37:10 +00:00
Ian Lance Taylor d042121899 * elfcode.h (write_relocs): Make static. Use PTR argument as a
pointer to a boolean variable set to true if something fails.
	Cast to PTR rather than void *.
	(sym_is_global): Rewrite for clarity.
	(map_program_segments): If the program header size is too small,
	call _bfd_error_handler and return failure rather than aborting.
	(NAME(bfd_elf,write_object_contents)): Pass boolean variable when
	calling write_relocs.
	(elf_symbol_from_bfd_symbol): Use BFD_ASSERT rather than abort.
	(struct elf_info_failed): Define.
	(NAME(bfd_elf,size_dynamic_sections)): Declare variables in inner
	blocks.  Pass elf_info_failed structure when calling
	elf_export_symbol and elf_adjust_dynamic_symbol.
	(elf_export_symbol): Treat data argument as elf_info_failed rather
	than bfd_link_info.  Set failed field on error.
	(elf_adjust_dynamic_symbol): Likewise.
	(struct elf_finfo_failed): Define.
	(elf_bfd_final_link): Pass elf_finfo_failed structure when calling
	elf_link_output_extsym.  Use BFD_ASSERT rather than abort.
	(elf_link_output_extsym): Treat data argument as elf_finfo_failed
	rather than elf_final_link_info.  Set failed field on error.
	(elf_link_input_bfd): Use BFD_ASSERT rather than abort.
	(elf_reloc_link_order): Likewise.
1995-03-13 21:55:44 +00:00
Ian Lance Taylor f786a73f08 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Only write
out PLTRELSZ, PLTREL and JMPREL relocs if there is a .rela.plt
	section.  Solaris 2.4 apparently does not handle empty reloc
	information correctly.
1995-03-13 20:39:36 +00:00
Ian Lance Taylor c4299ed83a * archive.c (bsd_write_armap): Cast getuid and getgid results to
long, and print with %ld.
1995-03-13 18:49:44 +00:00
Ian Lance Taylor 3cbb8192fa * mh-hpux8: New file.
* mh-hpux: Use X11R5 rather than X11R4.
1995-03-13 17:37:39 +00:00
Ian Lance Taylor 0259fc7399 * configure.in (*-hp-hpux[78]*): Use mh-hpux8. 1995-03-13 17:36:19 +00:00
David Edelsohn 890b53ef65 * elf32-arc.c (elf_arc_howto_table): Relocs with implicit addends
don't work too well with zero src_masks.  Correct values.
1995-03-12 13:26:57 +00:00
David Edelsohn 8dbed89e06 arc-dis.c (print_insn): Put "+ 4" of relative addresses back. Oops. 1995-03-12 13:21:07 +00:00
Jim Kingdon 2f8996dc3c * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
1817) was fixed literally years ago.
1995-03-11 05:34:40 +00:00
Ken Raeburn 78fcad5848 * config/obj-coff.c: Redo my 10 Jan change, but get it right this time. :-)
(fixup_segment): If linkrelax is set, just return.
(write_object_file): Don't treat h8300 and z8k specially with regard to fixups.
* config/tc-h8300.c (md_begin): Set linkrelax.
* config/tc-z8k.c (md_begin): Ditto.
1995-03-11 00:30:30 +00:00
Ken Raeburn 13641953c5 * gas/h8300/ffxx1.s: Add .word 0 at the end to eliminate uncertainty as to
whether there should be trailing bytes in the output file.
* gas/h8300/ffxx1.d: Adjust reloc values to permit an addend value of
0x00000000ffffffff on 64-bit hosts.  (I'm not sure if this is correct.)  End
with "..." to match trailing zero bytes.
1995-03-11 00:17:26 +00:00
Kung Hsu c230fbb6df * config/tm-arc.h: Change arc register names. 1995-03-11 00:17:15 +00:00
Ken Raeburn 0eb1f9cefa whitespace/comment formatting 1995-03-10 22:33:28 +00:00
Ian Lance Taylor 6a107a2838 * aoutx.h (translate_to_native_sym_flags): Always use the output
section if it is not NULL.
PR 6477.
1995-03-10 21:43:02 +00:00
Ian Lance Taylor 22c41f00b6 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set. 1995-03-10 20:26:49 +00:00
Ian Lance Taylor 01bc8f35b5 * ldlex.l: Return -lFILENAME as the token LNAME.
* ldgram.y: Add token LNAME.
	(input_list): Treat LNAME like NAME, but pass it to
	lang_add_input_file as lang_input_file_is_l_enum.
	* ld.texinfo: Document using -lFILENAME in INPUT.
1995-03-10 20:02:51 +00:00
Stan Shebs 6e9cac5f32 default to keeping rather than losing gdbtk 1995-03-10 19:39:59 +00:00
Stan Shebs fc5a05e946 Add verboseness to mpw sanitize, add lose-gdbtk for FSF releases 1995-03-10 19:37:48 +00:00
Stan Shebs 8cbf6efc61 Finish sanitization gaffes 1995-03-10 18:39:48 +00:00
Ian Lance Taylor ec5865657b document split-by-reloc and split-by-file 1995-03-10 18:36:43 +00:00
Ian Lance Taylor dff604a75f * objcopy.c (strip_options): Add --keep-symbol.
(copy_options): Likewise.
	(copy_usage): Mention --keep-symbol and -K.
	(strip_usage): Likewise.
	(keep_symbols): New static variable.
	(is_strip_symbol): Adjust the return value according to
	keep_symbols.
	(strip_main): Handle -K.  For -N, check that -K was not given.
	(copy_main): Likewise.
	* binutils.texi, objcopy.1, strip.1: Document -K.
1995-03-10 18:13:31 +00:00