binutils-gdb.git
31 years agoModified Files:
Kung Hsu [Wed, 29 Sep 1993 20:18:00 +0000 (20:18 +0000)]
Modified Files:
cp-valprint.c
Log Messages:
        * cp-valprint.c: change vtble field name to __vtbl (pr2695)

31 years agoModified Files:
Kung Hsu [Wed, 29 Sep 1993 18:44:47 +0000 (18:44 +0000)]
Modified Files:
symtab.c

     * symtab.c: fix a bug in gdb_mangle_name, to get mangled name right

31 years agocheck in ChangeLog entry for kung change
Jim Kingdon [Wed, 29 Sep 1993 18:27:19 +0000 (18:27 +0000)]
check in ChangeLog entry for kung change

31 years agoModified Files:
Kung Hsu [Wed, 29 Sep 1993 17:02:10 +0000 (17:02 +0000)]
Modified Files:
  c-valprint.c

Log messages:
       * c-valprint.c: to fix virtual table print bug (pr2695)

31 years ago * readline.c (parser_if): Free tname when done with it (change
Jim Kingdon [Wed, 29 Sep 1993 16:09:01 +0000 (16:09 +0000)]
* readline.c (parser_if): Free tname when done with it (change
imported from from bash 1.12 readline).

31 years ago * target.c (target_detach): Call generic_mourn_inferior.
Jim Kingdon [Wed, 29 Sep 1993 15:59:36 +0000 (15:59 +0000)]
* target.c (target_detach): Call generic_mourn_inferior.
* inflow.c (generic_mourn_inferior): Call flush_cached_frames.

31 years ago* dbxread.c, coffread.c, elfread.c: A few changes to comments.
Jim Kingdon [Wed, 29 Sep 1993 04:25:15 +0000 (04:25 +0000)]
* dbxread.c, coffread.c, elfread.c: A few changes to comments.

31 years ago* dbxread.c, coffread.c: A few changes to comments.
Jim Kingdon [Wed, 29 Sep 1993 04:15:43 +0000 (04:15 +0000)]
* dbxread.c, coffread.c: A few changes to comments.

31 years agoAdditions to support stabs-in-coff.
Stan Shebs [Wed, 29 Sep 1993 01:53:52 +0000 (01:53 +0000)]
Additions to support stabs-in-coff.

31 years agoTue Sep 28 19:20:16 1993 Jeffrey A Law (law@snake.cs.utah.edu)
Jim Kingdon [Wed, 29 Sep 1993 00:25:04 +0000 (00:25 +0000)]
Tue Sep 28 19:20:16 1993  Jeffrey A Law (law@snake.cs.utah.edu)

* hppa-dis.c (print_insn_hppa): Handle 'z' operand
type for absolute branch addresses.  Delete special
"ble" and "be" code in 'W' operand code.

31 years agoTue Sep 28 19:19:08 1993 Jeffrey A Law (law@snake.cs.utah.edu)
Jim Kingdon [Wed, 29 Sep 1993 00:24:04 +0000 (00:24 +0000)]
Tue Sep 28 19:19:08 1993  Jeffrey A Law (law@snake.cs.utah.edu)

* hppa.h (be, ble): Use operand type 'z' to denote absolute branch
addresses.

31 years ago * gdb.t24 (demangle.exp): Constructors of templates have names like
Jim Kingdon [Wed, 29 Sep 1993 00:10:26 +0000 (00:10 +0000)]
* gdb.t24 (demangle.exp): Constructors of templates have names like
vector<int>::vector(int) not vector<int>::vector<int>(int).  See
section 14.6 of the ARM.

* gdb.t24 (demangle.exp): Remove a whole bunch of tests of the form
"_vt$MoveCmd"; these differ only in name from "_vt$foo", so they
accomplish little and slow down the testsuite.

* gdb.t24 (demangle.exp): Accept "XXX const" as well as "const XXX".
Accept spaces various places.

31 years ago * infcmd.c (run_stack_dummy): Set the frame in the bp_call_dummy
Jim Kingdon [Tue, 28 Sep 1993 23:30:02 +0000 (23:30 +0000)]
* infcmd.c (run_stack_dummy): Set the frame in the bp_call_dummy
breakpoint.

31 years ago * gdb.t24 (demangle.exp): Accept "XXX const" as well as "const XXX".
Jim Kingdon [Tue, 28 Sep 1993 22:39:06 +0000 (22:39 +0000)]
* gdb.t24 (demangle.exp): Accept "XXX const" as well as "const XXX".
Accept spaces various places.

31 years ago * config/nm-sysv4.h: Include solib.h. Define SVR4_SHARED_LIBS.
Ian Lance Taylor [Tue, 28 Sep 1993 21:58:59 +0000 (21:58 +0000)]
* config/nm-sysv4.h: Include solib.h.  Define SVR4_SHARED_LIBS.
* config/tm-sysv4.h: Don't include solib.h.
* config/xm-sysv4.h: Don't define SVR4_SHARED_LIBS.
* config/i386/i386v4.mt (TDEPFILES): Move solib.o from here...
* config/i386/i386v4.mh (NATDEPFILES): ...to here.
* config/i386/nm-i386v4.h: Include nm-sysv4.h.
* config/m68k/amix.mt (TDEPFIES): Move solib.o from here...
* config/m68k/amix.mh (NATDEPFILES): ...to here.

31 years ago * section.c (bfd_make_section_anyway): New function.
Jim Kingdon [Tue, 28 Sep 1993 21:47:15 +0000 (21:47 +0000)]
* section.c (bfd_make_section_anyway): New function.
* section.c: Change comments to say several sections can have
the same name.
* bfd-in2.h: Re-generate to reflect above change.
* coffgen.c (make_a_section_from_file): Call bfd_make_section_anyway
if still no section after the bfd_coff_make_section_hook.
* coffcode.h: Add comment about TWO_DATA_SECS.

31 years agoLynx support
Stan Shebs [Tue, 28 Sep 1993 20:59:59 +0000 (20:59 +0000)]
Lynx support

31 years agoLynx support
Stan Shebs [Tue, 28 Sep 1993 20:51:22 +0000 (20:51 +0000)]
Lynx support

31 years ago * section.c (bfd_make_section_anyway): New function.
Jim Kingdon [Tue, 28 Sep 1993 20:44:43 +0000 (20:44 +0000)]
* section.c (bfd_make_section_anyway): New function.
* section.c: Change comments to say several sections can have
the same name.
* bfd-in2.h: Re-generate to reflect above change.
* coffgen.c (make_a_section_from_file): Call bfd_make_section_anyway
if still no section after the bfd_coff_make_section_hook.
* coffcode.h: Add comment about TWO_DATA_SECS.

31 years agoKeep m68klynx.h
Stan Shebs [Tue, 28 Sep 1993 20:27:21 +0000 (20:27 +0000)]
Keep m68klynx.h

31 years agoKeep m68klynx.c
Stan Shebs [Tue, 28 Sep 1993 20:25:00 +0000 (20:25 +0000)]
Keep m68klynx.c

31 years agoKeep te-lynx.h
Stan Shebs [Tue, 28 Sep 1993 20:20:27 +0000 (20:20 +0000)]
Keep te-lynx.h

31 years agoMore Lynx support, plus better stabs-in-coff generation.
Stan Shebs [Tue, 28 Sep 1993 19:22:08 +0000 (19:22 +0000)]
More Lynx support, plus better stabs-in-coff generation.

31 years agoTue Sep 28 09:45:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
Jim Kingdon [Tue, 28 Sep 1993 17:43:25 +0000 (17:43 +0000)]
Tue Sep 28 09:45:38 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)

