binutils-gdb.git
31 years ago* lynx-core.c (lynx_core_file_p): Change per-thread register
Stu Grossman [Fri, 24 Sep 1993 23:54:32 +0000 (23:54 +0000)]
* lynx-core.c (lynx_core_file_p):  Change per-thread register
section names from .regXXX to .reg/XXX to avoid parsing ambiguity
in gdb/corelow.c.  Create alias .reg section for the currently
running thread.

31 years ago * config/tc-m88k.c (get_o6): new function.
K. Richard Pixley [Fri, 24 Sep 1993 19:47:59 +0000 (19:47 +0000)]
* config/tc-m88k.c (get_o6): new function.
  (get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg,
  get_vec9, getval, get_pcr, calcop, match_name): make static and
  prototype.
  (s_file): remove extraneous forward decl.
  (md_begin): add const to retval decl.
  (calcop): cope with instructions without arguments.  Handle 'o'
  type argument, the o6 field of the prot insn.
  (md_estimate_size_before_relax): return a dummy value.

31 years ago * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is
K. Richard Pixley [Fri, 24 Sep 1993 19:41:51 +0000 (19:41 +0000)]
* config/m88k-opcode.h (m88k_opcodes): comment change; o6 field is
  in bits 10 through 7.  flt.[dxs]s requires an r register in the
  second argument.  New instruction lda.x.  New instruction muls
  (alias for mul).

31 years ago * config/tc-mips.c (md_begin): Set BFD architecture and machine
Ian Lance Taylor [Fri, 24 Sep 1993 17:47:04 +0000 (17:47 +0000)]
* config/tc-mips.c (md_begin): Set BFD architecture and machine
based on MIPS ISA level.

31 years agoFix typo in previous ChangeLog message.
Peter Schauer [Fri, 24 Sep 1993 16:13:26 +0000 (16:13 +0000)]
Fix typo in previous ChangeLog message.

31 years ago * osf-core.c: New file for OSF/1 core file support.
Peter Schauer [Fri, 24 Sep 1993 07:45:28 +0000 (07:45 +0000)]
* osf-core.c:  New file for OSF/1 core file support.
* config/alphaosf.mh (HDEFINES):  Set to -DHPUX_CORE.
(HDEPFILES):  Set to hpux-core.o.
* bfd-in2.h (union tdata):  Add osf_core_data member.
* targets.c:  If OSF_CORE is defined, add osf_core_vec to target list.
* Makefile.in (OPTIONAL_BACKENDS):  Add osf-core.o.
(osf-core.o):  New dependency.

31 years ago * ecoff.h (ecoff_set_arch_mach_hook): Accept MIPS_MAGIC_LITTLE2
Jim Kingdon [Fri, 24 Sep 1993 02:16:09 +0000 (02:16 +0000)]
* ecoff.h (ecoff_set_arch_mach_hook): Accept MIPS_MAGIC_LITTLE2
and MIPS_MAGIC_BIG2.

31 years ago* remote-udi.c (download): Skip zero length sections.
Jim Kingdon [Fri, 24 Sep 1993 01:51:28 +0000 (01:51 +0000)]
* remote-udi.c (download): Skip zero length sections.

31 years ago * configure.in: Build gas, ld, and binutils for *-*-sysv4* and
Ian Lance Taylor [Thu, 23 Sep 1993 22:07:39 +0000 (22:07 +0000)]
* configure.in: Build gas, ld, and binutils for *-*-sysv4* and
*-*-solaris2* targets.

31 years ago * archive.c (compute_and_write_armap): Put weak symbols in the
Ian Lance Taylor [Thu, 23 Sep 1993 21:59:07 +0000 (21:59 +0000)]
* archive.c (compute_and_write_armap): Put weak symbols in the
armap.

* elfcode.h (fix_up_strtabs): Set sh_entsize for the .stab
section, not the .stabstr section.  Set the type of the .stabstr
section to SHT_STRTAB.
(elf_section_from_bfd_section): Handle SHT_STRTAB sections.

Also set SEC_DEBUGGING for appropriate SHT_STRTAB sections.

31 years ago * config/solaris2.mh: New file. Define HOSTING_CRT0 and
Ian Lance Taylor [Thu, 23 Sep 1993 21:53:33 +0000 (21:53 +0000)]
* config/solaris2.mh: New file.  Define HOSTING_CRT0 and
HOSTING_LIBS for testing.

31 years agoAdd some "setup_xfail" commands, correct at least for sun4 native.
Ken Raeburn [Thu, 23 Sep 1993 20:28:35 +0000 (20:28 +0000)]
Add some "setup_xfail" commands, correct at least for sun4 native.

31 years ago * valops.c (search_struct_method, value_struct_elt):
Jim Kingdon [Thu, 23 Sep 1993 19:46:32 +0000 (19:46 +0000)]
* valops.c (search_struct_method, value_struct_elt):
Use (value)-1, not -1, for error.

31 years ago * mips-tdep.c (mips_frame_chain): If frame size zero, return zero.
Jim Kingdon [Thu, 23 Sep 1993 19:03:38 +0000 (19:03 +0000)]
* mips-tdep.c (mips_frame_chain): If frame size zero, return zero.
* rs6000-tdep.c: Add comment about framelessness.

