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.
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.)
* 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.
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.
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.
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.
Ian Lance Taylor [Fri, 14 Jan 1994 20:43:07 +0000 (20:43 +0000)]
Motorola Delta sysV68 support from [email protected] (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.
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.
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).
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Ian Lance Taylor [Tue, 11 Jan 1994 18:06:01 +0000 (18:06 +0000)]
* listing.c (listing_prev_line): New function.
* listing.c: Include subsegs.h.
(listing_prev_line): New function.
(calc_hex): Reset byte_in_frag to zero for each new frag.
* config/tc-mips.c (append_insn): Call listing_prev_line after
emitting nop instructions.
* Makefile.in (listing.o): Depends upon subsegs.h.