* symmisc.c (print_symbol): Use %02x not %2x for LOC_CONST_BYTES.

Clean up problems with targets and hosts that have 64 bit longs
and pointers and 32 bit ints.
* breakpoint.c, buildsym.c, c-lang.c, c-valprint.c, ch-lang.c,
ch-valprint.c, core.c, cp-valprint.c, dbxread.c, exec.c,
expprint.c, gdbtypes.c, infcmd.c, language.c, language.h,
m2-lang.c, maint.c, mips-tdep.c, mipsread.c, partial-stab.h,
printcmd.c, remote-vx.c, solib.c, source.c, stack.c, symfile.c,
symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
Change all printf formats from %x to %lx if outputting an address.
Change la_*_format to use long format.
local_hex_string, local_hex_string_custom now take an unsigned long
argument, change all callers.
* coffread.c (read_coff_symtab):  Remove superfluous cast for
complaint output.
* dbxread.c (end_psymtab):  Cast MSYMBOL_INFO to long, not int.
* findvar.c, value.h (write_register):  Change register value to long.
* gdbtypes.h (struct type):  Change `bitsize' to long as
TYPE_FIELD_STATIC_PHYSNAME uses this field as a pointer.
* inferior.h (struct inferior_status):  Change type of stop_pc to
CORE_ADDR.
* language.h (local_octal_string, local_octal_string_custom):
Remove prototype, the functions are neither defined nor used.
* mipsread.c (parse_symbol):  Use temporary variable for bitsize as
f->bitsize is a long now.
* objfiles.c (add_to_objfile_sections, build_objfile_section_table):
Use unsigned long casts instead of int for abusing sections_end
pointer as integer.
* stack.c (parse_frame_specification):  Change type of `args' to
CORE_ADDR for SETUP_ARBITRARY_FRAME.

* printcmd.c (make_vasize):  Allow redefinition via MAKEVA_SIZE.
* mipsread.c (parse_type):  Alpha cc now supports the t->continued
bit, update algorithm to match the way the compiler uses it.

31 years ago* utils.c (fprintfi_filtered): Fix comments.
Jim Kingdon [Tue, 28 Sep 1993 17:10:37 +0000 (17:10 +0000)]
* utils.c (fprintfi_filtered): Fix comments.

