binutils-gdb.git
30 years agoOpps. Put log into wrong ChangeLog.
Jeff Law [Mon, 17 Jan 1994 08:14:09 +0000 (08:14 +0000)]
Opps.  Put log into wrong ChangeLog.

30 years ago * opcode/hppa.h: Fix templates for all the sfu and copr
Jeff Law [Mon, 17 Jan 1994 08:13:30 +0000 (08:13 +0000)]
    * opcode/hppa.h: Fix templates for all the sfu and copr
        instructions.

30 years ago* Makefile.in (init.c): Add comment explaining formatting conventions.
Jim Kingdon [Mon, 17 Jan 1994 00:58:29 +0000 (00:58 +0000)]
* Makefile.in (init.c): Add comment explaining formatting conventions.

30 years ago * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
Jim Kingdon [Mon, 17 Jan 1994 00:47:38 +0000 (00:47 +0000)]
* i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
farther than we should.

30 years ago * as.h (subseg_force_new): Add prototype.
Jeff Law [Mon, 17 Jan 1994 00:45:15 +0000 (00:45 +0000)]
    * as.h (subseg_force_new): Add prototype.

30 years ago* i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
Jim Kingdon [Mon, 17 Jan 1994 00:38:56 +0000 (00:38 +0000)]
* i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.

30 years ago * c-exp.y (parse_number): Assign to temporary between the right
Jim Kingdon [Mon, 17 Jan 1994 00:23:49 +0000 (00:23 +0000)]
* c-exp.y (parse_number): Assign to temporary between the right
shifts, to work around a bug in the SCO compiler.

30 years ago * complete.c, bind.c: Include <sys/stat.h>.
Jim Kingdon [Sun, 16 Jan 1994 23:43:22 +0000 (23:43 +0000)]
* complete.c, bind.c: Include <sys/stat.h>.
* complete.c: Define X_OK if not defined by a system header.

30 years ago * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
Jim Kingdon [Sun, 16 Jan 1994 22:45:13 +0000 (22:45 +0000)]
* Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
Add various files which were added to GDB recently.

30 years ago * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
Jim Kingdon [Sun, 16 Jan 1994 20:09:59 +0000 (20:09 +0000)]
* xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
within_function.

30 years ago * chardefs.h: Don't declare xmalloc.
Jim Kingdon [Sun, 16 Jan 1994 18:48:02 +0000 (18:48 +0000)]
* chardefs.h: Don't declare xmalloc.

* keymaps.h: Include "chardefs.h" not <readline/chardefs.h>.

30 years ago * stabs.texinfo: Re-do stuff about C_BSTAT and move from XCOFF
Jim Kingdon [Sun, 16 Jan 1994 18:30:32 +0000 (18:30 +0000)]
* stabs.texinfo: Re-do stuff about C_BSTAT and move from XCOFF
Differences node to Statics node.
(Statics): Discuss XCOFF use of V symbol descriptor.

30 years ago* Makefile.in: Add mostlyclean target.
Jim Kingdon [Sun, 16 Jan 1994 17:47:47 +0000 (17:47 +0000)]
* Makefile.in: Add mostlyclean target.

30 years ago * Makefile.in: Remove refcard.dvi and GDBvn.texi in realclean,
Jim Kingdon [Sun, 16 Jan 1994 17:45:32 +0000 (17:45 +0000)]
* Makefile.in: Remove refcard.dvi and GDBvn.texi in realclean,
not clean.

30 years ago * Makefile.in (clean mostlyclean distclean realclean): Recurse
Jim Kingdon [Sun, 16 Jan 1994 17:39:16 +0000 (17:39 +0000)]
* Makefile.in (clean mostlyclean distclean realclean): Recurse
into subdirectories as well as doing this directory.  Add clean-dvi
target.

30 years ago * Makefile.in (clean mostlyclean distclean realclean): Recurse
Jim Kingdon [Sun, 16 Jan 1994 17:35:23 +0000 (17:35 +0000)]
* Makefile.in (clean mostlyclean distclean realclean): Recurse
into subdirectories as well as doing this directory.

