binutils-gdb.git
29 years ago * config/tc-m68k.c (parse_mri_control_operand): Change leftstart
Ian Lance Taylor [Mon, 18 Sep 1995 22:25:54 +0000 (22:25 +0000)]
* config/tc-m68k.c (parse_mri_control_operand): Change leftstart
and rightstart to not be const.
(parse_mri_control_expression): Likewise.
(build_mri_control_operand): Likewise.  If the left side of the
comparison is a register, and the right side is not, swap the two
sides.
* config/m68k-parse.y (m68k_reg_parse): Make globally visible.
* config/m68k-parse.h (m68k_reg_parse): Declare.

29 years ago * read.c (mri_comment_field): New function.
Ian Lance Taylor [Mon, 18 Sep 1995 21:53:40 +0000 (21:53 +0000)]
* read.c (mri_comment_field): New function.
(mri_comment_end): New function.
(s_align_bytes): Use mri_comment_field.
(s_align_ptwo, s_comm, s_mri_common, s_fail, s_globl): Likewise.
(s_float_space, s_struct): Likewise.
(s_space): Use mri_comment_field rather than doing it by hand.
(cons_worker, equals): Likewise.
(s_end): Ignore comments starting with '*' or '!'.
* read.h (mri_comment_field): Declare.
(mri_comment_end): Declare.
* cond.c (s_if): Use mri_comment_field.
* config/tc-m68k.c (s_chip, s_reg): Likewise.

29 years ago * write.c (fixup_segment): Handle ABS-sym in -sym case rather than
Ian Lance Taylor [Mon, 18 Sep 1995 21:11:34 +0000 (21:11 +0000)]
* write.c (fixup_segment): Handle ABS-sym in -sym case rather than
sym-sym case.
* config/obj-coff.c (fixup_segment): Likewise.  Permit negative
symbols if TC_M68K.
* config/tc-m68k.c (tc_coff_fix2rtype): If fx_tcbit is set, return
R_RELLONG_NEG.
(tc_gen_reloc): If fx_tcbit is set, abort.
(md_apply_fix_2): For a negative reloc, move fx_subsy to fx_addsy,
and set fx_tcbit.
Permits generating negative relocs for m68k COFF.

29 years ago * config/tc-m68k.c (s_reg): Ignore comment field in MRI mode.
Ian Lance Taylor [Mon, 18 Sep 1995 19:23:53 +0000 (19:23 +0000)]
* config/tc-m68k.c (s_reg): Ignore comment field in MRI mode.

29 years ago Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
Ian Lance Taylor [Mon, 18 Sep 1995 18:57:59 +0000 (18:57 +0000)]
Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
* Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
(CXX_FOR_TARGET): Likewise.
(install): Likewise.
(GENERATED_HFILES): Remove config.h.
(.dep): Depend upon config.h.

29 years agoMon Sep 18 14:44:04 1995 Arne H. Juul <arnej@pvv.unit.no>
Ian Lance Taylor [Mon, 18 Sep 1995 18:45:56 +0000 (18:45 +0000)]
Mon Sep 18 14:44:04 1995  Arne H. Juul  <arnej@pvv.unit.no>

* configure.in (mips-dec-netbsd*): New target.
* configure: Rebuild.

29 years agoMon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
Ian Lance Taylor [Mon, 18 Sep 1995 18:42:00 +0000 (18:42 +0000)]
Mon Sep 18 14:39:38 1995  Arne H. Juul  <arnej@pvv.unit.no>

* configure.tgt (mips*-dec-netbsd*): New target.

29 years agoMon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
Ian Lance Taylor [Mon, 18 Sep 1995 18:37:58 +0000 (18:37 +0000)]
Mon Sep 18 14:35:01 1995  Arne H. Juul  <arnej@pvv.unit.no>

* config.bfd (mips-dec-netbsd*): New target.
* configure.host (mips-dec-netbsd*): New host.
* configure.in (mips-dec-netbsd*): New native.
* configure: Rebuild.

29 years ago * lib/ld.exp (default_ld_version): Call prune_system_crud.
Ian Lance Taylor [Mon, 18 Sep 1995 18:23:06 +0000 (18:23 +0000)]
* lib/ld.exp (default_ld_version): Call prune_system_crud.
(default_ld_relocate, default_ld_link): Likewise.
(default_ld_simple_link, default_ld_compile): Likewise.
(default_ld_assemble, default_ld_nm): Likewise.

29 years ago * lib/gas-defs.exp (gas_run): Call prune_system_crud.
Ian Lance Taylor [Mon, 18 Sep 1995 18:05:49 +0000 (18:05 +0000)]
* lib/gas-defs.exp (gas_run): Call prune_system_crud.
(run_dump_test, objdump): Likewise.

29 years agomention COFF linker improvement
Ian Lance Taylor [Mon, 18 Sep 1995 17:39:04 +0000 (17:39 +0000)]
mention COFF linker improvement