31 years ago* main.c, utils.c: Add comments about immediate_quit.
Jim Kingdon [Tue, 28 Sep 1993 16:23:44 +0000 (16:23 +0000)]
* main.c, utils.c: Add comments about immediate_quit.

31 years ago * ecoff.c (ecoff_slurp_symbolic_info): Always determine raw_size
Peter Schauer [Tue, 28 Sep 1993 10:23:52 +0000 (10:23 +0000)]
* ecoff.c (ecoff_slurp_symbolic_info):  Always determine raw_size
explicitly.
* ecoff.c (ecoff_sec_to_styp_flags, ecoff_styp_to_sec_flags):  Handle
.fini section.

31 years agoWhitespace/comment cleanup. Use PARAMS in tc-vax.c.
Ken Raeburn [Tue, 28 Sep 1993 04:47:32 +0000 (04:47 +0000)]
Whitespace/comment cleanup.  Use PARAMS in tc-vax.c.
Make various routines return null pointer instead of empty string for
success indication.

31 years agoFix a typo
Stan Shebs [Tue, 28 Sep 1993 01:57:25 +0000 (01:57 +0000)]
Fix a typo

31 years agoNew and improved Lynx support.
Stan Shebs [Tue, 28 Sep 1993 01:53:25 +0000 (01:53 +0000)]
New and improved Lynx support.

31 years ago* coffread.c (read_coff_symtab): Don't call getfilename if there
Stu Grossman [Tue, 28 Sep 1993 01:19:07 +0000 (01:19 +0000)]
* coffread.c (read_coff_symtab):  Don't call getfilename if there
are no auxents.

31 years agohp300/hpux9 uses X11r5
David D. Zuhn [Tue, 28 Sep 1993 00:31:23 +0000 (00:31 +0000)]
hp300/hpux9 uses X11r5

31 years ago * archive.c: Define offsetof here.
Jim Kingdon [Mon, 27 Sep 1993 23:27:46 +0000 (23:27 +0000)]
* archive.c: Define offsetof here.
* hosts/*.h: Don't define it here.

31 years ago * elfcode.h (bfd_section_from_shdr): Set filepos for SHT_STRTAB
Ian Lance Taylor [Mon, 27 Sep 1993 23:12:40 +0000 (23:12 +0000)]
* elfcode.h (bfd_section_from_shdr): Set filepos for SHT_STRTAB
section.

31 years ago* symtab.c (find_pc_line): Fix comments.
Jim Kingdon [Mon, 27 Sep 1993 16:34:29 +0000 (16:34 +0000)]
* symtab.c (find_pc_line): Fix comments.

31 years ago* remote-udi.c (udi_mourn): Don't pop target.
Jim Kingdon [Mon, 27 Sep 1993 15:30:29 +0000 (15:30 +0000)]
* remote-udi.c (udi_mourn): Don't pop target.

31 years agoexpr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of symbols in different segs.
Ken Raeburn [Mon, 27 Sep 1993 04:23:13 +0000 (04:23 +0000)]
expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of symbols in different segs.

31 years agosome 68k pic stuff
Ken Raeburn [Mon, 27 Sep 1993 03:57:58 +0000 (03:57 +0000)]
some 68k pic stuff

31 years agodefine DIFF_EXPR_OK
Ken Raeburn [Mon, 27 Sep 1993 03:56:04 +0000 (03:56 +0000)]
define DIFF_EXPR_OK

31 years ago(flag_want_pic): New variable, mostly ignored.
Ken Raeburn [Mon, 27 Sep 1993 03:55:33 +0000 (03:55 +0000)]
(flag_want_pic): New variable, mostly ignored.
(md_parse_option) [TE_SUN3]: Set it for "-k".
(m68k_ip): Generate proper fixup for mode 7.3.

31 years ago* hpux-core.c: Add comment about hpux version 7.
Jim Kingdon [Sun, 26 Sep 1993 18:47:53 +0000 (18:47 +0000)]
* hpux-core.c: Add comment about hpux version 7.

31 years agominor tc-m68k.c changes
Ken Raeburn [Sat, 25 Sep 1993 09:32:32 +0000 (09:32 +0000)]
minor tc-m68k.c changes

31 years agoMoved struct m68k_incant and related macros earlier in the file.
Ken Raeburn [Sat, 25 Sep 1993 09:32:12 +0000 (09:32 +0000)]
Moved struct m68k_incant and related macros earlier in the file.
Make insop and add_exp functions for readability.
Whitespace/comment changes.

31 years ago* corelow.c: Add multi thread/process support for core files with
Stu Grossman [Sat, 25 Sep 1993 00:40:20 +0000 (00:40 +0000)]
* corelow.c:  Add multi thread/process support for core files with
.reg/XXX pseudo-sections.
* i386lynx-nat.c thread.h thread.c:  Remove unnecessary core file
support.

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 *.