binutils-gdb.git
27 years ago * mn10200-tdep.c: Remove lots of debugging printfs, update/improve
Jeff Law [Mon, 10 Feb 1997 23:56:56 +0000 (23:56 +0000)]
    * mn10200-tdep.c: Remove lots of debugging printfs, update/improve
        comments, formatting, etc.  Plus other minor fixes for problems
        I found during my first pass over the mn10200 port.
        (mn10200_analyze_prologue): New function.
        (mn10200_frame_chain, mn10200_init_extra_frame_info): Use it.
        * config/mn10200/tm-mn10200.h: Lots of updates/improvements to
        comments, formatting, etc.  Minor fixes for problems I found during
        my first pass over the mn10200 port.
        (TARGET_*_BIT): Define appropriately for ints, long longs, doubles and
        pointers.
        (REGISTER_VIRTUAL_TYPE): Define as a long.
        (EXTRACT_RETURN_VALUE): Rework to deal with long ints living
        in register pairs.
        (STORE_RETURN_VALUE): Similarly.
Checking in my initial changes, prologue scanning, etc.
Current gdb testsuite results:

                === gdb Summary ===

# of expected passes       3684
# of expected failures     40
# of unexpected failures   6

27 years ago * blockframe.c (generic_get_saved_regs): Remove unused variable
Jeff Law [Mon, 10 Feb 1997 23:15:37 +0000 (23:15 +0000)]
    * blockframe.c (generic_get_saved_regs): Remove unused variable
        "addr".
        * breakpoint.c (frame_in_dummy): Move struct breakpoint *b decl
        inside #ifdef CALL_DUMMY.
        (watch_command_1): Initialize target_resources_ok.
        * command.c (do_setshow_command): Provide dummy initialization
        for "match".
        * valops.c (find_function_addr): Move function & prototype inside
        #ifdef CALL_DUMMY.
        (value_arg_coerce): Similarly.
        (value_of_variable): Provide dummy initialization of "frame".
Lint.