29 years ago * mh-hp300 (CC): Add "CC = cc -Wp,-H256000" to avoid
Fred Fish [Mon, 18 Sep 1995 17:14:35 +0000 (17:14 +0000)]
* mh-hp300 (CC): Add "CC = cc -Wp,-H256000" to avoid
"too much defining" errors from the HPUX compiler.

29 years agoin verbose mode add newline after files are processed
Ken Raeburn [Mon, 18 Sep 1995 16:28:11 +0000 (16:28 +0000)]
in verbose mode add newline after files are processed

29 years ago * somsolib.c (auto_solib_add_at_startup): Delete definition. No
Jeff Law [Mon, 18 Sep 1995 07:48:34 +0000 (07:48 +0000)]
* somsolib.c (auto_solib_add_at_startup): Delete definition.  No
longer needed.

29 years ago * configure.in: Set endian to little for mips-*-ultrix*.
Ian Lance Taylor [Mon, 18 Sep 1995 02:20:06 +0000 (02:20 +0000)]
* configure.in: Set endian to little for mips-*-ultrix*.
* configure: Rebuild.

29 years agoNCR changes
Angela Marie Thomas [Sun, 17 Sep 1995 03:05:25 +0000 (03:05 +0000)]
NCR changes

29 years ago* config/mh-ncrsvr43: Removed AR_FLAGS
release [Sun, 17 Sep 1995 01:33:20 +0000 (01:33 +0000)]
* config/mh-ncrsvr43: Removed AR_FLAGS

29 years ago * config/mips/tm-mips.h (UNUSED_REGNUM): Define.
Peter Schauer [Sat, 16 Sep 1995 20:37:36 +0000 (20:37 +0000)]
* config/mips/tm-mips.h (UNUSED_REGNUM):  Define.
* mipsv4-nat.c (supply_gregset):  Fill UNUSED_REGNUM register
with zero.

29 years ago * config/tc-m68k.c: Change some "CONST" references to "const".
Jeff Law [Sat, 16 Sep 1995 03:44:03 +0000 (03:44 +0000)]
* config/tc-m68k.c: Change some "CONST" references to "const".

Just changed those which caused redefinition errors on a system where
CONST != const.  Many more remain.

29 years agoconfigure.host: fix shell syntax errors
Ken Raeburn [Sat, 16 Sep 1995 00:05:19 +0000 (00:05 +0000)]
configure.host: fix shell syntax errors

29 years agovms updates
Ken Raeburn [Fri, 15 Sep 1995 21:47:19 +0000 (21:47 +0000)]
vms updates

29 years agovms updates
Ken Raeburn [Fri, 15 Sep 1995 21:41:56 +0000 (21:41 +0000)]
vms updates

29 years ago Make the COFF backend linker merge common types:
Ian Lance Taylor [Fri, 15 Sep 1995 14:29:05 +0000 (14:29 +0000)]
Make the COFF backend linker merge common types:
* cofflink.c (struct coff_debug_merge_element): Define.
(struct coff_debug_merge_type): Define.
(struct coff_debug_merge_hash_entry): Define.
(struct coff_debug_merge_hash_table): Define.
(coff_debug_merge_hash_table_init): Define.
(coff_debug_merge_hash_table_free): Define.
(coff_debug_merge_hash_lookup): Define.
(struct coff_final_link_info): Add debug_merge field.
(coff_debug_merge_hash_newfunc): New static function.
(_bfd_coff_final_link): Allocate and free debug_merge table.
(coff_link_input_bfd): Merge identical enum, struct and union
types.
PR 7145.

29 years ago * gencode.c: Back up PC by 2 for breakpoints.
Stu Grossman [Fri, 15 Sep 1995 02:36:10 +0000 (02:36 +0000)]
* gencode.c:  Back up PC by 2 for breakpoints.
* interp.c:  Move fp regs beyond pc/pr/etc to avoid confusing GDB,
which expect pc to immediatly follow regs[].

29 years ago * remote-sim.c (gdbsim_create_inferior): Back out change that
Stu Grossman [Fri, 15 Sep 1995 00:41:32 +0000 (00:41 +0000)]
* remote-sim.c (gdbsim_create_inferior):  Back out change that
broke all simulator configurations except the rs6000.

29 years ago * monitor.c (monitor_expect): Discard NULL characters.
Jeff Law [Thu, 14 Sep 1995 21:48:25 +0000 (21:48 +0000)]
    * monitor.c (monitor_expect): Discard NULL characters.
Fixes random failures on the OKI board.

29 years ago * infcmd.c: Add extern declaration for auto_solib_add_at_startup.
Kung Hsu [Thu, 14 Sep 1995 21:32:54 +0000 (21:32 +0000)]
    * infcmd.c: Add extern declaration for auto_solib_add_at_startup.

29 years ago * symfile.c: Move global variable auto_solib_add_at_startup from
Kung Hsu [Thu, 14 Sep 1995 20:44:03 +0000 (20:44 +0000)]
    * symfile.c: Move global variable auto_solib_add_at_startup from
        solib.c to symfile.c.
        * solib.c: ditto.
        * symfile.h: Add extern declaration of the above mentioned variable.
        * infcmd.c: Take out extern declaration, since it's in symfile.h.