30 years ago * readline.c, display.c: Patches to allow use of all 80
Per Bothner [Sun, 16 Jan 1994 04:04:13 +0000 (04:04 +0000)]
* readline.c, display.c:  Patches to allow use of all 80
columns on most terminals (those with am and xn).

30 years ago* Version 4.11.4.
Jim Kingdon [Sun, 16 Jan 1994 03:43:22 +0000 (03:43 +0000)]
* Version 4.11.4.

30 years ago Merge in changes from bash-1.13. The most obvious one is
Per Bothner [Sun, 16 Jan 1994 03:39:57 +0000 (03:39 +0000)]
Merge in changes from bash-1.13.  The most obvious one is
that the file readline.c has been split into multiple files.
* bind.c, complete.c, dispay.c, isearch.c, parens.c, rldefs.h,
rltty.c, search.c signals.c, tilde.c, tilde.h, xmalloc.c:  New files.

30 years ago * main.c (show_commands): Make return type of extern
Per Bothner [Sun, 16 Jan 1994 03:35:19 +0000 (03:35 +0000)]
* main.c (show_commands):  Make return type of extern
history_get be HIST_ENTRY, rather than struct _hist_entry.
(The latter loses with the upcoming merged readline.)

30 years ago * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
Jim Kingdon [Sun, 16 Jan 1994 03:23:50 +0000 (03:23 +0000)]
* minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
const char *, not char *.

30 years ago* symtab.h (struct symbol): Make section short, not unsigned short.
Jim Kingdon [Sun, 16 Jan 1994 03:14:21 +0000 (03:14 +0000)]
* symtab.h (struct symbol): Make section short, not unsigned short.

30 years ago* symtab.c (lookup_symbol): Add comment about QUIT here.
Jim Kingdon [Sun, 16 Jan 1994 02:39:50 +0000 (02:39 +0000)]
* symtab.c (lookup_symbol): Add comment about QUIT here.

30 years ago * gdb.t16/printcmds.exp (test_print_strings): Accept
Jim Kingdon [Sat, 15 Jan 1994 23:00:27 +0000 (23:00 +0000)]
* gdb.t16/printcmds.exp (test_print_strings): Accept
"(unsigned char *) " before the string.

30 years agoSat Jan 15 12:47:23 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 15 Jan 1994 20:50:15 +0000 (20:50 +0000)]
Sat Jan 15 12:47:23 1994  Stan Shebs  (shebs@andros.cygnus.com)

* config.sub (apple, mac, mpw): Add various aliases.

30 years agoFri Jan 7 14:34:31 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 15 Jan 1994 20:46:29 +0000 (20:46 +0000)]
Fri Jan  7 14:34:31 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-build.in: New file, top-level build script fragment for MPW.
* mpw-configure: New file, configure script for MPW.
* mpw-config.in: New file, config fragment for MPW.

30 years ago* utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
Jim Kingdon [Sat, 15 Jan 1994 20:14:43 +0000 (20:14 +0000)]
* utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.

30 years ago * c-exp.y (parse_number): Make it so that integer constants are
Jim Kingdon [Sat, 15 Jan 1994 19:51:56 +0000 (19:51 +0000)]
* c-exp.y (parse_number): Make it so that integer constants are
builtin_type_long_long if builtin_type_long isn't big enough or if
an "LL" suffix is used.  Properly handle "UL" or "LU" suffixes.

30 years ago* app.c (do_scrub_next_char): Allow lines like " foolab :".
David Edelsohn [Sat, 15 Jan 1994 19:00:32 +0000 (19:00 +0000)]
* app.c (do_scrub_next_char): Allow lines like " foolab :".

30 years ago* read.c (emit_expr): Fix computation of mask.
David Edelsohn [Sat, 15 Jan 1994 17:33:16 +0000 (17:33 +0000)]
* read.c (emit_expr): Fix computation of mask.

