Commit Graph

12600 Commits

Author SHA1 Message Date
Jim Kingdon
d1f14b46bd * xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
inferred from the traceback tags, give its type the name
	"<non-float parameter>".
1995-03-16 22:45:35 +00:00
Michael Meissner
86d0248d41 Provide eabi C++ static constructor/destructor support. 1995-03-16 22:22:39 +00:00
Jason Merrill
4350753eb9 Thu Mar 16 13:35:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* configure.in: Fix --enable-shared logic in per-host.
1995-03-16 21:37:09 +00:00
Jim Kingdon
8367c66b2d * stabsread.c (rs6000_builtin_type): Recognize types -31 to -34. 1995-03-16 20:37:09 +00:00
Jim Kingdon
ffcee8884b * stabs.texinfo (Negative Type Numbers): Document types -31 to -34. 1995-03-16 20:31:08 +00:00
Ian Lance Taylor
ee499d8192 * ld.texinfo, ld.1: Document --whole-archive. 1995-03-16 19:14:24 +00:00
Ian Lance Taylor
f2f55b1677 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
describes an archive, call bfd_link_add_symbols on each member.
	* ldmain.c (whole_archive): New variable.
	(main): Initialize it to false.
	* ldmain.h: Declare whole_archive.
	* lexsup.c (parse_args): Grok --whole-archive switch.
1995-03-16 19:06:41 +00:00
Ian Lance Taylor
171eb2f259 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
using the default emulation.
1995-03-16 17:03:26 +00:00
Ian Lance Taylor
cb5362c557 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
LDEMULATION.
	* config/hppaelf.mh (HOSTING_EMU): Likewise.
1995-03-16 16:39:53 +00:00
Stu Grossman
e8a256f8a2 * config/rom68k.exp: New file to support Motorola IDP board.
* gdb.base/a2-run.exp:  Skip this file if noargs is set.
	* gdb.base/break.c:  Change things around so that this program
	doesn't depend upon args.  This is necessary to make remote
	targets work (in general, they can't take args).
	* gdb.base/break.exp:  Don't try to send args to program.  Don't
	expect output.  Also, replace lots of code with gdb_test.
1995-03-16 00:06:51 +00:00
Stu Grossman
2081365ffa * findvar.c (read_register_bytes write_register_bytes): Make
these routines much smarter about updating registers from the
	target, only doing so when absolutely necessary.  This really
	speeds up register modification on some remote targets.

	* monitor.c:  More cleanups.  Get rid of monitor_load_ascii_srec.
	BFD makes this unnecessary.  Lots of debugging speedups.
	* (expect):  NULL terminate return string.
	* (monitor_open	monitor_supply_register parse_register_dump
	monitor_wait monitor_fetch_register):  Switch to using GNU regexp
	library to parse multi-register displays.
	* (monitor_read_memory): Read multiple bytes (up to 16) at once.
	* (monitor_create_inferior):  Call clear_proceed_status to make run
	command notice first breakpoint.
	* (monitor_load):  Clean up.  Reset inferior_pid, set pc to start
	address and reset symbol table stuff to make loads put things into
	a fresh state.
	* (monitor_load_srec):  Lower sleep time to 1 second.

	* monitor.h (struct monitor_ops):  Add register_pattern and
	supply_register to monitor_ops.

	* rom68k-rom.c:  Add new support for handling register dumps.
1995-03-15 23:31:14 +00:00
Jim Kingdon
a7f6f40b3c * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
argument be an int, not a char.  Using a prototype followed by an
	old-style function definition in a case where an argument is
	widened is a GCC-ism not supported by the native AIX compiler.
1995-03-15 23:24:24 +00:00
J.T. Conklin
a64bbacfc8 * configure.in (alpha-*-netware*): Removed configuration. 1995-03-15 22:36:46 +00:00
J.T. Conklin
4c659894ed Reworded comments. gdbserve.nlm is no longer NetWare/i386 specific. 1995-03-15 22:32:57 +00:00
J.T. Conklin
f919f30267 * 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 22:00:30 +00:00
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