binutils-gdb.git
29 years ago * gdb.base/nodebug.exp: It is OK if GDB thinks top and middle have
Jim Kingdon [Fri, 17 Mar 1995 00:32:31 +0000 (00:32 +0000)]
* gdb.base/nodebug.exp: It is OK if GDB thinks top and middle have
one argument of type "<non-float parameter>".

29 years ago* nlm/gdbserve.c (handle_exception): #if out call to StopBell,
J.T. Conklin [Fri, 17 Mar 1995 00:03:11 +0000 (00:03 +0000)]
* nlm/gdbserve.c (handle_exception): #if out call to StopBell,
  as it is not available on NetWare 3 or PIN.
* nlm/ppc.c (StopBell): Removed.

29 years ago * xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
Jim Kingdon [Thu, 16 Mar 1995 22:45:35 +0000 (22:45 +0000)]
* xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
inferred from the traceback tags, give its type the name
"<non-float parameter>".

29 years agoProvide eabi C++ static constructor/destructor support.
Michael Meissner [Thu, 16 Mar 1995 22:22:39 +0000 (22:22 +0000)]
Provide eabi C++ static constructor/destructor support.

29 years agoThu Mar 16 13:35:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
Jason Merrill [Thu, 16 Mar 1995 21:37:09 +0000 (21:37 +0000)]
Thu Mar 16 13:35:30 1995  Jason Merrill  <jason@phydeaux.cygnus.com>

* configure.in: Fix --enable-shared logic in per-host.

29 years ago* stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.
Jim Kingdon [Thu, 16 Mar 1995 20:37:09 +0000 (20:37 +0000)]
* stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.

29 years ago* stabs.texinfo (Negative Type Numbers): Document types -31 to -34.
Jim Kingdon [Thu, 16 Mar 1995 20:31:08 +0000 (20:31 +0000)]
* stabs.texinfo (Negative Type Numbers): Document types -31 to -34.

29 years ago * ld.texinfo, ld.1: Document --whole-archive.
Ian Lance Taylor [Thu, 16 Mar 1995 19:14:24 +0000 (19:14 +0000)]
* ld.texinfo, ld.1: Document --whole-archive.

29 years ago * ldlang.c (load_symbols): If whole_archive is true and ENTRY
Ian Lance Taylor [Thu, 16 Mar 1995 19:06:41 +0000 (19:06 +0000)]
* 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.

29 years ago * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
Ian Lance Taylor [Thu, 16 Mar 1995 17:03:26 +0000 (17:03 +0000)]
* genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
using the default emulation.

29 years ago * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
Ian Lance Taylor [Thu, 16 Mar 1995 16:39:53 +0000 (16:39 +0000)]
* config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
LDEMULATION.
* config/hppaelf.mh (HOSTING_EMU): Likewise.

29 years ago * config/rom68k.exp: New file to support Motorola IDP board.
Stu Grossman [Thu, 16 Mar 1995 00:06:51 +0000 (00:06 +0000)]
* 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.

29 years ago * findvar.c (read_register_bytes write_register_bytes): Make
Stu Grossman [Wed, 15 Mar 1995 23:31:14 +0000 (23:31 +0000)]
* 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.

29 years ago * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
Jim Kingdon [Wed, 15 Mar 1995 23:24:24 +0000 (23:24 +0000)]
* 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.

29 years ago* configure.in (alpha-*-netware*): Removed configuration.
J.T. Conklin [Wed, 15 Mar 1995 22:36:46 +0000 (22:36 +0000)]
* configure.in (alpha-*-netware*): Removed configuration.

29 years agoReworded comments. gdbserve.nlm is no longer NetWare/i386 specific.
J.T. Conklin [Wed, 15 Mar 1995 22:32:57 +0000 (22:32 +0000)]
Reworded comments.  gdbserve.nlm is no longer NetWare/i386 specific.

29 years ago* nlmstub.def: Removed, this was moved to nlm/gdbserve.def
J.T. Conklin [Wed, 15 Mar 1995 22:00:30 +0000 (22:00 +0000)]
* 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.

29 years ago* nlmstub.def: Removed, this was moved to nlm/gdbserve.def
J.T. Conklin [Wed, 15 Mar 1995 21:24:56 +0000 (21:24 +0000)]
* 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.

29 years ago * gdb.base/printcmds.exp (test_character_literals_accepted): Test
Jim Kingdon [Wed, 15 Mar 1995 21:23:14 +0000 (21:23 +0000)]
* 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.

