binutils-gdb.git
27 years ago * ldlang.c: Include "obstack.h".
Ian Lance Taylor [Tue, 18 Mar 1997 00:26:19 +0000 (00:26 +0000)]
* ldlang.c: Include "obstack.h".

27 years agofix last patch
Ian Lance Taylor [Tue, 18 Mar 1997 00:24:50 +0000 (00:24 +0000)]
fix last patch

27 years ago * objalloc.h: New file.
Ian Lance Taylor [Tue, 18 Mar 1997 00:22:33 +0000 (00:22 +0000)]
* objalloc.h: New file.

27 years ago * srec.c (srec_scan): Rewrite to not use obstack_1grow.
Ian Lance Taylor [Mon, 17 Mar 1997 20:14:55 +0000 (20:14 +0000)]
* srec.c (srec_scan): Rewrite to not use obstack_1grow.

27 years ago * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.
Ian Lance Taylor [Mon, 17 Mar 1997 17:51:20 +0000 (17:51 +0000)]
* opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.
* libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare.
* libbfd.h: Rebuild.
* ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow.
* sunos.c (sunos_add_dynamic_symbols): Likewise.

27 years ago* m68k-opc.c (m68k_opcodes): Provide correct entries for mulsl and
J.T. Conklin [Mon, 17 Mar 1997 16:50:51 +0000 (16:50 +0000)]
* m68k-opc.c (m68k_opcodes): Provide correct entries for mulsl and
mulul insns on the coldfire.

27 years ago * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove
Ian Lance Taylor [Mon, 17 Mar 1997 16:36:08 +0000 (16:36 +0000)]
* opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t.  Remove
old version of bfd_alloc.
* libbfd-in.h (bfd_alloc_by_size_t): Don't declare.
* libbfd.h: Rebuild.
* Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.

27 years ago * as.h (bfd_alloc_by_size_t): Don't declare.
Ian Lance Taylor [Mon, 17 Mar 1997 16:29:29 +0000 (16:29 +0000)]
* as.h (bfd_alloc_by_size_t): Don't declare.
* Many files: Use xmalloc rather than bfd_alloc_by_size_t.

27 years ago * sim-inline.h: Add definitions for sim-types.
Andrew Cagney [Mon, 17 Mar 1997 16:29:21 +0000 (16:29 +0000)]
* sim-inline.h: Add definitions for sim-types.
(ALL_BY_MODULE): New macro, encapsulate full inlining by the
  module.

27 years agoremove defunct variable from event struct
Andrew Cagney [Mon, 17 Mar 1997 16:26:35 +0000 (16:26 +0000)]
remove defunct variable from event struct

27 years agoCorrectly validate 64bit instructions
Andrew Cagney [Mon, 17 Mar 1997 16:14:47 +0000 (16:14 +0000)]
Correctly validate 64bit instructions

27 years agoAdd/use pr_uword64 for SIM_ADDR independent values.
Gavin Romig-Koch [Mon, 17 Mar 1997 16:02:13 +0000 (16:02 +0000)]
Add/use pr_uword64 for SIM_ADDR independent values.

27 years agoMon Mar 17 10:54:47 1997 David Mosberger-Tang <davidm@azstarnet.com>
Ian Lance Taylor [Mon, 17 Mar 1997 15:55:41 +0000 (15:55 +0000)]
Mon Mar 17 10:54:47 1997  David Mosberger-Tang  <davidm@azstarnet.com>

* cg_arcs.c (arc_add): memset() newly alloced arc to ensure
all fields are initialized with 0.

27 years ago * configure: Re-generate.
Andrew Cagney [Mon, 17 Mar 1997 15:29:29 +0000 (15:29 +0000)]
    * configure: Re-generate.
        * Make-common.in (CSEARCH): Do not include the gdb directory in
        the search path.
        * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
        SIM_WARNING): Drop, requiring the simulator specific Makefile.in
        to explicitly incorporate these.

        * aclocal.m4 (--enable-sim-alignment); New option. Strongly
        specify the alignment restrictions of the target architecture -
        without this option all alignment restrictions are accomodated.
        (--enable-sim-assert): New option.  Conditionally compile in
        assertion statements.
        (--enable-sim-float): New option. Strongly specify the target's
        floating point support.
        (--enable-sim-hardware): New option.  Specify the hardware devices
        included in the simulation.
        (--enable-sim-packages): New option.  Specify the hardware
        packages included in the simulation.
        (--enable-sim-regparm): New option.  Specify that parameters be
        passed in registers instead of on the stack.
        (--enable-sim-reserved-bits): New option. Specify that reserved
        bits within an instruction are are correctly set.
        (--enable-sim-smp): New option. Specify the level of SMP support
        to be included in the simulator.
        (--enable-sim-stdcall): New option.  Specify an alternative
        function call convention.
        (--enable-sim-xor-endian): New option.  Configure xor-endian
        support used by some targets to implement bi-endian support.

