* as.c (show_usage): Print bug report address.
(parse_args): Change version printing to match current GNU
standards.
* gasp.c (show_usage): Print bug report address.
(main): Change version printing to match current GNU standards.
* elflink.h (elf_link_add_object_symbols): Only put a symbol from
a dynamic object in the dynamic symbol table if it is referenced
or defined by a regular object.
PR 10711.
Fred Fish [Tue, 1 Oct 1996 03:29:45 +0000 (03:29 +0000)]
* gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
"p func1 ()" and note that rests of tests are skipped.
* gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
setup_xfails for "print func2::coremaker_local".
Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
* gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
affected by the previous run test.
* gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
"print array () ubyte (foo)" and "print/x array () byte (\$i)"
* gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
"pass int powerset tuple" and "pass modeless int powerset tuple".
* gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
"real write 4" and "real write 8".
* gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
setup_xfails for "print vs1 after tuple assign 2",
"print \$i after tuple assign 2", and
"print vs2 after tuple assign 2".
* lib/gdb.exp (gdb_test): When a gdb aborts, print a more
meaningful error message and return -1 so the caller can
suppress further tests and avoid a cascade of errors.
Jeff Law [Mon, 30 Sep 1996 17:16:35 +0000 (17:16 +0000)]
* top.c (execute_control_command): Free values from while_control
and if_control conditions after evaluation to avoid storage leaks.
From Peter Schauer.
Fixes 10442.
Stu Grossman [Sat, 28 Sep 1996 01:38:45 +0000 (01:38 +0000)]
* gencode.c (write_opcodes): Output hex values for opcode mask
and patterns.
* interp.c (sim_resume): Save and restore PC from the appropriate
register.
* (sim_fetch_register sim_store_register): Fix byte-order problem
with reading and writing registers.
* simops.c (OP_FFFF): Implement pseudo-breakpoint insn.
Stu Grossman [Sat, 28 Sep 1996 00:59:13 +0000 (00:59 +0000)]
* configure.in: Recognize v850 target.
* v850-tdep.c: New file, NEC V850 target support.
* config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
Fred Fish [Fri, 27 Sep 1996 17:53:06 +0000 (17:53 +0000)]
* top.c (print_gdb_version): Rewrote to comply with new GNU coding
standards for the --version option.
(print_gnu_advertisement): Remove, now part of print_gdb_version.
(show_version): Remove call to print_gnu_advertisement.
* top.h (print_gnu_advertisement): Remove prototype.
* main.c (print_gdb_help): Move help to static function and
add prototype.
(main): Call print_gdb_help rather than inlining it.
(main): Remove call to print_gnu_advertisement.
* gdbtk.tcl (create_copyright_window): Increase timeout from
15 seconds to 30 seconds.
Fred Fish [Fri, 27 Sep 1996 17:50:47 +0000 (17:50 +0000)]
* gdb.base/a1-selftest.exp: Tweak tests to account for new
format for printing version.
* gdb.base/default.exp: Ditto.
* gdb.base/interrupt.exp: Fix problem with cascade of
errors if child process dies while calling a function.
Stan Shebs [Thu, 26 Sep 1996 21:09:23 +0000 (21:09 +0000)]
* mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
* mpw-config.in: Add mips-*-* case as mips-elf, and use more
wildcards in matching.
* mpw-emipself.c: New file, pregenerated mips elf emulation.
* interp.c (SignalException): Check for explicit terminating
breakpoint value.
* gencode.c: Pass instruction value through SignalException()
calls for Trap, Breakpoint and Syscall.
* interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
only used on those hosts that provide it.
* configure.in: Add sqrt() to list of functions to be checked for.
* config.in: Re-generated.
* configure: Re-generated.
Stan Shebs [Fri, 20 Sep 1996 23:20:58 +0000 (23:20 +0000)]
* config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
be consistent with GCC.
(FPUL_REGNUM, etc): Renumber to match list changes.
(ADDR_BITS_REMOVE): Delete.
* sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
Rearrange to match REGISTER_NAMES.
* sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
PR 9457
Ian Lance Taylor [Fri, 20 Sep 1996 19:49:49 +0000 (19:49 +0000)]
* gencode.c (process_instructions): Call build_endian_shift when
expanding STORE RIGHT, to fix swr.
* support.h (SIGNEXTEND): If the sign bit is not set, explicitly
clear the high bits.
* interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
Fix float to int conversions to produce signed values.
Ian Lance Taylor [Fri, 20 Sep 1996 16:33:44 +0000 (16:33 +0000)]
* aoutx.h (aout_link_input_section_ext): When doing a relocateable
link, adjust the symbol index of a base relative reloc. Don't
change the addend of a PC relative reloc if pcrel_offset is set.
* sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
a relocateable link.
PR 10692.
Ian Lance Taylor [Thu, 19 Sep 1996 21:55:10 +0000 (21:55 +0000)]
* gencode.c (process_instructions): Correct shift count for 32
bit shift instructions. Correct sign extension for arithmetic
shifts to not shift the number of bits in the type.
Ian Lance Taylor [Thu, 19 Sep 1996 16:25:11 +0000 (16:25 +0000)]
* config/obj-coff.c (fixup_segment): Don't adjust PC relative
reloc for the i960 for a reloc in the same section. This undoes
one of the two changes made Aug 19.
PR 10672.
Ian Lance Taylor [Tue, 17 Sep 1996 18:20:06 +0000 (18:20 +0000)]
* coffcode.h (coff_slurp_line_table): Warn about illegal symbol
indices, rather than crashing.
(coff_slurp_reloc_table): Likewise. Check whether the howto field
is NULL.
This is needed because for certain builds the size field being given
to malloc() is actually 64bits long, and without a cast or malloc
prototype the resulting value used by malloc() depended on the host
endianness, and how long long paramaters are passed into functions.
Ian Lance Taylor [Mon, 16 Sep 1996 21:45:01 +0000 (21:45 +0000)]
* ieee.c (struct ieee_write_type): Add reflocalp field.
(ieee_pointer_type): Set reflocalp after pushing type.
(ieee_function_type): If reflocalp is set, make this type local.
(ieee_range_type, ieee_array_type, ieee_set_type): Likewise.
(ieee_const_type, ieee_volatile_type): Likewise.
(ieee_struct_field, ieee_class_baseclass): Likewise.
PR 10638.
Ian Lance Taylor [Mon, 16 Sep 1996 19:33:04 +0000 (19:33 +0000)]
* ieee.c (struct ieee_info): Add global_types field.
(parse_ieee_bb): When starting a BB1, initialize the types field
to the global_types field.
(parse_ieee_be): When ending a BB2, copy the types field to the
global_types field.
* interp.c (sim_monitor): Improved monitor printf
simulation. Tidied up simulator warnings, and added "--log" option
for directing warning message output.
* gencode.c: Use sim_warning() rather than WARNING macro.