29 years ago* nlm/gdbserve.c (main): Add support for processing BOARD=
J.T. Conklin [Wed, 15 Mar 1995 21:07:10 +0000 (21:07 +0000)]
* nlm/gdbserve.c (main): Add support for processing BOARD=
  argument, deprecate NODE=.

29 years ago * ecoff.c (ecoff_build_debug): The cur_scope field of a fil_ptr
Ian Lance Taylor [Wed, 15 Mar 1995 19:47:15 +0000 (19:47 +0000)]
* 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.

29 years ago* c-exp.y (yylex): Make an empty character constant an error.
Jim Kingdon [Wed, 15 Mar 1995 19:18:26 +0000 (19:18 +0000)]
* c-exp.y (yylex): Make an empty character constant an error.

29 years ago * libelf.h (bfd_elf32__write_relocs): Don't declare.
Ian Lance Taylor [Wed, 15 Mar 1995 16:57:15 +0000 (16:57 +0000)]
* libelf.h (bfd_elf32__write_relocs): Don't declare.
(bfd_elf64__write_relocs): Don't declare.

29 years ago * gdb.base/signals.exp (signal_tests_1): Make pass message
Jim Kingdon [Wed, 15 Mar 1995 16:09:58 +0000 (16:09 +0000)]
* gdb.base/signals.exp (signal_tests_1): Make pass message
consistent with fail message.

29 years ago * gdb.base/whatis.exp: Remove xfails for printing char vs.
Jim Kingdon [Wed, 15 Mar 1995 12:23:45 +0000 (12:23 +0000)]
* 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.

29 years ago * config/tc-mips.c (load_register): Don't use addiu for dli of an
Ian Lance Taylor [Wed, 15 Mar 1995 02:39:39 +0000 (02:39 +0000)]
* 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.

29 years ago * gdb.base/nodebug.exp: Test ability to call a function and pass
Jim Kingdon [Wed, 15 Mar 1995 01:57:01 +0000 (01:57 +0000)]
* gdb.base/nodebug.exp: Test ability to call a function and pass
it a string (even with no debugging info).

29 years ago* read.c (s_app_line): Fix last patch to deal with a line number of 1.
Ken Raeburn [Wed, 15 Mar 1995 00:44:25 +0000 (00:44 +0000)]
* read.c (s_app_line): Fix last patch to deal with a line number of 1.

29 years ago * valops.c (value_arg_coerce): Do possible value_coerce_array
Per Bothner [Tue, 14 Mar 1995 23:03:22 +0000 (23:03 +0000)]
* valops.c (value_arg_coerce):  Do possible value_coerce_array
before determining type argument to value_cast.

29 years agoWarn rather than cause an error if the reloc is not compatible with -mrelocatable.
Michael Meissner [Tue, 14 Mar 1995 22:05:48 +0000 (22:05 +0000)]
Warn rather than cause an error if the reloc is not compatible with -mrelocatable.

29 years ago * lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
Jim Kingdon [Tue, 14 Mar 1995 21:25:19 +0000 (21:25 +0000)]
* 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.

29 years ago * mpw-README: Filled in more details about how to install,
Stan Shebs [Tue, 14 Mar 1995 21:07:19 +0000 (21:07 +0000)]
* 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.

29 years ago * remote-es.c: Replace ignore with 0.
Kung Hsu [Tue, 14 Mar 1995 18:48:06 +0000 (18:48 +0000)]
    * remote-es.c: Replace ignore with 0.

