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.
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.
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.
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.
David D. Zuhn [Wed, 15 Sep 1993 02:11:35 +0000 (02:11 +0000)]
fix replacement of multiline values for CC and CXX
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.
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.
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.
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.
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.
Ian Lance Taylor [Tue, 14 Sep 1993 22:28:22 +0000 (22:28 +0000)]
* config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;
set previous_section and previous_subsection and then call s_data
and s_text, respectively.
(obj_pseudo_table): Add data and text.
(obj_elf_section): Add SEC_LOAD to default initialization of
flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as
SEC_ALLOC for "alloc" string. Don't bother trying to find the
section; just use subseg_new.
Steve Chamberlain [Tue, 14 Sep 1993 21:39:33 +0000 (21:39 +0000)]
Tue Sep 14 14:34:45 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
* libbfd-in.h (struct artdata): Add armap_timestamp and
armap_datepos here too.
K. Richard Pixley [Tue, 14 Sep 1993 20:08:23 +0000 (20:08 +0000)]
fix serial.h inclusion
K. Richard Pixley [Tue, 14 Sep 1993 19:34:15 +0000 (19:34 +0000)]
use remote-utils facilities for baud_rate
Jim Kingdon [Tue, 14 Sep 1993 18:10:42 +0000 (18:10 +0000)]
* paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h.
Ian Lance Taylor [Tue, 14 Sep 1993 17:58:35 +0000 (17:58 +0000)]
Some more gcc lint, and:
* read.c (change_to_section): Removed. This is now done by
subseg_new.
(get_stab_string_offset): Rearranged somewhat. Create the section
using subseg_new. Store the string index in seg_info, rather than
in a static variable. Force the first string to be empty. Use
frag_more rather than FRAG_APPEND_1_CHAR.
(s_stab_generic): Rewrote.
* subsegs.h (segment_info_type): Added stabu union.
* subsegs.c (subseg_new): Initialize stab_string_size to 0.
* config/obj-aout.c: Don't include aout/stab_gnu.h.
(obj_aout_stab, obj_aout_desc): Removed.
(obj_pseudo_table): Removed desc and stabX entries.
* config/obj-bout.c: Same changes as config/obj-aout.c.
* config/obj-bout.h (S_SET_TYPE): Define.
(tc_bout_fix_to_chars): Declare.
* config/obj-coff.c (obj_coff_stab): Removed.
(obj_pseudo_table): Removed desc and stabX entries.
* config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define.
* config/obj-coffbfd.c (current_stab_symbol): Removed.
* config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type,
n_other, n_desc and n_value fields.
(S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed.
(MAKE_STAB_SYMBOL): Removed.
* config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab.
Changed arguments and removed parsing code.
(obj_pseudo_table): Removed stabX entries.
* config/obj-ecoff.h (ecoff_stab): Declare.
(OBJ_PROCESS_STAB): Define.
* config/obj-elf.c: Don't include aout/stab_gnu.h.
(obj_elf_stab, obj_elf_xstab, obj_elf_desc,
elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic):
Removed.
(obj_pseudo_table): Removed desc, stabX and xstabs entries.
(obj_elf_version): Use subseg_new, not bfd_make_section. Don't
set SEC_LOAD for .note section.
(adjust_stab_sections): Get frag pointer from seg_info, rather
than looking through frags.
* config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed.
(SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
Define.
* config/obj-vms.c (obj_aout_stab): Removed.
(obj_pseudo_table): Removed stabX entries.
* config/obj-vms.h (S_SET_TYPE): Define.
Jim Kingdon [Tue, 14 Sep 1993 17:32:45 +0000 (17:32 +0000)]
* paread.c: Include <time.h> before libbfd.h.
* paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
Jim Kingdon [Tue, 14 Sep 1993 16:22:07 +0000 (16:22 +0000)]
* Makefile.in (a29k-tdep.o): Depend on $(defs_h).
* config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
if this is a transparent procedure.
Jim Kingdon [Tue, 14 Sep 1993 16:19:30 +0000 (16:19 +0000)]
* remote-udi.c (udi_wait): Return inferior_pid not 0.
John Gilmore [Tue, 14 Sep 1993 04:19:40 +0000 (04:19 +0000)]
Avoid minor warning in archive.c change.
John Gilmore [Tue, 14 Sep 1993 04:15:23 +0000 (04:15 +0000)]
* hosts/std-host.h (offsetof): Define, if not already, for archive.c.
John Gilmore [Tue, 14 Sep 1993 04:13:43 +0000 (04:13 +0000)]
Improve timestamp support in BSD archive files to avoid linker
warnings.
* libbfd.h (struct artdata): Add armap_timestamp and armap_datepos.
(bfd_flush, bfd_stat): Add prototypes.
* libbfd.c (bfd_flush): Add, does fflush on a BFD.
(bfd_stat): Add, does fstat on a BFD.
* archive.c (_bfd_write_archive_contents): At end of file writing,
verify and possibly update the timestamp in the armap, if a BSD
archive. FIXME! Kludge recognizes BSD archive, rather than
vectoring properly. Should add to xvec.
(compute_and_write_armap): Move prototype to top, avoid PROTO.
(bsd_write_armap): Save timestamp and file location thereof, when
writing the armap in a BSD file.
(bsd_update_armap_timestamp): New function to check and
rewrite the timestamp.
Jim Kingdon [Tue, 14 Sep 1993 01:08:22 +0000 (01:08 +0000)]
* remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
hack so this file compiles again.
* remote-utils.c (gr_multi_scan): Cast return value from alloca.
(gr_multi_scan): #if 0 never-reached return(-1).
Jim Kingdon [Mon, 13 Sep 1993 23:06:17 +0000 (23:06 +0000)]
add comment
Jim Kingdon [Mon, 13 Sep 1993 22:51:51 +0000 (22:51 +0000)]
add som.c and som.h
K. Richard Pixley [Mon, 13 Sep 1993 22:12:16 +0000 (22:12 +0000)]
collect some remote things into remote-utils
Ian Lance Taylor [Mon, 13 Sep 1993 21:32:07 +0000 (21:32 +0000)]
* subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.
Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a
section name, and subseg_set always takes a segT. Changed all
callers as appropriate.
* config/obj-coffbfd.c (change_to_section): Renamed to
obj_coff_add_segment. Corrected. Made callers use subseg_new.
* config/obj-coffbfd.h (obj_segment_name, obj_add_segment):
Define.
Also some more gcc warning removal.
Jim Kingdon [Mon, 13 Sep 1993 20:54:00 +0000 (20:54 +0000)]
* inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
pc_changed. If it was ever set to a non-zero value, it was before
GDB 2.8. It doesn't seem to have any useful function.
David Edelsohn [Mon, 13 Sep 1993 20:16:03 +0000 (20:16 +0000)]
config/tc-sparc.h (LOCAL_LABEL): Remove test for name[0] == 'L'.
Jim Kingdon [Mon, 13 Sep 1993 20:13:03 +0000 (20:13 +0000)]
* defs.h: Don't define NORETURN (see comment).
K. Richard Pixley [Mon, 13 Sep 1993 19:52:23 +0000 (19:52 +0000)]
white space change to avoid nested comment
K. Richard Pixley [Mon, 13 Sep 1993 19:49:33 +0000 (19:49 +0000)]
do not echo recursion lines
Ian Lance Taylor [Mon, 13 Sep 1993 19:47:41 +0000 (19:47 +0000)]
* m68k.h (two): Protect second argument with parentheses.
David D. Zuhn [Mon, 13 Sep 1993 19:33:54 +0000 (19:33 +0000)]
use pagas instead of gas
David D. Zuhn [Mon, 13 Sep 1993 19:29:54 +0000 (19:29 +0000)]
use mt-hppa, use 'gas ' instead of 'gas'
David Edelsohn [Sun, 12 Sep 1993 23:12:31 +0000 (23:12 +0000)]
Add EMUL=h8300h.
David Edelsohn [Sun, 12 Sep 1993 23:07:40 +0000 (23:07 +0000)]
* ldmain.c (main): Call set_scripts_dir after argv has been processed.
Jim Kingdon [Sun, 12 Sep 1993 05:09:08 +0000 (05:09 +0000)]
* hosts/i386sco.h: Define a bunch of stuff for core files.
* sco-core.c: Remove, replace by trad-core.c.
* trad-core.c: If HOST_STACK_START_ADDR is defined, use it.
* config/i386sco.mh: Use trad-core not sco-core.
* hosts/i386isc.h, config/i386isc.mh: Remove.
* configure.host: Use i386sco for isc.
* config/i386-sco.mt: Remove, identical to i386-coff.mt.
* config.bfd: Use i386-coff not i386-sco.
Jim Kingdon [Sun, 12 Sep 1993 05:00:53 +0000 (05:00 +0000)]
* gdb.texinfo: Clarify how well it works with Fortran.
Jim Kingdon [Sun, 12 Sep 1993 01:16:45 +0000 (01:16 +0000)]
* config.bfd: Recognize i[34]86-*-solaris2* specifically rather
than using *-*-solaris2* (i486-unknown-solaris2 is i386-elf, not
i486-elf which doesn't exist).
Jim Kingdon [Sat, 11 Sep 1993 17:48:47 +0000 (17:48 +0000)]
* m88k-nat.c (fill_gregset): Set r31 and sfip.
Jim Kingdon [Sat, 11 Sep 1993 16:36:01 +0000 (16:36 +0000)]
* stabs.texinfo (Methods): Fix typo.
Ian Lance Taylor [Sat, 11 Sep 1993 00:15:39 +0000 (00:15 +0000)]
More gcc lint with harsher warning options.
Ian Lance Taylor [Fri, 10 Sep 1993 23:25:40 +0000 (23:25 +0000)]
Snapshot of current i386 NLM debugging stub.
Ian Lance Taylor [Fri, 10 Sep 1993 21:54:32 +0000 (21:54 +0000)]
* coffswap.h (coff_swap_aouthdr_out): For ALPHAECOFF, force
padding field to zero.
Ian Lance Taylor [Fri, 10 Sep 1993 21:41:41 +0000 (21:41 +0000)]
* alpha.c (external_aouthdr): Need four bytes of padding between
vstamp and tsize.
David D. Zuhn [Fri, 10 Sep 1993 21:36:45 +0000 (21:36 +0000)]
add support for gash
David D. Zuhn [Fri, 10 Sep 1993 18:25:06 +0000 (18:25 +0000)]
add netbsd variants
Rob Savoye [Fri, 10 Sep 1993 17:35:11 +0000 (17:35 +0000)]
Added gdb_exit to call default_gdb_exit.
Ian Lance Taylor [Fri, 10 Sep 1993 17:10:13 +0000 (17:10 +0000)]
* config.bfd (i[34]86-*-netbsd*): New target; use i386-netbsd.
* configure.in: Remove bogus netbsd386 handling.
Ian Lance Taylor [Fri, 10 Sep 1993 17:00:49 +0000 (17:00 +0000)]
* coff-mips.c: Don't warn about overflow for MIPS_R_JMPADDR reloc.
Correct overflow detection requires matching the upper four bits
of the destination against the PC.
Jeffrey Wheat [Fri, 10 Sep 1993 17:00:19 +0000 (17:00 +0000)]
Added CXXFLAGS to compile stage in ld.cdtest/cdtest.exp
Jeffrey Wheat [Fri, 10 Sep 1993 16:53:33 +0000 (16:53 +0000)]
Changed CXX back to g++. Using ../gcc/xgcc breaks because of <assert.h>
Jeffrey Wheat [Fri, 10 Sep 1993 16:50:52 +0000 (16:50 +0000)]
Changed CXX back to g++. ../gcc/xgcc breaks the cdtest because of <assert.h>
Jeffrey Wheat [Fri, 10 Sep 1993 16:37:47 +0000 (16:37 +0000)]
Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
Ian Lance Taylor [Fri, 10 Sep 1993 16:01:07 +0000 (16:01 +0000)]
gcc lint. See ChangeLog for details. Also:
* config/obj-elf.h (S_SET_SIZE): Actually set the size.
David MacKenzie [Fri, 10 Sep 1993 15:13:05 +0000 (15:13 +0000)]
* Makefile.in (install): Don't put strings in tooldir/bin.
David MacKenzie [Fri, 10 Sep 1993 14:29:45 +0000 (14:29 +0000)]
* Makefile.in (TAGS): Use shell wildcards.
David MacKenzie [Fri, 10 Sep 1993 13:36:07 +0000 (13:36 +0000)]
fix a few typos
Jason Merrill [Fri, 10 Sep 1993 00:04:38 +0000 (00:04 +0000)]
(chmodcmd): Set file to mode 755 by default (should also do default
chgrp and chown, but I don't feel like dealing with that now)
Jason Merrill [Thu, 9 Sep 1993 23:50:23 +0000 (23:50 +0000)]
* install.sh: Support -d option (in the manner of SunOS 4 install,
as it is more deterministic than that of GNU install)
Ken Raeburn [Thu, 9 Sep 1993 21:53:03 +0000 (21:53 +0000)]
gcc -Wall cleanups from Utah
Ian Lance Taylor [Thu, 9 Sep 1993 21:43:54 +0000 (21:43 +0000)]
* i386.h (i386_optab): Properly bracket initializers.
Ken Raeburn [Thu, 9 Sep 1993 21:03:20 +0000 (21:03 +0000)]
* configure.in: Make 64-bit stuff work with "--with-targets=all".
Ian Lance Taylor [Thu, 9 Sep 1993 19:09:23 +0000 (19:09 +0000)]
* read.c (get_stab_string_offset, s_stab_generic): If
BFD_ASSEMBLER, call subseg_set rather than subseg_new.
Jim Kingdon [Thu, 9 Sep 1993 18:33:44 +0000 (18:33 +0000)]
More gcc lint:
* exec.c (ignore): Return 0.
* stack.c (return_command): Fetch lazy value directly, not via
VALUE_CONTENTS, to avoid "value computed is not used".
* inflow.c (new_tty): Move osigttou inside #if.
* remote.c (remote_fetch_registers): If remote reply is short, just
note that fact and keep going (reading extra registers as all bits 0).
(remote_store_registers): Send number of registers that were found
by remote_fetch_registers.
* m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
HAVE_68881. Define CANNOT_STORE_REGISTER if ptrace() can't write
floating registers.
* config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
* Makefile.in, configure.in: Change accordingly.
Jim Kingdon [Thu, 9 Sep 1993 17:58:46 +0000 (17:58 +0000)]
* remote-udi.c (udi_wait, case UDIStdinNeeded): Use a loop calling
getchar() (terminated only on '\n') instead of scanf. Send the
'\n' which terminates it to the remote system.
Jim Kingdon [Thu, 9 Sep 1993 16:09:37 +0000 (16:09 +0000)]
* config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt}: Remove.
* config/m68k/{tm-m68k-fp.h,m68k-fp.mt}: Rename to
{tm-m68k-em.h,m68k-em.mt}.
Peter Schauer [Thu, 9 Sep 1993 12:02:59 +0000 (12:02 +0000)]
* mipsread.c (cross_ref): Allow SGI extended symbol types as cross
reference targets.
* symmisc.c (print_symbol): Use TYP_TAG_NAME not TYPE_NAME to avoid
printing of identities.
Rob Savoye [Thu, 9 Sep 1993 05:12:46 +0000 (05:12 +0000)]
Made cross testing work better.
Jim Kingdon [Thu, 9 Sep 1993 01:53:36 +0000 (01:53 +0000)]
* gdb.texinfo: Clarify how well it works with Fortran.
Jim Kingdon [Thu, 9 Sep 1993 00:33:22 +0000 (00:33 +0000)]
* breakpoint.c (breakpoint_1): Deal with step resume breakpoint.
Jim Kingdon [Wed, 8 Sep 1993 23:05:46 +0000 (23:05 +0000)]
* stabs.texinfo (Stabs In ELF, Statics, ELF Transformations):
More on relocating stabs in ELF files.
K. Richard Pixley [Wed, 8 Sep 1993 21:45:46 +0000 (21:45 +0000)]
gcc lint
K. Richard Pixley [Wed, 8 Sep 1993 21:45:17 +0000 (21:45 +0000)]
gcc lint
K. Richard Pixley [Wed, 8 Sep 1993 21:30:33 +0000 (21:30 +0000)]
gcc lint
K. Richard Pixley [Wed, 8 Sep 1993 21:23:41 +0000 (21:23 +0000)]
gcc lint
K. Richard Pixley [Wed, 8 Sep 1993 21:16:23 +0000 (21:16 +0000)]
gcc lint
K. Richard Pixley [Wed, 8 Sep 1993 21:04:59 +0000 (21:04 +0000)]
gcc lint
K. Richard Pixley [Wed, 8 Sep 1993 20:57:08 +0000 (20:57 +0000)]
gcc lint
K. Richard Pixley [Wed, 8 Sep 1993 20:15:34 +0000 (20:15 +0000)]
some gcc lint
Ian Lance Taylor [Wed, 8 Sep 1993 19:11:47 +0000 (19:11 +0000)]
* config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
default flag values.
Jim Kingdon [Wed, 8 Sep 1993 19:03:21 +0000 (19:03 +0000)]
Back out this change; it doesn't work.
Tue Sep 7 13:06:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* dbxread.c (process_one_symbol): If the value of an N_FUN for a
function is zero, use minimal symbols to get the address.
Jim Kingdon [Wed, 8 Sep 1993 18:30:25 +0000 (18:30 +0000)]
* stabs.texinfo (Stabs In ELF, Statics): More on relocating stabs
in ELF files.
Jim Kingdon [Wed, 8 Sep 1993 17:26:31 +0000 (17:26 +0000)]
Revert previous change. It doesn't work because it neglects to
consider there may be a file compiled without -g screwing things up
(e.g. we are looking for the minimal symbol for "main" and we get the
one for "start" instead).
This is the change I mean:
* minsyms.c, symtab.h (lookup_next_minimal_symbol): New function.
* dbxread.c (process_one_symbol): Use it.
Jim Kingdon [Wed, 8 Sep 1993 15:51:39 +0000 (15:51 +0000)]
* minsyms.c, symtab.h (lookup_next_minimal_symbol): New function.
* dbxread.c (process_one_symbol): Use it.
Jim Kingdon [Wed, 8 Sep 1993 15:48:03 +0000 (15:48 +0000)]
* Makefile.in (mipsread.o): Depend on $(bfd_h).
Jim Kingdon [Wed, 8 Sep 1993 14:47:10 +0000 (14:47 +0000)]
add comment
Jim Kingdon [Wed, 8 Sep 1993 14:15:35 +0000 (14:15 +0000)]
* stabs.texinfo (Stabs In ELF, Statics): More on relocating stabs
in ELF files.
Jim Kingdon [Wed, 8 Sep 1993 14:08:43 +0000 (14:08 +0000)]
revise comment
Jeffrey Osier [Wed, 8 Sep 1993 01:08:26 +0000 (01:08 +0000)]
* Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
David D. Zuhn [Wed, 8 Sep 1993 00:31:08 +0000 (00:31 +0000)]
support for --host HOST
Stan Shebs [Wed, 8 Sep 1993 00:20:59 +0000 (00:20 +0000)]
Add missing ifdef to make m68k-aout targets happy.
Jim Kingdon [Tue, 7 Sep 1993 22:17:47 +0000 (22:17 +0000)]
* configure.in (m88k-*-sysvr4*): Comment out previous change.
Ian Lance Taylor [Tue, 7 Sep 1993 22:15:15 +0000 (22:15 +0000)]
* remote.c (remote_wait): Don't call error. Instead, call warning
inside a loop. User can ^C to get out.
Jim Kingdon [Tue, 7 Sep 1993 21:39:47 +0000 (21:39 +0000)]
* gdbserver/Makefile.in (TAGS): config files are in
$(srcdir)/../config, not $(srcdir)/config.
Jim Kingdon [Tue, 7 Sep 1993 19:57:45 +0000 (19:57 +0000)]
* config/pa/tm-hppa.h: Declare target_read_pc and target_write_pc.
(STORE_RETURN_VAULE): Pass the correct offset of the return
register to write_register_bytes.
* hppa-tdep.c: Use target_write_pc if PCOQ_TAIL_REGNUM was not saved.
Jim Kingdon [Tue, 7 Sep 1993 19:21:12 +0000 (19:21 +0000)]
* gdb.t15/{return.c,return.exp,Makefile.in}:
New test, currently commented out.
David Edelsohn [Tue, 7 Sep 1993 19:00:48 +0000 (19:00 +0000)]
* config.sub: Remove h8300hhms alias.
Jim Kingdon [Tue, 7 Sep 1993 18:49:45 +0000 (18:49 +0000)]
* stabs.texinfo (Stabs In ELF): Talk about N_FUN value.