29 years ago * gas/sparc/{wrdr.[ds],rdpr.[ds]}: New tests.
David Edelsohn [Thu, 14 Sep 1995 20:12:01 +0000 (20:12 +0000)]
* gas/sparc/{wrdr.[ds],rdpr.[ds]}: New tests.
* gas/sparc/sparc.exp: Run them.

29 years ago * coffread.c (coff_symtab_read): Complain about unmatched .ef and
Stu Grossman [Thu, 14 Sep 1995 19:43:02 +0000 (19:43 +0000)]
* coffread.c (coff_symtab_read):  Complain about unmatched .ef and
.eb symbols instead of segfaulting.

29 years ago Convert i960 COFF to use COFF backend linker.
Ian Lance Taylor [Thu, 14 Sep 1995 19:03:21 +0000 (19:03 +0000)]
Convert i960 COFF to use COFF backend linker.
* coff-i960.c (coff_i960_relocate): Use a coff_section_data
structure to store the symbol being used.
(coff_i960_start_final_link): New static function.
(coff_i960_relocate_section): New static function.
(coff_i960_adjust_symndx): New static function.
(coff_start_final_link): Define.
(coff_relocate_section): Define.
(coff_adjust_symndx): Define.
* coffcode.h (bfd_coff_backend_data): Add new callback function
_bfd_coff_start_final_link.
(bfd_coff_start_final_link): Define.
(coff_start_final_link): Define if not defined.
(bfd_coff_std_swap_table): Add coff_start_final_link.
* cofflink.c (_bfd_coff_internal_syment_name): Make globally
visible.
(_bfd_coff_final_link): Call bfd_coff_start_final_link if the
function callback is not NULL.
* libcoff-in.h (struct coff_section_tdata): Add tdata field.
(_bfd_coff_internal_syment_name): Declare.
* libcoff.h: Rebuild.
* configure.in (icoff_big_vec): Add cofflink.o.
(icoff_little_vec): Likewise.
* configure: Rebuild.

29 years ago * sparc-opc.c (sparc_opcodes): Mark all insns that reference
David Edelsohn [Thu, 14 Sep 1995 19:00:40 +0000 (19:00 +0000)]
* sparc-opc.c (sparc_opcodes): Mark all insns that reference
%psr, %wim, %tbr as F_NOTV9.

29 years ago * Makefile.in (clean-info): Remove extraneous tab from line
Fred Fish [Thu, 14 Sep 1995 00:39:41 +0000 (00:39 +0000)]
* Makefile.in (clean-info): Remove extraneous tab from line
following action.