29 years ago * gdb.base/funcargs.exp: Replace \[(\]+ with \\(. The latter is
Jim Kingdon [Tue, 14 Mar 1995 18:40:05 +0000 (18:40 +0000)]
* gdb.base/funcargs.exp: Replace \[(\]+ with \\(.  The latter is
clearer and does not spuriously match multiple ('s.  Likewise for
) and *.

29 years ago * gdb.base/nodebug.exp: Test ability to call a function and pass
Jim Kingdon [Tue, 14 Mar 1995 18:06:26 +0000 (18:06 +0000)]
* gdb.base/nodebug.exp: Test ability to call a function and pass
it a string (even with no debugging info).

29 years ago * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
Ian Lance Taylor [Tue, 14 Mar 1995 17:32:12 +0000 (17:32 +0000)]
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
for -lc.N.  From H.J. Lu <hjl@nynexst.com>.

29 years ago * gdb.base/printcmds.exp (test_integer_literals_rejected): Change
Jim Kingdon [Tue, 14 Mar 1995 16:47:38 +0000 (16:47 +0000)]
* 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.

29 years ago * valops.c (value_repeat), eval.c (evaluate_subexp_standard):
Jim Kingdon [Tue, 14 Mar 1995 16:31:28 +0000 (16:31 +0000)]
* valops.c (value_repeat), eval.c (evaluate_subexp_standard):
If VALUE_REPEATED is already set, just error out.

29 years ago * valops.c (value_cast, value_slice), parse.c (follow_types): Add
Jim Kingdon [Tue, 14 Mar 1995 14:59:24 +0000 (14:59 +0000)]
* valops.c (value_cast, value_slice), parse.c (follow_types): Add
FIXME-type-allocation comments.

29 years ago * gdbtypes.h (struct type): Fix comment about what units the
Jim Kingdon [Tue, 14 Mar 1995 14:05:16 +0000 (14:05 +0000)]
* gdbtypes.h (struct type): Fix comment about what units the
TYPE_LENGTH is in.

29 years agostab-syms.c: Rewrite to improve performance. Shaves about 5% off gprof run
Ken Raeburn [Tue, 14 Mar 1995 11:02:19 +0000 (11:02 +0000)]
stab-syms.c: Rewrite to improve performance.  Shaves about 5% off gprof run
time, according to gprof itself, on i486-netbsd.

29 years agoChanges from Klaus Kaempf:
Ken Raeburn [Tue, 14 Mar 1995 07:17:20 +0000 (07:17 +0000)]
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

29 years ago* __bb_exit_func.c: New file, from David Mosberger-Tang.
Ken Raeburn [Tue, 14 Mar 1995 02:58:16 +0000 (02:58 +0000)]
* __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*).

29 years ago * ch-valprint.c (annotate.h): Include.
Stan Shebs [Tue, 14 Mar 1995 02:37:20 +0000 (02:37 +0000)]
* 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.

29 years agoMon Mar 13 17:03:46 1995 Pat Rankin (rankin@eql.caltech.edu)
Ken Raeburn [Tue, 14 Mar 1995 02:27:26 +0000 (02:27 +0000)]
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.

29 years ago * gdb.texinfo (Define): Document $arg0... arguments to commands,
Per Bothner [Tue, 14 Mar 1995 00:49:33 +0000 (00:49 +0000)]
* gdb.texinfo (Define):  Document $arg0... arguments to commands,
and new 'if' and 'while' commands.

29 years ago * alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
Jim Kingdon [Mon, 13 Mar 1995 23:37:10 +0000 (23:37 +0000)]
* alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
use the PDR, just examine prologues instead.

29 years ago * elfcode.h (write_relocs): Make static. Use PTR argument as a
Ian Lance Taylor [Mon, 13 Mar 1995 21:55:44 +0000 (21:55 +0000)]
* 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.

29 years ago * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Only write
Ian Lance Taylor [Mon, 13 Mar 1995 20:39:36 +0000 (20:39 +0000)]
* 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.

29 years ago * archive.c (bsd_write_armap): Cast getuid and getgid results to
Ian Lance Taylor [Mon, 13 Mar 1995 18:49:44 +0000 (18:49 +0000)]
* archive.c (bsd_write_armap): Cast getuid and getgid results to
long, and print with %ld.

29 years ago * mh-hpux8: New file.
Ian Lance Taylor [Mon, 13 Mar 1995 17:37:39 +0000 (17:37 +0000)]
* mh-hpux8: New file.
* mh-hpux: Use X11R5 rather than X11R4.

29 years ago * configure.in (*-hp-hpux[78]*): Use mh-hpux8.
Ian Lance Taylor [Mon, 13 Mar 1995 17:36:19 +0000 (17:36 +0000)]
* configure.in (*-hp-hpux[78]*): Use mh-hpux8.

29 years ago * elf32-arc.c (elf_arc_howto_table): Relocs with implicit addends
David Edelsohn [Sun, 12 Mar 1995 13:26:57 +0000 (13:26 +0000)]
* elf32-arc.c (elf_arc_howto_table): Relocs with implicit addends
don't work too well with zero src_masks.  Correct values.

29 years agoarc-dis.c (print_insn): Put "+ 4" of relative addresses back. Oops.
David Edelsohn [Sun, 12 Mar 1995 13:21:07 +0000 (13:21 +0000)]
arc-dis.c (print_insn): Put "+ 4" of relative addresses back.  Oops.

29 years ago * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
Jim Kingdon [Sat, 11 Mar 1995 05:34:40 +0000 (05:34 +0000)]
* gdb.base/a1-selftest.exp: Remove xfail for solaris.  The bug (PR
1817) was fixed literally years ago.

29 years ago* config/obj-coff.c: Redo my 10 Jan change, but get it right this time. :-)
Ken Raeburn [Sat, 11 Mar 1995 00:30:30 +0000 (00:30 +0000)]
* 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.

29 years ago* gas/h8300/ffxx1.s: Add .word 0 at the end to eliminate uncertainty as to
Ken Raeburn [Sat, 11 Mar 1995 00:17:26 +0000 (00:17 +0000)]
* 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.

29 years ago * config/tm-arc.h: Change arc register names.
Kung Hsu [Sat, 11 Mar 1995 00:17:15 +0000 (00:17 +0000)]
    * config/tm-arc.h: Change arc register names.

29 years agowhitespace/comment formatting
Ken Raeburn [Fri, 10 Mar 1995 22:33:28 +0000 (22:33 +0000)]
whitespace/comment formatting

29 years ago * aoutx.h (translate_to_native_sym_flags): Always use the output
Ian Lance Taylor [Fri, 10 Mar 1995 21:43:02 +0000 (21:43 +0000)]
* aoutx.h (translate_to_native_sym_flags): Always use the output
section if it is not NULL.
PR 6477.

29 years ago * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
Ian Lance Taylor [Fri, 10 Mar 1995 20:26:49 +0000 (20:26 +0000)]
* ldmain.c (main): Don't set EXEC_P if link_info.shared is set.

29 years ago * ldlex.l: Return -lFILENAME as the token LNAME.
Ian Lance Taylor [Fri, 10 Mar 1995 20:02:51 +0000 (20:02 +0000)]
* 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.

29 years agodefault to keeping rather than losing gdbtk
Stan Shebs [Fri, 10 Mar 1995 19:39:59 +0000 (19:39 +0000)]
default to keeping rather than losing gdbtk

29 years agoAdd verboseness to mpw sanitize, add lose-gdbtk for FSF releases
Stan Shebs [Fri, 10 Mar 1995 19:37:48 +0000 (19:37 +0000)]
Add verboseness to mpw sanitize, add lose-gdbtk for FSF releases

29 years agoFinish sanitization gaffes
Stan Shebs [Fri, 10 Mar 1995 18:39:48 +0000 (18:39 +0000)]
Finish sanitization gaffes

29 years agodocument split-by-reloc and split-by-file
Ian Lance Taylor [Fri, 10 Mar 1995 18:36:43 +0000 (18:36 +0000)]
document split-by-reloc and split-by-file

29 years ago * objcopy.c (strip_options): Add --keep-symbol.
Ian Lance Taylor [Fri, 10 Mar 1995 18:13:31 +0000 (18:13 +0000)]
* 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.

29 years ago * gdb.c++/templates.exp: Source templ-info.exp only if
Peter Schauer [Fri, 10 Mar 1995 12:18:05 +0000 (12:18 +0000)]
* gdb.c++/templates.exp:  Source templ-info.exp only if
the templates executable exists.

29 years ago * gdb.base/funcargs.exp (call_after_alloca): Remove `next'
Peter Schauer [Fri, 10 Mar 1995 11:24:30 +0000 (11:24 +0000)]
* gdb.base/funcargs.exp (call_after_alloca):  Remove `next'
test, it causes stepping out of call_after_alloca_subr with
optimizing compilers.
(localvars_in_indirect_call):  Consume GDB prompt if `finish'
fails.

* gdb.c++/misc.cc (class Contains_static_instance,
class Contains_nested_static_instance),
gdb.c++/classes.exp (test_static_members):  Test printing of
a class that contains a static instance of the class.

29 years ago Fix problems with infinite recursion when printing a class
Peter Schauer [Fri, 10 Mar 1995 11:21:32 +0000 (11:21 +0000)]
Fix problems with infinite recursion when printing a class
that contains a static instance of the class.
* cp-valprint.c (dont_print_vb_obstack):  Renamed from
dont_print_obstack, made static.
(dont_print_statmem_obstack):  New obstack, controls printing
of static member classes.
(_initialize_cp_valprint):  Initialize it.
(cp_print_static_field):  New function, handles printing of
static members.
(cp_print_value_fields):  New parameter dont_print_statmem to
handle recursive printing of static member classes, use
cp_print_static_field to handle printing of static members.
* c-valprint.c (cp_print_value_fields):  Update prototype and
call to include additional dont_print_statmem parameter.
* c-valprint.c, f-valprint.c (dont_print_obstack):  Remove unused
extern declaration.

* alpha-tdep.c, findvar.c, infptrace.c:  Include <string.h>.

* config/alpha/tm-alpha.h (FRAME_FIND_SAVED_REGS):  Call
alpha_find_saved_regs if fi->saved_regs is still NULL.

* elfread.c (elf_symtab_read):  Ensure that the filename field
of a minsym is nonempty. Ignore solib trampoline symbols from
the main symbol table, they might have a bogus value.

* procfs.c (set_proc_siginfo), config/alpha/alpha-osf2.mh:
Fix typos in comments.

29 years ago * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
Jim Kingdon [Fri, 10 Mar 1995 01:26:09 +0000 (01:26 +0000)]
* mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1.  That way
we know whether the PDR ever got set.
* mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
use the PDR, just examine prologues instead.

29 years ago * config/obj-coff.c (coff_header_append): Check return value of
Ian Lance Taylor [Thu, 9 Mar 1995 23:02:43 +0000 (23:02 +0000)]
* config/obj-coff.c (coff_header_append): Check return value of
bfd_coff_swap_scnhdr_out.

29 years ago * coffswap.h (coff_swap_scnhdr_out): If the line number count or
Ian Lance Taylor [Thu, 9 Mar 1995 22:58:14 +0000 (22:58 +0000)]
* coffswap.h (coff_swap_scnhdr_out): If the line number count or
the reloc count does not fit, print an error and return 0.
* coffcode.h (coff_write_object_contents): Check return value of
coff_swap_scnhdr_out.
* ecoff.c (_bfd_ecoff_write_object_contents): Check return value
of bfd_coff_swap_scnhdr_out.

29 years ago * bfd.c: Include <stdarg.h> or <varargs.h>, depending upon
Ian Lance Taylor [Thu, 9 Mar 1995 22:16:40 +0000 (22:16 +0000)]
* bfd.c: Include <stdarg.h> or <varargs.h>, depending upon
ANSI_PROTOTYPES.
(bfd_error_handler_type): New global type.
(_bfd_error_program_name): New static variable.
(_bfd_default_error_handler): New static function.
(_bfd_error_handler): New BFD private global variable.
(bfd_set_error_handler): New globally visible function.
(bfd_set_error_program_name): New globally visible function.
* libbfd-in.h (_bfd_error_handler): Declare.
* bfd-in2.h, libbfd.h: Rebuild.

29 years ago Delete this patch, it breaks the h8300 assembler.
David Edelsohn [Thu, 9 Mar 1995 21:54:14 +0000 (21:54 +0000)]
Delete this patch, it breaks the h8300 assembler.
Tue Jan 10 13:34:14 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
* config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
specially with regard to fixups.

29 years agoDelete this patch, it breaks the h8300 assembler.
David Edelsohn [Thu, 9 Mar 1995 21:51:42 +0000 (21:51 +0000)]
Delete this patch, it breaks the h8300 assembler.
* config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
specially with regard to fixups.

29 years agokeep new mips4 test files
Ken Raeburn [Thu, 9 Mar 1995 20:28:14 +0000 (20:28 +0000)]
keep new mips4 test files

29 years ago * aoutx.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter,
Ian Lance Taylor [Thu, 9 Mar 1995 20:14:04 +0000 (20:14 +0000)]
* aoutx.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter,
and use it instead of bfd_get_symcount.  Check r_index after
setting r_extern based on whether this is a base relative reloc.
(NAME(aout,swap_std_reloc_IN)): Add symcount parameter, and use it
instead of bfd_get_symcount.
(NAME(aout,slurp_reloc_table)): Pass bfd_get_symcount to reloc
swap routines.
* libaout.h (NAME(aout,swap_ext_reloc_in)): Add symcount parameter
to declaration.
(NAME(aout,swap_std_reloc_in)): Likewise.
* sunos.c (sunos_canonicalize_dynamic_reloc): Pass
info->dynsym_count to reloc swap routines.
* aout-ns32k.c (MY_swap_std_reloc_in): Add symcount parameter.
* hp300hpux.c (MY(swap_std_reloc_in)): Likewise.
(MY(slurp_reloc_table)): Pass bfd_get_symcount to reloc swap
routine.
* i386lynx.c (NAME(lynx,swap_ext_reloc_in)): Add symcount
parameter.
(NAME(lynx,swap_std_reloc_in)): Likewise.
(NAME(lynx,slurp_reloc_table)): Pass bfd_get_symcount to reloc
swap routines.

29 years agoAdd support for checking whether all PowerPC ELF modules either use -mrelocatable...
Michael Meissner [Thu, 9 Mar 1995 17:20:20 +0000 (17:20 +0000)]
Add support for checking whether all PowerPC ELF modules either use -mrelocatable or do not.

29 years ago * somsolib.c (som_solib_section_offsets): Get offset of text
Jeff Law [Thu, 9 Mar 1995 06:37:02 +0000 (06:37 +0000)]
* somsolib.c (som_solib_section_offsets): Get offset of text
section right.

29 years ago * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
Stu Grossman [Thu, 9 Mar 1995 00:43:41 +0000 (00:43 +0000)]
* gdbtk.c (gdb_get_breakpoint_info):  Return error if breakpoint
type is not bp_breakpoint.

29 years ago * source.c (forward_search_command reverse_search_command): Set
Stu Grossman [Thu, 9 Mar 1995 00:25:15 +0000 (00:25 +0000)]
* source.c (forward_search_command reverse_search_command):  Set
convenience variable $_ to be the line # of the match.
* symtab.c (decode_line_1):  Allow convenience variables to be
used in line specs (for breakpoints and such).

29 years agofix typo
Michael Meissner [Wed, 8 Mar 1995 23:19:48 +0000 (23:19 +0000)]
fix typo

29 years agoAdd ppc.h
Michael Meissner [Wed, 8 Mar 1995 23:15:42 +0000 (23:15 +0000)]
Add ppc.h

29 years ago * *.exp: Skip all tests silently if skip_chill_tests returns true.
Jim Kingdon [Wed, 8 Mar 1995 21:32:37 +0000 (21:32 +0000)]
* *.exp: Skip all tests silently if skip_chill_tests returns true.

* misc.exp: Remove reference to non-existent variable passcount.

29 years ago* lib/gdb.exp (skip_chill_tests): New procedure.
Jim Kingdon [Wed, 8 Mar 1995 21:30:07 +0000 (21:30 +0000)]
* lib/gdb.exp (skip_chill_tests): New procedure.

29 years ago* gdb.base/signals.exp (signal_tests_1): xfail for irix.
Jim Kingdon [Wed, 8 Mar 1995 21:16:15 +0000 (21:16 +0000)]
* gdb.base/signals.exp (signal_tests_1): xfail for irix.

29 years ago * Makefile.in (VERSION): Bump to 4.14.1.
Stan Shebs [Wed, 8 Mar 1995 21:07:41 +0000 (21:07 +0000)]
* Makefile.in (VERSION): Bump to 4.14.1.
* NEWS, README: Update for 4.14.
* i386v-nat.c (i386_insert_aligned_watchpoint): Fix declaration.
(i386_insert_nonaligned_watchpoint): Call aligned instead of
generic watchpoint insertion.

29 years ago * gas/mips/mips4.d, gas/mips/mips4.s: New files.
Ian Lance Taylor [Wed, 8 Mar 1995 20:51:35 +0000 (20:51 +0000)]
* gas/mips/mips4.d, gas/mips/mips4.s: New files.
* gas/mips/mips.exp: Run new test.

29 years ago * cpu-mips.c (arch_info_struct): Add mips:8000 entry.
Ian Lance Taylor [Wed, 8 Mar 1995 20:47:26 +0000 (20:47 +0000)]
* cpu-mips.c (arch_info_struct): Add mips:8000 entry.

29 years ago * config/tc-mips.c (md_begin): Check for a cpu string of r8000 or
Ian Lance Taylor [Wed, 8 Mar 1995 20:46:47 +0000 (20:46 +0000)]
* config/tc-mips.c (md_begin): Check for a cpu string of r8000 or
r10000.  If mips_isa is 4, set the machine number to 8000.
(append_insn): If mips_isa is at least 4, don't generate nops for
coprocessor delays.  Check INSN_READ_FPR_R when setting
mips_cprmask[1].
(mips_emit_delays): If mips_isa is at least 4, don't generate nops
for coprocessor delays.
(mips_ip): Check for INSN_ISA4 instructions.  Handle new argument
types 'h', 'R', 'N', and 'M'.
(md_longopts): Accept "mips4".
(md_parse_option): Handle -mips4, and -mcpu=10000 and -mcpu=8000.
(s_mipsset): Permit .set mips4.

29 years agoAllow .stab section to contain non PC relative addresses if -mrelocatable.
Michael Meissner [Wed, 8 Mar 1995 15:03:50 +0000 (15:03 +0000)]
Allow .stab section to contain non PC relative addresses if -mrelocatable.

29 years ago* m68k-dis.c (BREAK_UP_BIG_DECL): Make secondary array static and const.
Ken Raeburn [Wed, 8 Mar 1995 08:23:24 +0000 (08:23 +0000)]
* m68k-dis.c (BREAK_UP_BIG_DECL): Make secondary array static and const.
(reg_names): Now const.
(print_insn_arg): Arrays cacheFieldName and names now const.
(print_indexed): Array scales now const.

29 years agoSeparated out opcode aliases from m68k opcode table, to reduce table size and
Ken Raeburn [Wed, 8 Mar 1995 08:20:11 +0000 (08:20 +0000)]
Separated out opcode aliases from m68k opcode table, to reduce table size and
processing time.  Aliases are now a separate table.

* m68k.h (enum m68k_architecture): Deleted.
(struct m68k_opcode_alias): New type.
(m68k_opcodes): Now const.  Deleted opcode aliases with exactly matching
constraints, values and flags.  As a side effect of this, the
MOTOROLA_SYNTAX_ONLY and MIT_SYNTAX_ONLY macros, which so far as I know were
never used, now may need re-examining.
(numopcodes): Now const.
(m68k_opcode_aliases, numaliases): New variables.
(endop): Deleted.
[DONT_DEFINE_TABLE]: Declare numopcodes, numaliases, and m68k_opcode_aliases;
update declaration of m68k_opcodes.

29 years ago* config/tc-m68k.c (opcode_ptr): Return pointer to const.
Ken Raeburn [Wed, 8 Mar 1995 08:10:49 +0000 (08:10 +0000)]
* config/tc-m68k.c (opcode_ptr): Return pointer to const.
(md_begin): Make hash table errors fatal.  Process opcode aliases after main
opcode table.
(md_apply_fix_2, case 4): Recode setting of lower_limit to avoid gcc warning.

29 years agoAvoid bogus assumption that the two parts of the split m68k opcode table
Ken Raeburn [Wed, 8 Mar 1995 07:57:05 +0000 (07:57 +0000)]
Avoid bogus assumption that the two parts of the split m68k opcode table
are going to be adjacent in memory.

29 years ago * elfcode.h (swap_out_syms): Mark an undefined BSF_WEAK symbol as
Ian Lance Taylor [Wed, 8 Mar 1995 05:56:53 +0000 (05:56 +0000)]
* elfcode.h (swap_out_syms): Mark an undefined BSF_WEAK symbol as
STB_WEAK rather than STB_GLOBAL.

29 years ago * arc-dis.c (print_insn_arc_base): Split into big and little fns.
David Edelsohn [Wed, 8 Mar 1995 05:19:46 +0000 (05:19 +0000)]
* arc-dis.c (print_insn_arc_base): Split into big and little fns.
(print_insn_arc_{host,graphics,audio}): Likewise.
(print_insn): Add prototype.
Delete "+ 4" addition to relative branch address.
(arc_get_disassembler): New arg `big_p'.  Return little or big
print fn accordingly.
* arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
(arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
(arc_opval_supported): Likewise.
* disassemble.c (disassembler): Pass big endian flag to
arc_get_disassembler.

29 years ago * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
David Edelsohn [Wed, 8 Mar 1995 05:11:53 +0000 (05:11 +0000)]
* emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
(LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.

29 years ago * arc.h (ARC_MACH_BIG): Define.
David Edelsohn [Wed, 8 Mar 1995 05:06:02 +0000 (05:06 +0000)]
* arc.h (ARC_MACH_BIG): Define.
(ARC_MACH_MASK): Update.
(ARC_MACH_CPU_MASK): Define.
(ARC_OPCODE_CPU, ARC_OPVAL_CPU, ARC_HAVE_CPU): Likewise.