John Gilmore [Fri, 19 Feb 1993 06:55:31 +0000 (06:55 +0000)]
* gcc.patch: Update for a different GCC (G++) bug.
* main.c (print_gdb_version): Update copyright year to 1993.
* nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
conditionalize this file on it. FIXME, right way is to split
these into two config files.
(ATTACH_DETACH): Define for BSD 4.4
(PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
(U_REGS_OFFSET): Revise for 4.4.
(REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
* xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
LONG_MAX into this file to avoid cpp "redefinition" warnings.
Stu Grossman [Fri, 19 Feb 1993 06:48:52 +0000 (06:48 +0000)]
* am29k-pinsn.c (print_insn): Minor nits with const.
* am29k-tdep.c: More minor nits with arg types for
supply_register, NULL vs. 0, read_register_gen, & reginv_com.
John Gilmore [Thu, 18 Feb 1993 10:01:36 +0000 (10:01 +0000)]
* nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
* m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
define to kludge the large opcode table into two smaller tables,
since GCC take exponential space to build the table. Lint.
(NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
John Gilmore [Thu, 18 Feb 1993 09:59:35 +0000 (09:59 +0000)]
* nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
* config/hp300bsd.mh (REGEX, REGEX1): Define.
* m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
define to kludge the large opcode table into two smaller tables,
since GCC take exponential space to build the table. Lint.
(NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
John Gilmore [Thu, 18 Feb 1993 07:53:44 +0000 (07:53 +0000)]
* Makefile.in (VERSION): Roll to 4.7.9.
* xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
definition here, to handle both BSD 4.3 and 4.4 systems.
* tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
John Gilmore [Thu, 18 Feb 1993 07:49:17 +0000 (07:49 +0000)]
* mipsread.c (ZMAGIC): #undef to avoid duplicate define.
* remote.c (alarm): Move declaration to global level, before
first reference to it.
* tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
* inflow.c (set_sigint_trap): add cast to assignment from signal.
Avoids superfluous warnings from some systems and/or compilers (like
vax ultrix 4.2.)
John Gilmore [Tue, 16 Feb 1993 09:02:15 +0000 (09:02 +0000)]
* Makefile.in (VERSION): Roll to 4.7.6.
(SFILES_SUBDIR): Add 29k-share/udi_soc.
(SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
(HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
(depend): Fix bug where nm-files in config files weren't noticed.
(make-proto-gdb-1): Avoid changing directories while building new
prototype. Build SFILES_SUBSUBDIR with longer symlinks.
John Gilmore [Tue, 16 Feb 1993 05:16:55 +0000 (05:16 +0000)]
* remote.c: Improve error recovery. Allow user to break out
of initial connection attempt with INTERRUPT. Treat a timeout
while waiting for remote packet like a retry, unless the remote
side is actively running user code. Fix a few long printf_filtered's.
* xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
trampoline symbols.
Fred Fish [Fri, 12 Feb 1993 18:08:35 +0000 (18:08 +0000)]
* Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
* Makefile.in (LIBIBERTY): Use LIBIBERTY_BIN_DIR.
* Makefile.in (DEMANGLER_PROG): New program to build. Add macro
and rule.
* Makefile.in (PROGS): Add DEMANGLER_PROG.
* ldgram.y: allow section types without address expressions.
* ldlang.c (lang_relocate_globals): avoid possible hang with
undefined but unreferenced symbols.
* relax.c (relax_section): don't complain if the script file isn't
relaxable but -relax is set
* ldgram.y: allow section types without address expressions.
* ldlang.c (lang_relocate_globals): avoid possible hang with
undefined but unreferenced symbols.
* relax.c (relax_section): don't complain if the script file isn't
relaxable but -relax is set
Ian Lance Taylor [Thu, 11 Feb 1993 17:22:42 +0000 (17:22 +0000)]
Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
* config/obj-coffbfd.c (fill_section): Don't set vaddr here.
(write_object_file): Set it here instead, so that fixup_segment
can see the correct value.
John Gilmore [Thu, 11 Feb 1993 11:16:35 +0000 (11:16 +0000)]
More debugging of rs/6000 file reading (on Suns, for easier debug).
* stabsread.c (dbx_lookup_type): Handle negative type numbers.
Previously, would bogusly index off the bottom of type_vector.
(rs6000_builtin_type): Accept type number as argument.
(read_type, case '-'): Handle negatives like any other type number.
John Gilmore [Thu, 11 Feb 1993 09:05:11 +0000 (09:05 +0000)]
* xcoffread.c (parmsym): Don't use an initializer to set up
this struct symbol. Set it up in initialize_xcoffread.
[This broke when Fred changed "struct symbol".]
(read_xcoff_symtab, xcoff_symfile_read): Surround code that only
works on real rs/6000 target with #ifndef FAKING_RS6000.
John Gilmore [Thu, 11 Feb 1993 07:57:35 +0000 (07:57 +0000)]
* stabsread.c (rs6000_builtin_type): Move function from
xcoffread.c:builtin_type.
* xcoffread.c (builtin_type): Move to stabsread. Remove
IBM6000_HOST dependency. Move misplaced comments.
(various): Change printf's to complaints.
(patch_block_stabs, process_xcoff_symbol case C_DECL): Add
objfile argument to read_type calls under #if 0.
(process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
* xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
* Makefile.in: xcoffread.o is not built by default.
* config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
* doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
IBM6000_TARGET.
Stu Grossman [Thu, 11 Feb 1993 02:38:19 +0000 (02:38 +0000)]
* findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
VALUE_LVAL to be lval_memory so that we don't try to modify wild
register numbers when user tries to modify elements in structs
passed as arguments.
* inflow.c (child_terminal_info): Move banner outside of system
specific #ifdefs.
* tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
passes struct/union arguments by address.
Ian Lance Taylor [Wed, 10 Feb 1993 23:38:11 +0000 (23:38 +0000)]
Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
* Based on patch from Martin Walker <maw@netcom.com>:
* nm-i386sco4.h: New file. Like nm-i386sco.h, but define
ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
* config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
Tue Feb 9 12:42:27 1993 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in: Various changes to eliminate a level of make
recursion and reduce the required command line length.
(BASE_FLAGS_TO_PASS): New variable holding flags passed to all
sub-makes.
(EXTRA_HOST_FLAGS, EXTRA_TARGET_FLAGS, EXTRA_GCC_FLAGS): New
variables holding settings for specific sub-makes.
(FLAGS_TO_PASS, TARGET_FLAGS_TO_PASS, GCC_FLAGS_TO_PASS): Rewrote
in terms of BASE_FLAGS_TO_PASS.
(TARGET_LIBS): New variable listing directories which use
TARGET_FLAGS_TO_PASS.
(subdir_do): Eliminated.
(do-*): New set of targets to replace subdir_do.
(various): All targets which used subdir_do now depend on do-*.
(local-clean): Renamed from do_clean.
(local-distclean): New target, dependency of distclean and
realclean.
(install-info): Don't create directories. Depend on dir.info
rather than calling make recursively.
(install-dir.info): Eliminated.
(install-info-dirs): Create all info directories here.
(dir.info): Depend upon do-install-info.
John Gilmore [Tue, 9 Feb 1993 08:42:20 +0000 (08:42 +0000)]
* stabsread.c (define_symbol): Complain about unrecognized names
that begin with CPLUS_MARKER (often '$'), but don't die. Fix
suggested by gb@cs.purdue.edu (Gerald Baumgartner).
(read_cpp_abbrev): Don't use the class name as part of the
vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
abbrevs. Inspired by Mike Tiemann.
(read_tilde_fields): Comment. Remove ancient dead code.
Remove erroneous but non-dead code. Simplify. Add complaints.
(in general): Remove extraneous (parentheses) in return
statements.