29 years ago * objdump.c (start_address): New variable.
Ian Lance Taylor [Wed, 13 Sep 1995 22:38:55 +0000 (22:38 +0000)]
* objdump.c (start_address): New variable.
(stop_address): New variable.
(usage): Mention --start-address and --stop-address.
(OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
(long_options): Add "start-address" and "stop-address".
(disassemble_data): Handle start_address and stop_address.
(dump_data, dump_reloc_set): Likewise.
(main): Don't set seenflag for -l.  Handle OPTION_START_ADDRESS
and OPTION_STOP_ADDRESS.
* objcopy.c (parse_vma): Move to bucomm.c.
* bucomm.c (parse_vma): New function, moved in from objcopy.c.
* bucomm.h (parse_vma): Declare.
* binutils.texi, objdump.1: Document new objdump options.
PR 7983.

29 years ago * stbsread.c (read_one_struct_field): Use subfile language instead of
Kung Hsu [Wed, 13 Sep 1995 22:31:04 +0000 (22:31 +0000)]
* stbsread.c (read_one_struct_field): Use subfile language instead of
global language. Improve efficiency.

29 years agoFix .drectve spelling (was .drective) in several comments.
David Edelsohn [Wed, 13 Sep 1995 21:16:11 +0000 (21:16 +0000)]
Fix .drectve spelling (was .drective) in several comments.

29 years ago * Makefile.in, configure.in: Remove; the testsuite is now run
Ian Lance Taylor [Wed, 13 Sep 1995 20:37:46 +0000 (20:37 +0000)]
* Makefile.in, configure.in: Remove; the testsuite is now run
directly from the gas Makefile.

29 years ago * Makefile.in (EXPECT): New variable.
Ian Lance Taylor [Wed, 13 Sep 1995 20:35:17 +0000 (20:35 +0000)]
* Makefile.in (EXPECT): New variable.
(CHECKFLAGS): Remove.
(site.exp): New target.
(check): Rewrite to invoke runtest directly, rather than recurring
down into testsuite.
(clean-here): Remove testsuite directory.
(clean, distclean): Don't recur into testsuite.
* configure.in: Don't call AC_CONFIG_SUBDIRS(testsuite).
* configure: Rebuild.

29 years ago * cofflink.c (coff_link_input_bfd): Fail if a section with no
Ian Lance Taylor [Wed, 13 Sep 1995 17:29:05 +0000 (17:29 +0000)]
* cofflink.c (coff_link_input_bfd): Fail if a section with no
contents has relocs.
PR 7979.

29 years ago * lib/utils-lib.exp (prune_system_crud): Define if not defined.
Ian Lance Taylor [Wed, 13 Sep 1995 17:21:28 +0000 (17:21 +0000)]
* lib/utils-lib.exp (prune_system_crud): Define if not defined.
* binutils-all/objcopy.exp: Call prune_system_crud on cmp output.

29 years ago * write.c (relax_and_size_seg): Change to the segment we are
Ian Lance Taylor [Wed, 13 Sep 1995 17:19:27 +0000 (17:19 +0000)]
* write.c (relax_and_size_seg): Change to the segment we are
relaxing, in case md_convert_frag, called by cvt_frag_to_fill,
wants to call fix_new.
* config/tc-m68k.c (m68k_ip): Permit PC relative code if the
segment of the symbol is the current segment, not just in
text_section.
(md_convert_frag_1): Don't call subseg_change.
(md_estimate_size_before_relax): Likewise.

29 years ago * somsolib.c (auto_solib_add_at_startup): Define new global variable.
Jeff Law [Wed, 13 Sep 1995 14:50:51 +0000 (14:50 +0000)]
* somsolib.c (auto_solib_add_at_startup): Define new global variable.
(som_solib_create_inferior_hook): Don't add libraries if
auto_solib_add_at_startup is zero.
(_initialize_som_solib): Add command to toggle
auto_solib_add_at_startup.

29 years ago * monitor.c (monitor_make_srec): Fix thinkos in computation
Jeff Law [Wed, 13 Sep 1995 01:41:30 +0000 (01:41 +0000)]
* monitor.c (monitor_make_srec): Fix thinkos in computation
of addr_size.
Critical patch from Stu.

29 years ago * stabsread.c: To include language.h and expression.h for the reason
Kung Hsu [Tue, 12 Sep 1995 23:31:00 +0000 (23:31 +0000)]
* stabsread.c: To include language.h and expression.h for the reason
above.

29 years ago * stabsread.c (read_one_struct_field): Add a patch to handle cfront
Kung Hsu [Tue, 12 Sep 1995 23:05:22 +0000 (23:05 +0000)]
* stabsread.c (read_one_struct_field): Add a patch to handle cfront
generated stabs that each field is in full mangled name.

29 years ago * infcmd.c (attach_command): Add solibs only when
Kung Hsu [Tue, 12 Sep 1995 22:49:08 +0000 (22:49 +0000)]
* infcmd.c (attach_command): Add solibs only when
auto_solib_add_at_startup is set.

29 years ago * Makefile.in (maintainer-clean): New target.
Ian Lance Taylor [Tue, 12 Sep 1995 22:23:17 +0000 (22:23 +0000)]
* Makefile.in (maintainer-clean): New target.

29 years ago * Makefile.in (do_maintainer_clean): Rename from do_realclean.
Ian Lance Taylor [Tue, 12 Sep 1995 22:16:14 +0000 (22:16 +0000)]
* Makefile.in (do_maintainer_clean): Rename from do_realclean.
(maintainer-clean): Rename from realclean, passing
maintainer-clean down to subdirectories, but leave realclean as a
synonym.

29 years ago * Makefile.in (DO_X): Change do-realclean to do-maintainer-clean.
Ian Lance Taylor [Tue, 12 Sep 1995 22:05:08 +0000 (22:05 +0000)]
* Makefile.in (DO_X): Change do-realclean to do-maintainer-clean.
(local-maintainer-clean): New target.
(maintainer-clean): New target.
(realclean): Just depend upon maintainer-clean.

29 years ago * ldmain.c (struct warning_callback_info): Define.
Ian Lance Taylor [Tue, 12 Sep 1995 20:34:49 +0000 (20:34 +0000)]
* ldmain.c (struct warning_callback_info): Define.
(warning_callback): Add new parameter symbol.  Call
warning_find_reloc to try to find the section and VMA.
(warning_find_reloc): New static function.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass NULL as symbol parameter to warning callback.

29 years ago * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
Ian Lance Taylor [Tue, 12 Sep 1995 20:31:29 +0000 (20:31 +0000)]
* linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
warning callback.

29 years agoThu Sep 7 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 12 Sep 1995 19:46:03 +0000 (19:46 +0000)]
Thu Sep  7 12:50:49 1995  steve chamberlain  <sac@slash.cygnus.com>

* scripttemp/pe.sc:  Allow both spellings of .ctors/.dtors.
Start .text section on the right boundary. Always align
stabs.

29 years ago * ar.c (replace_members): Don't call write_archive if nothing
Ian Lance Taylor [Tue, 12 Sep 1995 19:31:03 +0000 (19:31 +0000)]
* ar.c (replace_members): Don't call write_archive if nothing
changed.

29 years agoThu Sep 7 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 12 Sep 1995 19:28:30 +0000 (19:28 +0000)]
Thu Sep  7 12:45:34 1995  steve chamberlain  <sac@slash.cygnus.com>