27 years agoPart of previous move of remote-sim.h to ../include
Andrew Cagney [Mon, 17 Mar 1997 14:40:22 +0000 (14:40 +0000)]
Part of previous move of remote-sim.h to ../include

27 years ago* remote-sim.h: Delete - moved to ../include/remote-sim.h.
Andrew Cagney [Mon, 17 Mar 1997 14:23:31 +0000 (14:23 +0000)]
* remote-sim.h: Delete - moved to ../include/remote-sim.h.
* Makefile.in (remote_utils_h): Update path to remote-sim.h.
* remote-sim.c (flush_stdout, write_stderr, flush_stderr,
vprintf_filtered, evprintf_filtered): Callbacks that accept
varargs.

27 years ago* remote-sim.h: New file, copied in from gdb/remote-sim.h. One
Andrew Cagney [Mon, 17 Mar 1997 14:19:23 +0000 (14:19 +0000)]
* remote-sim.h: New file, copied in from gdb/remote-sim.h.  One
day this will be placed in a directory of its own.

27 years agox
Ian Lance Taylor [Sun, 16 Mar 1997 18:52:01 +0000 (18:52 +0000)]
x

27 years ago * symbols.c (symbol_new): Don't call debug_verify_symchain.
Ian Lance Taylor [Sun, 16 Mar 1997 18:50:27 +0000 (18:50 +0000)]
* symbols.c (symbol_new): Don't call debug_verify_symchain.
(symbol_append): Set sy_next and sy_previous when adding a single
symbol to an empty list.  Call debug_verify_symchain.
(verify_symbol_chain): Use assert, not know.

27 years agoSun Mar 16 01:34:55 1997 Martin Hunt <hunt@cygnus.com>
Martin Hunt [Sun, 16 Mar 1997 09:38:51 +0000 (09:38 +0000)]
Sun Mar 16 01:34:55 1997  Martin Hunt <hunt@cygnus.com>

* config.sub: Remove misplaced comment that broke Linux.

27 years ago * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
Fred Fish [Sun, 16 Mar 1997 06:26:35 +0000 (06:26 +0000)]
    * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.

27 years ago * config.sub: Add BeOS support.
Fred Fish [Sun, 16 Mar 1997 05:55:28 +0000 (05:55 +0000)]
* config.sub: Add BeOS support.

27 years agoChangeLog
Fred Fish [Sun, 16 Mar 1997 05:54:50 +0000 (05:54 +0000)]
ChangeLog

27 years ago * NEWS: Note BeOS support.
Fred Fish [Sun, 16 Mar 1997 03:28:53 +0000 (03:28 +0000)]
* NEWS: Note BeOS support.
* configure.in: (ppc-*-beos): New target, use coff as object format.
* configure: Regenerate with autoconf.

27 years agoSat Mar 15 19:17:31 1997 H.J. Lu <hjl@lucon.org>
Ian Lance Taylor [Sun, 16 Mar 1997 00:18:26 +0000 (00:18 +0000)]
Sat Mar 15 19:17:31 1997  H.J. Lu  <hjl@lucon.org>

* symtab.h (find_call): Declare.
* cg_arcs.c (cg_assemble): Don't declare find_call.
* hist.c (scale_and_align_entries): Declare.

27 years ago * config/tc-mips.c (md_apply_fix): Improve error message for out
Ian Lance Taylor [Sun, 16 Mar 1997 00:16:52 +0000 (00:16 +0000)]
* config/tc-mips.c (md_apply_fix): Improve error message for out
of range branch.

27 years ago * Makefile.in: Add dependencies on obstack.h where needed.
Ian Lance Taylor [Sun, 16 Mar 1997 00:15:01 +0000 (00:15 +0000)]
* Makefile.in: Add dependencies on obstack.h where needed.

27 years agox
Ian Lance Taylor [Sun, 16 Mar 1997 00:05:49 +0000 (00:05 +0000)]
x

27 years ago * obstack.h: Update to current FSF version.
Ian Lance Taylor [Sun, 16 Mar 1997 00:00:59 +0000 (00:00 +0000)]
* obstack.h: Update to current FSF version.

