binutils-gdb.git
30 years ago * gprof.c (getsymtab): Change nosyms to long. Rename
Ian Lance Taylor [Wed, 30 Mar 1994 22:06:39 +0000 (22:06 +0000)]
* gprof.c (getsymtab): Change nosyms to long.  Rename
get_symtab_upper_bound to bfd_get_symtab_upper_bound.  Check for
errors from bfd_get_symtab_upper_bound and
bfd_canonicalize_symtab.

30 years ago Update for recent BFD changes to symbol and reloc reading. Rename
Ian Lance Taylor [Wed, 30 Mar 1994 22:06:17 +0000 (22:06 +0000)]
Update for recent BFD changes to symbol and reloc reading.  Rename
all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
Also:
* coffgrok.c (symcount): Change to long.
(do_sections_p1): Check for error return from
bfd_get_reloc_upper_bound.  Change relcount to long, and check for
error from bfd_canonicalize_reloc.
(coff_grok): Change storage to long.  Check for error from
bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
* nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
i to long.  Check for error from bfd_get_symtab_upper_bound and
bfd_canonicalize_symtab.
(copy_sections): Change reloc_size and reloc_count to long.  Check
for error from bfd_get_reloc_upper_bound and
bfd_canonicalize_reloc.
(mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
reloc_count_ptr argument to long *.  Make corresponding changes to
variables loaded from *reloc_count_ptr.
* nm.c (display_rel_file): Change storage and symcount to long.
Check for errors from bfd_get_symtab_upper_bound and
bfd_canonicalize_symtab.
* objcopy.c (filter_symbols): Change symcount, src_count and
dst_count to long.
(copy_object): Change symcount to long.  Pass another argument to
fprintf.  Check for errors from bfd_get_symtab_upper_bound and
bfd_canonicalize_symtab.
(copy_section): Change relcount to long.  Check for errors from
bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
(mark_symbols_used_in_relocations): Change relcount and i to long.
Check for errors form bfd_get_reloc_upper_bound and
bfd_canonicalize_reloc.
* objdump.c (storage): Remove global variable.
(symcount): Changed to long.
(slurp_symtab): New local variable storage.  Check for errors from
bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
(remove_useless_symbols): Change return value and count to long.
(objdump_print_address): Change min, max, thisplace and i to long.
(disassemble_data): Change i to long.
(dump_symbols): Change count to long.
(dump_relocs): Change relcount to long.  Check for errors from
bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
(display_info_table): Add casts when passing LONGEST_ARCH for
printf %* argument.

30 years ago * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
Ian Lance Taylor [Wed, 30 Mar 1994 22:05:05 +0000 (22:05 +0000)]
* ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
changes: get_symtab_upper_bound renamed and returns long,
bfd_canonicalize_symtab returns long, check for error indications.

30 years ago * xcoffread.c (xcoff_next_symbol_text): New function.
Jim Kingdon [Wed, 30 Mar 1994 21:48:14 +0000 (21:48 +0000)]
* xcoffread.c (xcoff_next_symbol_text): New function.
(read_xcoff_symtab): Set next_symbol_text_func to it.
Move raw_symbol outside of read_xcoff_symtab.

30 years ago* remote.c (getpkt): Remove unused "out" label.
Jim Kingdon [Wed, 30 Mar 1994 19:44:53 +0000 (19:44 +0000)]
* remote.c (getpkt): Remove unused "out" label.

30 years ago * breakpoint.c (print_it_normal): Allow GDB to notify the user
Jeff Law [Wed, 30 Mar 1994 17:17:01 +0000 (17:17 +0000)]
    * breakpoint.c (print_it_normal): Allow GDB to notify the user
        about more than one watchpoint being triggered.

30 years ago* hosts/dpx2.h: Define POSIX_UTIME.
Jim Kingdon [Wed, 30 Mar 1994 16:33:45 +0000 (16:33 +0000)]
* hosts/dpx2.h: Define POSIX_UTIME.

30 years ago* config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
Jim Kingdon [Wed, 30 Mar 1994 16:25:08 +0000 (16:25 +0000)]
* config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.

30 years ago * blockframe.c (find_pc_partial_function): mst_file_text
Peter Schauer [Wed, 30 Mar 1994 10:29:36 +0000 (10:29 +0000)]
* blockframe.c (find_pc_partial_function):  mst_file_text
symbols do not live in the shared library transfer table.

30 years ago * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
Peter Schauer [Wed, 30 Mar 1994 10:00:00 +0000 (10:00 +0000)]
* config/i386/tm-symmetry.h:  Clean up, it is now only used for Dynix.
Remove all conditionals and definitions for ptx.
I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
Fix addresses of floating point registers in REGISTER_U_ADDR.
STORE_STRUCT_RETURN now handles cc and gcc conventions.
FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
signal trampoline code work.
* config/i386/xm-symmetry.h:  Clean up, it is now only used for Dynix.
Remove all conditionals and definitions for ptx.
Remove KDB definitions.

30 years ago * ch-exp.y (decode_integer_value, match_character_literal,
Peter Schauer [Wed, 30 Mar 1994 09:57:08 +0000 (09:57 +0000)]
* ch-exp.y (decode_integer_value, match_character_literal,
match_bitstring_literal):  Guard tolower calls with isupper,
tolower on old BSD systems blindly subtracts a constant.
* dbxread.c (read_ofile_symtab):  Check for __gnu_compiled_* as
well when determining the producer of the object file.
* mdebugread.c (has_opaque_xref):  New function to check for
cross reference to an opaque aggregate.
* mdebugread.c (parse_symbol, parse_partial_symbols):  Do not
enter typedefs to opaque aggregates into the symbol tables.
* mdebugread.c (parse_external):  Remove skip_procedures argument,
it has always been 1.  Remove code that handled stProc symbols,
it was never executed and was wrong, as the index of a
stProc symbol points to the local symbol table and not to the
auxiliary symbol info. Update caller.
* mdebugread.c (parse_partial_symbols):  Do not enter external
stProc symbols into the partial symbol table, they are already
entered into the minimal symbol table.
* config/i386/tm-symmetry.h:  Clean up, it is now only used for Dynix.
Remove all conditionals and definitions for ptx.
I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
Fix addresses of floating point registers in REGISTER_U_ADDR.
STORE_STRUCT_RETURN now handles cc and gcc conventions.
FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
signal trampoline code work.
* config/i386/xm-symmetry.h:  Clean up, it is now only used for Dynix.
Remove all conditionals and definitions for ptx.
Remove KDB definitions.
* symm-nat.c (store_inferior_registers):  Fetch registers before
storing them to obtain valid floating point control registers.
Store fpu registers.
* symm-nat.c (print_1167_control_word):  Dynix 3.1.1 defines
FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
* symm-nat.c (fetch_inferior_registers, child_xfer_memory):
Fix typos.
* symm-nat.c (child_resume):  Update type of `signal' parameter.
* symm-tdep.c (I386_REGNO_TO_SYMMETRY):  Moved to tm-symmetry.h.

30 years ago * gdb.t02/whatis.exp, gdb.t08/opaque.exp: Add XFAILs for
Peter Schauer [Wed, 30 Mar 1994 09:21:59 +0000 (09:21 +0000)]
* gdb.t02/whatis.exp, gdb.t08/opaque.exp:  Add XFAILs for
sequent dynix.
* gdb.t06/signals.exp:  Add clear_xfail for sequent dynix.
* gdb.t15/funcargs.exp:  Conditionally step again to really
finish from marker_call_with_trampolines. Handle the case where
the first step from within call_with_trampolines already steps
us back to main.
* gdb.t15/gdbme.c:  Add comment to closing brace of
call_with_trampolines for funcargs.exp.

30 years ago * i386-dis.c (struct private): Renamed to dis_private. `private'
Peter Schauer [Wed, 30 Mar 1994 09:17:49 +0000 (09:17 +0000)]
* i386-dis.c (struct private):  Renamed to dis_private. `private'
is a reserved word for dynix cc.

30 years ago * i386dynix.c, config/i386-dynix.mt: New files, handling Dynix
Peter Schauer [Wed, 30 Mar 1994 08:53:45 +0000 (08:53 +0000)]
* i386dynix.c, config/i386-dynix.mt:  New files, handling Dynix
variant of a.out.
* configure.in, config.bfd:  Use them for Dynix.
* Makefile.in:  Add dependencies for i386dynix.o.
* targets.c:  Add definition for i386dynix_vec.

30 years ago * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):
Jeff Law [Wed, 30 Mar 1994 07:56:14 +0000 (07:56 +0000)]
    * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):
        Fix typo(s).

30 years ago * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
Jeff Law [Wed, 30 Mar 1994 07:03:01 +0000 (07:03 +0000)]
    * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
        calling import stubs for functions in shared libraries.

30 years ago * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
Per Bothner [Wed, 30 Mar 1994 06:59:16 +0000 (06:59 +0000)]
* ch-exp.y:  Implement SIZE(mode_name) and SIZE(expression).

30 years ago * ch-lang.c (chill_is_varying_struct): Magic string is
Per Bothner [Wed, 30 Mar 1994 05:23:00 +0000 (05:23 +0000)]
* ch-lang.c (chill_is_varying_struct):  Magic string is
was "<var_length>" is now "__var_length" (more portable).

30 years ago * remote.c (getpkt): If we get a timeout, actually retry rather
Jim Kingdon [Wed, 30 Mar 1994 03:50:23 +0000 (03:50 +0000)]
* remote.c (getpkt): If we get a timeout, actually retry rather
than just giving up the first time it happens.
* remote.c: Document sequence numbers.
(remote_store_registers): Change syntax of 'P' request so that it
never looks like a sequence number.

30 years ago* config.guess: Recognize NCR running SVR4.3.
Jim Kingdon [Wed, 30 Mar 1994 03:15:42 +0000 (03:15 +0000)]
* config.guess: Recognize NCR running SVR4.3.

30 years agoModified Files:
Kung Hsu [Wed, 30 Mar 1994 00:18:29 +0000 (00:18 +0000)]
Modified Files:
ChangeLog os9kread.c remote-os9k.c

        * os9kread.c (record_minmal_symbol): add section_offset to
        relocate minimal symbol table.
        * os9kread.c (read_minimal_symbols): ditto.
        * os9kread.c (os9k_symfile_init): increase size of dbg and stb
        file names.
        * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
        return. Also if file addr is 0 leave it 0, not to relocate.
        * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
        'set remotexoff' and 'set remotelog' commands.

30 years ago * objdump.c (display_file): Close each archive element after it
Ian Lance Taylor [Tue, 29 Mar 1994 21:34:44 +0000 (21:34 +0000)]
* objdump.c (display_file): Close each archive element after it
has been displayed.

30 years ago * remote.c (remote_store_registers): Add 'P' request to set an
Jim Kingdon [Tue, 29 Mar 1994 20:43:48 +0000 (20:43 +0000)]
* remote.c (remote_store_registers): Add 'P' request to set an
individual register.
(remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
a target address.

30 years agoFix last patch.
Ian Lance Taylor [Tue, 29 Mar 1994 20:34:10 +0000 (20:34 +0000)]
Fix last patch.

30 years ago * nm.c (display_archive): Close each archive element after it has
Ian Lance Taylor [Tue, 29 Mar 1994 20:00:09 +0000 (20:00 +0000)]
* nm.c (display_archive): Close each archive element after it has
been displayed.

30 years agoPut back include to tm-hppa.h mistakenly taken out during a recent checkin.
Jeff Law [Tue, 29 Mar 1994 18:36:48 +0000 (18:36 +0000)]
Put back include to tm-hppa.h mistakenly taken out during a recent checkin.

30 years agoMinor formatting fixes. (TeXs OK now.)
Roland Pesch [Tue, 29 Mar 1994 03:39:46 +0000 (03:39 +0000)]
Minor formatting fixes.  (TeXs OK now.)

30 years agoLast-minute updates on Steve's last-minute changes.
Roland Pesch [Tue, 29 Mar 1994 03:08:48 +0000 (03:08 +0000)]
Last-minute updates on Steve's last-minute changes.
TeX formatting remains to be checked.

30 years ago binutils.texi(nlmconv): added -d/--debug and -l/--linker info
Jeffrey Osier [Tue, 29 Mar 1994 00:53:16 +0000 (00:53 +0000)]
binutils.texi(nlmconv): added -d/--debug and -l/--linker info

30 years agoFix node structure around new Hitachi nodes so general-purpose
Roland Pesch [Tue, 29 Mar 1994 00:35:30 +0000 (00:35 +0000)]
Fix node structure around new Hitachi nodes so general-purpose
vn of manual builds OK, too.

30 years agoEntry for last check in.
Ian Lance Taylor [Mon, 28 Mar 1994 23:44:43 +0000 (23:44 +0000)]
Entry for last check in.

30 years ago * Makefile.in (BFD32_BACKENDS): Add coff-sparc.o.
Ian Lance Taylor [Mon, 28 Mar 1994 23:35:20 +0000 (23:35 +0000)]
* Makefile.in (BFD32_BACKENDS): Add coff-sparc.o.

30 years ago * coffcode.h (coff_set_flags): Handle bfd_arch_powerpc like
Ian Lance Taylor [Mon, 28 Mar 1994 23:20:38 +0000 (23:20 +0000)]
* coffcode.h (coff_set_flags): Handle bfd_arch_powerpc like
bfd_arch_rs6000.

30 years agoAn annoying typo (faflse instead of false). Oopsie.
Sean Eric Fagan [Mon, 28 Mar 1994 23:03:21 +0000 (23:03 +0000)]
An annoying typo (faflse instead of false).  Oopsie.

30 years ago * config.guess: Make BSDI generate i386-unknown-bsd386.
Per Bothner [Mon, 28 Mar 1994 23:01:39 +0000 (23:01 +0000)]
* config.guess:  Make BSDI generate i386-unknown-bsd386.
Patch from Paul Eggert <eggert@twinsun.com>.

30 years ago* config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.
Ken Raeburn [Mon, 28 Mar 1994 19:40:53 +0000 (19:40 +0000)]
* config/obj-coff.h (SEPARATE_STAB_SECTIONS): Always define.
(OBJ_PROCESS_STAB): Don't define.

30 years ago * configure.in: Change error message to refer to bfd/config.bfd
Ian Lance Taylor [Mon, 28 Mar 1994 18:05:12 +0000 (18:05 +0000)]
* configure.in: Change error message to refer to bfd/config.bfd
rather than bfd/configure.in.

30 years ago * config.bfd (powerpc-*-aix*): New target; use rs6000.mt.
Ian Lance Taylor [Mon, 28 Mar 1994 18:02:05 +0000 (18:02 +0000)]
* config.bfd (powerpc-*-aix*): New target; use rs6000.mt.

30 years ago * configure.in (powerpc-*-aix*): New target; use rs6000.mt.
Ian Lance Taylor [Mon, 28 Mar 1994 18:00:09 +0000 (18:00 +0000)]
* configure.in (powerpc-*-aix*): New target; use rs6000.mt.
* config/rs6000.mt (SELECT_ARCHITECTURES): Add bfd_powerpc_arch.

30 years ago * aoutx.h (translate_from_native_sym_flags): Set SEC_RELOC flag
Ian Lance Taylor [Mon, 28 Mar 1994 17:57:34 +0000 (17:57 +0000)]
* aoutx.h (translate_from_native_sym_flags): Set SEC_RELOC flag
for generated constructor section.

30 years ago * configure.in (powerpc-*-aix*): Treat like rs6000-*-*.
Ian Lance Taylor [Mon, 28 Mar 1994 17:55:58 +0000 (17:55 +0000)]
* configure.in (powerpc-*-aix*): Treat like rs6000-*-*.

30 years ago * config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobber
Ian Lance Taylor [Mon, 28 Mar 1994 17:43:54 +0000 (17:43 +0000)]
* config/obj-aout.c (obj_aout_frob_symbols): Don't let BFD clobber
the type of symbol set symbols which happen to be in the absolute
or undefined section.

30 years agoMon Mar 28 12:35:00 1994 David Edelsohn (edelsohn@npac.syr.edu)
Ian Lance Taylor [Mon, 28 Mar 1994 17:38:39 +0000 (17:38 +0000)]
Mon Mar 28 12:35:00 1994  David Edelsohn  (edelsohn@npac.syr.edu)

* config/tc-ppc.c (md_parse_option): Add -mpwrx (POWER/2 aka
RIOS2), -mpwr (POWER aka RIOS1), -mppc (PowerPC aka MPC603/604),
and -many (all architectures).

30 years agoMon Mar 28 12:28:30 1994 David Edelsohn (edelsohn@npac.syr.edu)
Ian Lance Taylor [Mon, 28 Mar 1994 17:30:29 +0000 (17:30 +0000)]
Mon Mar 28 12:28:30 1994  David Edelsohn  (edelsohn@npac.syr.edu)

* ppc-opc.c: Define POWER2 as short alias flag.
(powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
fsqrt.

30 years ago * gdb.t07/gdbme.c: More code for watchpoint testing.
Jeff Law [Mon, 28 Mar 1994 00:53:55 +0000 (00:53 +0000)]
    * gdb.t07/gdbme.c: More code for watchpoint testing.

        * gdb.t07/watchpoint.exp: Accept both "Watchpoint" and
        "Hardware watchpoint" throughout file.
        (test_watchpoint_triggered_in_syscall): New test.
        (test_complex_watchpoint): New test.

30 years ago * More fixes for object formats which allow multiple sections
Jeff Law [Mon, 28 Mar 1994 00:25:15 +0000 (00:25 +0000)]
    * More fixes for object formats which allow multiple sections
        with the same name:
        * objcopy.c (setup_section): Make a new output section even if
        one already exists with the given name.
        (copy_section): Use isection->output_section rather than trying
        to look the output section up by its (possibly non-unique) name.

30 years ago * gas/hppa/reloc/funcrelocbug.s: New test.
Jeff Law [Sun, 27 Mar 1994 22:06:42 +0000 (22:06 +0000)]
    * gas/hppa/reloc/funcrelocbug.s: New test.
        * gas/hppa/reloc/reloc.exp: Run it.

30 years ago * config/tc-hppa.c (tc_gen_reloc): Set addend for relocation
Jeff Law [Sun, 27 Mar 1994 22:05:21 +0000 (22:05 +0000)]
    * config/tc-hppa.c (tc_gen_reloc): Set addend for relocation
        involving a function symbol which is not a plabel to zero.
        (md_apply_fix): Never pass a function symbol to field_adjust.

30 years agoArg. Forgot this in yesterday's cvs commit.
Jeff Law [Sun, 27 Mar 1994 21:29:37 +0000 (21:29 +0000)]
Arg.  Forgot this in yesterday's cvs commit.

30 years ago * som.c (som_get_section_contents): New function. Do not try
Jeff Law [Sat, 26 Mar 1994 20:25:48 +0000 (20:25 +0000)]
    * som.c (som_get_section_contents): New function.  Do not try
        to actually read data from a section that doesn't have either
        SEC_LOAD or SEC_DEBUGGING set (eg $BSS$) just return true.

30 years ago * configure: Make unrecognized options give nonfatal warnings
David MacKenzie [Sat, 26 Mar 1994 20:08:38 +0000 (20:08 +0000)]
* configure: Make unrecognized options give nonfatal warnings
instead of fatal errors, and pass them to any subdirectory
configures in case they recognize them.
Make --x equivalent to --with-x.

30 years ago * libbfd.c (bfd_read): Set bfd_error as appropriate for a short
Jeff Law [Sat, 26 Mar 1994 18:28:29 +0000 (18:28 +0000)]
    * libbfd.c (bfd_read): Set bfd_error as appropriate for a short
        read. (bfd_error_system_call or bfd_error_file_truncated).

        * som.c: Do not blindly set bfd_error_system_call after a
        failing bfd_read, bfd_write, or bfd_seek.  In a few places
        (like som_object_p) override the error status set by bfd_read.

        * aix386-core.c, aout-encap,c archive.c, bout.c: Likewise.
        * coff-rs6000.c, coffgen.c ecoff.c, elf.c: Likewise.
        * elf32-hppa.c, elfcode.h, hp300hpux.c, i386lynx.c: Likewise.
        * nlm32-alpha.c, nlm32-i386.c, nlm32-sparc.c: Likewise.

        * som.c: Check return values from several bfd_{seek,read,write}
        calls that we just assumed were not failing.

30 years ago * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
Jim Kingdon [Sat, 26 Mar 1994 16:00:02 +0000 (16:00 +0000)]
* config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
* stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
combining all 'p' and 'r' pairs into a LOC_REGPARM.

30 years ago * command.c (do_setshow_command, case var_string): Never add a
Jim Kingdon [Sat, 26 Mar 1994 15:15:00 +0000 (15:15 +0000)]
* command.c (do_setshow_command, case var_string): Never add a
space to the end of the string.
* NEWS: Document this change.
* .gdbinit: Add a space to the "set prompt" command.

30 years ago * configure: Add --enable-* options. Clean up usage message and
David MacKenzie [Sat, 26 Mar 1994 05:53:17 +0000 (05:53 +0000)]
* configure: Add --enable-* options.  Clean up usage message and
some comments.

30 years ago * buildsym.c (start_subfile, patch_subfile_names), demangle.c
Jim Kingdon [Sat, 26 Mar 1994 04:26:26 +0000 (04:26 +0000)]
* buildsym.c (start_subfile, patch_subfile_names), demangle.c
(set_demangling_style, set_demangling_command): Use savestring not
strdup.  We were not dealing properly with a NULL return from
strdup, and were not declaring strdup (the system header may or
may not have it).

30 years ago * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
Jim Kingdon [Sat, 26 Mar 1994 04:20:44 +0000 (04:20 +0000)]
*  m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
changes to make it compile (it doesn't link yet).

30 years agoWork around texinfo glitch (@item vs @cindex).
Roland Pesch [Sat, 26 Mar 1994 02:46:02 +0000 (02:46 +0000)]
Work around texinfo glitch (@item vs @cindex).

30 years agoUpdates for Hitachi targets.
Roland Pesch [Sat, 26 Mar 1994 02:25:09 +0000 (02:25 +0000)]
Updates for Hitachi targets.

30 years ago * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
Jim Kingdon [Sat, 26 Mar 1994 01:23:21 +0000 (01:23 +0000)]
* ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.

30 years ago * valprint.c (val_print): Remove inaccurate comment about what
Jim Kingdon [Sat, 26 Mar 1994 01:23:06 +0000 (01:23 +0000)]
* valprint.c (val_print): Remove inaccurate comment about what
types can be stub types.

30 years ago * hosts/sysv4.h (HAVE_PROCFS): Add comments about ptx4.
Jim Kingdon [Sat, 26 Mar 1994 01:12:53 +0000 (01:12 +0000)]
* hosts/sysv4.h (HAVE_PROCFS): Add comments about ptx4.
* config/sysv4.mh: Add comment.
* config/symmetry.mh: Change comment.
* configure.host: Use sysv4, not symmetry, for i[34]86-sequent-sysv4*.

30 years ago * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
Jeff Law [Sat, 26 Mar 1994 01:07:36 +0000 (01:07 +0000)]
    * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
        of a function.
        (skip_trampoline_code): Rewrite and add support for argument
        relocation stubs stubs, import/export stubs, calls through
        "_sr4export" and cascaded trampolines.

30 years ago * gdbme.c (call_with_trampolines): New function to try and step
Jeff Law [Sat, 26 Mar 1994 01:06:12 +0000 (01:06 +0000)]
    * gdbme.c (call_with_trampolines): New function to try and step
        into.  Tests trampoline problems on the PA.

        * funcargs.exp (localvars_in_indirect_call): No longer expect
        stepping into indirect call to fail on PAs.
        (test_stepping_over_trampolines): New test.

30 years agoForgot this in recent commit.
Jeff Law [Sat, 26 Mar 1994 01:04:06 +0000 (01:04 +0000)]
Forgot this in recent commit.

30 years agoStu apparantly forgot to update the .Sanitize file when he added
Sean Eric Fagan [Sat, 26 Mar 1994 00:41:36 +0000 (00:41 +0000)]
Stu apparantly forgot to update the .Sanitize file when he added
tm-alphanw.h.

30 years ago * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
Jim Kingdon [Sat, 26 Mar 1994 00:19:35 +0000 (00:19 +0000)]
* config/i386/ptx.mh (XDEPFILES): Add coredep.o.  Delete infptrace.o.
* symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
Supply alternate version if ATTACH_DETACH is not defined.
* ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
* configure.in: Recognize i[34]86-sequent-sysv4* host.

30 years agonew for ptx
Jim Kingdon [Sat, 26 Mar 1994 00:11:49 +0000 (00:11 +0000)]
new for ptx

30 years agonew for ptx
Jim Kingdon [Sat, 26 Mar 1994 00:03:08 +0000 (00:03 +0000)]
new for ptx

30 years agonew for ptx4
Jim Kingdon [Fri, 25 Mar 1994 23:53:34 +0000 (23:53 +0000)]
new for ptx4

30 years agonew for ptx4
Jim Kingdon [Fri, 25 Mar 1994 23:39:19 +0000 (23:39 +0000)]
new for ptx4

30 years agonew for ptx4
Jim Kingdon [Fri, 25 Mar 1994 23:22:48 +0000 (23:22 +0000)]
new for ptx4

30 years ago * config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for an
Ian Lance Taylor [Fri, 25 Mar 1994 22:53:40 +0000 (22:53 +0000)]
* config/obj-aout.c (obj_aout_frob_symbol): If N_EXT is set for an
N_INDR symbol, set BSF_EXPORT and clear BSF_LOCAL.

30 years ago * config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap a
Ian Lance Taylor [Fri, 25 Mar 1994 22:40:44 +0000 (22:40 +0000)]
* config/tc-mips.c (append_insn): If EMBEDDED_PIC, don't swap a
branch with an instruction that uses $at, in case the branch is
later expanded.
(macro): If EMBEDDED_PIC, case M_JAL_A may use $at.
(md_pcrel_from): If not OBJ_AOUT, return 4 for an undefined symbol
to make it pcrel_offset.
(tc_gen_reloc): If not OBJ_AOUT, set the reloc addend to
reloc->address; another gruesome hack to get gas reloc handling to
do the right thing.

30 years ago Changes to support linker relaxing of embedded MIPS PIC code to
Ian Lance Taylor [Fri, 25 Mar 1994 22:37:55 +0000 (22:37 +0000)]
Changes to support linker relaxing of embedded MIPS PIC code to
use a five instruction sequence for funtion calls which are out of
range of the bal instruction.
* libecoff.h (struct ecoff_section_tdata): Define.
(ecoff_section_data): Define.
(ecoff_bfd_relax_section): Don't define.
* ecoff.c (ecoff_final_link_debug_accumulate): Don't read or free
the debugging information if it has already been read.
(ecoff_indirect_link_order): Handle _cooked_size being different
from _raw_size.  Don't reread the contents or the relocs if they
have already been read in.
* coff-mips.c (mips_howto_table): Change bitsize of PCREL16 from
18 to 16.
(PCREL16_EXPANSION_ADJUSTMENT): Define.
(mips_relocate_refhi): Take adjust argument.
(mips_relocate_section): Handle reloc offsets stored in section
used_by_bfd field.  Call mips_relax_pcrel16 to handle details of
expanding an out of range PCREL16.  Keep trace of adjustments
required by expansions.  Set s and unset h when converting a reloc
from undefined to section.  Change handling of PC relative relocs:
if against a section, they are correct in the object file, if
against an external symbol they are pcrel_offset.
(mips_relax_section): New function.
(mips_relax_pcrel16): New function.
(ecoff_bfd_relax_section): Define.
* coff-alpha.c (ecoff_bfd_relax_section): Define.
* ecofflink.c (bfd_ecoff_debug_accumulate): Handle adjustments
built by mips_relax_section when writing out addresses.
* elf32-mips.c (mips_elf_read_ecoff_info): Clear adjust field.

30 years ago * ldlang.c (print_input_section): For section size, use
Ian Lance Taylor [Fri, 25 Mar 1994 22:22:29 +0000 (22:22 +0000)]
* ldlang.c (print_input_section): For section size, use
_cooked_size if it is non-zero, size otherwise.
(size_input_section): Likewise.
(lang_do_assignments): Likewise (case lang_input_section_enum).

30 years ago * ecoff.h (struct ecoff_debug_info): Add adjust field.
Ian Lance Taylor [Fri, 25 Mar 1994 22:18:00 +0000 (22:18 +0000)]
* ecoff.h (struct ecoff_debug_info): Add adjust field.
(struct ecoff_value_adjust): Define.

30 years agoFix typo in comment.
Ian Lance Taylor [Fri, 25 Mar 1994 22:14:48 +0000 (22:14 +0000)]
Fix typo in comment.

30 years ago * aoutx.h (NAME(aout,find_nearest_line)): The caller expects
Ian Lance Taylor [Fri, 25 Mar 1994 22:13:02 +0000 (22:13 +0000)]
* aoutx.h (NAME(aout,find_nearest_line)): The caller expects
functionname_ptr to be set to a symbol name, so prepend
symbol_leading_char.

30 years ago * hppa-tdep.c (skip_prologue): Return "pc" not zero
Jeff Law [Fri, 25 Mar 1994 18:48:24 +0000 (18:48 +0000)]
    * hppa-tdep.c (skip_prologue): Return "pc" not zero
        if no unwind descriptor is found.

30 years ago * tm-hppa.h (NUM_REGS): Bump to 128 registers.
Jeff Law [Fri, 25 Mar 1994 18:21:49 +0000 (18:21 +0000)]
    * tm-hppa.h (NUM_REGS): Bump to 128 registers.
        (REGISTER_NAMES): Add entries for "right-half" of FP registers.
        (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
        differently.  All registers are four bytes.
        (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
        the same size.
        (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.

        * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
        registers as both single and double values (fetching 2nd 32bit half
        as necessary).  Annotate each register printed with its precision.

30 years ago * paread.c (read_unwind_info): Fix off-by-one error.
Jeff Law [Fri, 25 Mar 1994 18:15:10 +0000 (18:15 +0000)]
    * paread.c (read_unwind_info): Fix off-by-one error.

30 years ago* main.c (complete_command): Deal with it if arg is NULL.
Jim Kingdon [Fri, 25 Mar 1994 16:39:05 +0000 (16:39 +0000)]
* main.c (complete_command): Deal with it if arg is NULL.

30 years ago* config/tc-alpha.c (alpha_ip): Only set GP prolog size if using PV register.
Ken Raeburn [Fri, 25 Mar 1994 02:39:19 +0000 (02:39 +0000)]
* config/tc-alpha.c (alpha_ip): Only set GP prolog size if using PV register.
(T12): New macro.
(emit_insn): New function.
(md_assemble): Call it.
(alpha_force_relocation): Handle BFD_RELOC_26, for call_pal instructions.
(lituse_pending): New variable.  Set by anything that generates a LITERAL
reloc, cleared by anything that generates a LITUSE reloc, tested by code that
might want to emit a LITUSE reloc.
(emit_unaligned_io): New function.  Currently calls md_assemble, but it should
eventually be converted to generate the insn itself and call emit_insn directly.
(emit_load_unal, emit_store_unal, emit_byte_manip_r, emit_extract_r,
emit_insert_r, emit_mask_r, emit_sign_extend, emit_bis_r): Likewise.
(alpha_ip, case 'I'): Handle with BFD_RELOC_23.
(alpha_ip, label get_macro): Don't emit the final instruction if the opcode is
zero.
(alpha_ip, case 'B', subcase 'd'): New case, for subword and unaligned memory
access macros.
(md_apply_fix): Handle BFD_RELOC_26.  Generate an error message if the value
can't be resolved.

30 years ago * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
Jim Kingdon [Fri, 25 Mar 1994 01:38:24 +0000 (01:38 +0000)]
* config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
regarding using the PC--using the PC is necessary and all the
FIXME comments in the world won't make it go away.

30 years agoNetware debugger stub NLM.
Stu Grossman [Fri, 25 Mar 1994 01:38:12 +0000 (01:38 +0000)]
Netware debugger stub NLM.

30 years ago * ldlang.c (new_afile): Add new argument add_to_list. Don't set
Ian Lance Taylor [Thu, 24 Mar 1994 20:25:12 +0000 (20:25 +0000)]
* ldlang.c (new_afile): Add new argument add_to_list.  Don't set
real to true for lang_input_file_is_marker_enum.  Clear the_bfd.
(lang_add_input_file): Pass true to new_afile for add_to_list.
(lookup_name): Remove force_load argument.  Changed all callers.
Pass false to new_afile for add_to_list.  Split loading of symbols
out into separate function.
(load_symbols): New function split out of lookup_name.  Don't load
the symbols if they are already loaded.
(open_input_bfds): For lang_input_statement_enum call load_symbols
rather than lookup_name.
(lang_process): Pass abs_output_section rather than NULL to
lang_size_sections.
(lang_startup): Set real field of first_file to true.

30 years agoThu Mar 24 11:33:46 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Thu, 24 Mar 1994 19:45:23 +0000 (19:45 +0000)]
Thu Mar 24 11:33:46 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* coff-h8300.c (h8300_reloc16_extra_cases): Add relaxing info
for 16bit relative branches.
* coff-h8500.c (r_high8, r_low16, r_high16): Don't complain on
overflow.

30 years ago * valops.c (value_at, value_at_lazy): Give error if we dereference
Jim Kingdon [Thu, 24 Mar 1994 18:32:31 +0000 (18:32 +0000)]
* valops.c (value_at, value_at_lazy): Give error if we dereference
a pointer to void.
* gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
* stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.

30 years ago * som.c (som_bfd_prep_for_ar_write): Ignore non-SOM objects.
Jeff Law [Thu, 24 Mar 1994 17:21:50 +0000 (17:21 +0000)]
    * som.c (som_bfd_prep_for_ar_write): Ignore non-SOM objects.
        (som_bfd_ar_write_symbol_stuff, som_write_armap): Likewise.

30 years ago(NM_FOR_TARGET): Build tree version is now nm.new.
David Edelsohn [Thu, 24 Mar 1994 17:18:34 +0000 (17:18 +0000)]
(NM_FOR_TARGET): Build tree version is now nm.new.

30 years ago * stabsread.c (patch_block_stabs): Add comment about what happens
Jim Kingdon [Thu, 24 Mar 1994 17:03:23 +0000 (17:03 +0000)]
* stabsread.c (patch_block_stabs): Add comment about what happens
if the definition is in another compilation unit from the stab.

30 years ago * TODO: Add suggestions for static member function tests, and
Jim Kingdon [Thu, 24 Mar 1994 16:26:57 +0000 (16:26 +0000)]
* TODO: Add suggestions for static member function tests, and
completion tests.

30 years agoUpdate for Things-to-lose and lose_these_too.
Jim Kingdon [Thu, 24 Mar 1994 16:25:47 +0000 (16:25 +0000)]
Update for Things-to-lose and lose_these_too.

30 years ago * stabs.texinfo (Global Variables): Talk about stabs in files
Jim Kingdon [Thu, 24 Mar 1994 16:11:11 +0000 (16:11 +0000)]
* stabs.texinfo (Global Variables): Talk about stabs in files
where variables are referenced, but not defined.

30 years ago * stabsread.c (patch_block_stabs): Don't create LOC_OPTIMIZED_OUT
Jim Kingdon [Thu, 24 Mar 1994 15:32:42 +0000 (15:32 +0000)]
* stabsread.c (patch_block_stabs): Don't create LOC_OPTIMIZED_OUT
symbols.  Reverts change of 2 Apr 1993.

30 years ago* dbxread.c (end_psymtab): Add comment about empty psymtabs.
Jim Kingdon [Thu, 24 Mar 1994 15:12:40 +0000 (15:12 +0000)]
* dbxread.c (end_psymtab): Add comment about empty psymtabs.

30 years ago * main.c (complete_command): New command, from Rick Sladkey
Jim Kingdon [Thu, 24 Mar 1994 15:00:52 +0000 (15:00 +0000)]
* main.c (complete_command): New command, from Rick Sladkey
<jrs@world.std.com>.
(symbol_completion_function): Don't declare rl_point and
rl_line_buffer; they are now declared in readline.h.
(show_commands): Don't declare history_base; it is declared in
history.h.
* command.c (lookup_cmd): Don't delete trailing whitespace.

30 years ago * minsyms.c (prim_record_minimal_symbol): Move section deduction
Stu Grossman [Thu, 24 Mar 1994 00:20:53 +0000 (00:20 +0000)]
* minsyms.c (prim_record_minimal_symbol):  Move section deduction
code from prim_record_minimal_symbol_and_info() to here.  Callers
of the latter can legitimately supply a section number of -1.

30 years agoUpdated list of keep-* options.
Stan Shebs [Wed, 23 Mar 1994 23:52:06 +0000 (23:52 +0000)]
Updated list of keep-* options.