30 years ago* config/obj-elf.c (obj_elf_section): Fix loop termination test.
David Edelsohn [Sat, 15 Jan 1994 17:31:05 +0000 (17:31 +0000)]
* config/obj-elf.c (obj_elf_section): Fix loop termination test.

30 years ago * c-exp.y (parse_number): Check for overflow regardless of range
Jim Kingdon [Sat, 15 Jan 1994 17:14:18 +0000 (17:14 +0000)]
* c-exp.y (parse_number): Check for overflow regardless of range
checking.  Fix overflow check to use unsigned LONGEST, not
unsigned int.

* c-exp.y (parse_number): Make it so that integer constants are
builtin_type_long_long if builtin_type_long isn't big enough or if
an "LL" suffix is used.  Properly handle "UL" or "LU" suffixes.

30 years ago* TODO: Add notes about printing of fancy types and GDB expressions.
Jim Kingdon [Sat, 15 Jan 1994 17:03:41 +0000 (17:03 +0000)]
* TODO: Add notes about printing of fancy types and GDB expressions.

30 years ago* TODO: Add notes about printing of fancy types and GDB expressions.
Jim Kingdon [Sat, 15 Jan 1994 16:30:04 +0000 (16:30 +0000)]
* TODO: Add notes about printing of fancy types and GDB expressions.

30 years ago * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
Jim Kingdon [Sat, 15 Jan 1994 15:27:49 +0000 (15:27 +0000)]
* c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
Print our "()" first, then recurse for the target type.

30 years ago* TODO: Add note about printing of fancy types.
Jim Kingdon [Sat, 15 Jan 1994 14:58:41 +0000 (14:58 +0000)]
* TODO: Add note about printing of fancy types.

30 years ago* remote-udi.c (udi_create_inferior): Quote empty execfile argument.
Jim Kingdon [Sat, 15 Jan 1994 04:28:18 +0000 (04:28 +0000)]
* remote-udi.c (udi_create_inferior): Quote empty execfile argument.

30 years ago* gdbserver/low-lynx.c: Include <sys/wait.h> not /usr/include/wait.h.
Jim Kingdon [Sat, 15 Jan 1994 03:51:40 +0000 (03:51 +0000)]
* gdbserver/low-lynx.c: Include <sys/wait.h> not /usr/include/wait.h.

30 years ago * utils.c (request_quit): Re-establish signal handler regardless
Jim Kingdon [Sat, 15 Jan 1994 03:43:01 +0000 (03:43 +0000)]
* utils.c (request_quit): Re-establish signal handler regardless
of USG.

* config/mips/xm-irix4.h: Define HAVE_TERMIOS.

30 years ago* i960-tdep.c: Include target.h.
Jim Kingdon [Sat, 15 Jan 1994 02:56:47 +0000 (02:56 +0000)]
* i960-tdep.c: Include target.h.

30 years agoFri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Sat, 15 Jan 1994 01:15:55 +0000 (01:15 +0000)]
Fri Jan 14 17:12:28 1994  Stan Shebs  (shebs@andros.cygnus.com)

* lynx-nat.c (sys/wait.h): Don't use absolute pathname.

30 years ago * elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, set
Ian Lance Taylor [Fri, 14 Jan 1994 22:35:41 +0000 (22:35 +0000)]
* elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, set
the DYNAMIC flag for the BFD.
(NAME(bfd_elf,write_object_contents)): Don't try to write out a
BFD with the DYNAMIC flag set, since we don't generate the program
header table correctly.

30 years ago * objcopy.c (strip_main, copy_main): Don't clobber the input file
Ian Lance Taylor [Fri, 14 Jan 1994 21:44:44 +0000 (21:44 +0000)]
* objcopy.c (strip_main, copy_main): Don't clobber the input file
if copy_file fails.

30 years ago * nlmconv.c (main): Warn about an attempt to use a shared library
Ian Lance Taylor [Fri, 14 Jan 1994 20:58:43 +0000 (20:58 +0000)]
* nlmconv.c (main): Warn about an attempt to use a shared library
with uninitialized data.

