Ian Lance Taylor [Thu, 8 Aug 1996 16:29:04 +0000 (16:29 +0000)]
Thu Aug 8 12:27:52 1996 Klaus Kaempf <kkaempf@progis.de>
* makefile.vms: Add better support for DEC C compilation.
Add new macros as in Makefile.in.
Ian Lance Taylor [Thu, 8 Aug 1996 16:27:21 +0000 (16:27 +0000)]
Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
* evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
(evax_initialize): Remove evax_reloc_table.
(evax_close_and_cleanup): Ditto.
(reloc_nil): Ditto.
(alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
entries.
(evax_bfd_reloc_type_lookup): Ditto.
* evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
cooked_size == raw_size.
* evax-emh.c (_bfd_evax_register_filename): Remove.
* evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
* evax-misc.c (add_new_contents): Malloc section at full size.
(_bfd_save_evax_section): Memcpy section contents directly.
* evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
(evax_reloc_table): Remove.
* hosts/alphavms.h (O_ACCMODE): Define if needed.
* makefile.vms: Add better support for DEC C compilation
Add evax.h dependencies
* reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
(BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
(BFD_RELOC_ALPHA_BASEREG): Remove.
* bfd-in2.h, libbfd.h: Rebuild.
Ian Lance Taylor [Thu, 8 Aug 1996 16:20:25 +0000 (16:20 +0000)]
Thu Aug 8 12:18:59 1996 Klaus Kaempf <kkaempf@progis.de>
* make-all.com: Run config-a-gas.
* setup.com: Don't copy subdirectory files around.
Stu Grossman [Thu, 8 Aug 1996 15:23:01 +0000 (15:23 +0000)]
* archive.c (bsd_write_armap): Ifdef around calls to getuid and
getgid if _WIN32 is defined.
* opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
Stu Grossman [Thu, 8 Aug 1996 06:27:01 +0000 (06:27 +0000)]
* aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
include file.
* libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
isn't defined.
Stu Grossman [Thu, 8 Aug 1996 04:52:49 +0000 (04:52 +0000)]
* dbxread.c: Don't include param.h or sys/file.h.
* (dbx_symfile_read): Determine symfile_relocatable from bfd
flags instead of file extension. Also clean up a little bit.
Stu Grossman [Thu, 8 Aug 1996 02:50:22 +0000 (02:50 +0000)]
* dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
mdebugread.c os9kread.c source.c top.c utils.c: Don't
include param.h or sys/file.h (or unistd.h in some cases).
* defs.h exec.c inflow.c remote-array.c remote-e7000.c
sparcl-tdep.c terminal.h utils.c: Replace all occurances of
__WIN32__, WINGDB, WIN32, etc... with _WIN32.
* main.c: Remove #ifndef WINGDB around option processing. Fix
bug with passing argc==0 and argv==NULL to getopt.
* (main) Remove calls to access() before source_command. Let
soure_command handle access errors.
* maint.c (maintenance_dump_me): #ifdef out for _WIN32.
* symtab.c (operator_chars): Make this global for wingdb.
* top.c (disconnect): #ifdef out for _WIN32.
* (source_command): If got an error and from_tty, then call print
error, else just return quietly.
* utils.c (fatal_dump_core): Can't kill ourselves under windows.
Just exit.
* (pollquit notice_quit): #ifdef out stuff that doesn't exist
under windows.
Michael Meissner [Thu, 8 Aug 1996 00:17:48 +0000 (00:17 +0000)]
If HAVE_TERMOS_STRUCTURE is not defined, make sure HAVE_TCGETATTR is also not defined.
Fred Fish [Wed, 7 Aug 1996 22:38:24 +0000 (22:38 +0000)]
* gdb.base/list.exp (test_forward_search): Fix to handle very
long source line without overflowing expect's input buffer.
Ian Lance Taylor [Wed, 7 Aug 1996 22:20:39 +0000 (22:20 +0000)]
* ld-scripts/phdrs.exp: New test.
* ld-scripts/phdrs.s, ld-scripts/phdrs.t: New files.
Ian Lance Taylor [Wed, 7 Aug 1996 20:13:50 +0000 (20:13 +0000)]
* symbols.c (resolve_symbol_value): Handle addition or subtraction
by a constant before entering the main switch. Reject attempts to
apply an arithmetic function to non-absolute symbols, except for
the special case of subtraction of two symbols in the same
section.
Ian Lance Taylor [Wed, 7 Aug 1996 20:10:14 +0000 (20:10 +0000)]
* cpu-i386.c (i8086_arch): Architecture info for the i8086.
Tom Tromey [Wed, 7 Aug 1996 19:17:09 +0000 (19:17 +0000)]
* config/slite-gdb.exp (gdb_start): Use "full_buffer", not
"buffer_full".
* config/nind-gdb.exp (gdb_start): Use "full_buffer", not
"buffer_full".
* config/mips-gdb.exp (gdb_start): Use "full_buffer", not
"buffer_full".
* lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not
"buffer_full".
Michael Meissner [Wed, 7 Aug 1996 18:48:07 +0000 (18:48 +0000)]
Allow simulator to build on other machines than x86
Ian Lance Taylor [Wed, 7 Aug 1996 18:44:27 +0000 (18:44 +0000)]
Wed Aug 7 14:43:51 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* core.c (read_function_mappings): Cast xmalloc return.
Ian Lance Taylor [Wed, 7 Aug 1996 18:43:48 +0000 (18:43 +0000)]
Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, config.in: Rebuild.
* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
* ldmain.c (sbrk): Declare if HAVE_SBRK and
NEED_DECLARATION_SBRK.
Ian Lance Taylor [Wed, 7 Aug 1996 18:30:39 +0000 (18:30 +0000)]
Wed Aug 7 14:27:33 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, config.in: Rebuild.
* bucomm.h (strstr): Declare if NEED_DECLARATION_STRSTR.
(sbrk): Declare if HAVE_SBRK and NEED_DECLARATION_SBRK.
Ian Lance Taylor [Wed, 7 Aug 1996 18:23:08 +0000 (18:23 +0000)]
Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or
<strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr
and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, conf.in: Rebuild.
* as.h: Only include <strings.h> if HAVE_STRINGS_H.
(strstr): Declare if NEED_DECLARATION_STRSTR.
* as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
Ian Lance Taylor [Wed, 7 Aug 1996 18:17:22 +0000 (18:17 +0000)]
Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Call BFD_NEEDED_DECLARATION on strstr and
realloc.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_REALLOC): New macro.
* configure, config.in: Rebuild.
* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
(realloc): Declare if NEED_DECLARATION_REALLOC.
Fred Fish [Wed, 7 Aug 1996 18:14:56 +0000 (18:14 +0000)]
* configure.in (configdirs): Add gdb.threads.
* configure: Regenerated with autoconf.
* gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
* gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
* gdb.threads/configure: New, generated with autoconf.
Ian Lance Taylor [Wed, 7 Aug 1996 17:17:33 +0000 (17:17 +0000)]
* config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
not to more than a 16 byte boundary.
Jeff Law [Wed, 7 Aug 1996 16:32:44 +0000 (16:32 +0000)]
* config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
structures > 4 bytes in size.
Fixing more structure return problems.
Ian Lance Taylor [Wed, 7 Aug 1996 16:14:09 +0000 (16:14 +0000)]
Based on patches from Eric Valette <valette@crf.canon.fr>:
* elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
(elf_howto_table): Add entries for new relocs.
(elf_i386_reloc_type_lookup): Handle new relocs.
(elf_i386_info_to_howto): Just call abort.
(elf_i386_info_to_howto_rel): Check that the reloc type is valid.
(elf_i386_relocate_section): Likewise.
Jeff Law [Wed, 7 Aug 1996 16:05:19 +0000 (16:05 +0000)]
* valops.c (call_function_by_hand): Handle aligning stacks that
grow up correctly.
* config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
(STACK_ALIGN): Define.
* hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
alignment on structs/unions.
Fixing assorted structure passing/return problems reported by the net.
Ian Lance Taylor [Wed, 7 Aug 1996 15:56:13 +0000 (15:56 +0000)]
* i386-dis.c (print_insn_i386): Actually return the correct value.
(ONE, OP_ONE): #ifdef out; not used.
Ian Lance Taylor [Wed, 7 Aug 1996 15:54:33 +0000 (15:54 +0000)]
* config/tc-i386.c (tc_gen_reloc): Accept all relocs; remove
#ifndef OBJ_ELF lines. From Eric Valette <valette@crf.canon.fr>.
(tc_gen_reloc): If out of memory call as_fatal rather than
assert. If no howto found, call as_bad_where rather than
as_fatal. Change the error message slightly. Set howto to a
non-NULL value in order to keep going.
Martin Hunt [Tue, 6 Aug 1996 20:01:07 +0000 (20:01 +0000)]
Tue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tc-d10v.c: Added code to support 32-bit fixups for stabs.
Martin Hunt [Tue, 6 Aug 1996 20:00:50 +0000 (20:00 +0000)]
Tue Aug 6 12:58:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/tc-d10v.c: Added code to support 32-bit fixups for stabs.
Martin Hunt [Tue, 6 Aug 1996 19:56:21 +0000 (19:56 +0000)]
Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
Fred Fish [Tue, 6 Aug 1996 19:20:25 +0000 (19:20 +0000)]
* lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.
Jeff Law [Tue, 6 Aug 1996 17:18:10 +0000 (17:18 +0000)]
* gas/h8300/misch.s: Reenable "eepmov.w" test.
* gas/h8300/miscs.s: Likewise.
* gas/h8300/h8300.exp: Check for correct assembly of "eepmov.w"
on the H8/300H and H8/S. Don't expect it to fail.
Jeff Law [Tue, 6 Aug 1996 17:17:34 +0000 (17:17 +0000)]
* config/tc-h8300.c (get_specific): New operand "size" derived
from ".b", ".w" and ".l" extensions. All callers changed. If
the base instruction has no operands, then use the size to
determine which specific instruction to use.
Fixing eepmov instructions.
Michael Meissner [Tue, 6 Aug 1996 15:55:32 +0000 (15:55 +0000)]
7/30 release from Andrew
Fred Fish [Tue, 6 Aug 1996 01:18:18 +0000 (01:18 +0000)]
* gdb.base/signals.exp (test_handle_all_print): Test separately for
each signal's status in the output of "handle all print".
* lib/gdb.exp (gdb_test): Document that the pattern must NOT include
the \r\n sequence that immediately precedes the gdb prompt.
* gdb.base/a1-selftest.exp: Save original timeout and restore
after test.
Ian Lance Taylor [Mon, 5 Aug 1996 20:45:55 +0000 (20:45 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
only get the LMA from the phdr if they are in the same part of the
file.
Ian Lance Taylor [Mon, 5 Aug 1996 20:37:52 +0000 (20:37 +0000)]
* ldlex.l: Recognize OVERLAY.
* ldgram.y: Add section_phdr field to %union.
(section): Handle phdr_opt result. Add OVERLAY case.
(opt_exp_without_type): New nonterminal.
(phdr_opt): Return list of phdrs.
(overlay_section): New nonterminal.
* ldlang.c: Include <ctype.h>.
(lang_leave_output_section_statement): Add phdrs parameter.
Change all callers.
(lang_section_in_phdr): Remove.
(overlay_vma, overlay_lmn, overlay_max): New static variables.
(struct overlay_list): Define.
(overlay_list): New static variable.
(lang_enter_overlay, lang_enter_overlay_section): New functions.
(lang_leave_overlay_section, lang_leave_overlay): New functions.
* ldlang.h (lang_leave_output_section_statement): Update
declaration for new parameter.
(lang_section_in_phdr): Don't declare.
(lang_enter_overlay, lang_enter_overlay_section): Declare.
(lang_leave_overlay_section, lang_leave_overlay): Declare.
* ld.texinfo (Overlays): New node under SECTIONS, documenting
overlays.
* ldlex.l: Recognize MAX and MIN.
* ldgram.y (MAX, MIN): New terminals.
(exp): Recognize MAX and MIN.
* ldexp.c (fold_binary): Handle MAX and MIN.
* ld.texinfo (Arithmetic Functions): Document MAX and MIN.
* ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
index entries.
* ldgram.y (SIZEOF, ADDR): Do not specify type.
Ian Lance Taylor [Mon, 5 Aug 1996 20:28:39 +0000 (20:28 +0000)]
* ldcref.c (check_nocrossref): Skip symbols with no output
sections.
Ian Lance Taylor [Mon, 5 Aug 1996 18:21:50 +0000 (18:21 +0000)]
* config/tc-i960.c (mem_fmt): Call parse_expr before emit.
PR 10274.
Ian Lance Taylor [Mon, 5 Aug 1996 17:45:58 +0000 (17:45 +0000)]
* elf.c (map_sections_to_segments): Rewrite tests for starting a
new segment to make them more comprehensible. If the relationship
between the LMA and the VMA changed, start a new segment. Don't
check dynsec when deciding whether to start a new segment for a
writeable section; -N will now handle this.
Ian Lance Taylor [Mon, 5 Aug 1996 02:29:34 +0000 (02:29 +0000)]
* ld-scripts/crossref.exp: On a29k targets, use --defsym to define
V_SPILL and V_FILL.
Fred Fish [Sun, 4 Aug 1996 23:40:18 +0000 (23:40 +0000)]
* config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
which is the documented type under at least AIX 3 and AIX 4.
Jeff Law [Sun, 4 Aug 1996 16:21:16 +0000 (16:21 +0000)]
* gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
symbol.
Fred Fish [Sat, 3 Aug 1996 11:27:21 +0000 (11:27 +0000)]
* config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Define NO_MMCHECK to
not install consistency checks.
Fred Fish [Sat, 3 Aug 1996 11:18:20 +0000 (11:18 +0000)]
* config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
xm-alphaosf.h.
Martin Hunt [Sat, 3 Aug 1996 00:49:00 +0000 (00:49 +0000)]
Fri Aug 2 17:47:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v-opc.c (d10v_operands): Added 2 accumulator sub instructions.
Changed subi operand type to treat 0 as 16.
Martin Hunt [Sat, 3 Aug 1996 00:45:58 +0000 (00:45 +0000)]
Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v_sim.h, simops.c: Snapshot
Brendan Kehoe [Sat, 3 Aug 1996 00:38:50 +0000 (00:38 +0000)]
* config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.
Ian Lance Taylor [Fri, 2 Aug 1996 19:01:58 +0000 (19:01 +0000)]
* ldgram.y (LOADADDR): New terminal.
(exp): Handle LOADADDR.
* ldlex.l: Recognize LOADADDR.
* ldexp.c (exp_print_token): Add LOADADDR.
(fold_name): Implement LOADADDR.
* ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
* ld.texinfo (Arithmetic Functions): Document LOADADDR.
Ian Lance Taylor [Fri, 2 Aug 1996 15:30:09 +0000 (15:30 +0000)]
* config/tc-mips.c (md_section_align): Don't change addr if
OBJ_ELF.
PR 10181.
Jeff Law [Fri, 2 Aug 1996 05:52:41 +0000 (05:52 +0000)]
* config/tc-hppa.c: Revert yesterday's changes.
Trying another approach to the EH problem.
Jeff Law [Fri, 2 Aug 1996 04:50:08 +0000 (04:50 +0000)]
* libhppa.h: Remove "esel" changes. Not the right approach.
* som.c: Corresponding changes.
(som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
which don't have a SOM symbol type associated with them.
Reverses a 1994 change.
More PA EH tweakage (to get exception handling tables properly relocated
in shared libraries).
Tom Tromey [Fri, 2 Aug 1996 02:43:27 +0000 (02:43 +0000)]
changes for new tcl/tk:
* gdbtk.c (mainWindow): Deleted.
(cleanup_init): Don't destroy main window.
(gdbtk_init): Main window now created by Tk_Init.
* configure.in: Most X checks now handled automatically by Tk.
Use new macros to find Tcl/Tk.
* aclocal.m4: New version for new Tcl/Tk; from Don Libes.
* config.in, configure: Regenerated.
* Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
Martin Hunt [Fri, 2 Aug 1996 00:23:31 +0000 (00:23 +0000)]
Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
gencode.c, interp.c, simops.c: Created.
Martin Hunt [Fri, 2 Aug 1996 00:22:58 +0000 (00:22 +0000)]
Thu Aug 1 17:08:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* configure.in (d10v-*-*): Added D10V simulator.
Ian Lance Taylor [Thu, 1 Aug 1996 18:33:47 +0000 (18:33 +0000)]
rework crossref test
Ian Lance Taylor [Thu, 1 Aug 1996 18:12:22 +0000 (18:12 +0000)]
* ld-scripts/crossref.exp: New test.
* ld-scripts/cross1.c, ld-scripts/cross2.c: New files.
* ld-scripts/crossref.t: New file.
Ian Lance Taylor [Thu, 1 Aug 1996 17:35:49 +0000 (17:35 +0000)]
* ld.h (check_nocrossrefs): Declare.
* ldlang.h (struct lang_nocrossref): Define.
(struct lang_nocrossrefs): Define.
(nocrossref_list): Declare.
(lang_add_nocrossref): Declare.
* ldlex.l: Recognize NOCROSSREFS keyword.
* ldgram.y (%union): Add nocrossref field.
(NOCROSSREFS): New terminal.
(ifile_p1): Recognize NOCROSSREFS.
(nocrossref_list): New nonterminal.
* ldlang.c (nocrossref_list): Define.
(lang_add_nocrossref): New function.
* ldmain.c (main): If nocrossref_list is not NULL, call
check_nocrossrefs.
(warning_callback): Free symbols if there is no place to store
them.
(notice): Call add_cref if nocrossref_list is not NULL.
* ldcref.c: Include "ldexp.h" and "ldlang.h".
(check_nocrossrefs): New function.
(check_nocrossref): New static function.
(struct check_refs_info): Define.
(check_refs, check_reloc_refs): New static functions.
* Makefile.in: Rebuild dependencies.
* ld.texinfo (Option Commands): Document NOCROSSREFS.
Fred Fish [Thu, 1 Aug 1996 17:30:37 +0000 (17:30 +0000)]
* config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
this, define when contents are included.
(mips_read_processor_type): Add prototype.
* config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
* mdebugread.c (ecoff_relocate_efi): Add prototype.
(fixup_sigtramp): Only needed when TM_MIPS_H is defined.
Ian Lance Taylor [Thu, 1 Aug 1996 17:10:52 +0000 (17:10 +0000)]
* ld.texinfo (Section Placement): Improve the wording of the
wildcard documentation. Mention that wildcards are only searched
for on the command line, not in the file system.
Ian Lance Taylor [Thu, 1 Aug 1996 17:00:24 +0000 (17:00 +0000)]
* emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
definition of lib_path inside condition where it is used.
Jason Molenda [Thu, 1 Aug 1996 07:13:18 +0000 (07:13 +0000)]
* Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
Fred Fish [Thu, 1 Aug 1996 05:25:23 +0000 (05:25 +0000)]
* rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
(vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
(fetch_core_registers): Add prototype.
(vmap_symtab): Ditto.
(objfile_symbol_add): Ditto.
(add_vmap): Ditto.
(vmap_ldinfo): Ditto.
(vmap_exec): Ditto.
Martin Hunt [Wed, 31 Jul 1996 22:00:36 +0000 (22:00 +0000)]
Wed Jul 31 14:46:11 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tc-d10v.c: Disable range checking on 16-bit values.
Martin Hunt [Wed, 31 Jul 1996 22:00:21 +0000 (22:00 +0000)]
Wed Jul 31 14:46:11 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/tc-d10v.c: Disable range checking on 16-bit values.
Ian Lance Taylor [Wed, 31 Jul 1996 20:29:00 +0000 (20:29 +0000)]
* config/tc-m68k.c (m68k_ip): Set ok_arch for every instruction,
not just the ones that don't match.
Ian Lance Taylor [Wed, 31 Jul 1996 20:22:50 +0000 (20:22 +0000)]
* m68k-opc.c: Add cpushl for the mcf5200. From Ken Rose
<rose@netcom.com>.
Martin Hunt [Wed, 31 Jul 1996 20:19:08 +0000 (20:19 +0000)]
Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* emulparams/d10velf.sh: Now works with elf.sc.
Ian Lance Taylor [Wed, 31 Jul 1996 19:58:05 +0000 (19:58 +0000)]
Make ld -N more reasonable for ELF:
* elf.c (map_sections_to_segments): If D_PAGED is not set, set
phdr_in_section to false, and always use a single load segment.
(elf_sort_sections): Sort sections by LMA after VMA.
(assign_file_positions_for_segments): If D_PAGED is not set, don't
align to maxpagesize.
(assign_file_positions_except_relocs): Likewise.
* elfcode.h (elf_object_p): If a section is loaded but not page
aligned, clear D_PAGED.
Martin Hunt [Wed, 31 Jul 1996 18:53:46 +0000 (18:53 +0000)]
Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10velf.sh (SCRIPT_NAME): Change to vanilla.
Martin Hunt [Wed, 31 Jul 1996 18:53:31 +0000 (18:53 +0000)]
Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
Martin Hunt [Wed, 31 Jul 1996 18:50:12 +0000 (18:50 +0000)]
Wed Jul 31 11:45:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tc-d10v.c: Fixed bugs in short relocs and range checking.
Martin Hunt [Wed, 31 Jul 1996 18:49:56 +0000 (18:49 +0000)]
Wed Jul 31 11:45:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/tc-d10v.c: Fixed bugs in short relocs and range checking.
David Edelsohn [Wed, 31 Jul 1996 17:58:42 +0000 (17:58 +0000)]
* gas/sparc/asi.s: Update ASI_AS_IF_USER_{PRIMARY,SECONDARY}_LITTLE.
Ian Lance Taylor [Wed, 31 Jul 1996 17:54:04 +0000 (17:54 +0000)]
mention ColdFire support
Jackie Smith Cashion [Wed, 31 Jul 1996 15:00:18 +0000 (15:00 +0000)]
"testsuite/gas/arm/arm7t.s" and "testsuite/gas/arm/arm7t.d" added.
Jackie Smith Cashion [Wed, 31 Jul 1996 14:57:57 +0000 (14:57 +0000)]
oWed Jul 31 15:41:42 1996 James G. Smith <jsmith@cygnus.co.uk>
* config/tc-arm.c: Changed INSN_SIZE to variable insn_size, as
pre-cursor to adding Thumb support. Also added cpu_variant flag
information to each of the asm_flg structures.
(md_parse_option): Updated ARM7 parsing to allow 't' for
thumb/halfword support, aswell as 'm' for long multiply.
(md_show_usage): Updated help message.
(md_assemble): Check that instruction flags are applicated to the
current cpu variant.
(md_apply_fix3, tc_gen_reloc): Add BFD_RELOC_ARM_OFFSET_IMM8 and
BFD_RELOC_ARM_HWLITERAL relocation support for new halfword and
signextension instructions.
(do_ldst): Generate halfword and signextension variants if
mnemonic flags match.
(ldst_extend): Do not allow shifts in the offset field of halfword
or signextension instructions.
(validate_offset_imm): Provide check on halfword and signextension
immediate range.
(add_to_lit_pool): Merge identical literal pool values.
Wed Jul 31 15:55:12 1996 James G. Smith <jsmith@cygnus.co.uk>
* gas/arm/arm7t.s: Added.
* gas/arm/arm7t.d: Added.
* gas/arm/arm.exp: Updated to run the new test.
Jackie Smith Cashion [Wed, 31 Jul 1996 14:34:21 +0000 (14:34 +0000)]
Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>
* reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
Added, for internal use by the ARM gas.
* libbfd.h: Rebuilt
* bfd-in2.h: Rebuilt
Jackie Smith Cashion [Wed, 31 Jul 1996 13:43:51 +0000 (13:43 +0000)]
Wed Jul 31 14:39:27 1996 James G. Smith <jsmith@cygnus.co.uk>
* arm-opc.h: (arm_opcodes): Added halfword and sign-extension
memory transfer instructions. Add new format string entries %h and %s.
* arm-dis.c: (print_insn_arm): Provide decoding of the new
formats %h and %s.
Stan Shebs [Wed, 31 Jul 1996 01:07:30 +0000 (01:07 +0000)]
* stabsread.c (get_substring): Declare second arg as int.
* remote-es.c: Include gdb_string.h after defs.h.
Brendan Kehoe [Wed, 31 Jul 1996 00:51:54 +0000 (00:51 +0000)]
* configure.in (*-*-ose): Remove exclusion of libgloss for this
target, it now compiles correctly.
Ian Lance Taylor [Tue, 30 Jul 1996 22:56:46 +0000 (22:56 +0000)]
* ldlang.c (lang_size_sections): Add the section VMA to the result
value when computing the address of a section.
Jeff Law [Tue, 30 Jul 1996 20:30:49 +0000 (20:30 +0000)]
* config/tc-hppa.c (selector_table): Add 'E' selector.
(cons_fix_new_hppa): Don't coke on e_esel.
(tc_gen_reloc, SOM version): Handle R_COMP2 when used
to help generate exception handling tables.
(md_apply_fix): Don't try to apply fixups with an e_esel
selector.
(hppa_fix_adjustable): Fixups with e_esel selectors
are not adjustable.
Another stab at EH on the PA.
Jeff Law [Tue, 30 Jul 1996 20:16:27 +0000 (20:16 +0000)]
* libhppa.h (R_HPPA_ESEL): New field selector.
(e_esel): Similarly.
* som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
(som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
Making another stab at EH support on the PA.
Ian Lance Taylor [Tue, 30 Jul 1996 20:05:42 +0000 (20:05 +0000)]
update copyright
Ian Lance Taylor [Tue, 30 Jul 1996 20:02:02 +0000 (20:02 +0000)]
* config/tc-sparc.c (md_pseudo_table): Add 2byte, 4byte, and 8byte
pseudo-ops.
Ian Lance Taylor [Tue, 30 Jul 1996 18:49:54 +0000 (18:49 +0000)]
* ld.h (args_type): Add cref field.
* lexsup.c (parse_args): Set command_line.cref.
* ldmain.c (main): Check command_line.cref rather than
link_info.notice_all.
(notice): Likewise.
Ian Lance Taylor [Tue, 30 Jul 1996 18:48:25 +0000 (18:48 +0000)]
* ldcref.c (output_one_cref): Don't crash if a symbol is defined
in a section without an owner.
Ian Lance Taylor [Tue, 30 Jul 1996 17:39:33 +0000 (17:39 +0000)]
* xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
archive search before looking for stripped dynamic objects.
PR 10187.
Fred Fish [Tue, 30 Jul 1996 07:24:22 +0000 (07:24 +0000)]
* rs6000-tdep.c (push_arguments): Remove unused variable "pc".
(branch_dest): Remove unused variable "offset".
(pop_dummy_frame): Add prototype and make static.
(push_arguments): Guard against using len uninitialized.
(push_arguments): Guard against using arg uninitialized.
(frame_saved_pc): Remove unused variable "frameless".
(free_loadinfo): Ifdef out unused function.
Fred Fish [Tue, 30 Jul 1996 06:50:23 +0000 (06:50 +0000)]
* xcoffread.c (compare_lte): Change prototype and function to
be correct type for passing to qsort.
(add_stab_to_list): Ifdef out unused function and prototype.
(compare_lte): Add prototype
(arrange_linetable): Ditto.
(record_include_begin): Ditto.
(record_include_end): Ditto.
(process_linenos): Ditto.
(xcoff_next_symbol_text): Ditto.
(scan_xcoff_symtab): Ditto.
(xcoff_initial_scan): Ditto.
Fred Fish [Tue, 30 Jul 1996 06:15:13 +0000 (06:15 +0000)]
* mips-tdep.c (mips_read_processor_type): Add parens around
bitwise-and operands in comparison; previous expression always
evaluated to 0 because of equality comparison of two constants.
Fred Fish [Tue, 30 Jul 1996 05:12:07 +0000 (05:12 +0000)]
* rs6000-tdep.c (skip_prologue): Add missing parens around
operands of logical-or so that first operand does not bind
to previous logical-and.
Fred Fish [Tue, 30 Jul 1996 04:26:25 +0000 (04:26 +0000)]
* configure.in: Expand "long long" test to include code that triggers
known problem on HPUX with native compiler.
(configure): Regenerated.
Jeff Law [Tue, 30 Jul 1996 00:13:14 +0000 (00:13 +0000)]
* somsolib.c (som_solib_create_inferior_hook): Don't
warn if __d_pid can't be found.
Ian Lance Taylor [Mon, 29 Jul 1996 21:33:26 +0000 (21:33 +0000)]
* fnmatch.h, fnmatch.c: New files.
* ldlex.l: Remove unused definition of FILENAME. Add definition
of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
NAME.
* ldgram.y (file_NAME_list): Accept '*' and '?' specially.
(input_section_spec): Accept '?' specially.
(statement): Change exp to mustbe_exp in length and FILL cases.
(section): Call ldlex_script before section statements, and call
ldlex_popstate after them.
* ldlang.c: Include "fnmatch.h".
(wildcardp): New static function.
(wild_section): Permit the section name to be a wildcard.
(wild_file): New static function, broken out of wild.
(wild): Call wild_file. Permit the file name to be a wildcard.
(open_input_bfds): Don't call lookup_name for a wildcard pattern.
* Makefile.in: Rebuild dependencies.
(CFILES): Add fnmatch.c.
(HFILES): Add fnmatch.h.
(OFILES): Add fnmatch.o.
* ld.texinfo: Document that file and section names can now be
wildcard patterns.
* ldlang.c (lang_place_orphans): Correct condition: place a common
section if not relocateable or if common definitions are forced.
Fred Fish [Sun, 28 Jul 1996 21:41:09 +0000 (21:41 +0000)]
* config/mips/tm-mips.h (struct frame_info): Forward decl.
(struct type): Ditto.
(struct value): Ditto.
* config/mips/tm-mips.h (sigtramp_address): Move extern decl
from mips-tdep.c to here.
(sigtramp_end): Ditto.
(fixup_sigtramp): Ditto.
* config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
(mips_frame_chain): Ditto.
(mips_step_skips_delay): Ditto.
(mips_frame_saved_pc): Ditto.
(mips_find_saved_regs): Ditto.
(mips_frame_num_args): Ditto.
(mips_pop_frame): Ditto.
(mips_extract_return_value): Ditto.
(mips_store_return_value): Ditto.
(mips_push_dummy_frame): Ditto.
(mips_push_arguments): Ditto.
(mips_do_registers_info): Ditto.
(ecoff_relocate_efi): Ditto.
(ecoff_relocate_efi): Ditto.
* irix4-nat.c (fetch_core_registers): Add prototype.
* mips-tdep.c (read_next_frame_reg): Add prototype
(heuristic_proc_start): Ditto.
(heuristic_proc_desc): Ditto.
(mips_print_register): Ditto.
* config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
(procfs_stopped_by_watchpoint): Ditto.
* config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
(procfs_stopped_by_watchpoint): Ditto.
* config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
(struct symbol): Add forward decl for prototype.
* breakpoint.c (internal_breakpoint_number): Only needed if
GET_LONGJMP_TARGET or SOLIB_ADD is defined.
* objfiles.c (ecoff_relocate_efi): Remove prototype.
Fred Fish [Sun, 28 Jul 1996 06:32:48 +0000 (06:32 +0000)]
* configure.in: Add test for "long long" support.
* configure: Regenerate with autoconf.
* acconfig.h: Add CC_HAS_LONG_LONG
* config.in: Regenerate with autoheader.
* config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
* config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
* config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
* config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
* config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
(PRINTF_HAS_LONG_LONG): Remove.
(FORCE_LONG_LONG): Remove.
* config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
* config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
(PRINTF_HAS_LONG_LONG): Remove.
* config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
(PRINTF_HAS_LONG_LONG): Remove.
* config/pa/tm-hppa.h (GET_FIELD): Put parens around
subtraction inside shift. Put parens around subtraction
in operand of bitwise and.
(struct frame_info): Forward declare
if __STDC__ defined.
(frame_saved_regs): Ditto.
(struct value): Ditto.
(struct type): Ditto.
(struct inferior_status): Ditto.
(init_extra_frame_info): Add prototype.
(skip_prologue): Ditto.
(frameless_function_invocation): Ditto.
(frame_chain): Ditto.
(frame_chain_valid): Ditto.
(saved_pc_after_call): Ditto.
(hppa_fix_call_dummy): Ditto.
(hppa_push_arguments): Ditto.
(pa_do_registers_info): Ditto.
(in_solib_call_trampoline): Ditto.
(in_solib_return_trampoline): Ditto.
(push_dummy_frame): Ditto.
* convex-tdep.c (decout): Use print_longest rather than
fprintf_filtered.
* defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
CC_HAS_LONG_LONG.
(INT_MIN): Fix so it works correctly when assigned to a long long.
* valprint.c (longest_to_int): Rewrite to remove dependence
on INT_MIN and INT_MAX.
(print_longest): Rewrite the code that falls back to synthesized
hex output when LONGEST value is not representable as in a long and
printf doesn't support printing long longs.
* ch-valprint.c (chill_val_print): Cast 2nd arg of
chill_print_type_scalar to LONGEST.
chill_print_type_scalar): Make static and add prototype.
* hppa-tdep.c (get_field): Ifdef out unused function.
(set_field): Ditto.
(extract_3): Ditto.
(extract_5_store): Ditto.
(extract_11): Ditto.
(extract_12): Ditto.
(deposit_17): Ditto.
(extract_14): Convert to static and add prototype.
(deposit_14): Ditto.
(extract_21): Ditto.
(deposit_21): Ditto.
(extract_17): Ditto.
(extract_5r_store): Ditto.
(extract_5R_store): Ditto.
(extract_5_load): Ditto.
(find_proc_framesize): Ditto.
(find_dummy_frame_regs): Ditto.
(sign_extend): Ditto.
(find_unwind_entry): Add prototype.
(find_return_regnum): Ditto.
(unwind_command): Ditto.
(find_dummy_frame_regs): Add parens around subtraction in operand
of bitwise-and.
(skip_prologue): Add parens around operands of logical-and inside
operand of logical-or.
(sign_extend): Add parens around operands of subtraction inside
operand of shift.
(low_sign_extend): Ditto.
* top.c (filename_completer): Convert old style decl of
filename_completion_function into prototype.
* f-lang.c (patch_common_entries): Ifdef out unused function.
* stabsread.c (read_cfront_baseclasses): Remove unused local
variable "msg_noterm".
(resolve_cfront_continuation): Remove unused local variable "fip".
(read_type): Remove unused variable xtypenums.
(read_cfront_static_fields): Remove unused variable "i".
(read_cfront_static_fields): Remove unused variable "nfields".
(read_cfront_member_functions): Add missing comment terminator.
(read_cfront_static_fields): Return 1 rather than random value.
(read_cfront_baseclasses): Ditto.
(read_cfront_baseclasses): Ditto.
(read_cfront_baseclasses): Ditto.
* somsolib.c (som_solib_create_inferior_hook): Remove unused
variable "u".
(som_solib_create_inferior_hook): Remove unused variable
shadow_contents.
(language.h): Add for needed prototypes.
(som_solib_sharedlibrary_command): Add prototype.
* hpread.c: (hpread_read_array_type): Add prototype.
* somread.c (hpread_build_pysmtabs): Add prototype.
(hpread_symfile_finish): Ditto.
(hpread_symfile_init): Ditto.
* hppah-nat.c (fetch_register): Convert old style decl
to prototype.
(gdbcore.h): Include for needed prototypes.
(fetch_register): Remove unused variable "mess".
* remote-pa.c (get_offsets): Ifdef out unused function.
(remote_start_remote): Remove unused variable "timeout".
(boot_board): Add prototype.
(reaad_frame): Add prototype.
(getpkt): Remove unused variable "bp".
(remote_kill): Add prototype.
(remote_mourn): Add prototype.
(remote_insert_breakpoint): Add prototype.
(remote_remove_breakpoint): Add prototype.
* valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
* infcmd.c (do_registers_info): Only need prototype if
DO_REGISTERS_INFO is not defined.
(breakpoint_auto_delete_contents): Only need if
CALL_DUMMY_BREAKPOINT_OFFSET is defined.
Stan Shebs [Sat, 27 Jul 1996 22:12:57 +0000 (22:12 +0000)]
* mpw-config.in: Generate Mac include for elf/dwarf2.h.
Fred Fish [Sat, 27 Jul 1996 17:03:14 +0000 (17:03 +0000)]
* xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
(END_PSYMTAB): Ditto.
(scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
Ian Lance Taylor [Fri, 26 Jul 1996 21:53:08 +0000 (21:53 +0000)]
* xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
symbol a warning rather than an error.
PR 10208.