27 years agoSat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
Ian Lance Taylor [Sat, 15 Mar 1997 23:17:46 +0000 (23:17 +0000)]
Sat Mar 15 18:10:38 1997  H.J. Lu  <hjl@lucon.org>

* ldemul.h (ldemul_list_emulations): Use full prototype.
* ldlang.c (print_one_symbol): Add declaration.
* ldlang.h (dprint_statements): Declare.
* ldmain.c (remove_output): Declare.
* ldmisc.c (vfinfo): Declare.
* ldwrite.c (clone_section): Declare.
(split_sections): Make static.  Declare.
* mri.c: Include libiberty.h.
(strdup): Don't declare.
(mri_alias): Use xstrdup rather than strdup.

27 years ago * arm-dis.c (print_insn_arm): Don't print instruction bytes.
Ian Lance Taylor [Sat, 15 Mar 1997 22:15:00 +0000 (22:15 +0000)]
* arm-dis.c (print_insn_arm): Don't print instruction bytes.
(print_insn_big_arm): Set bytes_per_chunk and display_endian.
(print_insn_little_arm): Likewise.

27 years ago Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
Ian Lance Taylor [Sat, 15 Mar 1997 21:50:56 +0000 (21:50 +0000)]
Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
* objdump.c: Include "demangle.h".
(do_demangle): New static variable.
(usage): Mention -C/--demangle.
(long_options): Add "demangle".
(objdump_print_symname): New static function.
(objdump_print_addr_with_sym): Use objdump_print_symname.
(disassemble_bytes): Likewise.
(dump_reloc_set): Likewise.
(dump_symbols): Demangle symbol name.
(main): Handle -C.
* binutils.texi, objdump.1: Document -C/--demangle.

27 years ago * objdump.c (usage): Mention --no-show-raw-insn.
Ian Lance Taylor [Sat, 15 Mar 1997 20:37:45 +0000 (20:37 +0000)]
* objdump.c (usage): Mention --no-show-raw-insn.
(long_options): Add "no-show-raw-insn".
(disassemble_bytes): Handle --no-show-raw-insn.
* binutils.texi, objdump.1: Document --no-show-raw-insn.

27 years ago * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
Ian Lance Taylor [Sat, 15 Mar 1997 20:27:16 +0000 (20:27 +0000)]
* elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
ELF local label syntax as well.

27 years ago * config.bfd (powerpc-*-beos*): New target.
Fred Fish [Sat, 15 Mar 1997 17:27:45 +0000 (17:27 +0000)]
* config.bfd (powerpc-*-beos*): New target.
* configure.in (powerpc-*-beos*): Add case that explicitly
does not set COREFILE for now.  A future BeOS version is
expected to support core files.
* configure: Regenerate with autoconf.