27 years ago * gdb.base/exprs.exp: Delete bogus/incorrect (and probably
Jeff Law [Mon, 10 Feb 1997 22:24:53 +0000 (22:24 +0000)]
    * gdb.base/exprs.exp: Delete bogus/incorrect (and probably
        redundant) test.

27 years ago * gdbtk.c (call_wrapper): Clear running_now if an error occurs.
Stu Grossman [Mon, 10 Feb 1997 21:52:46 +0000 (21:52 +0000)]
* gdbtk.c (call_wrapper):  Clear running_now if an error occurs.
This fixes PR 11323, where gdbtk stops responding if an error occurs.

27 years ago * gdb.base/recurse.exp: Relax final value test for 'b' so that
Jeff Law [Mon, 10 Feb 1997 18:30:03 +0000 (18:30 +0000)]
    * gdb.base/recurse.exp: Relax final value test for 'b' so that
        it doesn't lose for 16bit integer systems.

27 years agoAdd tic80 directory to keep_these_too or lose_these_too.
Fred Fish [Mon, 10 Feb 1997 17:36:26 +0000 (17:36 +0000)]
Add tic80 directory to keep_these_too or lose_these_too.

27 years ago * tic80.h (tic80_symbol_to_value): Change prototype to match
Fred Fish [Mon, 10 Feb 1997 17:34:59 +0000 (17:34 +0000)]
* tic80.h (tic80_symbol_to_value): Change prototype to match
change in function, added class parameter.

27 years ago * tic80-opc.c (tic80_symbol_to_value): Changed to accept
Fred Fish [Mon, 10 Feb 1997 17:16:28 +0000 (17:16 +0000)]
* tic80-opc.c (tic80_symbol_to_value): Changed to accept
a symbol class that restricts translation to just that
class (general register, condition code, etc).

27 years ago * xcoffread.c (RECORD_MINIMAL_SYMBOL): Add NULL asection* parameter
Fred Fish [Mon, 10 Feb 1997 15:59:01 +0000 (15:59 +0000)]
* xcoffread.c (RECORD_MINIMAL_SYMBOL): Add NULL asection* parameter
  to prim_record_minimal_symbol_and_info call that was missed in Jan 3
change.
(scan_xcoff_symtab): Ditto.

27 years ago * emulparams/tic80coff.sh: New (dummy) file for TIc80.
Fred Fish [Mon, 10 Feb 1997 01:17:14 +0000 (01:17 +0000)]
* emulparams/tic80coff.sh: New (dummy) file for TIc80.
* scripttempl/tic80coff.sc: New (dummy) file for TIc80.
* Makefile.in (etic80coff.c): Add target and rule to build it.
* configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.

27 years ago * remote-mips.c (common_breakpoint): Prevent 64-bit addresses
Mark Alexander [Sun, 9 Feb 1997 17:36:49 +0000 (17:36 +0000)]
* remote-mips.c (common_breakpoint): Prevent 64-bit addresses
from being sent to 32-bit targets by masking off upper bits.
* mips-tdep.c (heuristic_proc_start): Mask off upper 32 bits
of PC on 32-bit targets.
(mips16_heuristic_proc_desc): Recognize 'addiu s1,sp,n' as a
frame setup instruction.
(mips32_heuristic_proc_desc): Fix warning found by gcc -Wall.
(mips16_skip_prologue): Recognize 'addiu s1,sp,n' as a valid
prologue instruction.  Fix warnings and bugs found by gcc -Wall.
* buildsym.c (finish_block): Improve handling of overlapping blocks;
fixes problem on MIPS16 printing function arguments.

27 years agoFix circular dependency
Michael Meissner [Sun, 9 Feb 1997 01:37:55 +0000 (01:37 +0000)]
Fix circular dependency

27 years ago * dwarf2read.c (dwarf2_linkage_name): New function to get
Peter Schauer [Sat, 8 Feb 1997 09:16:26 +0000 (09:16 +0000)]
* dwarf2read.c (dwarf2_linkage_name):  New function to get
the linkage name of a die from DW_AT_MIPS_linkage_name or
DW_AT_name.
(read_func_scope, dwarf2_add_field, dwarf2_add_member_fn,
new_symbol):  Use it instead of accessing DW_AT_name.
(read_partial_die):  Use DW_AT_MIPS_linkage name as name of the
partial die if present.
(dwarf2_add_member_fn):  Make a copy of physname on the type obstack.

27 years ago Changes to replace references to "prune_system_crud" with
Bob Manson [Sat, 8 Feb 1997 01:03:37 +0000 (01:03 +0000)]
Changes to replace references to "prune_system_crud" with
"prune_warnings".

27 years ago * elflink.h (elf_link_input_bfd): If we've discarded a section,
Ian Lance Taylor [Fri, 7 Feb 1997 17:40:24 +0000 (17:40 +0000)]
* elflink.h (elf_link_input_bfd): If we've discarded a section,
the output section will be the absolute section; don't print an
assertion message for that case when doing a relocateable link.
PR 11647.

27 years ago * blockframe.c (generic_frame_chain_valid): If the new frame
Jeff Law [Fri, 7 Feb 1997 17:07:49 +0000 (17:07 +0000)]
    * blockframe.c (generic_frame_chain_valid): If the new frame
        is not INNER_THAN the old frame, then it's not valid.

27 years ago * config/tc-mn10200.c (md_assemble): If a constant operand won't
Jeff Law [Fri, 7 Feb 1997 16:54:05 +0000 (16:54 +0000)]
    * config/tc-mn10200.c (md_assemble): If a constant operand won't
        fit into the constant field of a relaxable operand, then it does
        not match.
Fixes mn10200/other.s failures due to new relaxing code.

27 years ago * gdb.fortran/types.exp: If the target doesn't support "double"
Jeff Law [Fri, 7 Feb 1997 16:40:39 +0000 (16:40 +0000)]
    * gdb.fortran/types.exp: If the target doesn't support "double"
        data types, then expect "real" types to only be 4 bytes.

27 years ago * gdb.c++/virtfunc.exp: Expect failure for virtual function
Jeff Law [Fri, 7 Feb 1997 16:34:55 +0000 (16:34 +0000)]
    * gdb.c++/virtfunc.exp: Expect failure for virtual function
        call tests if the target doesn't support inferior function calls.

27 years ago * gdb.base/printcmds.exp: Allow minor deviation in FP values
Jeff Law [Fri, 7 Feb 1997 16:32:42 +0000 (16:32 +0000)]
    * gdb.base/printcmds.exp: Allow minor deviation in FP values
        in printf tests.

27 years ago * config/tc-mn10200.c (md_estimate_size_before_relax): Treat
Jeff Law [Fri, 7 Feb 1997 03:09:52 +0000 (03:09 +0000)]
    * config/tc-mn10200.c (md_estimate_size_before_relax): Treat
        a jsr target in a different section just like a jsr to
        an undefined target.
Bug triggerd by c++ tests.

27 years ago * tic80-opc.c (tic80_operands): Add REG_0_E, REG_22_E,
Fred Fish [Fri, 7 Feb 1997 00:38:44 +0000 (00:38 +0000)]
* tic80-opc.c (tic80_operands): Add REG_0_E, REG_22_E,
and REG_DEST_E for register operands that have to be
an even numbered register.  Add REG_FPA for operands that
are one of the floating point accumulator registers.
Add TIC80_OPERAND_MASK to flags for ENDMASK operand.
(tic80_opcodes): Change entries that need even numbered
register operands to use the new operand table entries.
Add "or" entries that are identical to "or.tt" entries.

27 years ago * tic80.h (TIC80_OPERAND_ENDMASK): Add for flagging TIc80
Fred Fish [Fri, 7 Feb 1997 00:28:19 +0000 (00:28 +0000)]
* tic80.h (TIC80_OPERAND_ENDMASK): Add for flagging TIc80
endmask fields, which are somewhat weird in that 0 and 32 are
treated exactly the same.

27 years ago * gdb.base/help.exp: Disable "help set", "help show", and
Jeff Law [Thu, 6 Feb 1997 22:47:57 +0000 (22:47 +0000)]
    * gdb.base/help.exp: Disable "help set", "help show", and
        "help support".  Simplify regexp for "help stack".
They're causing timeouts, overruns, etc again.

27 years agoThu Feb 6 14:14:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Thu, 6 Feb 1997 22:22:37 +0000 (22:22 +0000)]
Thu Feb  6 14:14:59 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* objdump.c (disassemble_bytes): Added code to allow some control
  over the way raw instructions are displayed.