31 years agoobj-coffbfd relax_align change
Ken Raeburn [Thu, 23 Sep 1993 17:24:51 +0000 (17:24 +0000)]
obj-coffbfd relax_align change

31 years ago* config/m88k/tm-m88k.h, m88k-tdep.c: Add call function stuff.
Jim Kingdon [Thu, 23 Sep 1993 17:20:44 +0000 (17:20 +0000)]
* config/m88k/tm-m88k.h, m88k-tdep.c: Add call function stuff.

31 years agorelax_align is now static
Ken Raeburn [Thu, 23 Sep 1993 17:20:29 +0000 (17:20 +0000)]
relax_align is now static

31 years ago * infcmd.c (step_1), infrun.c (wait_for_inferior): Add comments
Jim Kingdon [Thu, 23 Sep 1993 17:16:35 +0000 (17:16 +0000)]
* infcmd.c (step_1), infrun.c (wait_for_inferior): Add comments
about SHIFT_INST_REGS.

* exec.c (exec_file_command): Set text_end based on all code readonly
sections, not just ".text".

* defs.h, infcmd.c, config/z8k/tm-z8k.h, config/m88k/tm-m88k.h,
config/sh/tm-sh.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
z8k-tdep.c: Remove all references to ADDR_BITS_SET.
* config/m88k/tm-m88k.h: Define TARGET_WRITE_PC.

* config/m88k/tm-m88k.h: Add definitions for calling functions.

31 years ago* gen-aout.c (main): Output newline after end of comment, not before.
Ken Raeburn [Thu, 23 Sep 1993 16:51:30 +0000 (16:51 +0000)]
* gen-aout.c (main): Output newline after end of comment, not before.
(Reported by Jonathan Stone, jonathan@oscar.stanford.edu).

