external/binutils.git
29 years ago * top.c (use_windows): Clarify comments.
Stan Shebs [Sat, 28 Jan 1995 01:38:39 +0000 (01:38 +0000)]
* top.c (use_windows): Clarify comments.

29 years ago * convex-tdep.c (xfer_core_file): Comment out.
Stan Shebs [Sat, 28 Jan 1995 01:32:10 +0000 (01:32 +0000)]
* convex-tdep.c (xfer_core_file): Comment out.
* config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
* remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
        references to target_read_memory.
* gdbcore.h (xfer_core_file, core_open, core_detach): Remove
declarations.
* corelow.c (core_open, core_detach): Make static.

29 years ago * arm-tdep.c: Make it compile.
Stan Shebs [Sat, 28 Jan 1995 01:17:33 +0000 (01:17 +0000)]
* arm-tdep.c: Make it compile.
(exec_file_command, xfer_core_file): Comment out.
(arm_print_insn): Remove, now in libopcodes.
(skip_prologue): Comment out most of body.
(arm_frame_find_saved_regs): Move here from tm-arm.h.
(_initialize_arm_tdep): Set tm_print_insn.
* config/arm/tm-arm.h: Remove old refs to first_object_file_end.
(XFER_CORE_FILE): Remove.
(FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.

29 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
Ian Lance Taylor [Fri, 27 Jan 1995 21:28:52 +0000 (21:28 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
a MIPS target, clobber the size of all but the first input
.reginfo section to be 0, so that lang_size_sections sets the
correct size for the output .reginfo section.

29 years ago * elf32-mips.c (mips_elf_final_link): If the size of an input
Ian Lance Taylor [Fri, 27 Jan 1995 21:27:33 +0000 (21:27 +0000)]
* elf32-mips.c (mips_elf_final_link): If the size of an input
.reginfo section is zero, force it to the correct size, since the
linker emulation code may have clobbered it.

29 years ago * elfcode.h (elf_sort_hdrs): Correct SHF_ALLOC test.
Ian Lance Taylor [Fri, 27 Jan 1995 21:24:28 +0000 (21:24 +0000)]
* elfcode.h (elf_sort_hdrs): Correct SHF_ALLOC test.
(assign_file_positions_except_relocs): Free sorted_hdrs.

29 years agoadded two h8300 tests
Ken Raeburn [Fri, 27 Jan 1995 19:06:56 +0000 (19:06 +0000)]
added two h8300 tests

29 years ago * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Jim Kingdon [Fri, 27 Jan 1995 18:22:15 +0000 (18:22 +0000)]
* gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Quote ^C when passing it to stty.  For some shells ^ is a pipe.

29 years ago * gdb.base/funcargs.exp: Modify many tests so that every test
Jim Kingdon [Fri, 27 Jan 1995 17:29:52 +0000 (17:29 +0000)]
* gdb.base/funcargs.exp: Modify many tests so that every test
either passes or fails.  Make some test names unique.

29 years ago* Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
Jim Kingdon [Fri, 27 Jan 1995 16:53:21 +0000 (16:53 +0000)]
* Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.

29 years ago * srec.c (srec_set_section_contents): Fix off by
Steve Chamberlain [Fri, 27 Jan 1995 16:41:11 +0000 (16:41 +0000)]
* srec.c (srec_set_section_contents): Fix off by
one end address calculation.

29 years ago * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Jim Kingdon [Fri, 27 Jan 1995 05:40:50 +0000 (05:40 +0000)]
* gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Call stty to set interrupt character.

29 years ago * gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
Jim Kingdon [Fri, 27 Jan 1995 04:24:09 +0000 (04:24 +0000)]
* gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
for HP assembler versus GNU assembler based on actual behavior of
$(CC), rather than assuming that $(AS) is always the GNU assembler.

29 years ago* TODO: Suggest a few more stepping tests.
Jim Kingdon [Fri, 27 Jan 1995 03:22:42 +0000 (03:22 +0000)]
* TODO: Suggest a few more stepping tests.

29 years ago * symtab.c (find_pc_line): When subtracting one to get a line
Jim Kingdon [Fri, 27 Jan 1995 03:15:20 +0000 (03:15 +0000)]
* symtab.c (find_pc_line): When subtracting one to get a line
number, make sure not to end up with zero.

29 years ago * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
Jim Kingdon [Fri, 27 Jan 1995 03:10:00 +0000 (03:10 +0000)]
* remote-vx.c: Revert all of Kung's changes of 16 Jan.  The
problems with those changes were (a) the file didn't compile, (b)
they changed memset to bzero--memset is correct, (c) they took out
code to deal with boards lacking floating point, (d) who knows
what I didn't discover in a quick read.

29 years ago * sparcl-tdep.c: Clean up formatting and indentation.
Stu Grossman [Fri, 27 Jan 1995 01:34:48 +0000 (01:34 +0000)]
* sparcl-tdep.c:  Clean up formatting and indentation.

29 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Ian Lance Taylor [Fri, 27 Jan 1995 00:54:51 +0000 (00:54 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Remove unused variable is.

29 years ago* config/tc-h8300.c (get_specific): Add parens around | inside &.
Ken Raeburn [Fri, 27 Jan 1995 00:05:09 +0000 (00:05 +0000)]
* config/tc-h8300.c (get_specific): Add parens around | inside &.
(skip_colonthing): Set L_8 if ":8" is specified.

29 years ago * config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the
Ian Lance Taylor [Thu, 26 Jan 1995 23:41:12 +0000 (23:41 +0000)]
* config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the
601.  Check that the error return from hash_insert is "exists".

29 years ago * ppc-opc.c: Changes based on patch from David Edelsohn
Ian Lance Taylor [Thu, 26 Jan 1995 23:35:32 +0000 (23:35 +0000)]
* ppc-opc.c: Changes based on patch from David Edelsohn
<edelsohn@npac.syr.edu>.
(powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
SPR.
(FXM_MASK): Define.
(insert_tbr): New static function.
(extract_tbr): New static function.
(XFXFXM_MASK, XFXM): Define.
(XSPRBAT_MASK, XSPRG_MASK): Define.
(powerpc_opcodes): Add instructions to access special registers by
name.  Add mtcr and mftbu.

29 years ago * elfcode.h (elf_link_add_object_symbols): Only examine weakdef if
Ian Lance Taylor [Thu, 26 Jan 1995 21:48:14 +0000 (21:48 +0000)]
* elfcode.h (elf_link_add_object_symbols): Only examine weakdef if
we are using an ELF hash table.

29 years ago * remote-hms.c (hms_ops): Change ref of hr_load_image
Steve Chamberlain [Thu, 26 Jan 1995 19:57:09 +0000 (19:57 +0000)]
* remote-hms.c (hms_ops): Change ref of hr_load_image
to gr_load_image.
(dcache_flush, dcache_hit, dcache_value, dcache_fetch,
dcache_poke, dcache_init):  Deleted.
(hms_open, hms_resume, hms_fetch_word, hms_store_word):
Use dcache routines provided by remote-util.h

29 years ago * remote-hms.c (hms_ops): Change ref of hr_load_image
Steve Chamberlain [Thu, 26 Jan 1995 18:53:20 +0000 (18:53 +0000)]
* remote-hms.c (hms_ops): Change ref of hr_load_image
to gr_load_image.

29 years agoAdd embedded PowerPC ELF support.
Michael Meissner [Thu, 26 Jan 1995 17:59:08 +0000 (17:59 +0000)]
Add embedded PowerPC ELF support.

29 years agoNew file.
Steve Chamberlain [Thu, 26 Jan 1995 17:41:48 +0000 (17:41 +0000)]
New file.

29 years ago * config.bfd: (m68*-est-coff): New configuration.
Steve Chamberlain [Thu, 26 Jan 1995 17:37:31 +0000 (17:37 +0000)]
  * config.bfd: (m68*-est-coff): New configuration.

29 years agoAdd powerpc-*-eabi support.
Michael Meissner [Thu, 26 Jan 1995 17:27:56 +0000 (17:27 +0000)]
Add powerpc-*-eabi support.

29 years agoAdd support for PowerPC embedded ABI.
Michael Meissner [Thu, 26 Jan 1995 17:07:03 +0000 (17:07 +0000)]
Add support for PowerPC embedded ABI.

29 years ago * aoutx.h (NAME(aout,some_aout_object_p)): Always set EXEC_P if
Ian Lance Taylor [Thu, 26 Jan 1995 16:43:54 +0000 (16:43 +0000)]
* aoutx.h (NAME(aout,some_aout_object_p)): Always set EXEC_P if
the start address is in the .text section, even if STAT_FOR_EXEC
is set.  Just use STAT_FOR_EXEC as an additional test.

29 years agoAllow configuration of PowerPC embedded ABI.
Michael Meissner [Thu, 26 Jan 1995 16:39:26 +0000 (16:39 +0000)]
Allow configuration of PowerPC embedded ABI.

29 years agoAdd new relocs for PowerPC Elf support.
Michael Meissner [Thu, 26 Jan 1995 16:31:24 +0000 (16:31 +0000)]
Add new relocs for PowerPC Elf support.
Add eabi support.

29 years ago * coff-sh.c (CALC_ADDEND): Don't define.
Ian Lance Taylor [Thu, 26 Jan 1995 04:27:50 +0000 (04:27 +0000)]
* coff-sh.c (CALC_ADDEND): Don't define.
(coff_sh_relocate_section): Remove.
(coff_relocate_section): Use _bfd_coff_generic_relocate_section.

29 years ago * language.h (struct language_defn): New field c_style_arrays.
Per Bothner [Thu, 26 Jan 1995 02:32:25 +0000 (02:32 +0000)]
* language.h (struct language_defn):  New field c_style_arrays.
* language.c (unknown_language_defn, auto_language_defn,
local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
asm_language_defn):  Set c_style_arrays to true.
* m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
f-lang.c (f_language_defn):  Set c_style_arrays to false.
* valops.c (value_string):  If c_style_array is not set,
allocate string in gdb (not inferior) using allocate_value.

* value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
Only call value_coerce_array if current_language->c_style_arrays.
* values.c:  Add #include "language.h".  (Needed for COERCE_ARRAY.)

* valops.c (chill_varying_type):  New predicate.
* valops.c (value_cast):  Support assigning a fixed string or array
to a variable string/array structure.

* valarith.c (value_subscripted_rvalue):  Extra parameter lowerbound.
Check index>=lowerbound, and then add lowerbound to index here,
instead of in caller.  Generalize to arbitrary lval_types.
(value_subscript):  Use enhanced value_subscripted_rvalue if
c_style_arrays is false (and index is in range).

29 years ago * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
Stu Grossman [Thu, 26 Jan 1995 02:27:06 +0000 (02:27 +0000)]
* gdbtk.c (gdbtk_init):  Prevent segfault when gdbtk.tcl can't be
found.
* gdbtk.tcl:  Initialize expr_update_list() to prevent errors when
popping up expression window for the first time.

29 years ago * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
Per Bothner [Thu, 26 Jan 1995 02:19:13 +0000 (02:19 +0000)]
* eval.c (evaluate_subexp case OP_ARRAY):  Fix calls to memset:
TYPE_LENGTH is length in bytes, not bits.

29 years ago * tc-sh.c (little): Add argument IGNORE to avoid compiler warnings.
Jim Wilson [Thu, 26 Jan 1995 00:26:11 +0000 (00:26 +0000)]
* tc-sh.c (little): Add argument IGNORE to avoid compiler warnings.
(md_pseudo_table): Add space for consistent formatting.
(COND8_RANGE, COND12_RANGE): Delete unused macros.
(COND8_F, COND8_M, COND12_F, COND12_M, UNCOND12_F, UNCOND12_M):
Correct minimum and maximum branch offsets.  Add comments explaining
why these numbers are correct.

29 years ago * gdb.base/default.exp: xfail no-stack backtraces for h8300,
Stan Shebs [Thu, 26 Jan 1995 00:02:46 +0000 (00:02 +0000)]
* gdb.base/default.exp: xfail no-stack backtraces for h8300,
restart GDB for h8300 after a continue.
(return): Add pattern to match a29k-udi behavior.
* gdb.base/nodebug.exp: Remove obsolete comment.
* gdb.base/regs.exp: New file, testing of register displays.
* gdb.base/return.exp: Fix typo in reference to $objdir.
* gdb.base/whatis.exp: Always start with a fresh GDB.

29 years ago * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Set timeout
Jim Kingdon [Wed, 25 Jan 1995 22:16:08 +0000 (22:16 +0000)]
* gdb.disasm/hppa.exp (all_fpu_comparison_tests): Set timeout
higher, these tests generate a lot of output.

29 years agoWed Jan 25 15:32:09 1995 David Edelsohn <edelsohn@mhpcc.edu>
Ian Lance Taylor [Wed, 25 Jan 1995 20:43:50 +0000 (20:43 +0000)]
Wed Jan 25 15:32:09 1995  David Edelsohn  <edelsohn@mhpcc.edu>

* config/tc-ppc.c (md_parse_option): Accept mpwr2 as a synonym for
mpwrx; mppc32, m603, and m604 as synonyms for mppc; and mppc64 and
m620 for PowerPC64 mode.
(ppc_symbol_new_hook): Add T0 as synonym for TC0 suffix.

29 years ago * infrun.c (proceed): Flush stdout before resuming inferior.
Jim Kingdon [Wed, 25 Jan 1995 18:16:42 +0000 (18:16 +0000)]
* infrun.c (proceed): Flush stdout before resuming inferior.
* infcmd.c (step_1), annotate.c (annotate_starting):
Don't bother to flush here.

29 years ago * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
Jeff Law [Wed, 25 Jan 1995 08:13:14 +0000 (08:13 +0000)]
* hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
by an ill-advised global search and replace.

29 years ago * lib/gdb.exp (gdb_test): Remove catch from around the send. The
Jim Kingdon [Wed, 25 Jan 1995 03:33:25 +0000 (03:33 +0000)]
* lib/gdb.exp (gdb_test): Remove catch from around the send.  The
code following the catch silently ignored some errors; without the
catch they should be thrown like any other tcl error.  Also, the
catch used "" instead of {} which meant all the callers who wanted
to include one of the characters "[]$ had to quote it an extra time.
* gdb.base/{callfuncs.exp,commands.exp,gdbvars.exp,printcmds.exp,
ptype.exp,signals.exp,watchpoint.exp}, gdb.c++/{cplusfuncs.exp,
demangle.exp}, gdb.chill/chexp.exp, gdb.fortran/exprs.exp:
Remove extra quoting.

29 years agoSanitize arc stuff.
David Edelsohn [Wed, 25 Jan 1995 03:27:54 +0000 (03:27 +0000)]
Sanitize arc stuff.

29 years ago * gdbtk.tcl (create_registers_window): Work around a radiobutton
Stu Grossman [Wed, 25 Jan 1995 00:36:33 +0000 (00:36 +0000)]
* gdbtk.tcl (create_registers_window):  Work around a radiobutton
widget bug to make Options|Natural button work.

29 years ago"gcc -fno-builtin -Wall -Wwrite-strings -Wshadow" can be your friend.
Ken Raeburn [Tue, 24 Jan 1995 21:56:29 +0000 (21:56 +0000)]
"gcc -fno-builtin -Wall -Wwrite-strings -Wshadow" can be your friend.
Well, sometimes.
Bunch of patches from Pat Rankin for cleaning up some warnings in vax-vms gas.

29 years ago * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
Stu Grossman [Tue, 24 Jan 1995 21:49:11 +0000 (21:49 +0000)]
* gdbtk.c (gdb_disassemble):  Fix problem with source+assembly and
g++ caused by out-of-order pc's.
* gdbtk.tcl (files_command):  Remove duplicate file names.  Also,
add scrollbar.

29 years ago * ld-bootstrap/bootstrap.exp: If not in the ld build directory,
Ian Lance Taylor [Tue, 24 Jan 1995 20:16:49 +0000 (20:16 +0000)]
* ld-bootstrap/bootstrap.exp: If not in the ld build directory,
call untested for each test, rather than ignoring it.  If one test
fails, go on to the next one instead of returning.
* ld-cdtest/cdtest.exp: If compilations fail, mark tests as
unresolved.
* ld-empic/empic.exp: Likewise.  Also, always pass the same test
name to pass or fail.
* ld-shared/shared.exp: Likewise.  Also, always run all tests.
* ld-scripts/defined.exp: If as or nm fail, mark test as
unresolved.  Always pass the same test name to pass or fail.
* ld-scripts/script.exp: Likewise.
* ld-scripts/sizeof.exp: Likewise.

29 years agoupdate copyright dates
Ian Lance Taylor [Tue, 24 Jan 1995 19:48:50 +0000 (19:48 +0000)]
update copyright dates

29 years ago * elf32-mips.c (mips_elf_output_extsym): Set the value of the
Ian Lance Taylor [Tue, 24 Jan 1995 19:27:35 +0000 (19:27 +0000)]
* elf32-mips.c (mips_elf_output_extsym): Set the value of the
ECOFF symbol from the hash table entry.

29 years agoupdate copyrights
Ian Lance Taylor [Tue, 24 Jan 1995 16:01:04 +0000 (16:01 +0000)]
update copyrights

29 years ago * ldctor.c (ldctor_add_set_entry): Don't dump core if a
Ian Lance Taylor [Tue, 24 Jan 1995 15:34:16 +0000 (15:34 +0000)]
* ldctor.c (ldctor_add_set_entry): Don't dump core if a
constructor entry is in the absolute section.

29 years agoAdd EM_PPC macro.
Michael Meissner [Tue, 24 Jan 1995 14:42:17 +0000 (14:42 +0000)]
Add EM_PPC macro.

29 years ago * gdb.base/commands.exp: Make test names unique; every test either
Jeff Law [Tue, 24 Jan 1995 05:16:25 +0000 (05:16 +0000)]
* gdb.base/commands.exp: Make test names unique; every test either
passes or fails.  Update some comments.

29 years ago * gdb.disasm/hppa.exp (do_system_control_tests): Update.
Jeff Law [Tue, 24 Jan 1995 04:59:07 +0000 (04:59 +0000)]
* gdb.disasm/hppa.exp (do_system_control_tests): Update.

29 years ago * config/tc-hppa.c (pa_ip, case 'D'): Fix typo which caused
Jeff Law [Tue, 24 Jan 1995 04:50:43 +0000 (04:50 +0000)]
    * config/tc-hppa.c (pa_ip, case 'D'): Fix typo which caused
        miscompilation of "diag" instructions.

* gas/hppa/basic/basic.exp (do_system): Update.

29 years ago * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
Stu Grossman [Tue, 24 Jan 1995 01:23:18 +0000 (01:23 +0000)]
* gdbtk.tcl:  Take .gdbtkinit if it exists.  Makes gdbtk match the
doc!

29 years agoMon Jan 23 14:53:35 1995 Steve Chamberlain <sac@splat>
Steve Chamberlain [Mon, 23 Jan 1995 22:57:30 +0000 (22:57 +0000)]
Mon Jan 23 14:53:35 1995  Steve Chamberlain  <sac@splat>

* coff-sh.c (coff_sh_relocate_section):  Don't subtract
vma twice.

29 years ago * coff-sh.c (sh_reloc): Don't ignore the previous contents of an
Ian Lance Taylor [Mon, 23 Jan 1995 22:32:18 +0000 (22:32 +0000)]
* coff-sh.c (sh_reloc): Don't ignore the previous contents of an
R_SH_IMM32 reloc.
PR 6215.

29 years ago* gdb.texinfo (Processes): New node.
Jim Kingdon [Mon, 23 Jan 1995 22:27:49 +0000 (22:27 +0000)]
* gdb.texinfo (Processes): New node.

29 years agoconfigure regen, tc-mips.c libiberty.h include
Ken Raeburn [Mon, 23 Jan 1995 21:57:32 +0000 (21:57 +0000)]
configure regen, tc-mips.c libiberty.h include

29 years agoregenerated
Ken Raeburn [Mon, 23 Jan 1995 21:56:46 +0000 (21:56 +0000)]
regenerated

29 years ago Add support for Chill bitstring literals (e.h. H'FF00').
Per Bothner [Mon, 23 Jan 1995 21:20:58 +0000 (21:20 +0000)]
Add support for Chill bitstring literals (e.h. H'FF00').
* ch-exp.y (match_bitstring_literal):  Fix for proper endianness.
* expprint.c (print_subexp):  Don't call error on OP_BITSTRING,
just print B'<unimlemented>'.
* gdbtypes.c (create_set_type):  Fix bug in length calculation.
* valops.c, value.h (value_bitstring):  New function.
* eval.c (evaluate_subexp):  Implement support for OP_BITSTRING.

* ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
check that return type is non-void, and print in proper Chill syntax.

29 years ago * Makefile.in: Remove references to remote-mon.c.
Rob Savoye [Mon, 23 Jan 1995 19:25:24 +0000 (19:25 +0000)]
* Makefile.in: Remove references to remote-mon.c.
* remote-mon.c: remove. Replaced by rom68k-rom.c.
* rom68k-rom.c: Support for Rom68k monitor.

29 years ago * config/tc-sh.h (tc_init_after_args): Don't define.
Ian Lance Taylor [Mon, 23 Jan 1995 19:22:52 +0000 (19:22 +0000)]
* config/tc-sh.h (tc_init_after_args): Don't define.
* config/tc-sh.c (md_begin): Remove unused variable table.
(md_assemble): Remove unused variable p.
(md_convert_frag): Cast fr_address to unsigned long for printf.
(md_apply_fix): Use as_warn_where rather than as_warn.
(sh_init_after_args): Remove empty function.

29 years ago * configure.in (i386-*-gnu*elf*): New target.
Ian Lance Taylor [Mon, 23 Jan 1995 19:09:02 +0000 (19:09 +0000)]
* configure.in (i386-*-gnu*elf*): New target.

29 years agox
Ian Lance Taylor [Mon, 23 Jan 1995 19:01:41 +0000 (19:01 +0000)]
x

29 years ago * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
Ian Lance Taylor [Mon, 23 Jan 1995 19:00:46 +0000 (19:00 +0000)]
* configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
* config/i386-gnu.mt: New file.  Include ELF support.

29 years ago * config.bfd (i[345]86-*-gnu*): Set bfd_name to i386-gnu.
Ian Lance Taylor [Mon, 23 Jan 1995 18:55:58 +0000 (18:55 +0000)]
* config.bfd (i[345]86-*-gnu*): Set bfd_name to i386-gnu.
* config/i386-gnu.mt: New file.  Include ELF support.

29 years ago * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
Jim Kingdon [Mon, 23 Jan 1995 18:54:29 +0000 (18:54 +0000)]
* Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
gcc/ch/runtime not chillrt, since that is where the chill runtime
lives now.

29 years ago * opncls.c (bfd_openstreamr): Call bfd_cache_init.
Ian Lance Taylor [Mon, 23 Jan 1995 18:35:07 +0000 (18:35 +0000)]
* opncls.c (bfd_openstreamr): Call bfd_cache_init.

29 years ago * remote-hms.c (hms_load): Delete.
Steve Chamberlain [Mon, 23 Jan 1995 08:11:30 +0000 (08:11 +0000)]
* remote-hms.c (hms_load): Delete.
(target_ops): Use hr_load_image.

29 years agoMon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
Steve Chamberlain [Mon, 23 Jan 1995 08:09:02 +0000 (08:09 +0000)]
Mon Jan 23 00:06:57 1995  Steve Chamberlain  <sac@splat>

* remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
        Define memory_insert/remove_breakpoint.
* xm-go32.h: Remove redundant SIGs.

Thu Jan 19 20:26:58 1995  Steve Chamberlain  <sac@splat>

* ser-go32.c: Rewritten by nigel@algor.co.uk.

29 years agoDon't pass -S to the linker.
Steve Chamberlain [Mon, 23 Jan 1995 07:54:24 +0000 (07:54 +0000)]
Don't pass -S to the linker.

29 years agoChanges for PR 6203.
Torbjorn Granlund [Sun, 22 Jan 1995 22:12:59 +0000 (22:12 +0000)]
Changes for PR 6203.

29 years ago The following fixes a FAIL caused by the fact that the alpha stabs
Jim Kingdon [Sun, 22 Jan 1995 06:25:50 +0000 (06:25 +0000)]
The following fixes a FAIL caused by the fact that the alpha stabs
configuration didn't use the ".if alpha" code in weird.def.
* gdb.stabs/weird.def (v_comb): Use type attribute to specify 32
bit pointer, so the 32 bit version works even on the alpha.
* gdb.stabs/{alpha.mt,ecoff.mt,aout.sed,hppa.sed,xcoff.sed,weird.def}:
Remove the stuff which allowed us to have separate versions for
alpha and everything else.

29 years ago * hash.c (hash_ask): If we find the slot after wrapping around,
Ian Lance Taylor [Sun, 22 Jan 1995 00:04:01 +0000 (00:04 +0000)]
* hash.c (hash_ask): If we find the slot after wrapping around,
break out of the loop.  Fixes bug in Jan 18 change.

29 years ago * gdb.c++/cplusfuncs.exp (test_lookup_operator_functions): Fix
Jim Kingdon [Sat, 21 Jan 1995 23:52:00 +0000 (23:52 +0000)]
* gdb.c++/cplusfuncs.exp (test_lookup_operator_functions): Fix
regexp which "info func operator\[\](" is supposed to match.  Fix
string to send to GDB.  Note that GDB still doesn't work right.  Add a
new test for "info func .perator\[\](" which GDB does handle correctly.

29 years ago* gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems.
Jim Kingdon [Sat, 21 Jan 1995 23:38:43 +0000 (23:38 +0000)]
* gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems.

29 years agoadd new tests sigall.c and sigall.exp
Jim Kingdon [Sat, 21 Jan 1995 23:30:43 +0000 (23:30 +0000)]
add new tests sigall.c and sigall.exp

29 years agotipo
Ian Lance Taylor [Sat, 21 Jan 1995 23:19:17 +0000 (23:19 +0000)]
tipo

29 years ago * add new file remote-vx29k.c.
Kung Hsu [Sat, 21 Jan 1995 00:57:39 +0000 (00:57 +0000)]
* add new file remote-vx29k.c.

29 years ago * add new files vx29k.mt, tm-vx29k.h.
Kung Hsu [Sat, 21 Jan 1995 00:56:22 +0000 (00:56 +0000)]
* add new files vx29k.mt, tm-vx29k.h.

29 years ago * expression.h (OP_LABELED): New operator, for Chill
Per Bothner [Fri, 20 Jan 1995 23:45:21 +0000 (23:45 +0000)]
* expression.h (OP_LABELED):  New operator, for Chill
labeled structre tuples.
* ch-exp.y (tuple_element, named_record_element, tuple_elements):
New non-terminals, to handle labeled structure tuples.
(tuple):  Re-define using tuple_elements.
* eval.c (evaluate_labeled_field_init):  New function, to handle
initialization of structure fields, possibly using OP_LABELED.
(evaluate_subexp):  Use it.
* expprint.c (print_subexp case):  For OP_ARRAY, use Chill syntax
for Chill.  Handled OP_LABELED.
* parse.c (length_of_subexp, prefixify_subexp):  Handle OP_LABELED.

* eval.c (evaluate_subexp):  Handle Chill Powerset tuples.
* valarith.c (value_bit_index):  Just treat bitstring as represented
by an array of bytes.  Alignment is handled by compiler.

29 years ago * gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
Jim Kingdon [Fri, 20 Jan 1995 22:26:33 +0000 (22:26 +0000)]
* gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
gdb.c++/inherit.exp, gdb.c++/templates.exp, gdb.c++/virtfunc.exp,
gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp,
gdb.base/printcmds.exp: Remove passcount, failcount, etc., stuff;
it makes the tests harder to understand and confuses test-o-matic.
The preferred style is that each test provides a PASS or a FAIL,
and has a unique message (e.g. "continue #54" not just "continue")
which is the same for the pass and the fail.
* gdb.fortran/exprs.exp, gdb.fortran/types.exp,
gdb.chill/chexp.exp: Move test_print_accept and test_print_reject
to lib/gdb.exp.
* gdb.base/printcmds.exp: Use test_print_accept.  Remove
prt_accept which was basically the same thing.  Likewise for
test_print_reject and prt_reject.
* lib/gdb.exp (test_print_reject): Add some more error message
patterns to match from the former printcmds.exp (prt_reject).
* gdb.c++/classes.exp, gdb.base/scope.exp: Remove spurious xfails.
One defect of the passcount stuff is that some of it failed to
report XPASS where appropriate.
* gdb.c++/cplusfuncs.exp (print_addr_of): No longer accept extra
stuff before and after arg in expected pattern.
(test_paddr_operator_functions): Re-do test without print_addr_of;
this is the only test which seems to want extra stuff there.

29 years agoback out new hash routine
Ken Raeburn [Fri, 20 Jan 1995 22:14:27 +0000 (22:14 +0000)]
back out new hash routine

29 years ago * sunos.c (sunos_add_one_symbol): Only set the sunos specific
Ian Lance Taylor [Fri, 20 Jan 1995 16:57:34 +0000 (16:57 +0000)]
* sunos.c (sunos_add_one_symbol): Only set the sunos specific
fields if we are doing a sunos link.

29 years agogcc lint
Ken Raeburn [Thu, 19 Jan 1995 21:04:08 +0000 (21:04 +0000)]
gcc lint

29 years agoRevert 2 June 1994 changes (Alpha 21164 support), for lack of assignment
Ken Raeburn [Thu, 19 Jan 1995 20:49:08 +0000 (20:49 +0000)]
Revert 2 June 1994 changes (Alpha 21164 support), for lack of assignment
paperwork.

29 years agoCleanup of VAX and VMS code, from Pat Rankin:
Ken Raeburn [Thu, 19 Jan 1995 20:01:07 +0000 (20:01 +0000)]
Cleanup of VAX and VMS code, from Pat Rankin:
* config/obj-vms.c: Changed exported function names to lower case.  (Changed
call sites in write.c.)  Declare VMS system function names used, conditional on
actually being on VMS.  Changed many functions that returned no useful value to
now be declared to return void.  Removed many unused variables.  Supply missing
return statements or values.  Supply `default' case in switch statements.
Ensure local variables get initialized.
* config/tc-vax.c: Minor changes to silence "gcc -Wall".
* config/obj-vms.h, config/tc-vax.h: Added some missing declarations.

29 years agoFix for PR 6200 (SUBC problems).
Torbjorn Granlund [Thu, 19 Jan 1995 13:59:13 +0000 (13:59 +0000)]
Fix for PR 6200 (SUBC problems).

29 years ago * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
Stan Shebs [Thu, 19 Jan 1995 03:16:42 +0000 (03:16 +0000)]
* h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
* sh-tdep.c (gdb_print_insn_sh): Ditto.

29 years ago * write.c (fix_new_internal): Clear fx_bsr on those targets which
Ian Lance Taylor [Thu, 19 Jan 1995 00:17:57 +0000 (00:17 +0000)]
* write.c (fix_new_internal): Clear fx_bsr on those targets which
use it.

29 years agosome improvements to fp code
Ken Raeburn [Thu, 19 Jan 1995 00:13:30 +0000 (00:13 +0000)]
some improvements to fp code

29 years ago * remote-os9k.c (rombug_open): Fix a bug in exception handling
Kung Hsu [Wed, 18 Jan 1995 19:31:25 +0000 (19:31 +0000)]
    * remote-os9k.c (rombug_open): Fix a bug in exception handling
        command.
        * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
        write.

29 years agoAdd GDBPROTO macro for checking the type of protocol.
Rob Savoye [Wed, 18 Jan 1995 19:11:30 +0000 (19:11 +0000)]
Add GDBPROTO macro for checking the type of protocol.

29 years agosparc, coff, hash changes
Ken Raeburn [Wed, 18 Jan 1995 18:53:49 +0000 (18:53 +0000)]
sparc, coff, hash changes

29 years ago(hash_ask): Call strcmp instead of expanding it inline.
Ken Raeburn [Wed, 18 Jan 1995 18:52:08 +0000 (18:52 +0000)]
(hash_ask): Call strcmp instead of expanding it inline.
(hash_code): Replaced with a version from bfd.

29 years agogcc -Wall lint.
Ian Lance Taylor [Wed, 18 Jan 1995 17:27:52 +0000 (17:27 +0000)]
gcc -Wall lint.
* coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
printf.
* coffgrok.c: Include bucomm.h.  Don't declare xmalloc.
(push_scope): Declare type of parameter link.
* size.c: Include libiberty.h.
* srconv.c: Include bucomm.h.
(find_base): Declare at top of file.
(wr_hd): Add default case to architecture switch.
(wr_dps_start): Declare type of parameter nest.
(wr_du): Comment out variables used only in commented out blocks.
(wr_dus): Remove unused variable i.
(wr_sc): Remove unused variables myinfo, low, and high.
* strings.c: Include libiberty.h.
* sysdump.c: Include <ctype.h>.

29 years agogcc -Wall lint.
Ian Lance Taylor [Wed, 18 Jan 1995 17:24:48 +0000 (17:24 +0000)]
gcc -Wall lint.
* expr.c (operand): Parenthesize && within ||.
* listing.c (listing_newline): Likewise.
(list_symbol_table): Use %lu to print sizeof.
* symbols.c: Comment out unused function indent.
(print_symbol_value_1): Cast pointer to unsigned long for printf.
* config/obj-coff.c (do_relocs_for): Only declare symbol_ptr if it
will be used.
* config/tc-h8300.c (md_begin): Remove unused variable reg.
(get_operand): Declare type of parameter direction.  Remove unused
variable size.
(get_specific): Fix comment to avoid nested comments.
(check_operand): Cast X_add_number to unsigned long for printf.
(build_bytes): Remove unused local variables output_ptr, part, and
high.
(build_bytes): Cast X_add_number to unsigned long for printf.
(clever_message): Remove unused variable scan.
(md_assemble): Remove unused variable i.
(tc_coff_sizemachdep): Remove unused function.
* tc-h8300.h (tc_reloc_mangle): Declare.