27 years ago * interp.c (mips16_entry): Add support for floating point cases.
Ian Lance Taylor [Thu, 6 Feb 1997 22:19:05 +0000 (22:19 +0000)]
* interp.c (mips16_entry): Add support for floating point cases.
(SignalException): Pass floating point cases to mips16_entry.
(ValueFPR): Don't restrict fmt_single and fmt_word to even
registers.
(StoreFPR): Likewise.  Also, don't clobber fpr + 1 for fmt_single
or fmt_word.
(COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
and then set the state to fmt_uninterpreted.
(COP_SW): Temporarily set the state to fmt_word while calling
ValueFPR.

27 years ago * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
Ian Lance Taylor [Thu, 6 Feb 1997 22:15:37 +0000 (22:15 +0000)]
* elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
(struct mips_elf_link_hash_entry): Add new fields fn_stub,
need_fn_sub, call_stub, and call_fp_stub.
(struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
(mips_elf_link_hash_newfunc): Initialize new fields.
(mips_elf_link_hash_table_create): Likewise.
(mips_elf_relocate_section): Redirect relocations to use mips16
stubs when appropriate.
(mips_elf_check_relocs): Attach stub sections to the appropriate
symbol.  Set need_fn_stub when appropriate.
(mips_elf_always_size_sections): New static function.
(mips_elf_check_mips16_stubs): New static function.
(elf_backend_always_size_sections): Define.
* elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.

27 years ago * elflink.h (elf_link_input_bfd): Discard local symbols that are
Ian Lance Taylor [Thu, 6 Feb 1997 22:02:51 +0000 (22:02 +0000)]
* elflink.h (elf_link_input_bfd): Discard local symbols that are
attached to sections which are not being included in the link.

27 years ago * config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations
Ian Lance Taylor [Thu, 6 Feb 1997 21:54:07 +0000 (21:54 +0000)]
* config/tc-mips.c (mips_fix_adjustable): Don't adjust relocations
against any mips16 symbols, not just externally visible ones.
(md_apply_fix): Corresponding change.

27 years ago * gdb.base/default.exp: Set match_max to 5000 and the timeout
Jeff Law [Thu, 6 Feb 1997 21:43:53 +0000 (21:43 +0000)]
    * gdb.base/default.exp: Set match_max to 5000 and the timeout
        to 60 seconds.  Temporarily set match_max to 15000 around the
        "info copying" test.
Fixes timeout/overflow problems for hpux10.20 hosted toolchains.

27 years ago * gdb.base/nodebug.exp: Don't try to do an inferior function
Jeff Law [Thu, 6 Feb 1997 20:58:55 +0000 (20:58 +0000)]
    * gdb.base/nodebug.exp: Don't try to do an inferior function
        call if the target doesn't support them.
        * gdb.base/printcmds.exp: Likewise.
        * gdb.base/setvar.exp: Likewise.
        * gdb.base/structs.exp: Likewise.
        * gdb.c++/templates.exp: Likewise.
        * gdb.base/ptype.exp: Likewise.  Remove UDI specific stuff.

        * gdb.base/recurse.exp: Enable for the mn10200.

        * configure.in: Do configure gdb.stabs directory for *-*-elf
        targets.
        * configure: Rebuilt.

27 years ago * gdb.base/break.exp: Check for gdb,noresults before testing
Jeff Law [Thu, 6 Feb 1997 19:50:33 +0000 (19:50 +0000)]
    * gdb.base/break.exp: Check for gdb,noresults before testing
        exit status and/or results from the target.
        * gdb.base/watchpoint.exp, gdb.base/langs.exp: Likewise.
        * lib/gdb.exp: Remove old (now bogus) initialization of
        noinferior, noargs, noresults and nosignals.
More cleanups for new testing framework.

27 years ago * stabs.c (struct bincl_file): Add next_stack field.
Ian Lance Taylor [Thu, 6 Feb 1997 17:46:46 +0000 (17:46 +0000)]
* stabs.c (struct bincl_file): Add next_stack field.
(push_bincl): Put the new file on both bincl_list and
bincl_stack.  Clear the file_types field.
(pop_bincl): Use the next_stack field when popping the stack.
Don't put the file on bincl_list.
(find_excl): Include the file name when warning about an unfound
N_EXCL.

* debug.c (debug_type_samep): Don't crash if we are passed NULL.
PR 11465.

27 years agoThu Feb 6 11:54:24 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Thu, 6 Feb 1997 16:55:10 +0000 (16:55 +0000)]
Thu Feb  6 11:54:24 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>

* objcopy.1: Add missing space after .B.

27 years agoFix thinkos in last change.
David Edelsohn [Wed, 5 Feb 1997 21:46:43 +0000 (21:46 +0000)]
Fix thinkos in last change.

27 years ago * configure.in: Don't configure any subdirs if no simulator
David Edelsohn [Wed, 5 Feb 1997 21:29:32 +0000 (21:29 +0000)]
* configure.in: Don't configure any subdirs if no simulator
is being built.  Don't use erc32 for sparc64.
* configure: Regenerated.

27 years ago * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
Ian Lance Taylor [Wed, 5 Feb 1997 18:21:08 +0000 (18:21 +0000)]
* cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
symbol value when computing the addend for a pc_relative
pcrel_offset reloc.

27 years ago * mips16-opc.c: Add new cases of exit instruction for
Ian Lance Taylor [Wed, 5 Feb 1997 16:14:26 +0000 (16:14 +0000)]
* mips16-opc.c: Add new cases of exit instruction for
disassembler.
* mips-dis.c (print_mips16_insn_arg): Display floating point
registers in operands of exit instruction.  Print `$' before
register names in operands of entry and exit instructions.

27 years ago * config/tc-mips.c (mips16_ip): Accept floating point registers in
Ian Lance Taylor [Wed, 5 Feb 1997 16:12:04 +0000 (16:12 +0000)]
* config/tc-mips.c (mips16_ip): Accept floating point registers in
the operand of the exit instruction.

27 years ago * config/sh.exp: New file.
Bob Manson [Wed, 5 Feb 1997 06:25:42 +0000 (06:25 +0000)]
* config/sh.exp: New file.

* config/slite.exp: Try to connect multiple times to the board
before rebooting. Only send a "monitor run" if need_monitor_run
is set.

* gdb.base/break.exp: Don't do the "stub continue" test if
the target has gdb_stub set.

* gdb.base/callfuncs.exp: Increase the timeout.

* gdb.base/interrupt.exp: Don't even try to compile the testcase
if the target has gdb,noinferiorio set.

* gdb.base/list.exp: Increase match_max to 10000 characters.

* gdb.base/sigall.exp: Check for gdb,nosignals on the target.

* gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
target.

* lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.

Misc fixes for sparclite and SH.

27 years ago * config/sh.exp: New file.
Bob Manson [Wed, 5 Feb 1997 05:59:01 +0000 (05:59 +0000)]
* config/sh.exp: New file.

* config/slite.exp: Try to connect multiple times to the board
before rebooting. Only send a "monitor run" if need_monitor_run
is set.

* gdb.base/break.exp: Don't do the "stub continue" test if
the target has gdb_stub set.

* gdb.base/callfuncs.exp: Increase the timeout.

* gdb.base/interrupt.exp: Don't even try to compile the testcase
if the target has gdb,noinferiorio set.

* gdb.base/list.exp: Increase match_max to 10000 characters.

* gdb.base/sigall.exp: Check for gdb,nosignals on the target.

* gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
target.

* lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.

Misc fixes for sparclite and SH.

27 years ago * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
David Edelsohn [Tue, 4 Feb 1997 22:07:50 +0000 (22:07 +0000)]
* Makefile.in (@COMMON_MAKEFILE_FRAG): Use
COMMON_{PRE,POST}_CONFIG_FRAG instead.
* configure.in: sinclude ../common/aclocal.m4.
* configure: Regenerated.

27 years ago * configure.in: Fix typo in test for callback.c.
David Edelsohn [Tue, 4 Feb 1997 22:05:00 +0000 (22:05 +0000)]
* configure.in: Fix typo in test for callback.c.
* configure: Regenerated.

27 years ago * gencode.c (build_instruction): The high order may be set in the
Ian Lance Taylor [Tue, 4 Feb 1997 21:48:54 +0000 (21:48 +0000)]
* gencode.c (build_instruction): The high order may be set in the
comparison flags at any ISA level, not just ISA 4.

27 years ago * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
David Edelsohn [Tue, 4 Feb 1997 21:42:27 +0000 (21:42 +0000)]
* Makefile.in (@COMMON_MAKEFILE_FRAG): Use
COMMON_{PRE,POST}_CONFIG_FRAG instead.
* configure.in: sinclude ../common/aclocal.m4.
* configure: Regenerated.

27 years agofix spacing error
Ian Lance Taylor [Tue, 4 Feb 1997 21:35:47 +0000 (21:35 +0000)]
fix spacing error

27 years ago * Makefile.in (libcommon.a): Delete.
David Edelsohn [Tue, 4 Feb 1997 21:32:42 +0000 (21:32 +0000)]
* Makefile.in (libcommon.a): Delete.
(callback.o,targ-map.o): Delete, moved to Make-common.in.
(gentmap,targ-vals.h,targ-map.c): Likewise.
(run-autoconf): Delete.
* aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
(common makefile fragment): Moved back into ...
* Make-common.in: Resurrect.
* configure.in (AC_LINK_FILES): Delete, unnecessary now.
* configure: Regenerated.

27 years ago * Makefile.in (@COMMON_MAKEFILE_FRAG@): Use
David Edelsohn [Tue, 4 Feb 1997 21:24:23 +0000 (21:24 +0000)]
* Makefile.in (@COMMON_MAKEFILE_FRAG@): Use
COMMON_{PRE,POST}_CONFIG_FRAG instead.
* configure.in: sinclude ../common/aclocal.m4.
* configure: Regenerated.

27 years ago * Makefile.in (autoconf-common): New target.
David Edelsohn [Tue, 4 Feb 1997 21:21:30 +0000 (21:21 +0000)]
* Makefile.in (autoconf-common): New target.
* configure.in: Do configure common.
* configure: Regenerated.

27 years agoDocs on configury mostly.
David Edelsohn [Tue, 4 Feb 1997 21:19:08 +0000 (21:19 +0000)]
Docs on configury mostly.

27 years ago * Makefile.in (ALL_MODULES): Added all-db.
Tom Tromey [Tue, 4 Feb 1997 20:47:18 +0000 (20:47 +0000)]
    * Makefile.in (ALL_MODULES): Added all-db.
        (CROSS_CHECK_MODULES): Addec check-db.
        (INSTALL_MODULES): Added install-db.
        (CLEAN_MODULES): Added clean-db.

        * Makefile.in (ALL_MODULES): Added all-itcl.
        (CROSS_CHECK_MODULES): Added check-itcl.
        (INSTALL_MODULES): Added install-itcl.
        (CLEAN_MODULES): Added clean-itcl.

27 years ago * symbols.c (resolve_symbol_value): If we leave an equated symbol
Ian Lance Taylor [Tue, 4 Feb 1997 19:13:11 +0000 (19:13 +0000)]
* symbols.c (resolve_symbol_value): If we leave an equated symbol
as O_symbol, copy over the segment.

27 years ago * mips-tdep.c (mips16_get_imm): Fix calculation of extended immediate.
Mark Alexander [Tue, 4 Feb 1997 17:18:56 +0000 (17:18 +0000)]
* mips-tdep.c (mips16_get_imm): Fix calculation of extended immediate.
(mips16_heuristic_proc_desc): Recognize jal(x) instruction.

27 years ago * mips-tdep.c (mips16_decode_reg_save): Distinguish between
Mark Alexander [Tue, 4 Feb 1997 02:09:33 +0000 (02:09 +0000)]
* mips-tdep.c (mips16_decode_reg_save): Distinguish between
sd and sw instructions correctly.
(heuristic_proc_start): Add support for MIPS16.
(mips16_get_imm, mips16_heuristic_proc_desc,
mips32_heuristic_proc_desc): New helper functions for
heuristic_proc_desc.
(heuristic_proc_desc): Rewrite and reorganize to support MIPS16.
(mips_push_arguments): Don't align small arguments in EABI.
(mips32_skip_prologue): Attempt to shrink code size a little.

27 years ago * gas/arm/inst.d, gas/arm/arm7t.d: Pass --prefix-addresses to
Ian Lance Taylor [Mon, 3 Feb 1997 20:46:51 +0000 (20:46 +0000)]
* gas/arm/inst.d, gas/arm/arm7t.d: Pass --prefix-addresses to
objdump.  Update for current relocation printing style.

27 years ago * gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
Bob Manson [Mon, 3 Feb 1997 20:36:39 +0000 (20:36 +0000)]
* gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
  trying to delete the copy of gdb. Catch the file delete so we
  don't die if the delete fails; also, the file should be copied to
  the host, not to the build.

Fixes problems when gdb isn't built with debugging.

27 years ago * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
Ian Lance Taylor [Mon, 3 Feb 1997 20:31:39 +0000 (20:31 +0000)]
* cofflink.c (_bfd_coff_generic_relocate_section): If doing a
relocateable link, just skip pc_relative pcrel_offset relocs.
* coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
structure for an ARM26 reloc which can be resolved.
(coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
reloc can be resolved.
PR 11599.

27 years agoMon Feb 3 11:06:05 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Mon, 3 Feb 1997 19:18:32 +0000 (19:18 +0000)]
Mon Feb  3 11:06:05 1997  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * m32r-stub.c: New -- remote protocol support for M32R cpu.
        * m32r-rom.c:  Several experiments with improved download time.
        * .Sanitize:   Add entry for m32r-stub.c

27 years ago * config.guess: Merge with latest FSF sources.
Ian Lance Taylor [Mon, 3 Feb 1997 18:30:47 +0000 (18:30 +0000)]
* config.guess: Merge with latest FSF sources.

27 years ago * config/tc-mips.c (md_apply_fix): If we aren't adjusting this
Ian Lance Taylor [Mon, 3 Feb 1997 17:56:00 +0000 (17:56 +0000)]
* config/tc-mips.c (md_apply_fix): If we aren't adjusting this
fixup to be against the section symbol, adjust the value
accordingly.

27 years ago * symbols.c (resolve_symbol_value): Don't change X_add_number for
Ian Lance Taylor [Mon, 3 Feb 1997 17:38:41 +0000 (17:38 +0000)]
* symbols.c (resolve_symbol_value): Don't change X_add_number for
an equated symbol.
* write.c (write_relocs): Avoid looping on equated symbols.
Adjust fx_offset by X_add_number for each symbol.
* config/obj-coff.c (do_relocs_for): Avoid looping on equated
symbols.
(fixup_segment): Add a loop to track down equated symbols and
adjust fx_offset appropriately.

27 years ago * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
Ian Lance Taylor [Mon, 3 Feb 1997 16:54:36 +0000 (16:54 +0000)]
* coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
error in overflow check for R_RELBYTE.
PR 11591.

27 years ago * lib/gdb.exp(gdb_test): Surround the result pattern with
Bob Manson [Mon, 3 Feb 1997 03:35:42 +0000 (03:35 +0000)]
* lib/gdb.exp(gdb_test): Surround the result pattern with
  parenthesis in case it contains multiple regexps separated
with |.

Fixes last nights native failures.

* gdb.base/watchpoint.exp: Use gdb_test.
* gdb.base/default.exp: Ditto.

More improvements.

27 years ago * gdb.*/*.exp: Replace $prompt with $gdb_prompt.
Bob Manson [Sun, 2 Feb 1997 07:59:25 +0000 (07:59 +0000)]
* gdb.*/*.exp: Replace $prompt with $gdb_prompt.

* gdb.base/scope.exp: Use gdb_test.
* gdb.c++/classes.exp: Ditto.
* gdb.c++/inherit.exp: Ditto.

More random cleanups. Still lots to go, however.

27 years agoCommitting sanitize changes
Geoffrey Noer [Sun, 2 Feb 1997 06:49:44 +0000 (06:49 +0000)]
Committing sanitize changes

27 years agocomment fix
Ian Lance Taylor [Fri, 31 Jan 1997 23:15:42 +0000 (23:15 +0000)]
comment fix

27 years ago * config/tc-mn10200.c (md_relax_table): Add entries to allow
Jeff Law [Fri, 31 Jan 1997 22:23:10 +0000 (22:23 +0000)]
    * config/tc-mn10200.c (md_relax_table): Add entries to allow
        jmp -> bra relaxing.
        (md_convert_frag): Handle jmp->bra relaxing.
        (md_assemble): Handle jmp->bra relaxing.
        (md_estimate_size_before_relax): Likewise.

27 years ago * gdb.base/crossload.exp: Don't use execute_anywhere, use
Bob Manson [Fri, 31 Jan 1997 21:21:31 +0000 (21:21 +0000)]
    * gdb.base/crossload.exp: Don't use execute_anywhere, use
        remote_exec instead.
        * gdb.base/corefile.exp: Don't be ridiculous.
        * gdb.base/*.c: Add missing stub invocations.

Fixes failures on HP-UX.

27 years ago * config/tc-sparc.c (enforce_aligned_data): New static variable.
Ian Lance Taylor [Fri, 31 Jan 1997 20:34:22 +0000 (20:34 +0000)]
* config/tc-sparc.c (enforce_aligned_data): New static variable.
(sparc_cons_align): Don't do anything unless enforce_aligned_data
is set.
(md_longopts): Add "enforce-aligned-data".
(md_show_usage): Mention --enforce-aligned-data.
* doc/c-sparc.texi (Sparc-Aligned-Data): New node; document
enforce-aligned-data.

27 years agodo d10v sanitization over all files
Stan Shebs [Fri, 31 Jan 1997 19:57:42 +0000 (19:57 +0000)]
do d10v sanitization over all files

27 years ago * config/tc-ppc.c (md_pseudo_table): If OBJ_XCOFF, add "long",
Ian Lance Taylor [Fri, 31 Jan 1997 19:57:31 +0000 (19:57 +0000)]
* config/tc-ppc.c (md_pseudo_table): If OBJ_XCOFF, add "long",
  "word", and "short".
(ppc_xcoff_cons): New static function.

27 years agokeep 1996 ChangeLog
Stan Shebs [Fri, 31 Jan 1997 19:55:15 +0000 (19:55 +0000)]
keep 1996 ChangeLog

27 years agoAnnual ChangeLog split.
Stan Shebs [Fri, 31 Jan 1997 19:54:14 +0000 (19:54 +0000)]
Annual ChangeLog split.

27 years ago * ieee.c (ieee_slurp_section_data): Pick up the start address.
Ian Lance Taylor [Fri, 31 Jan 1997 19:15:40 +0000 (19:15 +0000)]
* ieee.c (ieee_slurp_section_data): Pick up the start address.
From Mark Rasin <mark.rasin@telrad.co.il>.

27 years ago * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
Ian Lance Taylor [Fri, 31 Jan 1997 19:08:31 +0000 (19:08 +0000)]
* aoutx.h (aout_link_write_symbols): Don't apply discard_l to
debugging symbols.
Mentioned in PR 11540.

27 years ago * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
Ian Lance Taylor [Fri, 31 Jan 1997 18:20:20 +0000 (18:20 +0000)]
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
".so" in the name, not ".so.".
(gld${EMULATION_NAME}_search_dir): Accept a plain .so file.

27 years ago * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
Ian Lance Taylor [Fri, 31 Jan 1997 18:18:02 +0000 (18:18 +0000)]
* Makefile.in (ld.info): Add -I$(srcdir).  From Alan Modra
<alan@spri.levels.unisa.edu.au>.

27 years agoFri Jan 31 13:15:05 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Fri, 31 Jan 1997 18:16:15 +0000 (18:16 +0000)]
Fri Jan 31 13:15:05 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c (i386_align_code): Add comments explaining the
nop instructions.

27 years ago * mips-tdep.c (MIPS16_INSTLEN): Define.
Mark Alexander [Fri, 31 Jan 1997 16:37:07 +0000 (16:37 +0000)]
* mips-tdep.c (MIPS16_INSTLEN): Define.
(mips_find_saved_regs): Replace hardcoded 2's with MIPS16_INSTLEN.
(heuristic_proc_start): Recognize 'entry' pseudo-op as a start
of function on MIPS16.
(mips32_skip_prologue, mips16_skip_prologue): New helper functions
for mips_skip_prologue.
(mips_skip_prologue): Recognize both 16- and 32-bit prologues.

27 years ago * configure: Rebuild after change to aclocal.m4.
Ian Lance Taylor [Fri, 31 Jan 1997 16:12:09 +0000 (16:12 +0000)]
* configure: Rebuild after change to aclocal.m4.

27 years ago * write.c (relax_segment): Give an error if a .space symbol is
Ian Lance Taylor [Fri, 31 Jan 1997 15:47:41 +0000 (15:47 +0000)]
* write.c (relax_segment): Give an error if a .space symbol is
common or undefined.

* read.c (read_a_source_file): Don't handle mri_pending_align if
the handler is s_globl or s_ignore.

27 years agoFri Jan 31 10:33:07 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Fri, 31 Jan 1997 15:34:12 +0000 (15:34 +0000)]
Fri Jan 31 10:33:07 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* objdump.c (disassemble_data): Initialize `aux.require_sec'.

27 years ago * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
David Edelsohn [Fri, 31 Jan 1997 15:20:26 +0000 (15:20 +0000)]
* aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
(SIM_AC_OUTPUT): To here.

27 years ago Miscellaneous fixes for config/slite.exp.
Bob Manson [Fri, 31 Jan 1997 04:38:01 +0000 (04:38 +0000)]
Miscellaneous fixes for config/slite.exp.

27 years ago Oops. goes with previous checkin.
Bob Manson [Fri, 31 Jan 1997 01:04:09 +0000 (01:04 +0000)]
Oops. goes with previous checkin.

27 years ago * lib/gdb.exp: Fix runto.
Bob Manson [Fri, 31 Jan 1997 01:03:51 +0000 (01:03 +0000)]
* lib/gdb.exp: Fix runto.

* gdb.base/signals.exp: Check for a gdb,nosignals feature of
the target.

* gdb.base/watchpoint.exp: Fix regexp.

Random miscellaneous fixes. Gotta dig up all these global variables someday..

27 years ago * lib/gdb.exp(default_gdb_exit): Add a catch to the
Bob Manson [Fri, 31 Jan 1997 00:51:45 +0000 (00:51 +0000)]
* lib/gdb.exp(default_gdb_exit): Add a catch to the
close and wait commands, as the descriptor may now be
invalid. Always call "remote_close host".

Makes sure things get cleaned up if gdb dies in the middle of a test.

27 years ago * config/tc-mips.c (mips_fix_adjustable): New function.
Ian Lance Taylor [Thu, 30 Jan 1997 21:19:36 +0000 (21:19 +0000)]
* config/tc-mips.c (mips_fix_adjustable): New function.
* config/tc-mips.h (tc_fix_adjustable): Call mips_fix_adjustable.
(mips_fix_adjustable): Declare.

27 years agoOne minor fix I forgot in last checkin.
Fred Fish [Thu, 30 Jan 1997 21:18:55 +0000 (21:18 +0000)]
One minor fix I forgot in last checkin.

27 years ago * tic80-opc.c (tic80_predefined_symbols): Table of name/value
Fred Fish [Thu, 30 Jan 1997 21:16:46 +0000 (21:16 +0000)]
* tic80-opc.c (tic80_predefined_symbols): Table of name/value
pairs for all predefined symbols recognized by the assembler.
Also used by the disassembling routines.
(tic80_symbol_to_value): New function.
(tic80_value_to_symbol): New function.
* tic80-dis.c (print_operand_control_register,
  print_operand_condition_code, print_operand_bitnum):
Remove private tables and use tic80_value_to_symbol function.

27 years ago * tic80.h: Change all the OPERAND defines to use the form (1 << X)
Fred Fish [Thu, 30 Jan 1997 20:56:33 +0000 (20:56 +0000)]
* tic80.h: Change all the OPERAND defines to use the form (1 << X)
rather than a constant that is 2**X.  Reorder them to put bits for
operands that have symbolic names in the upper bits, so they can
be packed into an int where the lower bits contain the value that
corresponds to that symbolic name.
(predefined_symbo): Add struct.
(tic80_predefined_symbols): Declare array of translations.
(tic80_num_predefined_symbols): Declare size of that array.
(tic80_value_to_symbol): Declare function.
(tic80_symbol_to_value): Declare function.

27 years ago * config/tc-d10v.c (find_opcode): Remove unused variable "numops".
Fred Fish [Thu, 30 Jan 1997 20:35:02 +0000 (20:35 +0000)]
  * config/tc-d10v.c (find_opcode): Remove unused variable "numops".
      * config/tc-tic80.c: Many additions to previous placeholder file.
      * config/tc-tic80.h: Ditto.

27 years agoThu Jan 30 11:30:45 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Thu, 30 Jan 1997 19:33:11 +0000 (19:33 +0000)]
Thu Jan 30 11:30:45 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d10v-dis.c (print_operand): Change address printing
to correctly handle PC wrapping.  Fixes PR11490.