31 years ago * section.c (SEC_DEBUGGING): New section flag.
Ian Lance Taylor [Thu, 23 Sep 1993 15:14:12 +0000 (15:14 +0000)]
* section.c (SEC_DEBUGGING): New section flag.
* elfcode.h (bfd_section_from_shdr): If section is SHT_PROGBITS,
and the name starts with .debug, .line or .stab, set
SEC_DEBUGGING.
* elf32-target.h (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Added
SEC_DEBUGGING to section_flags.
* elf64-target.h (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Added
SEC_DEBUGGING and SEC_CODE to section_flags.
* bfd-in2.h: Updated.

31 years ago * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Define as noop as
Peter Schauer [Thu, 23 Sep 1993 07:24:22 +0000 (07:24 +0000)]
* config/mips/tm-mips.h (STORE_STRUCT_RETURN):  Define as noop as

31 years ago * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Define as noop as
Peter Schauer [Thu, 23 Sep 1993 07:22:06 +0000 (07:22 +0000)]
* config/mips/tm-mips.h (STORE_STRUCT_RETURN):  Define as noop as
the pushing of the struct return address is already handled in
mips_push_arguments.
* mips-tdep.c (reinit_frame_cache_sfunc):  Fix typo in prototype
declaration.
* mipsread.c (parse_symbol, parse_type, upgrade_type):  Add more
sanity checks for corrupt symbol entries to avoid core dumps
reported by benson@odi.com. Obviously Ultrix 4.3A cc now has
the same problems as the OSF/1 alpha cc.
* mipsread.c (parse_lines):  Iterate over the range of the compressed
line number entries, the old iteration sometimes failed to stop
and wrote past the end of the LINETABLE. Add sanity check to avoid
the same problem in case the line number info is corrupt.
* mipsread.c (parse_procedure):  Adjust pdr for alpha __sigtramp.
* mipsread.c (parse_external, parse_partial_symbols):  Ignore stNil
symbols that are produced for statics in .o files and stLocal symbols
that are produced for every section in OSF/1 dynamically linked
 executables.
* mipsread.c (psymtab_to_symtab_1):  Put out `undefined symbols'
warning only under `verbose on' as there are many undefined symbols
in a dynamically linked executable.

31 years ago * objdump.c (usage): Mention --stabs.
Ian Lance Taylor [Thu, 23 Sep 1993 05:21:21 +0000 (05:21 +0000)]
* objdump.c (usage): Mention --stabs.

31 years ago * objcopy.c (copy_object): Copy all applicable file flags.
Ian Lance Taylor [Thu, 23 Sep 1993 05:08:21 +0000 (05:08 +0000)]
* objcopy.c (copy_object): Copy all applicable file flags.
(copy_file): Don't copy EXEC_P specially here.

This permits strip to generate an executable file on UnixWare;
it still does not actually strip the debugging information.

31 years ago* remote.texi (Bootstrapping): Discuss 386 call gates.
Jim Kingdon [Thu, 23 Sep 1993 02:25:28 +0000 (02:25 +0000)]
* remote.texi (Bootstrapping): Discuss 386 call gates.

31 years agoAdd i386lynx-tdep.c.
Stu Grossman [Thu, 23 Sep 1993 00:37:29 +0000 (00:37 +0000)]
Add i386lynx-tdep.c.

31 years ago * config/i960/nindy960.mt: Don't define REMOTE_O; REMOTE_O was
Jim Kingdon [Thu, 23 Sep 1993 00:27:06 +0000 (00:27 +0000)]
* config/i960/nindy960.mt: Don't define REMOTE_O; REMOTE_O was
intended only for VxWorks.  Remove dcache.o from TDEPFILES now
that we pick it up from the default REMOTE_O.

31 years agoCVS:
Kung Hsu [Thu, 23 Sep 1993 00:19:11 +0000 (00:19 +0000)]
CVS:

31 years ago * bfd.c (tdata): Add lynx_core_data.
Ian Lance Taylor [Wed, 22 Sep 1993 20:57:58 +0000 (20:57 +0000)]
* bfd.c (tdata): Add lynx_core_data.

31 years ago * ecoff.c (ecoff_compute_section_file_positions): Set filepos for
Ian Lance Taylor [Wed, 22 Sep 1993 20:49:57 +0000 (20:49 +0000)]
* ecoff.c (ecoff_compute_section_file_positions): Set filepos for
sections with SEC_LOAD set, even if SEC_HAS_CONTENTS is clear.
(ecoff_write_object_contents): Don't set scnptr to zero just
because size of section is zero.  Needed for Irix 4.0.5F.

31 years ago* mips-tdep.c (mips_frame_chain): If frame size zero, return zero.
Jim Kingdon [Wed, 22 Sep 1993 20:33:36 +0000 (20:33 +0000)]
* mips-tdep.c (mips_frame_chain): If frame size zero, return zero.

31 years ago * mips-tdep.c (mips_frame_chain): If PROC_FRAME_OFFSET is zero,
Jim Kingdon [Wed, 22 Sep 1993 19:31:42 +0000 (19:31 +0000)]
* mips-tdep.c (mips_frame_chain): If PROC_FRAME_OFFSET is zero,
then return zero.

31 years ago infcmd.c (step_1),
K. Richard Pixley [Wed, 22 Sep 1993 18:34:05 +0000 (18:34 +0000)]
  infcmd.c (step_1),
  infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef
  and insert macro.

31 years ago* remote-nindy.c: Declare ninMemGet and ninMemPut.
Jim Kingdon [Wed, 22 Sep 1993 15:45:46 +0000 (15:45 +0000)]
* remote-nindy.c: Declare ninMemGet and ninMemPut.

31 years ago* Makefile.in: Add i386lynx-tdep to the right places.
Stu Grossman [Wed, 22 Sep 1993 15:23:53 +0000 (15:23 +0000)]
* Makefile.in:  Add i386lynx-tdep to the right places.
(TARDIRS):  Add gdbserver.

* exec.c (print_section_info):  Print entry point.
* i386lynx-nat.c (i386lynx_saved_pc_after_call):  Move into
i386lynx-tdep.c.  Add core file support.
* i386lynx-tdep.c:  New module for Lynx/386 target dependant code.
* maint.c:  Add `maint info sections' command to print info about all
sections that BFD knows about for exec and core files.
* sparc-tdep.c (sparc_push_dummy_frame):  Update stack pointer
before putting frame on the stack.  Consolidate writes to reduce
traffic for remote debugging.
* config/i386/i386lynx.mh (NATDEPFILES):  Remove exec.o.
* config/i386/i386lynx.mt (TDEPFILES):  Add exec.o, i386lynx-tdep.o.
* config/i386/nm-i386lynx.h:  Add target_pid_to_str().
* config/i386/tm-i386lynx.h:  Remove target_pid_to_str().
* sparclite/Makefile.in:  Add deps to keep Sun make happy.

31 years ago* config.bfd: Use i960-bout, not i960-coff for i960-*-nindy*.
Jim Kingdon [Wed, 22 Sep 1993 15:11:59 +0000 (15:11 +0000)]
* config.bfd: Use i960-bout, not i960-coff for i960-*-nindy*.

31 years ago * Makefile.in (OPTIONAL_BACKENDS): Add lynx-core.o.
Stu Grossman [Wed, 22 Sep 1993 14:58:31 +0000 (14:58 +0000)]
* Makefile.in (OPTIONAL_BACKENDS):  Add lynx-core.o.
* bfd-in2.h (tdata):  Add lynx_core_data;
* config.bfd configure.host:  Get rid of superfluous netbsd and
lynxos entries.
* configure.in:  Add lynx-core.o to Lynx config.
* i386lynx.c:  Add defs for core file support.
* lynx-core.c:  New file with Lynx core file support.
* hosts/i386lynx.h:  Move lots of host specific includes to here.
Add def of HOST_LYNX.  Remove unnecessary defs.

31 years ago* Makefile.in (OPTIONAL_BACKENDS): Add lynx-core.o.
Stu Grossman [Wed, 22 Sep 1993 14:54:50 +0000 (14:54 +0000)]
* Makefile.in (OPTIONAL_BACKENDS):  Add lynx-core.o.
* bfd-in2.h (tdata):  Add lynx_core_data;
* config.bfd configure.host:  Get rid of superfluous netbsd and
lynxos entries.
* configure.in:  Add lynx-core.o to Lynx config.
* i386lynx.c:  Add defs for core file support.
* lynx-core.c:  New file with Lynx core file support.
* hosts/i386lynx.h:  Move lots of host specific includes to here.
Add def of HOST_LYNX.  Remove unnecessary defs.

31 years ago * breakpoint.h, breakpoint.c (bpstat_stop_status): Add new argument
Jim Kingdon [Wed, 22 Sep 1993 01:16:50 +0000 (01:16 +0000)]
* breakpoint.h, breakpoint.c (bpstat_stop_status): Add new argument
not_a_breakpoint.
* infrun.c (wait_for_inferior): Pass it.  Also consolidate the
test of whether we are stepping into a CURRENTLY_STEPPING macro.

31 years ago * breakpoint.c (bpstat_stop_status),
K. Richard Pixley [Wed, 22 Sep 1993 00:43:55 +0000 (00:43 +0000)]
* breakpoint.c (bpstat_stop_status),
  infcmd.c (step_1),
  infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef and insert macro.

* m88k-tdep.c: include ieee-float.h.  new global target_is_m88110.
  new const struct ext_format_m88110 for float format.
  (pic_prologue_code): add braces.
  (next_insn): remove unused variable buf.
  (frame_find_saved_regs): remove unused variables next_addr,
  saved_regs, regnum.
  (frame_locals_address): remove unused variables frame, ap.
  (frame_args_address): remove unused variables frame, ap.
  (push_parameters): add some breaks and a default case.

* remote-bug.c: remove redundant includes of value.h, target.h,
  serial.h.
  (bug_open): corrected typo, sr_multi_scan -> gr_multi_scan.
  (bug_fetch_register): special case sfip register for m88110.
  remove flag bit masking of pc registers.  This should be handled
  by the ADDR_BITS_* macros.
  (bug_store_register): special case sfip register for m88110.
  Corrected sprint format for extended registers.

31 years ago * config/m88k/tm-m88k.h: white space and comment changes. include
K. Richard Pixley [Wed, 22 Sep 1993 00:41:55 +0000 (00:41 +0000)]
* config/m88k/tm-m88k.h: white space and comment changes.  include
  ieee-float.h. expanded to cope with m88110 extended registers.
  (R0_REGNUM, XFP_REGNUM, X0_REGNUM): new macros.
  (SHIFT_INST_REGS): becomes a real macro.

31 years ago(objfile_relocate): Relocate textlow and texthigh in psymtabs.
Jim Kingdon [Tue, 21 Sep 1993 23:15:10 +0000 (23:15 +0000)]
(objfile_relocate): Relocate textlow and texthigh in psymtabs.

31 years ago* breakpoint.c (breakpoint_1): Support bp_call_dummy.
Jim Kingdon [Tue, 21 Sep 1993 22:55:39 +0000 (22:55 +0000)]
* breakpoint.c (breakpoint_1): Support bp_call_dummy.

31 years ago * Makefile.in: Remove definition of CC and remove the second
Jim Kingdon [Tue, 21 Sep 1993 22:32:04 +0000 (22:32 +0000)]
* Makefile.in: Remove definition of CC and remove the second
definition of CXX (the "CXX = gcc" one remains).  These definitions
were causing backquotes to be expanded within backquotes, which
doesn't work.

31 years ago * elfread.c (record_minimal_symbol_and_info): Guess the section to
Ian Lance Taylor [Tue, 21 Sep 1993 21:21:35 +0000 (21:21 +0000)]
* elfread.c (record_minimal_symbol_and_info): Guess the section to
use from the type.
* objfiles.c: Include gdb-stabs.h for SECT_* macros.
(objfile_relocate): Relocate textlow and texthigh in psymtabs.
Relocate partial symbols.  Check that minimal SYMBOL_SECTION is
nonnegative before using it.
* symtab.h: Adjust section field comment.

31 years agoSnapshot of current i386 NetWare debugging stub.
Ian Lance Taylor [Tue, 21 Sep 1993 21:03:35 +0000 (21:03 +0000)]
Snapshot of current i386 NetWare debugging stub.
Added some more debugging information.  Added handling of memory fault
errors when caused by invalid memory accesses.  Always use N response,
not S.

31 years agoWhitespace/comment fixups.
Ken Raeburn [Tue, 21 Sep 1993 20:41:42 +0000 (20:41 +0000)]
Whitespace/comment fixups.
Mention a29k, not sparc, in error messages and comments.

31 years ago* remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
Jim Kingdon [Tue, 21 Sep 1993 20:35:36 +0000 (20:35 +0000)]
* remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.

31 years agoAdd comment regarding section designation:
Jim Kingdon [Tue, 21 Sep 1993 19:39:53 +0000 (19:39 +0000)]
Add comment regarding section designation:

Mon Sep  6 15:43:25 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)

* remote.c (remote_wait): Added 'W' and 'N' responses.

31 years ago * printcmd.c (print_scalar_formatted): When truncating value we are
Jim Kingdon [Tue, 21 Sep 1993 18:54:46 +0000 (18:54 +0000)]
* printcmd.c (print_scalar_formatted): When truncating value we are
going to print as unsigned, handle it generally for any length
less than sizeof (LONGEST), rather than special-casing sizeof (char),
sizeof (short), and sizeof (long).  Clarify comment on what this
is for.

31 years ago * symfile.c (deduce_language_from_filename): Accept .cxx for C++.
Jim Kingdon [Tue, 21 Sep 1993 17:41:45 +0000 (17:41 +0000)]
* symfile.c (deduce_language_from_filename): Accept .cxx for C++.
* buildsym.c (start_subfile): Use deduce_language_from_filename
rather than checking for .C or .cc ourself.

31 years ago * nlmconv.c (main): Adjust data section size to correspond to bss
Ian Lance Taylor [Mon, 20 Sep 1993 23:31:57 +0000 (23:31 +0000)]
* nlmconv.c (main): Adjust data section size to correspond to bss
alignment adjustment.  Clear BSF_SECTION_SYM if symbol is moved to
a different section.  Use time_t for time variable.
(setup_sections): Only put sections with contents in output NLM.
(i386_mangle_relocs): No symbols are common at this point.  Add
casts to avoid warnings.

31 years ago * read.c (get_stab_string_offset): Make non-static. Make
Ian Lance Taylor [Mon, 20 Sep 1993 23:29:42 +0000 (23:29 +0000)]
* read.c (get_stab_string_offset): Make non-static.  Make
arguments const.  Don't align strings to 4 byte boundaries.
* read.h: Declare get_stab_string_offset.
* config/obj-elf.c (obj_elf_section): Set SEC_ALLOC as well as
SEC_LOAD for progbits section.
(obj_elf_init_stab_section): New function.
(adjust_stab_sections): Add casts to avoid warnings.
* config/obj-elf.h (INIT_STAB_SECTION): Call
obj_elf_init_stab_section.
(OBJ_PROCESS_STAB): Removed definition.

31 years ago * elfcode.h (bfd_section_from_shdr): Only set SEC_DATA for a
Ian Lance Taylor [Mon, 20 Sep 1993 23:25:52 +0000 (23:25 +0000)]
* elfcode.h (bfd_section_from_shdr): Only set SEC_DATA for a
SHF_PROGBITS or SHT_STRTAB section if SEC_ALLOC is set.  Never set
SEC_DATA for a SHF_NOBITS section.

* nlm32-i386.c (nlm_i386_mangle_relocs): Check SEC_LOAD rather
than SEC_CODE | SEC_DATA.  Add some casts to avoid warnings.
* nlmcode.h: Add some casts to avoid warnings.
(nlm_write_object_contents): Ignore relocs for sections that are
neither code nor data.  Just use the symbol value for debugging
symbols; don't offset by the section vma.

31 years agoUse ftp device rather than "load" command.
Rob Savoye [Mon, 20 Sep 1993 23:01:45 +0000 (23:01 +0000)]
Use ftp device rather than "load" command.

31 years ago* defs.h: Declare argument of re_comp as const char *.
Jim Kingdon [Mon, 20 Sep 1993 21:49:24 +0000 (21:49 +0000)]
* defs.h: Declare argument of re_comp as const char *.

31 years ago* remote.c, remote-mips.c: Use sr_get_debug not remote_debug.
Jim Kingdon [Mon, 20 Sep 1993 21:20:59 +0000 (21:20 +0000)]
* remote.c, remote-mips.c: Use sr_get_debug not remote_debug.

31 years ago* README: Say using bfd from another release doesn't generally work.
Jim Kingdon [Mon, 20 Sep 1993 21:04:46 +0000 (21:04 +0000)]
* README: Say using bfd from another release doesn't generally work.

31 years ago * Makefile.in: define M4, and pass it down to sub-makes;
David D. Zuhn [Mon, 20 Sep 1993 00:04:33 +0000 (00:04 +0000)]
* Makefile.in: define M4, and pass it down to sub-makes;
all-autoconf now depends on all-m4
* Makefile.in ({AR,RANLIB}_FOR_TARGET): make contingent on
presence of {ar,ranlib} instead of a configured directory

31 years ago* stabs.texinfo (Based Variables): New node.
Jim Kingdon [Sun, 19 Sep 1993 00:32:25 +0000 (00:32 +0000)]
* stabs.texinfo (Based Variables): New node.

31 years ago * mipsread.c (parse_type): Don't complain() if we guessed struct
Jim Kingdon [Sat, 18 Sep 1993 21:11:25 +0000 (21:11 +0000)]
* mipsread.c (parse_type): Don't complain() if we guessed struct
and it was a union, or vice versa.

31 years ago * defs.h (make_cleanup): Change PTR to void * when inside PARAMS.
Jim Kingdon [Sat, 18 Sep 1993 19:15:36 +0000 (19:15 +0000)]
* defs.h (make_cleanup): Change PTR to void * when inside PARAMS.

Some of the following is in #ifdef CALL_DUMMY_BREAKPOINT_OFFSET.
* breakpoint.h (enum bptype): Add bp_call_dummy.
(struct bpstat_what): Add call_dummy field.
* infrun.c (wait_for_inferior): Deal with it.
* breakpoint.c (bpstat_what): Deal with call dummy breakpoint.
* infcmd.c (run_stack_dummy): Set the call dummy breakpoint.
* config/sparc/tm-sparc.h: Define CALL_DUMMY_BREAKPOINT_OFFSET.

31 years ago* gdb.t17/callfuncs.exp: Add "return 0" to end.
Jim Kingdon [Sat, 18 Sep 1993 18:06:11 +0000 (18:06 +0000)]
* gdb.t17/callfuncs.exp: Add "return 0" to end.

31 years agoAdd i386 SVR4 configuration files that I couldn't add remotely. See
Ian Lance Taylor [Fri, 17 Sep 1993 22:17:52 +0000 (22:17 +0000)]
Add i386 SVR4 configuration files that I couldn't add remotely.  See
ChangeLog.

31 years ago * config/obj-elf.h (S_GET_SIZE): Define.
Ian Lance Taylor [Fri, 17 Sep 1993 22:16:29 +0000 (22:16 +0000)]
* config/obj-elf.h (S_GET_SIZE): Define.
(obj_frob_forward_symbol): Define.
* config/tc-i386.c (line_comment_chars): Initialize in all cases.

31 years ago * reloc.c (bfd_perform_relocation): Don't return an error when
Ian Lance Taylor [Fri, 17 Sep 1993 22:13:33 +0000 (22:13 +0000)]
* reloc.c (bfd_perform_relocation): Don't return an error when
performing a reloc against an undefined weak symbol.
* syms.c (bfd_print_symbol_vandf): Show value of BSF_WEAK rather
than obsolete BSF_EXPORT.

31 years ago Finish up support for i386-sysv4 (without shared libraries):
Ian Lance Taylor [Fri, 17 Sep 1993 22:11:00 +0000 (22:11 +0000)]
Finish up support for i386-sysv4 (without shared libraries):
* ld.h (flag_is_weak): Define.
* ldlang.c (print_symbol): Mention whether symbol is weak.
(print_input_section): Print weak symbols as globals.
* ldmain.c (refize): Do not zero out BSF_WEAK flag.
(enter_global_ref): Do not warn if a weak symbol redefines a
global symbol.  Do not let a weak symbol redefine a common symbol.
(enter_file_symbols): Treat weak symbols as global symbols.
(subfile_wanted_p): Do not pull in an object file from a archive
just to resolve an undefined weak symbol.
* ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
error; the error might be that malloc has run out of space.
* ldsym.c (write_file_locals): Treat weak symbols as global.
* configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
use i386-elf.
* config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
* config/i386-elf.mt: New file; set EMUL to elf_i386.
* emulparams/elf_i386.sh: New file.
* scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
* Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
(ALL_EMULATIONS): Add em_elf_i386.o.
(GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
(em_elf_i386.c): New target, like other em_*.c targets.
($(LD_PROG)): Pass $(CFLAGS) to $(CC).
* genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument.  If
nonempty, and configured for native, add it to LIB_PATH.

31 years agoAdded statements for stab sections in coff files.
Stan Shebs [Fri, 17 Sep 1993 20:16:17 +0000 (20:16 +0000)]
Added statements for stab sections in coff files.

31 years ago * remote-sim.h: New file.
Jim Kingdon [Fri, 17 Sep 1993 17:27:43 +0000 (17:27 +0000)]
* remote-sim.h: New file.
* remote-sim.c: Add remote debug feature.  Rename stuff to distinguish
interface to simulator from gdb-specific stuff.  Other changes.
start-sanitize-v9
* remote-sp64sim.c: Renamed to remote-sim.c.
Use sr_get_debug instead of our own sim_verbose/simif_snoop.
Use gnutarget in call to bfd_openr.
Rename simif_* to gdbsim_*.
* config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
end-sanitize-v9

31 years ago * gdb.stabs/ecoff.mt: Remove STABSCC hack.
Peter Schauer [Fri, 17 Sep 1993 11:51:28 +0000 (11:51 +0000)]
    * gdb.stabs/ecoff.mt:  Remove STABSCC hack.
        * gdb.stabs/weird.exp:  Handle the case where weird.o is compiled
by mips cc and contains no stabs entries.

31 years ago * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
Peter Schauer [Fri, 17 Sep 1993 11:47:59 +0000 (11:47 +0000)]
* alpha-dis.c (print_insn_alpha), alpha-opc.h:  Fix bugs, use
info->fprintf_func for printing and info->print_address_func for
address output.

31 years ago * findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
Peter Schauer [Fri, 17 Sep 1993 11:46:50 +0000 (11:46 +0000)]
* findvar.c (extract_signed_integer):  Cast *p to LONGEST before doing
the xor and subtract.  Otherwise it will not sign extend if the type
of LONGEST is larger than int.
* cp-valprint.c (cp_print_class_method):  Inhibit core dump if
domain is an undefined cross reference.
* valops.c (call_function_by_hand):  Set real_pc to correct

31 years ago* hosts/{alphaosf.h, amix.h, apollo68.h, apollov68.h,
John Gilmore [Fri, 17 Sep 1993 09:14:31 +0000 (09:14 +0000)]
* hosts/{alphaosf.h, amix.h, apollo68.h, apollov68.h,
decstation.h, delta88.h, dgux.h, dose.h, go32.h, harris.h,
hp300.h, hp300bsd.h, hppabsd.h, hppahpux.h, i386aix.h, i386bsd.h,
i386linux.h, i386lynx.h, i386v.h, i386v4.h, irix3.h, irix4.h,
mipsbsd.h, ncr3000.h, rs6000.h, rtbsd.h, solaris2.h, sparc-ll.h,
std-host.h, stratus.h, sun3.h, sysv4.h, tahoe.h, ultra3.h,
vaxult.h, vaxult2.h, we32k.h}:  Make sure that "offsetof" is
defined on all hosts, now that archive.c uses it.

31 years agoMake sure that "offsetof" is defined on all hosts, now that archive.c uses it.
John Gilmore [Fri, 17 Sep 1993 09:08:00 +0000 (09:08 +0000)]
Make sure that "offsetof" is defined on all hosts, now that archive.c uses it.

31 years ago* config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.
Jim Kingdon [Fri, 17 Sep 1993 04:54:52 +0000 (04:54 +0000)]
* config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.

31 years ago * sym.h, symconst.h: Add comment stating these files are not part
Jim Kingdon [Fri, 17 Sep 1993 03:32:10 +0000 (03:32 +0000)]
* sym.h, symconst.h: Add comment stating these files are not part
of GDB, GAS, etc.  In 1991, when we asked rms whether we could
include these files in GDB (although they are copyrighted by
someone besides the FSF), he said it was OK if they were not
considered part of GDB.

31 years ago * stabs.texinfo (Negative Type Numbers): Re-write discussions of
Jim Kingdon [Fri, 17 Sep 1993 00:50:09 +0000 (00:50 +0000)]
* stabs.texinfo (Negative Type Numbers): Re-write discussions of
names, sizes, and formats to suggest how not to lose.

31 years ago * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
Jim Kingdon [Thu, 16 Sep 1993 23:45:46 +0000 (23:45 +0000)]
* remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
to tm-a29k.h and a29k-tdep.c and make it an enum.
* a29k-tdep.c (a29k_get_processor_type): New function.  Fix many
aspects of how we detected the processor type.
* remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
rather than figuring out the type ourselves.

31 years ago * config/vx-gdb.exp: Use fake device to load files rather than
Rob Savoye [Thu, 16 Sep 1993 23:27:10 +0000 (23:27 +0000)]
* config/vx-gdb.exp: Use fake device to load files rather than
NFS.
* lib/gdb.exp: New proc to do "file" command.
* config/unix-gdb.exp: Use new "file" proc.

31 years agoUse new proc for "file" command to load symbol tables.
Rob Savoye [Thu, 16 Sep 1993 23:21:56 +0000 (23:21 +0000)]
Use new proc for "file" command to load symbol tables.

31 years ago * elfcode.h (elf_map_symbols): Create section symbols for all
Ian Lance Taylor [Thu, 16 Sep 1993 22:24:33 +0000 (22:24 +0000)]
* elfcode.h (elf_map_symbols): Create section symbols for all
sections, not just allocated sections; debugging sections can have
relocs.
(elf_symbol_from_bfd_symbol): If there is an output section, use
the section index from that rather than the input section.

31 years ago* infrun.c (wait_for_inferior): Allow user to single step within
Stu Grossman [Thu, 16 Sep 1993 20:18:26 +0000 (20:18 +0000)]
* infrun.c (wait_for_inferior):  Allow user to single step within
a stack dummy.

31 years ago * dbxread.c (copy_pending): Deal with END NULL.
Jim Kingdon [Thu, 16 Sep 1993 19:54:47 +0000 (19:54 +0000)]
* dbxread.c (copy_pending): Deal with END NULL.
(process_one_symbol): Add comments about what common_block NULL means.

31 years ago* sparc-stub.c (_trap_low): Do restore/save sequence after
Stu Grossman [Thu, 16 Sep 1993 19:16:19 +0000 (19:16 +0000)]
* sparc-stub.c (_trap_low):  Do restore/save sequence after
setting sp to ensure that we load the previous window from the
right place on the stack.

31 years ago * tc.h: Declare tc_gen_reloc differently depending upong
Ian Lance Taylor [Thu, 16 Sep 1993 18:26:36 +0000 (18:26 +0000)]
* tc.h: Declare tc_gen_reloc differently depending upong
RELOC_EXPANSION_POSSIBLE.
* config/obj-elf.c (obj_elf_section): Only set flags when first
creating the section.

31 years ago * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
Ian Lance Taylor [Thu, 16 Sep 1993 17:57:19 +0000 (17:57 +0000)]
* config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
Rework board rebooting slightly.
(gdb_exit): Don't exit from the remote shell; there isn't one.
* gdb.stabs/weird.exp: If a program is being debugged already,
kill it.
* gdb.t04/setvar.exp: Stop and restart gdb.
* gdb.t05/expr.exp: Likewise.
* gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and
restart gdb and reload the program.
* gdb.t08/opaque.exp: Likewise.
* gdb.t12/scope.exp: Likewise.
* gdb.t13/bitfields.exp: Likewise.
* gdb.t15/funcargs.exp: Likewise.
* gdb.t20/classes.exp: Likewise.
* gdb.t03/ptype.exp: Increase timeout.
* gdb.t16/printcmds.exp (test_print_string_constants,
test_print_array_constants): Likewise.
* gdb.t17/callfuncs.exp (do_function_calls): Likewise.
* gdb.t20/classes.exp (do_tests): Likewise.
* gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.

31 years ago * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define.
Peter Schauer [Thu, 16 Sep 1993 07:39:41 +0000 (07:39 +0000)]
* config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM):  Define.

31 years ago * mipsread.c: Many changes for alpha ecoff format:
Peter Schauer [Thu, 16 Sep 1993 07:38:42 +0000 (07:38 +0000)]
* mipsread.c:  Many changes for alpha ecoff format:
Correct sizeof(int) == sizeof(long) assumptions.
Replace stParsed hack by putting the parsed types on the pending chain.
Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro,
provide default for cross debugging.
Swapping the symbol back is no longer needed as the symbol is not
modified anymore.
Add new alpha basic types, handle btTypedef, handle stStaticProc
external symbols .
Update and clean up cross_ref for alpha cc cross ref variations.
Allocate types on the type_obstack to inhibit storage leaks.
* config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM):  Define.
* gdbtypes.c (recursive_dump_type):  Dump TYPE_TAG_NAME if it is set.

31 years agoChange wierd to weird
Ian Lance Taylor [Wed, 15 Sep 1993 22:17:29 +0000 (22:17 +0000)]
Change wierd to weird

31 years ago * libbfd.h (COERCExx): Cast x to bfd_signed_vma before doing the
Ian Lance Taylor [Wed, 15 Sep 1993 20:57:47 +0000 (20:57 +0000)]
* libbfd.h (COERCExx): Cast x to bfd_signed_vma before doing the
xor and subtract.  Otherwise it will not sign extend if the type
of bfd_vma is larger than int.

31 years ago * remote-utils.[ch]: new files of functions collected from several
Jim Kingdon [Wed, 15 Sep 1993 20:20:23 +0000 (20:20 +0000)]
* remote-utils.[ch]: new files of functions collected from several
  different remote targets.

31 years ago * gdb.t13/bitfields.exp: Test for bad output rather than waiting
Jim Kingdon [Wed, 15 Sep 1993 17:39:33 +0000 (17:39 +0000)]
* gdb.t13/bitfields.exp: Test for bad output rather than waiting
for timeout.  Add "known gcc 2.4.5 bug" to failure message.

31 years ago * paread.c, coffread.c, elfread.c, dwarfread.c:
Jim Kingdon [Wed, 15 Sep 1993 16:45:44 +0000 (16:45 +0000)]
* paread.c, coffread.c, elfread.c, dwarfread.c:
Include <time.h> and <sys/types.h> before libbfd.h.

31 years ago * ecoffswap.h (ecoff_swap_pdr_in): Get regoffset, iopt, fregoffset
Ian Lance Taylor [Wed, 15 Sep 1993 15:58:11 +0000 (15:58 +0000)]
* ecoffswap.h (ecoff_swap_pdr_in): Get regoffset, iopt, fregoffset
and frameoffset as signed numbers.  From Peter Schauer.

31 years agofix replacement of multiline values for CC and CXX
David D. Zuhn [Wed, 15 Sep 1993 02:11:35 +0000 (02:11 +0000)]
fix replacement of multiline values for CC and CXX

31 years ago * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
Jim Kingdon [Wed, 15 Sep 1993 00:47:45 +0000 (00:47 +0000)]
* gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
(do_tests): Remove xfail for whatis on one_var and two_var.

31 years ago * stabsread.c (read_type): Process "s" (size) type attribute.
Jim Kingdon [Wed, 15 Sep 1993 00:46:55 +0000 (00:46 +0000)]
* stabsread.c (read_type): Process "s" (size) type attribute.
If type is defined to another type, copy the type.

31 years ago * paread.c, coffread.c, elfread.c, dwarfread.c:
Jim Kingdon [Tue, 14 Sep 1993 23:26:43 +0000 (23:26 +0000)]
* paread.c, coffread.c, elfread.c, dwarfread.c:
Include <time.h> before libbfd.h.

31 years ago * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
Ian Lance Taylor [Tue, 14 Sep 1993 22:41:49 +0000 (22:41 +0000)]
* config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
* config/i386/i386v4.mt (TDEPFILES): ...to here.

31 years ago * elf32-i386.c (elf_howto_table): Add bfd_elf_generic_reloc
Ian Lance Taylor [Tue, 14 Sep 1993 22:29:26 +0000 (22:29 +0000)]
* elf32-i386.c (elf_howto_table): Add bfd_elf_generic_reloc
special function for all reloc entries.
* elf32-target.h (TARGET_LITTLE_SYM): Add SEC_CODE to
section_flags.
* libelf.h (elf_symbol_type): Remove desc, type and other fields.
* Makefile.in (elf32-*.o): These depend upon elf32-target.h.