* coffcode.h (coff_compute_section_file_positions): Keep the
raw size safe.
(coff_write_object_contents): Remember if it's a relocatable
file.
* libcoff-in.h (pe_data_type): New member 'has_reloc_section'
* peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
if relocatable file. Swap out saved raw size.

29 years ago * dep-in.sed: Remove config.h from generated dependencies.
Ian Lance Taylor [Tue, 12 Sep 1995 19:19:44 +0000 (19:19 +0000)]
* dep-in.sed: Remove config.h from generated dependencies.

29 years ago * ld.texinfo: Clarify -L option.
Ian Lance Taylor [Tue, 12 Sep 1995 19:01:48 +0000 (19:01 +0000)]
* ld.texinfo: Clarify -L option.

29 years ago * sunos.c (sunos_slurp_dynamic_symtab): New static function,
Ian Lance Taylor [Tue, 12 Sep 1995 18:59:24 +0000 (18:59 +0000)]
* sunos.c (sunos_slurp_dynamic_symtab): New static function,
broken out of sunos_canonicalize_dynamic_symtab.
(sunos_canonicalize_dynamic_symtab): Call new function
sunos_slurp_dynamic_symtab.
(sunos_add_dynamic_symbols): Add three new parameters.  Return the
dynamic symbol table to the caller.
* aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
callback to override the symbols being read.
* libaout.h (struct aout_backend_data): Add three new parameters
to add_dynamic_symbols callback.

29 years ago * config/tc-arm.c (md_atof): Fix debugging printf, and leave it
David Edelsohn [Tue, 12 Sep 1995 17:39:15 +0000 (17:39 +0000)]
* config/tc-arm.c (md_atof): Fix debugging printf, and leave it
out by default.

29 years ago * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
Ian Lance Taylor [Tue, 12 Sep 1995 16:39:12 +0000 (16:39 +0000)]
* objdump.c (disassemble_data): Add casts to avoid gcc warnings.

29 years ago * ldlang.c (lang_one_common): Add cast to avoid warning.
Ian Lance Taylor [Tue, 12 Sep 1995 16:25:51 +0000 (16:25 +0000)]
* ldlang.c (lang_one_common): Add cast to avoid warning.
(topower): Likewise.  Also, reindent.
* ldwrite.c (clone_section): Change i to unsigned int.
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
cast to avoid warning.

29 years ago Extensive minor changes to avoid various gcc warnings. Also:
Ian Lance Taylor [Tue, 12 Sep 1995 16:23:25 +0000 (16:23 +0000)]
Extensive minor changes to avoid various gcc warnings.  Also:
* Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
* archures.c (bfd_arch_info_type): Change mach field from long to
unsigned long.
(bfd_lookup_arch): Change machine parameter from long to unsigned
long.

29 years ago * internal.h (struct internal_syment): Change n_numaux field from
Ian Lance Taylor [Tue, 12 Sep 1995 16:08:51 +0000 (16:08 +0000)]
* internal.h (struct internal_syment): Change n_numaux field from
char to unsigned char.

29 years ago * NEWS: Add information about remote target caching.
Fred Fish [Tue, 12 Sep 1995 00:26:17 +0000 (00:26 +0000)]
* NEWS:  Add information about remote target caching.

29 years ago * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"
Fred Fish [Mon, 11 Sep 1995 23:49:34 +0000 (23:49 +0000)]
* gdb.base/scope.exp (text_at_main):  Add "hppa*-*-hpux*"
xfails when not gcc compiled for "print foo::funclocal".
(test_at_foo):  Add "hppa*-*-hpux*" xfails when not gcc compiled for:
"print foo::funclocal at foo",
"print 'scope1.c'::foo::funclocal at foo",
"print foo::funclocal_bss at foo",
"print 'scope1.c'::foo::funclocal_bss at foo",
"print foo::funclocal_ro at foo",
"print 'scope1.c'::foo::funclocal_ro at foo",
"print bar::funclocal at foo" and
"print 'scope1.c'::bar::funclocal at foo".
(test_at_bar):  Add "hppa*-*-hpux*" xfails when not
gcc compiled for "print foo::funclocal at bar".
Expand all messages to ensure that they identify that
the test is at bar().
* gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not
gcc compiled for:
"ptype on opaque struct pointer (statically)",
"ptype on opaque struct tagname (statically)",
"ptype on opaque struct pointer (dynamically) 1",
"ptype on opaque struct tagname (dynamically) 1",
"ptype on opaque struct pointer (dynamically) 2" and
"ptype on opaque struct tagname (dynamically) 2
* gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not
gcc compiled for:
"p datalocal"
"whatis datalocal",
"ptype datalocal",
"p bsslocal",
"whatis bsslocal", and
"ptype bsslocal".
* gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for
"backtrace in langs.exp" and "up to langs0__2do in langs.exp"
when not gcc compiled.
* gdb.base/funcargs.exp (float_and_integral_args):  Add
"hppa*-*-hpux*" xfail for "run to call2a" when not gcc
compiled.
(discard_and_shuffle):  Add "hppa*-*-hpux*" xfail for
"backtrace from call6a" when not gcc compiled.
(shuffle_round_robin): Add "hppa*-*-hpux*" xfail for
"backtrace from call7a" when not gcc compiled.
* gdb.base/callfuncs.exp (do_function_calls):
Add "hppa*-*-hpux*" xfail when not gcc compiled for
"p t_char_array_values(char_array_val2,char_array_val1)",
"p t_char_array_values(char_array_val1,char_array_val2)",
"p t_char_array_values("carray 1","carray 2")",
"p t_char_array_values("carray 1",char_array_val2)",
"p t_char_array_values(char_array_val1,"carray 2")",
"p sum_args(1,{2})",
"p sum_args(2,{2,3})",
"p sum_args(3,{2,3,4})",
"p sum_args(4,{2,3,4,5})"
* gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for
"backtrace in corefile.exp" when not gcc compiled.