27 years ago * breakpoint.c (insert_breakpoints, watchpoint_check,
Peter Schauer [Sat, 15 Mar 1997 08:53:41 +0000 (08:53 +0000)]
* breakpoint.c (insert_breakpoints, watchpoint_check,
bpstat_stop_status):  Do not disable watchpoints going out of scope.
(insert_breakpoints):  Make sure that the current frame is valid
before calling find_frame_addr_in_frame_chain.

* top.c (setup_user_args):  Handle quotes and backslashes.
(print_gdb_version):  Update copyright year.

27 years ago * scripttempl/elfmips.sc: Change handling of data area when
Ian Lance Taylor [Sat, 15 Mar 1997 02:31:01 +0000 (02:31 +0000)]
* scripttempl/elfmips.sc: Change handling of data area when
generating a shared library to not skip a large block of memory.
From Per Fogelstrom <pefo@cvs.openbsd.org>.

27 years ago * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
Ian Lance Taylor [Sat, 15 Mar 1997 02:16:30 +0000 (02:16 +0000)]
* elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
  seen with a local symbol, rather than crashing.

27 years ago * config/tc-mips.c (md_estimate_size_before_relax): Handle the
Ian Lance Taylor [Sat, 15 Mar 1997 02:14:44 +0000 (02:14 +0000)]
* config/tc-mips.c (md_estimate_size_before_relax): Handle the
case of a symbol equated to another symbol when using SVR4_PIC.

27 years ago * elfcode.h (elf_slurp_symbol_table): Don't try to read the
Ian Lance Taylor [Fri, 14 Mar 1997 21:46:39 +0000 (21:46 +0000)]
* elfcode.h (elf_slurp_symbol_table): Don't try to read the
version symbols if there aren't any.

27 years ago * Makefile.in (elfread.o): Depend upon elf-bfd.h and elf/mips.h.
Ian Lance Taylor [Fri, 14 Mar 1997 20:44:51 +0000 (20:44 +0000)]
* Makefile.in (elfread.o): Depend upon elf-bfd.h and elf/mips.h.

27 years ago * Makefile.in (TARG_CPU_DEP_sparc): Add opcode/sparc.h.
Ian Lance Taylor [Fri, 14 Mar 1997 20:34:08 +0000 (20:34 +0000)]
* Makefile.in (TARG_CPU_DEP_sparc): Add opcode/sparc.h.

27 years ago * sparc.h: Include <ansidecl.h>. Update function declarations to
Ian Lance Taylor [Fri, 14 Mar 1997 20:22:46 +0000 (20:22 +0000)]
* sparc.h: Include <ansidecl.h>.  Update function declarations to
use prototypes, and to use const when appropriate.

27 years ago Based on patches from H.J. Lu <hjl@lucon.org>:
Ian Lance Taylor [Fri, 14 Mar 1997 20:21:19 +0000 (20:21 +0000)]
Based on patches from H.J. Lu <hjl@lucon.org>:
* i386-dis.c (fetch_data): Add prototype.
* m68k-dis.c (fetch_data): Add prototype.
(dummy_print_address): Add prototype.  Make static.
* ppc-opc.c (valid_bo): Add prototype.
* sparc-dis.c (build_hash_table): Add prototype.
(is_delayed_branch, compute_arch_mask): Add prototypes.
(print_insn_sparc): Make several local variables const.
(compare_opcodes): Change arguments to const PTR.  Add prototype.
* sparc-opc.c (arg): Change name field to be const.
(lookup_name, lookup_value): Add prototypes.  Change table and
name parameters to be const.
(sparc_encode_asi): Change name parameter to be const.
(sparc_encode_membar, sparc_encode_prefetch): Likewise.
(sparc_encode_sparclet_cpreg): Likewise.
(sparc_decode_asi): Change return type to be const.
(sparc_decode_membar, sparc_decode_prefetch): Likewise.
(sparc_decode_sparclet_cpreg): Likewise.

27 years ago * configure: Regenerated.
Tom Tromey [Fri, 14 Mar 1997 17:16:43 +0000 (17:16 +0000)]
    * configure: Regenerated.
        * configure.in (LIBS): Re-reverse order of TCL_LIBS and TK_LIBS.

27 years agoUpdate names
Andrew Cagney [Fri, 14 Mar 1997 16:51:21 +0000 (16:51 +0000)]
Update names

27 years agoForgot to update *-n.h to sim-n*.h
Andrew Cagney [Fri, 14 Mar 1997 16:48:11 +0000 (16:48 +0000)]
Forgot to update *-n.h to sim-n*.h

27 years agoAdd comment to changelog
Michael Meissner [Fri, 14 Mar 1997 16:24:02 +0000 (16:24 +0000)]
Add comment to changelog

27 years agoRegenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the system...
Michael Meissner [Fri, 14 Mar 1997 16:21:57 +0000 (16:21 +0000)]
Regenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the system call trap, keeping 0 temporarily

27 years agoAdd a number of per-simulator options: hostendian, endian, inline, warnings.
Andrew Cagney [Fri, 14 Mar 1997 15:13:58 +0000 (15:13 +0000)]
Add a number of per-simulator options: hostendian, endian, inline, warnings.
Rename *-n.h files to be dos compatible

27 years ago * utils.c(pollquit, notice_quit): If _WIN32, limit test for cntl-C
Dawn Perchik [Fri, 14 Mar 1997 06:05:04 +0000 (06:05 +0000)]
* utils.c(pollquit, notice_quit): If _WIN32, limit test for cntl-C
to wingdb.
(initialize_utils): If _WIN32, don't call ScreenRows and ScreenCols
except under wingdb.  (Contributed by Martin Hunt).

27 years ago* ld-insn.c (parse_insn_format): Accept '*' as an alternative of
Andrew Cagney [Fri, 14 Mar 1997 02:00:07 +0000 (02:00 +0000)]
* ld-insn.c (parse_insn_format): Accept '*' as an alternative of
`/' in bit fields.  `/' denotes a wild bit.

27 years ago * coff-tic80.c (coff_rtype_to_howto): Define
Fred Fish [Thu, 13 Mar 1997 23:40:30 +0000 (23:40 +0000)]
* coff-tic80.c (coff_rtype_to_howto): Define
(coff_tic80_rtype_to_howto): Clone generic coff version and
add code to handle the funky TI "internal relocations".

27 years agoAdd some more comments.
David Edelsohn [Thu, 13 Mar 1997 21:12:22 +0000 (21:12 +0000)]
Add some more comments.

27 years ago * interp.c (sim_open): New SIM_DESC result. Argument is now
David Edelsohn [Thu, 13 Mar 1997 21:01:38 +0000 (21:01 +0000)]
* interp.c (sim_open): New SIM_DESC result.  Argument is now
in argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
David Edelsohn [Thu, 13 Mar 1997 20:59:29 +0000 (20:59 +0000)]
* sim_calls.c (sim_open): New SIM_DESC result.  Argument is now
in argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * interp.c (sim_open): New SIM_DESC result. Argument is now
David Edelsohn [Thu, 13 Mar 1997 20:55:26 +0000 (20:55 +0000)]
* interp.c (sim_open): New SIM_DESC result.  Argument is now
in argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * compile.c (sim_open): New SIM_DESC result. Argument is now in
David Edelsohn [Thu, 13 Mar 1997 20:49:39 +0000 (20:49 +0000)]
* compile.c (sim_open): New SIM_DESC result.  Argument is now in
argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * interf.c (sim_open): New SIM_DESC result. Argument is now in
David Edelsohn [Thu, 13 Mar 1997 20:47:43 +0000 (20:47 +0000)]
* interf.c (sim_open): New SIM_DESC result.  Argument is now in
argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * interp.c: Delete redundant prototypes of sim_foo fns.
David Edelsohn [Thu, 13 Mar 1997 20:44:07 +0000 (20:44 +0000)]
* interp.c: Delete redundant prototypes of sim_foo fns.
(sim_open): New SIM_DESC result.  Argument is now in argv form.
(other sim_*): New SIM_DESC argument.

27 years ago * wrapper.c (sim_open): Has result now.
David Edelsohn [Thu, 13 Mar 1997 20:40:53 +0000 (20:40 +0000)]
* wrapper.c (sim_open): Has result now.
(sim_*): New SIM_DESC argument.

27 years ago * configure: Regenerated.
Tom Tromey [Thu, 13 Mar 1997 20:39:56 +0000 (20:39 +0000)]
* configure: Regenerated.
* configure.in: Run AC_CONFIG_AUX_DIR before AC_CANONICAL_SYSTEM.

* config.in: Regenerated.

* acconfig.h (START_INFERIOR_TRAPS_EXPECTED, sys_quotactl,
HAVE_HPUX_THREAD_SUPPORT): Define.

* gdbtk.c (x_event): Use Tcl_DoOneEvent, TCL_DONT_WAIT,
TCL_ALL_EVENTS.

* configure: Regenerated.
* configure.in (ENABLE_GDBTK): Put TCL_LIBS after TK_LIBS in
LIBS.

27 years ago * run.c: #include "libiberty.h".
David Edelsohn [Thu, 13 Mar 1997 20:37:15 +0000 (20:37 +0000)]
* run.c: #include "libiberty.h".
(main): New locals sd,no_args,sim_argv.
Run buildargv on -a option.  Pass argv to sim_open, argv[0]
is program name.  Update call to sim_set_callbacks.
Record result of sim_open, pass to other sim_foo routines.

27 years agoFix problems in setting the carry bit
Michael Meissner [Thu, 13 Mar 1997 20:30:50 +0000 (20:30 +0000)]
Fix problems in setting the carry bit

27 years ago * remote-sim.h (sim_state, SIM_DESC): New types.
David Edelsohn [Thu, 13 Mar 1997 20:28:26 +0000 (20:28 +0000)]
* remote-sim.h (sim_state, SIM_DESC): New types.
(sim_open): Return a `descriptor' as result.
(*): New argument of descriptor result from sim_open.
* remote-sim.c (gdbsim_desc): Renamed from gdbsim_open_p.
(gdbsim_open): Record result of sim_open in gdbsim_desc.
Pass argv list to sim_open, argv[0] = pseudo program name.
(*): Pass gdbsim_desc to sim_foo fns.

27 years ago * read.c (read_a_source_file): Call LISTING_NEWLINE before
Ian Lance Taylor [Thu, 13 Mar 1997 20:19:43 +0000 (20:19 +0000)]
* read.c (read_a_source_file): Call LISTING_NEWLINE before
HANDLE_CONDITIONAL_ASSEMBLY when handling an MRI line label.
PR 11746.

27 years ago * elflink.h (elf_link_add_object_symbols): Don't warn about type
Ian Lance Taylor [Thu, 13 Mar 1997 19:24:20 +0000 (19:24 +0000)]
* elflink.h (elf_link_add_object_symbols): Don't warn about type
or size changes because of a weak symbol.
PR 11827.

27 years ago * cisco-core.c (SIGEMT): Define if not defined.
Ian Lance Taylor [Thu, 13 Mar 1997 19:11:06 +0000 (19:11 +0000)]
* cisco-core.c (SIGEMT): Define if not defined.

27 years agoAdd copyright, tweak some comments.
David Edelsohn [Thu, 13 Mar 1997 17:13:15 +0000 (17:13 +0000)]
Add copyright, tweak some comments.

27 years ago * config/obj-elf.c (obj_elf_data): Call md_flush_pending_output
Ian Lance Taylor [Thu, 13 Mar 1997 16:21:34 +0000 (16:21 +0000)]
* config/obj-elf.c (obj_elf_data): Call md_flush_pending_output
and md_elf_section_change_hook if they are defined.
(obj_elf_text, obj_elf_previous): Likewise.

27 years agoFix os_printf_filtered; Flush stdout after calling printf_filtered
Michael Meissner [Thu, 13 Mar 1997 16:04:50 +0000 (16:04 +0000)]
Fix os_printf_filtered; Flush stdout after calling printf_filtered

27 years agoNew directory, devo/sim/testsuite - loose (sanitize) it for the moment.
Andrew Cagney [Thu, 13 Mar 1997 04:22:38 +0000 (04:22 +0000)]
New directory, devo/sim/testsuite - loose (sanitize) it for the moment.

27 years agoWed Mar 12 21:44:19 1997 Eric Youngdale <eric@andante.jic.com>
Ian Lance Taylor [Thu, 13 Mar 1997 02:46:09 +0000 (02:46 +0000)]
Wed Mar 12 21:44:19 1997  Eric Youngdale  <eric@andante.jic.com>

* ld-elfvers/vers.exp, *: New tests for symbol versioning.
* config/default.exp: Set ar and strip.

27 years ago * elflink.h (elf_link_add_object_symbols): Use extsymoff when
Ian Lance Taylor [Thu, 13 Mar 1997 02:41:44 +0000 (02:41 +0000)]
* elflink.h (elf_link_add_object_symbols): Use extsymoff when
setting ever.  Sanity check the version number.  Sort out copying
flags and other information when adding an indirect symbol.
(NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic
symbols added by the backend.  Clear the entire contents of the
versym section.
(elf_export_symbol): Ignore indirect symbols.
(elf_link_output_extsym): Accept a section without an owner in an
assert.
* elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
version count.  Correct the allocation of x_versymp.

27 years ago * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
Ian Lance Taylor [Thu, 13 Mar 1997 02:41:08 +0000 (02:41 +0000)]
* elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA.
Don't return bfd_und_section_ptr when info->shared.
(mips_elf_final_link): Set the alignment of .rtproc to 4, not 12.
(mips_elf_create_dynamic_sections): Correct type: ^= for &=.
(mips_elf_check_relocs): Resolve an indirect symbol in
sym_hashes.
(mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
SHN_MIPS_TEXT or SHN_MIPS_DATA.

27 years ago * ldmain.c (multiple_definition): Only skip the warning if the
Ian Lance Taylor [Thu, 13 Mar 1997 02:34:33 +0000 (02:34 +0000)]
* ldmain.c (multiple_definition): Only skip the warning if the
output section is absolute when the input section is not
absolute.

* ldlex.l: Accept whitespace in VERS_START state.  Warn about
invalid characters in VERS_* states.

27 years ago * simops.c: Fix carry bit computation for "add" instructions.
Jeff Law [Wed, 12 Mar 1997 22:20:13 +0000 (22:20 +0000)]
    * simops.c: Fix carry bit computation for "add" instructions.
More bugs exposed by new mn10300 compiler optimizations.

27 years ago * simops.c: Fix typos in bset insns. Fix arguments to store_mem
Jeff Law [Wed, 12 Mar 1997 22:05:49 +0000 (22:05 +0000)]
    * simops.c: Fix typos in bset insns.  Fix arguments to store_mem
        for bset imm8,(d8,an) and bclr imm8,(d8,an).
Bugs exposed by new compiler optimizations.

27 years ago * doc/as.texinfo (bss): Improve description of .bss section. In
Ian Lance Taylor [Wed, 12 Mar 1997 16:41:26 +0000 (16:41 +0000)]
* doc/as.texinfo (bss): Improve description of .bss section.  In
ELF or COFF, you are permitted to switch into the section.
(Comm): Rewrite description of common symbols.
(Lcomm): Mention that some targets permit a third argument.

27 years agoExtend callback interface to support vprintf, flush and error printing.
Andrew Cagney [Wed, 12 Mar 1997 12:27:30 +0000 (12:27 +0000)]
Extend callback interface to support vprintf, flush and error printing.
Corresponding change for gdb directory can be checked in later.

27 years ago * config/tc-ppc.c (ppc_elf_lcomm): Don't call S_CLEAR_EXTERNAL.
Ian Lance Taylor [Wed, 12 Mar 1997 01:39:00 +0000 (01:39 +0000)]
* config/tc-ppc.c (ppc_elf_lcomm): Don't call S_CLEAR_EXTERNAL.
PR 11847.

27 years ago * symbols.c (colon): Change type of local to int. From Alan Modra
Ian Lance Taylor [Tue, 11 Mar 1997 20:12:37 +0000 (20:12 +0000)]
* symbols.c (colon): Change type of local to int.  From Alan Modra
<alan@spri.levels.unisa.edu.au>.

27 years ago * config/tc-m88k.c (m88k_do_align): Don't use a special nop
Ian Lance Taylor [Tue, 11 Mar 1997 20:10:20 +0000 (20:10 +0000)]
* config/tc-m88k.c (m88k_do_align): Don't use a special nop
alignment if a zero fill pattern was explicitly specified.
* config/tc-sh.c (sh_do_align): Likewise.

27 years ago Removed, no longer used.
Bob Manson [Tue, 11 Mar 1997 19:45:29 +0000 (19:45 +0000)]
Removed, no longer used.

27 years ago * config/monitor.exp: Make sure we disconnect from the target.
Bob Manson [Tue, 11 Mar 1997 19:45:02 +0000 (19:45 +0000)]
* config/monitor.exp: Make sure we disconnect from the target.
Also, try a reboot/reload cycle instead of failing if the
load fails.

27 years ago * read.c (equals): Always permit register names to be redefined.
Ian Lance Taylor [Tue, 11 Mar 1997 18:30:11 +0000 (18:30 +0000)]
* read.c (equals): Always permit register names to be redefined.
PR 11787.

27 years ago * config/tc-mips.c (mips_fix_adjustable): Permit a reloc against a
Ian Lance Taylor [Tue, 11 Mar 1997 18:16:59 +0000 (18:16 +0000)]
* config/tc-mips.c (mips_fix_adjustable): Permit a reloc against a
mips16 symbol to be adjusted if a symbol is being subtracted from
it.

27 years agoFirst cut at supporting simulators in gdbserver:
Mark Alexander [Tue, 11 Mar 1997 15:49:20 +0000 (15:49 +0000)]
First cut at supporting simulators in gdbserver:

* configure, configure.in: Allow gdbserver to be configured
for cross-target environments.
* gdbserver/Makefile.in: Add simulator support.
* gdbserver/configure.in: Eliminate assumption that host == target.
Simplify using gdb/configure.tgt and gdb/configure.host.
Fix other minor configuration errors.
* gdbserver/low-sparc.c: Fix compile error.
* gdbserver/remote-utils.c: Eliminate assumption that registers
and addresses are four bytes.  Fix minor compile errors and warnings.
* gdbserver/server.c: Rewrite numerous instances of identical code
for starting inferior processes to call new function start_inferior.
Eliminate assumption that registers and addresses are four bytes.
* gdbserver/server.h: Add missing prototypes to eliminate compiler
warnings.
* gdbserver/low-sim.c: New file to mate gdbserver with simulators.
* config/mips/vr5000.mt: Add Vr5000 simulator support to gdbserver.
* config/i386/linux.mh: Eliminate gdbserver support as a first step
in moving such support from host to target makefile fragments.
* config/i386/linux.mt: Move gdbserver support here from linux.mh.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Tue, 11 Mar 1997 06:46:46 +0000 (06:46 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define.
* elf.c (bfd_elf_print_symbol): Correct errors in last change.
* elflink.h (elf_link_add_object_symbols): Handle cases in which a
versioned symbol appears in both a regular and a shared object.
(elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when
appropriate.  Improve error message.
(struct elf_outext_info): Rename from elf_finfo_failed.  Change
all uses.  Add localsyms field.
(elf_bfd_final_link): When generating a shared library, call
elf_link_output_extsym to output all local symbols.
(elf_link_output_extsym): Handle symbols which were forced to
become local.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Tue, 11 Mar 1997 06:14:44 +0000 (06:14 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* config/obj-elf.c (obj_elf_symver): Check for duplicate or
illegal symbol version names.
(elf_frob_symbol): Check for external default versions.

27 years ago * Makefile.in (CHECK_X11_MODULES): Don't run check-tk.
Tom Tromey [Mon, 10 Mar 1997 20:41:04 +0000 (20:41 +0000)]
* Makefile.in (CHECK_X11_MODULES): Don't run check-tk.

27 years agoMon Mar 10 12:27:47 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Mon, 10 Mar 1997 20:33:35 +0000 (20:33 +0000)]
Mon Mar 10 12:27:47 1997  Michael Snyder  <msnyder@cleaver.cygnus.com>

* symtab.h (INIT_SAL): New macro to initialize symtab_and_line,
to insure consistant initialization of unused fields to zero.
* symtab.c: replace initializations of sals with new macro INIT_SAL.
* breakpoint.c: ditto.
* infrun.c: ditto.
* infcmd.c: ditto.
* source.c: add call to INIT_SAL macro.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Mon, 10 Mar 1997 04:53:55 +0000 (04:53 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* config/obj-elf.h (struct elf_obj_sy): Define.
(OBJ_SYMFIELD_TYPE): Define to elf_obj_sy struct.  Change all
users.
* config/obj-elf.c (obj_elf_symver): Just record the name.
(obj_symbol_new_hook): Initialized versioned_name field.
(elf_frob_symbol): If there is a versioned_name, either rename the
symbol, or add an alias with that name.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Mon, 10 Mar 1997 04:43:42 +0000 (04:43 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* elf-bfd.h (elf_symbol_type): Add version field.
* elfcode.h (elf_slurp_symbol_table): Set version field.
* elflink.h (elf_link_add_object_symbols): When creating an
  indirect symbol for a default version symbol, set DEF_DYNAMIC if
  appropriate.  Set up an indirection from the nondefault version of
the symbol as well.
(NAME(bfd_elf,size_dynamic_sections)): Call
elf_link_assign_sym_version before checking whether there are any
versions.  Always record the version name as a dynamic symbol.
Initialize counters.
(elf_link_assign_sym_version): After finding a version, see if a
symbol should be forced to local scope.  Create a new version
definition if appropriate.
(elf_link_output_extsym): Correct indirect symbol handling.
* elf.c (bfd_elf_print_symbol): Print version information.
(bfd_section_from_shdr): Turn version sections into BFD sections.
(elf_fake_sections): Only copy cverdefs and cverrefs into sh_info
if sh_info is not already set.
(_bfd_elf_copy_private_section_data): Copy sh_info for version
sections.
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
_bfd_stringtab_add to copy the name into permanent memory if
appropriate.

27 years agoSun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
Ian Lance Taylor [Mon, 10 Mar 1997 04:07:24 +0000 (04:07 +0000)]
Sun Mar  9 23:06:35 1997  Eric Youngdale  <eric@andante.jic.com>

* ldgram.y (vers_node): Correct typo of '('  for '{'.

27 years ago * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
Fred Fish [Sat, 8 Mar 1997 16:23:57 +0000 (16:23 +0000)]
* scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
rather than _start.
(__edata): Define this rather than "edata".
(__end): Define this rather than "end".

27 years ago * sparc-tdep.c (isbranch): Always handle v9 branch instructions,
Peter Schauer [Sat, 8 Mar 1997 08:18:02 +0000 (08:18 +0000)]
* sparc-tdep.c (isbranch):  Always handle v9 branch instructions,
they might get used on 32 bit targets as well.

27 years ago * gdb.base/default.exp: Don't set match_max.
Bob Manson [Fri, 7 Mar 1997 22:00:02 +0000 (22:00 +0000)]
* gdb.base/default.exp: Don't set match_max.
* gdb.base/help.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/signals.exp: Ditto.

* config/monitor.exp(gdb_load): If gdb,use_standard_load is
set, use remote_ld to download the testcase instead of
the GDB loader.

27 years ago * coffcode.h (bfd_coff_backend_data): Change
Ian Lance Taylor [Fri, 7 Mar 1997 17:45:43 +0000 (17:45 +0000)]
* coffcode.h (bfd_coff_backend_data): Change
_bfd_coff_compute_section_file_positions to return a boolean
value.  Change all callers.
(coff_compute_section_file_positions): Change return type to
boolean.  If the size of the last section changed, then output a
zero byte at the end of the file.
* libcoff.h: Rebuild.
PR 11806.

27 years agoFri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Ian Lance Taylor [Fri, 7 Mar 1997 16:57:21 +0000 (16:57 +0000)]
Fri Mar  7 11:55:31 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>

* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.