30 years ago Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (Philippe
Ian Lance Taylor [Fri, 14 Jan 1994 20:43:07 +0000 (20:43 +0000)]
Motorola Delta sysV68 support from phdm@info.ucl.ac.BE (Philippe
De Muyter).
* configure.in (m68k-motorola-sysv*) New target.
* config/delta68.mt: New file.
* emulparams/delta68.sh: New file.
* scripttempl/delta68.sc: New file.
* Makefile.in (ALL_EMULATIONS): Added em_delta68.o.
(em_delta68.c): New target.

30 years ago * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
Jim Kingdon [Fri, 14 Jan 1994 19:57:50 +0000 (19:57 +0000)]
* lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
changes (status -> ourstatus; declare status, etc.).
* config/nm-lynx.h: Fix child_wait prototype and include target.h.

30 years ago * nlmconv.c (setup_sections): Make sure that we align the
Ian Lance Taylor [Fri, 14 Jan 1994 19:55:42 +0000 (19:55 +0000)]
* nlmconv.c (setup_sections): Make sure that we align the
output_offset of each input section appropriately.

30 years ago* Makefile.in (ALLPARAM): Add config/nm-lynx.h.
Jim Kingdon [Fri, 14 Jan 1994 19:19:56 +0000 (19:19 +0000)]
* Makefile.in (ALLPARAM): Add config/nm-lynx.h.

30 years ago * remote-mips.c (mips_request, mips_wait): Correct prototypes.
Ian Lance Taylor [Fri, 14 Jan 1994 16:52:22 +0000 (16:52 +0000)]
* remote-mips.c (mips_request, mips_wait): Correct prototypes.

30 years ago* config/i386/xm-linux.h: Define HAVE_TERMIOS.
Jim Kingdon [Fri, 14 Jan 1994 16:41:35 +0000 (16:41 +0000)]
* config/i386/xm-linux.h: Define HAVE_TERMIOS.

30 years ago * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
Peter Schauer [Fri, 14 Jan 1994 09:22:44 +0000 (09:22 +0000)]
* config/alpha/tm-alpha.h (CALL_DUMMY):  Improve comment.

30 years ago * ecoff.c (ecoff_link_write_external): An ifd can be -1.
Ian Lance Taylor [Fri, 14 Jan 1994 04:10:44 +0000 (04:10 +0000)]
* ecoff.c (ecoff_link_write_external): An ifd can be -1.

30 years agoecoff.c, as.c changes
Ken Raeburn [Fri, 14 Jan 1994 02:05:28 +0000 (02:05 +0000)]
ecoff.c, as.c changes

30 years ago(ecoff_set_gp_prolog_size): New function.
Ken Raeburn [Fri, 14 Jan 1994 02:01:52 +0000 (02:01 +0000)]
(ecoff_set_gp_prolog_size): New function.
(current_file_idx): New static variable.
(add_file): Use and increment current_file_idx instead of indx parameter.

Also removed trailing whitespace from lines.

30 years agoOops. Didn't mean to change reject_dev_configs.
Ken Raeburn [Fri, 14 Jan 1994 01:55:59 +0000 (01:55 +0000)]
Oops.  Didn't mean to change reject_dev_configs.

30 years agoDon't include config.h directly any more.
Ken Raeburn [Fri, 14 Jan 1994 01:54:01 +0000 (01:54 +0000)]
Don't include config.h directly any more.

30 years ago* struc-symbol.h (struct symbol): Make all bitfields unsigned.
Ken Raeburn [Fri, 14 Jan 1994 01:28:19 +0000 (01:28 +0000)]
* struc-symbol.h (struct symbol): Make all bitfields unsigned.

30 years ago * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
Jim Kingdon [Thu, 13 Jan 1994 23:06:03 +0000 (23:06 +0000)]
* remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
is defined.  Otherwise just report TARGET_SIGNAL_UNKNOWN.

30 years ago * som.c (som_set_reloc_info): Provide a default symbol for
Jeff Law [Thu, 13 Jan 1994 22:53:03 +0000 (22:53 +0000)]
    * som.c (som_set_reloc_info): Provide a default symbol for
        relocations which don't actually have an associated symbol.

30 years ago * objdump.c (dump_relocs): Don't crash if section name is NULL.
Ian Lance Taylor [Thu, 13 Jan 1994 22:34:51 +0000 (22:34 +0000)]
* objdump.c (dump_relocs): Don't crash if section name is NULL.

30 years agoChanges for i960_validate_fix, i386-netbsd* configs, BFDDEF handling, literal
Ken Raeburn [Thu, 13 Jan 1994 21:34:15 +0000 (21:34 +0000)]
Changes for i960_validate_fix, i386-netbsd* configs, BFDDEF handling, literal
pool offset bugs, config.h handling.

30 years ago(add_to_literal_pool): Take symbol and addend as arguments, instead of
Ken Raeburn [Thu, 13 Jan 1994 21:31:50 +0000 (21:31 +0000)]
(add_to_literal_pool): Take symbol and addend as arguments, instead of
expression, for now.  Fix calculation of offset to return.

30 years ago(segment_info_type) [NEED_LITERAL_POOL]: Add field literal_pool_size.
Ken Raeburn [Thu, 13 Jan 1994 21:30:18 +0000 (21:30 +0000)]
(segment_info_type) [NEED_LITERAL_POOL]: Add field literal_pool_size.

30 years ago* as.h: Include config.h. Added forward declaration for struct symbol.
Ken Raeburn [Thu, 13 Jan 1994 21:27:49 +0000 (21:27 +0000)]
* as.h: Include config.h.  Added forward declaration for struct symbol.
(add_to_literal_pool): Fix declaration.

30 years ago* configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
Ken Raeburn [Thu, 13 Jan 1994 21:24:27 +0000 (21:24 +0000)]
* configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
(i386-*-netbsd0.8): New target, like 386bsd.

* configure.in: Set BFDDEF in Makefile to "define" or "undef".
* Makefile.in (config.h): Protect against multiple inclusions.  Define or undef
BFD_ASSEMBLER as specified by $(BFDDEF).
(ALL_CFLAGS): Omit $(BFDDEF).

30 years ago * som.c (hppa_som_reloc): Add new "error message" argument.
Jeff Law [Thu, 13 Jan 1994 20:34:25 +0000 (20:34 +0000)]
    * som.c (hppa_som_reloc): Add new "error message" argument.

30 years ago * config/obj-som.c (som_frob_file): Call adjust_code_sections
Jeff Law [Thu, 13 Jan 1994 20:17:39 +0000 (20:17 +0000)]
    * config/obj-som.c (som_frob_file): Call adjust_code_sections
        for each section.
        (adjust_code_sections): New function.  Adjusts the VMA for all the
        $CODE$ subspaces.

        * config/tc-hppa.c (md_assemble): Also handle creating a fixup
        for the unwind descriptors if a function's label follows the
        .PROC and .ENTRY directives.
        (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
        is done elsewhere.  Don't create a fixup for the unwind
        descriptors if the function's label has not been defined yet.
        (pa_proc): For SOM, place each procedure within a new $CODE$
        subspace.  Adjust the segment and frag for the associated
        function label if it exists.

30 years ago * subsegs.c (subseg_get): Accept new argument "force_new". If
Jeff Law [Thu, 13 Jan 1994 20:17:07 +0000 (20:17 +0000)]
    * subsegs.c (subseg_get): Accept new argument "force_new".  If
        set then a new segment is always created.  All callers changed.
        (subseg_force_new): New function.  Similar to subseg_new, but
        always force a new segment to be created.

        * config/obj-som.c (som_frob_file): Call adjust_code_sections
        for each section.
        (adjust_code_sections): New function.  Adjusts the VMA for all the
        $CODE$ subspaces.

        * config/tc-hppa.c (md_assemble): Also handle creating a fixup
        for the unwind descriptors if a function's label follows the
        .PROC and .ENTRY directives.
        (pa_entry): Don't set BSF_FUNCTION for the label symbol here; it
        is done elsewhere.  Don't create a fixup for the unwind
        descriptors if the function's label has not been defined yet.
        (pa_proc): For SOM, place each procedure within a new $CODE$
        subspace.  Adjust the segment and frag for the associated
        function label if it exists.

30 years ago * subsegs.c (subseg_get): Accept new argument "force_new". If
Jeff Law [Thu, 13 Jan 1994 20:16:44 +0000 (20:16 +0000)]
    * subsegs.c (subseg_get): Accept new argument "force_new".  If
        set then a new segment is always created.  All callers changed.
        (subseg_force_new): New function.  Similar to subseg_new, but
        always force a new segment to be created.

30 years ago * gas/all/gas.exp: No longer expect difference of forward
Jeff Law [Thu, 13 Jan 1994 20:01:22 +0000 (20:01 +0000)]
    * gas/all/gas.exp: No longer expect difference of forward
        references to fail.
        * gas/all/x930509.s: Fix testcase to match how the expect code was
        written.

30 years ago Add search to target vector (#if 0'd until after 4.12):
Jim Kingdon [Thu, 13 Jan 1994 18:44:06 +0000 (18:44 +0000)]
Add search to target vector (#if 0'd until after 4.12):
* target.h (to_search, target_search): Add.
* gdbcore.h, core.c (generic_search): Add.
* remote.c (remote_search): Add.
* a29k-tdep.c (init_frame_info): Use target_search to find traceback
tag.

30 years ago * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
Jim Kingdon [Thu, 13 Jan 1994 17:41:40 +0000 (17:41 +0000)]
* printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
is on, call find_pc_function rather than relying just on the minimal
symbols (probably only matters for symbol readers which don't put
statics in the minimal symbols, but changing this strikes me as
not conservative enough).
Initialize name_location in all cases.
If no symbol and no msymbol, don't print anything symbolic.

30 years ago* a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
Jim Kingdon [Thu, 13 Jan 1994 15:38:00 +0000 (15:38 +0000)]
* a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.

30 years ago * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
Jeff Law [Thu, 13 Jan 1994 06:06:35 +0000 (06:06 +0000)]
    * config/tc-hppa.c (hppa_fix_struct): Add new "segment" field.
        (hppa_fix_new): Initialize segment field.
        (md_apply_fix): Do nothing for pc-relative fixup which involves
        crossing a segment boundary.
        (pa_procend): Undefine the current label after handling .PROC
        and .PROCEND directives.
        (dummy_symbol): Make type "symbolS *".  Change references as
        appropriate.

30 years ago* gdb.texinfo (Print Settings): Document `set print
John Gilmore [Thu, 13 Jan 1994 05:35:48 +0000 (05:35 +0000)]
* gdb.texinfo (Print Settings): Document `set print
fast-symbolic-addr' and improve the doc for some other
`set print's.

30 years ago* printcmd.c (print_address_symbolic): Make it search the
John Gilmore [Thu, 13 Jan 1994 05:04:40 +0000 (05:04 +0000)]
* printcmd.c (print_address_symbolic):  Make it search the
symtabs for variables as well as functions.  Add `set print
fast-symbolic-addr' and default it to fast (the old way).
Print line numbers for data items as well as functions.

* symtab.c (find_addr_symbol):  Return the symtab and the symbol
address, if a symbol is found (take two more args pointing to
where to store these results).

* symtab.h (find_addr_symbol):  Add prototype.

30 years ago * objfiles.h: Fix comments to reflect the fact that the phrase
Jim Kingdon [Thu, 13 Jan 1994 00:34:18 +0000 (00:34 +0000)]
* objfiles.h: Fix comments to reflect the fact that the phrase
"top of stack" always refers to where the pushing and popping takes
place, regardless of whether it is at the highest or lowest address.

30 years ago * gas/hppa/more.parse/procbug.s: Add test for another bug relating
Jeff Law [Wed, 12 Jan 1994 21:42:55 +0000 (21:42 +0000)]
    * gas/hppa/more.parse/procbug.s: Add test for another bug relating
        to having a function's label follow the .PROC directive.

30 years ago Enable gdb to write to core files on more core file readers.
Peter Schauer [Wed, 12 Jan 1994 21:40:42 +0000 (21:40 +0000)]
Enable gdb to write to core files on more core file readers.
* libbfd.c (bfd_generic_set_section_contents):  Remove range check
for section size, it is already done in bfd_set_section_contents
with bfd_get_section_size_now.
* aix386-core.c, hppabsd-core.c, hpux-core.c, irix-core.c,
osf-core.c, ptrace-core.c, trad-core.c (*_set_section_contents):
Use bfd_generic_set_section_contents instead of bfd_false.

30 years ago * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
Peter Schauer [Wed, 12 Jan 1994 21:27:51 +0000 (21:27 +0000)]
* mdebugread.c (parse_symbol):  Do not set TYPE_TAG_NAME for
compiler generated tag names.
* mdebugread.c (parse_type):  Handle cross references to qualified
aggregate types.
* valops.c (value_struct_elt):  Improve error message if the
address of a method is requested from an object instance.
* valops.c (search_struct_method):  Make name_matched non-static
to get it initialized correctly.

30 years ago * linker.c (default_indirect_link_order): Don't expect space for
Ian Lance Taylor [Wed, 12 Jan 1994 20:33:30 +0000 (20:33 +0000)]
* linker.c (default_indirect_link_order): Don't expect space for
output relocations if there aren't any input relocations.

30 years ago * go32-xdep.c: Remove unused function uerror.
Jim Kingdon [Wed, 12 Jan 1994 19:47:27 +0000 (19:47 +0000)]
* go32-xdep.c: Remove unused function uerror.
(sigsetmask): Declare return type.  Declare argument (to match the
way it is called).  Explicitly return 0.

30 years agoRemove CVS merge markers.
Ian Lance Taylor [Wed, 12 Jan 1994 19:18:56 +0000 (19:18 +0000)]
Remove CVS merge markers.

30 years ago * read.c (read_a_source_file): Cast array argument to unsigned
Ian Lance Taylor [Wed, 12 Jan 1994 18:40:11 +0000 (18:40 +0000)]
* read.c (read_a_source_file): Cast array argument to unsigned
char.
* write.c (adjust_reloc_syms): Remove unused variable symseginfo.
(write_object_file): Don't define punt_it if it won't be used.
(fixup_segment): Don't define skip if it won't be used.

30 years ago* symtab.h (struct symbol, general_symbol_info, minimal_symbol,
John Gilmore [Wed, 12 Jan 1994 09:53:06 +0000 (09:53 +0000)]
* symtab.h (struct symbol, general_symbol_info, minimal_symbol,
partial_symbol):  Shrink the storage sizes of symbols, by making
enums into 1-byte bitfields when compiled __GNUC__, moving all the
enums and small ints to the end of each struct to improve
alignment, and switching the section number from int to unsigned short.

30 years ago* symtab.c (find_addr_symbol): New routine that will find the nearest
John Gilmore [Wed, 12 Jan 1994 08:18:55 +0000 (08:18 +0000)]
* symtab.c (find_addr_symbol):  New routine that will find the nearest
symbol associated with an address.  It does so by exhaustive
search of the symtabs, so it's slow but complete.

30 years ago* coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
John Gilmore [Wed, 12 Jan 1994 08:02:26 +0000 (08:02 +0000)]
* coffread.c (read_coff_symtab):  Set PC bounds of _globals_ symtab
to [0,0] rather than [0, end of first source file].  This avoids
problems with other parts of GDB looking for linetables in the
_globals_ symtab.  Eliminate variables num_object_files and
first_object_file_end.

Fixes PR gdb/4072.

30 years ago* a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
John Gilmore [Wed, 12 Jan 1994 07:47:14 +0000 (07:47 +0000)]
* a29k-tdep.c (init_frame_info):  Cast null arg to examine_tag.
(pop_frame):  Restore PC2 and LR0 from dummy frames.
(push_dummy_frame):  Save PC2 and LR0 into dummy frames.
(setup_arbitrary_frame):  Handle 3 args and set up real frames.
* config/a29k/tm-a29k.h (FRAME_NUM_ARGS):  Update comments.
(DUMMY_FRAME_RSIZE):  Add 2 longwords for PC2 and LR0.
(SETUP_ARBITRARY_FRAME):  Define.

30 years ago * app.c (do_scrub_next_char): Another attempt to fix bugs
Jeff Law [Wed, 12 Jan 1994 05:55:09 +0000 (05:55 +0000)]
    * app.c (do_scrub_next_char): Another attempt to fix bugs
        dealing with labels without colons (for HPPA and MRI).

30 years ago * gas/hppa/reloc/reloc.exp: Add test for cross-subspace call bug
Jeff Law [Wed, 12 Jan 1994 05:49:12 +0000 (05:49 +0000)]
    * gas/hppa/reloc/reloc.exp: Add test for cross-subspace call bug
        found while working on multiple $CODE$ subspace support.

30 years ago* config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits.
David Edelsohn [Wed, 12 Jan 1994 01:11:26 +0000 (01:11 +0000)]
* config/tc-sparc.c (sparc_ip): Truncate args to %hi/%lo to 32 bits.

30 years ago* expr.c (integer_constant): Fix computation of too_many_digits. Variable
David Edelsohn [Wed, 12 Jan 1994 01:04:10 +0000 (01:04 +0000)]
* expr.c (integer_constant): Fix computation of too_many_digits.  Variable
digit_2 renamed to start.  Fix check for whether number will fit in 32 bits.
* read.c (emit_expr): Use valueT instead of long.

30 years ago * config/obj-elf.c: If TC_MIPS, include elf/mips.h.
Ian Lance Taylor [Tue, 11 Jan 1994 22:35:16 +0000 (22:35 +0000)]
* config/obj-elf.c: If TC_MIPS, include elf/mips.h.
(special_sections): Define.
(obj_elf_special_section): Get default types and attributes from
list of special sections.
* config/tc-mips.c (ELF_TC_SPECIAL_SECTIONS): Define.

30 years ago * config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
Ian Lance Taylor [Tue, 11 Jan 1994 21:31:30 +0000 (21:31 +0000)]
* config/obj-ecoff.c (ecoff_frob_file): Force .sdata and .sbss
sections to be close together.

30 years ago * aoutx.h (NAME(aout,final_link)): Set a_entry before computing
Ian Lance Taylor [Tue, 11 Jan 1994 20:58:30 +0000 (20:58 +0000)]
* aoutx.h (NAME(aout,final_link)): Set a_entry before computing
file offsets.

30 years ago * gdb.t12/scope.exp: Add xfails for rs6000. Remove 1806 from existing
Jim Kingdon [Tue, 11 Jan 1994 20:24:02 +0000 (20:24 +0000)]
* gdb.t12/scope.exp: Add xfails for rs6000.  Remove 1806 from existing
xfails; I'm not sure why they are failing, but not because of PR 1806.

30 years ago* infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
Jim Kingdon [Tue, 11 Jan 1994 20:15:55 +0000 (20:15 +0000)]
* infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.

30 years agolog for netbsd changes checked in a couple of days ago
Ken Raeburn [Tue, 11 Jan 1994 19:53:28 +0000 (19:53 +0000)]
log for netbsd changes checked in a couple of days ago

30 years ago * elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, not
Ian Lance Taylor [Tue, 11 Jan 1994 19:39:28 +0000 (19:39 +0000)]
* elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, not
STT_NOTYPE.

30 years ago * remote-udi.c (udi_resume): Correct prototype.
Ian Lance Taylor [Tue, 11 Jan 1994 19:28:31 +0000 (19:28 +0000)]
* remote-udi.c (udi_resume): Correct prototype.