29 years ago * defs.h: Only include mmalloc.h if NO_MMALLOC is not
Fred Fish [Mon, 11 Sep 1995 23:41:45 +0000 (23:41 +0000)]
* defs.h: Only include mmalloc.h if NO_MMALLOC is not
defined.

29 years ago * doc/configure.in: Remove unused file.
Ian Lance Taylor [Mon, 11 Sep 1995 20:53:46 +0000 (20:53 +0000)]
* doc/configure.in: Remove unused file.

29 years ago * app.c (do_scrub_chars): Grab all available spaces at start of
Ian Lance Taylor [Mon, 11 Sep 1995 18:34:55 +0000 (18:34 +0000)]
* app.c (do_scrub_chars): Grab all available spaces at start of
line before preserving a single space.  Remove state == 0 test
which will never succeed.
* macro.c (macro_expand_body): Delete local variables from the
formal hash table.
(macro_expand): In MRI mode, stop when whitespace is seen in the
argument list.

29 years ago * gas/mri/empty.s: New file.
Ian Lance Taylor [Mon, 11 Sep 1995 16:07:49 +0000 (16:07 +0000)]
* gas/mri/empty.s: New file.
* gas/mri/mri.exp: Test assembling empty.s.
* gas/mri/comment.s: Add a couple more comment variants.

29 years ago * sb.c: Include "libiberty.h".
Ian Lance Taylor [Mon, 11 Sep 1995 15:48:13 +0000 (15:48 +0000)]
* sb.c: Include "libiberty.h".
* macro.c: Likewise.  Also include <stdlib.h> if it exists.

29 years ago * gas/mri/mri.exp: Add xfail for the expr test for all hppa
Ian Lance Taylor [Mon, 11 Sep 1995 15:46:48 +0000 (15:46 +0000)]
* gas/mri/mri.exp: Add xfail for the expr test for all hppa
targets.

29 years agoRevert Linux directory searching: it turns out that Linux no longer
Ian Lance Taylor [Mon, 11 Sep 1995 15:04:49 +0000 (15:04 +0000)]
Revert Linux directory searching: it turns out that Linux no longer
uses it.

29 years ago * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
Ian Lance Taylor [Mon, 11 Sep 1995 14:56:49 +0000 (14:56 +0000)]
* sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
a symbol with a non-zero plt_offset.

29 years agoSun Sep 10 10:24:48 1995 Michael Tiemann <tiemann@axon.cygnus.com>
Michael Tiemann [Sun, 10 Sep 1995 17:37:22 +0000 (17:37 +0000)]
Sun Sep 10 10:24:48 1995  Michael Tiemann  <tiemann@axon.cygnus.com>

* tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the
simulator.  FIXME.