27 years agoThu Jan 30 12:28:18 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
Ian Lance Taylor [Thu, 30 Jan 1997 17:29:28 +0000 (17:29 +0000)]
Thu Jan 30 12:28:18 1997  Alan Modra  <alan@spri.levels.unisa.edu.au>

* config/tc-i386.c (i386_align_code): Improve the nop patterns.

27 years ago Ideas from Srinivas Addagarla <srinivas@cdotd.ernet.in>:
Ian Lance Taylor [Thu, 30 Jan 1997 17:10:28 +0000 (17:10 +0000)]
Ideas from Srinivas Addagarla <srinivas@cdotd.ernet.in>:
* read.c (read_a_source_file): After doing an mri_pending_align,
adjust the line_label if there is one.
(s_space): Set mri_pending_align if an odd number of bytes were
output.

27 years ago * gas/mips/mips16.d: Update for disassembler changes.
Ian Lance Taylor [Thu, 30 Jan 1997 16:57:54 +0000 (16:57 +0000)]
* gas/mips/mips16.d: Update for disassembler changes.

27 years ago * emultempl/sunos.em: Include <ctype.h>.
Ian Lance Taylor [Thu, 30 Jan 1997 16:33:36 +0000 (16:33 +0000)]
* emultempl/sunos.em: Include <ctype.h>.
(gld${EMULATION_NAME}_find_so): Skip the directory name when
searching for ".so.".
(gld${EMULATION_NAME}_search_dir): Make sure that the library name
has a version number, and that only version numbers follow .so.

27 years agoWed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Thu, 30 Jan 1997 02:17:37 +0000 (02:17 +0000)]
Wed Jan 29 18:15:00 1997  Geoffrey Noer  <noer@cygnus.com>

        * scripttempl/pe.sc:
        * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
        section so Win32 executables are valid.

27 years agoFix from Cagney so that new common files do not show up when using psim on old gdbs
Michael Meissner [Thu, 30 Jan 1997 00:55:18 +0000 (00:55 +0000)]
Fix from Cagney so that new common files do not show up when using psim on old gdbs

27 years agoWed Jan 29 15:31:12 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 29 Jan 1997 23:36:25 +0000 (23:36 +0000)]
Wed Jan 29 15:31:12 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* tc-d10v.h (md_do_align): Add this hook to call
d10v_cleanup() when a ".align" is detected.  Fixes PR11487.

* tc-d10v.c (find_opcode): Correctly calculate
branch displacement when .aligns are present.