* rs6000-tdep.c (push_dummy_frame): Calculate the correct link
register offset from the current frame (don't assume it is always 8).
(push_dummy_frame): Add comment about having only 4096 bytes of
stack space in the simulator (by default).

* remote-sim.c (gdbsim_create_inferior): Call
`add_text_to_loadinfo' so that gdb can find TOC entries when
calling functions in the inferior.

With this changes, it is now possible to correctly call inferior
functions in the PPC simulator.

29 years agoSun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
Michael Tiemann [Sun, 10 Sep 1995 17:33:54 +0000 (17:33 +0000)]
Sun Sep 10 10:23:56 1995  Michael Tiemann  <tiemann@axon.cygnus.com>

* registers.c (register_description): Add gdb synonyms for cr
(cnd) and msr (ps).

29 years ago * sparc-tdep.c (fill_fpregset): Fix incorrect FP_MAX_REGNUM
Peter Schauer [Sun, 10 Sep 1995 15:56:01 +0000 (15:56 +0000)]
* sparc-tdep.c (fill_fpregset):  Fix incorrect FP_MAX_REGNUM
substitution.
(supply_fpregset):  Use FP_MAX_REGNUM.

29 years agofix typo.
Michael Meissner [Sun, 10 Sep 1995 03:44:58 +0000 (03:44 +0000)]
fix typo.

29 years ago * stabsread.c (read_enum_type): Exit loop for putting pending
Peter Schauer [Sat, 9 Sep 1995 15:24:18 +0000 (15:24 +0000)]
* stabsread.c (read_enum_type):  Exit loop for putting pending
enum symbols into the enum type correctly if we had no pending
symbols on entry to read_enum_type.

29 years ago * gdb.base/signals.exp: Rewrite `handle all print' test as
Peter Schauer [Sat, 9 Sep 1995 08:38:40 +0000 (08:38 +0000)]
* gdb.base/signals.exp:  Rewrite `handle all print' test as
a procedure. Accept blanks or TABs as whitespace, increase
timeout and expect input buffer size for the large output
from the command. Remove "i*86-*-bsdi2.0" xfail.

29 years ago * inferior.h: Add extern declaration of inferior_environ.
Kung Hsu [Sat, 9 Sep 1995 00:26:46 +0000 (00:26 +0000)]
* inferior.h: Add extern declaration of inferior_environ.
* solib.c (solib_map_sections): To get inferior's env instead of
gdb's for LD_LIBRARY_PATH, same for PATH.

29 years ago* configure.in (noconfigdirs): Disable gdb on m68k-*-netbsd*.
J.T. Conklin [Sat, 9 Sep 1995 00:15:47 +0000 (00:15 +0000)]
* configure.in (noconfigdirs): Disable gdb on m68k-*-netbsd*.

29 years agoUpdate to new config scheme
Michael Meissner [Fri, 8 Sep 1995 23:56:38 +0000 (23:56 +0000)]
Update to new config scheme

29 years ago Add Linux style directory searching.
Ian Lance Taylor [Fri, 8 Sep 1995 23:37:45 +0000 (23:37 +0000)]
Add Linux style directory searching.
* configure.tgt: Add i386lelf to targ_extra_emuls for
i[345]86-*-linuxaout* and i[345]86-*-linuxoldld.  For
i[345]86-*-linux*, set targ_emul to i386lelf, and add elf_i386 to
targ_extra_emuls.
* emulparams/i386lelf.sh: New file, a copy of elf_i386.sh.
* emultempl/elf32.em: If TARGET_IS_i386lelf, use autoconf
recommended mechanism to define DIR and struct dirent.
(libcmp): New static function use only when TARGET_IS_i386lelf.
(gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
* Makefile.in (ALL_EMULATIONS): Add ei386lelf.o
(ei386lelf.c): New target.

29 years ago * elfcode.h (align_file_position): Remove; not used.
Ian Lance Taylor [Fri, 8 Sep 1995 22:43:31 +0000 (22:43 +0000)]
* elfcode.h (align_file_position): Remove; not used.

29 years ago * ldemul.h (ldemul_set_symbols): Declare.
Ian Lance Taylor [Fri, 8 Sep 1995 21:28:17 +0000 (21:28 +0000)]
* ldemul.h (ldemul_set_symbols): Declare.
(ldemul_parse_args): Declare.
* ldemul.c (ldemul_parse_args): Fix indentation.

29 years ago * ld-cdtest/cdtest.exp: If the compiler does not exist, mark the
Ian Lance Taylor [Fri, 8 Sep 1995 21:16:31 +0000 (21:16 +0000)]
* ld-cdtest/cdtest.exp: If the compiler does not exist, mark the
tests as untested rather than unresolved.

29 years ago * configure.in: Call AC_HEADER_DIRENT.
Ian Lance Taylor [Fri, 8 Sep 1995 21:11:40 +0000 (21:11 +0000)]
* configure.in: Call AC_HEADER_DIRENT.
* configure, config.in: Rebuild.
* emultempl/sunos.em: Use autoconf recommend mechanism to define
DIR and struct dirent.

29 years ago * configure.in: Build ld in mips*-*-bsd* case.
Ian Lance Taylor [Fri, 8 Sep 1995 20:47:20 +0000 (20:47 +0000)]
* configure.in: Build ld in mips*-*-bsd* case.

29 years ago * configure.tgt (mips*-*-bsd*): New case.
Ian Lance Taylor [Fri, 8 Sep 1995 20:46:44 +0000 (20:46 +0000)]
* configure.tgt (mips*-*-bsd*): New case.

29 years ago * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
Ian Lance Taylor [Fri, 8 Sep 1995 20:34:05 +0000 (20:34 +0000)]
* configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
New case.
* configure.tgt (i[345]86-*-ptx*): New case.

29 years ago * solib.c (solib_map_sections): Copy full path name into so_list
Kung Hsu [Fri, 8 Sep 1995 20:00:56 +0000 (20:00 +0000)]
* solib.c (solib_map_sections): Copy full path name into so_list
structure so that symbol_file_add can find it.

29 years ago * app.c (do_scrub_chars): In MRI mode, keep a space before a
Ian Lance Taylor [Fri, 8 Sep 1995 19:17:46 +0000 (19:17 +0000)]
* app.c (do_scrub_chars): In MRI mode, keep a space before a
possible comment character.
* config/tc-m68k.c (m68k_ip): In MRI mode, ignore anything after
an instruction which takes no operands.

29 years ago * Makefile.in (install): Don't install gasp in $(tooldir).
Ian Lance Taylor [Fri, 8 Sep 1995 18:43:50 +0000 (18:43 +0000)]
* Makefile.in (install): Don't install gasp in $(tooldir).

29 years ago * Makefile.in (install): Don't install in $(tooldir).
Ian Lance Taylor [Fri, 8 Sep 1995 18:38:50 +0000 (18:38 +0000)]
* Makefile.in (install): Don't install in $(tooldir).

29 years ago * Makefile.in (install): Don't install in $(tooldir).
Ian Lance Taylor [Fri, 8 Sep 1995 18:33:23 +0000 (18:33 +0000)]
* Makefile.in (install): Don't install in $(tooldir).

29 years ago * configure.in: Define CC_FOR_BUILD. Don't call AC_PROG_INSTALL.
Ian Lance Taylor [Fri, 8 Sep 1995 18:32:37 +0000 (18:32 +0000)]
* configure.in: Define CC_FOR_BUILD.  Don't call AC_PROG_INSTALL.
* configure: Rebuild.
* Makefile.in (INSTALL): Revert to using install.sh.
(INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
(INSTALL_XFORM, INSTALL_XFORM1): Restore.
(CC_FOR_BUILD): Restore.
(gencode): Build using $(CC_FOR_BUILD).
(install): Don't install in $(tooldir).

29 years ago * configure.in: Remove AC_PROG_INSTALL.
Ian Lance Taylor [Fri, 8 Sep 1995 18:29:22 +0000 (18:29 +0000)]
* configure.in: Remove AC_PROG_INSTALL.
* configure: Rebuild.
* Makefile.in (INSTALL): Revert to using install.sh.
(INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
(INSTALL_XFORM, INSTALL_XFORM1): Restore.
(mostlyclean): Make the same as clean, not distclean.
(clean): Remove config.log.
(install): Don't install in $(tooldir).

29 years ago * configure.in: Convert to use autoconf.
Ian Lance Taylor [Fri, 8 Sep 1995 18:07:02 +0000 (18:07 +0000)]
* configure.in: Convert to use autoconf.
* configure: New file, built by autoconf.
* acconfig.h: New file.
* config.in: New file, built by autoheader.
* Makefile.in: Various changes for new configure script.  Also:
(INSTALL): Go up two levels, not one.
(ALLOCA, MALLOC, OPCODES): Remove.
(gencode): Use $(CC_FOR_BUILD).
(case.o): Remove.
(run.o, interp.o): Depend upon config.h.
* interp.c: Include "config.h".  Don't include "sysdep.h".
Include <stdlib.h>, <time.h>, and <unistd.h> if they exist.
* run.c: Include "config.h".  Don't include "sysdep.h".  Include
<stdlib.h> if it exists.  Include "getopt.h".  Declare printf if
necessary.

29 years agomention new config.in file
Ian Lance Taylor [Fri, 8 Sep 1995 16:34:48 +0000 (16:34 +0000)]
mention new config.in file

29 years ago * configure.in: Call AC_CONFIG_HEADER. Don't try to use
Ian Lance Taylor [Fri, 8 Sep 1995 16:26:41 +0000 (16:26 +0000)]
* configure.in: Call AC_CONFIG_HEADER.  Don't try to use
bfd/hosts/*.h file or bfd/config/*.mh file.  Call AC_PROG_CC and
AC_PROG_RANLIB.  Substitute in values for CFLAGS, HDEFINES and AR.
Call AC_CHECK_HEADERS for stdlib.h and time.h.  Touch stamp.h if
creating config.h.
* configure: Rebuild.
* Makefile.in (AR): Define as @AR@.
(CC): New variable, defined as @CC@.
(CFLAGS): Define as @CFLAGS@.
(RANLIB): Define as @RANLIB@.
(HDEFINES, TDEFINES): New variables.
(@host_makefile_frag@): Remove.
(compile.o, run.o): Depend upon config.h.
(mostlyclean): Make the same as clean, not distclean.
(clean): Remove config.log.
(distclean): Remove config.h and stamp-h.
(Makefile): Don't depend upon @frags@.  Just rebuild Makefile when
invoking config.status.
(config.h, stamp-h): New targets.
* compile.c: Include "config.h".  Don't include <sys/times.h>.
Include <time.h> and <stdlib.h> if they exist.  Don't include
"sysdep.h".
(get_now): Remove unused local b.
* run.c: Include "config.h".  Include <stdlib.h> if it exists.
Don't include "sysdep.h".
* writecode.c: Don't include "bfd.h" or "sysdep.h".  Include
<stdio.h>.

29 years ago * configure.in: Only check for <sys/procfs.h> on a native system,
Ian Lance Taylor [Fri, 8 Sep 1995 15:50:29 +0000 (15:50 +0000)]
* configure.in: Only check for <sys/procfs.h> on a native system,
and make sure it defines prstatus_t.
* configure: Rebuild.