Commit graph

941 commits

Author SHA1 Message Date
Stu Grossman
eece984d99 * defs.h (STRCMP): Make it work for unsigned chars. 1993-02-18 10:40:33 +00:00
John Gilmore
ec4bf6a089 * 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.
1993-02-18 10:01:36 +00:00
John Gilmore
be220da15a * 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.
1993-02-18 07:53:44 +00:00
John Gilmore
5824e607dc * 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.
1993-02-18 07:49:17 +00:00
John Gilmore
0ae975eac9 * dbxread.c (process_one_symbol): Cast to unsigned char, not int. 1993-02-18 03:25:44 +00:00
K. Richard Pixley
fce7f2d986 * remote.c (readchar): forward declare alarm which otherwise looks
like an undeclared variable to gcc.
1993-02-18 00:05:45 +00:00
K. Richard Pixley
040b959771 * dbxread.c (process_one_symbol): cast enum value N_SO into int when
comparing against an int.  Avoids superfluous warning from vax
  ultrix 4.2 cc.
1993-02-17 21:58:25 +00:00
K. Richard Pixley
9549404ee4 * 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.)
1993-02-17 21:45:56 +00:00
K. Richard Pixley
8631194dd9 * language.c (struct op_print unk_op_print_tab): use the enum values
rather naked zeros as initializers.  Avoids warnings from ultrix
  type compilers.
1993-02-17 21:43:45 +00:00
John Gilmore
62e859f039 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
(ALLDEPFILES_SUBSUBDIR):  Depend on this for deeper dep files.
1993-02-16 10:18:47 +00:00
John Gilmore
f4ed8840fb * 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.

.Sanitize:  Remove am29k-opcode.h, convx-opcode.h, os68k-xdep.c.
1993-02-16 09:02:15 +00:00
John Gilmore
7c622b4105 * 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.

* buildsym.c (start_subfile):  Allow null file name.
1993-02-16 05:16:55 +00:00
K. Richard Pixley
6d4ea3a549 (process_linenos): free the previously allocated subfile name, then
allocate the new one from the heap.
1993-02-13 01:40:33 +00:00
K. Richard Pixley
e99163901e * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
expects a pointer to complaint rather than a complaint
	  structure.
1993-02-12 23:48:36 +00:00
Steve Chamberlain
256b4f378a * h8300-tdep.c, tm-h8300.h: turn off some experimental features 1993-02-12 16:07:36 +00:00
John Gilmore
015605c5ae * mips-tdep.c (isa_NAN): Fix byte order dependency.
Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
fixed by sato@sm.sony.co.jp.
1993-02-11 09:52:25 +00:00
John Gilmore
e5eeaaf86c * 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.
1993-02-11 09:05:11 +00:00
John Gilmore
364c1151e7 Remove IBM6000_host 1993-02-11 07:58:42 +00:00
John Gilmore
dd46978997 * 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.
1993-02-11 07:57:35 +00:00
Stu Grossman
733a94e887 * 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.
1993-02-11 02:38:19 +00:00
John Gilmore
79533adf03 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.

PR# gdb/2162
1993-02-10 04:09:05 +00:00
Ian Lance Taylor
2368ffb6c3 Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
* config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
	cc debugging output.
1993-02-09 16:22:35 +00:00
John Gilmore
2a021f21e9 * 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.
1993-02-09 08:42:20 +00:00
John Gilmore
931bf12a09 * coffread.c (coff_lookup_type): Fix fencepost error reported
by Art Berggreen, <arg@opal.acc.com>.
1993-02-06 03:40:28 +00:00
John Gilmore
c653bc6d90 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
<Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>.

* coffread.c (getfilename):  Eliminate COFF_NO_LONG_FILE_NAMES
test, which is apparently left over from when we used native
include files and couldn't depend on the member names being there.
* tm-3b1.h, tm-altos.h, tm-i386v.h:  Don't set it.

ALso fix this in tm-i860.h which isn't ChangeLogged since it's sanitized out
for lack of paperwork.
1993-02-05 22:09:17 +00:00
John Gilmore
b076f02439 * Makefile.in (TARDIRS): Add sparclite demo dir.
(*.tab.c):  Change dependency on Makefile to depend on
Makefile.in, otherwise it always rebuilds after configuring.
Force output *.tab.c file into current directory even in "make"
versions that rewrite dependent file names used in command lines.

* TODO:  Remove some things we did.
* am29k-opcode.h, convx-opcode:  Remove; now in ../include/opcode.
* os68k-xdep.c:  Remove; useless file (os68k is a target only).
* convex-pinsn.c:  Use ../include/opcode/convex.h.  Add CONST.
* symtab.h:  Eliminate unnamed unions and structs.
1993-02-04 10:30:19 +00:00
John Gilmore
24b88ae801 Makeinfo now works again; remove kludge. 1993-02-04 06:00:41 +00:00
John Gilmore
ad89bdfdac * Makefile.in (VERSION): Roll to 4.7.5.
(gdb.info):  Ignore error from makeinfo (FIXME), since makeinfo
isn't quite up to date to handle gdb.texi.
1993-02-03 22:49:32 +00:00
John Gilmore
ca5a72cd13 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
re-evaluating symbol pointers.

Add attribution to a few older ChangeLog entries.
1993-02-03 04:49:05 +00:00
Fred Fish
9da75ad32e * c-exp.y (lcurly, rcurly): New nonterminals.
* c-exp.y (exp):  Use lcurly and rcurly for arrays and UNOP_MEMVAL
	constructs.
	* parse.c (free_funcalls):  Moved prototype from parser-defs.h,
	made function static.
	* parse.c (struct funcall):  Moved struct def from parser-defs.h.
	* parse.c (funcall_chain):  Moved from parser-defs.h, made static.
	* parse.c (start_arglist):
	* parser-defs.h (free_funcalls):  Moved prototype to parse.c.
	* parser-defs.h (struct funcall):  Moved struct def to parse.c.
	* parser-defs.h (funcall_chain):  Moved to parse.c.
	* printcmd.c (print_frame_nameless_args): Fix prototype.
	* tm-mips.h (setup_arbitrary_frame):  Fix prototype.
	* tm-sparc.h (setup_arbitrary_frame):  Fix prototype.
	* valops.c (typecmp):  Moved prototype from values.h.
	* value.h (typecmp):  Moved prototype to valops.c, made static.
	**** start-sanitize-chill ****
	* ch-exp.y (yylex):  Change way control sequences are disabled.
	**** end-sanitize-chill ****
1993-02-03 00:28:54 +00:00
John Gilmore
58bcc08c60 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
* remote-nindy.c:  Cleanup.
1993-02-03 00:13:10 +00:00
Ian Lance Taylor
fee754c921 Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
* mipsread.c (upgrade_type): Build array types correctly, using
	create_range_type and create_array_type.
1993-02-02 23:32:18 +00:00
John Gilmore
1b6a208786 * infrun.c (wait_for_inferior): When rolling back the PC after
a breakpoint, call write_pc so that NPC gets rolled back as well
(for the 29K).
1993-02-02 08:43:40 +00:00
John Gilmore
d122f25767 * blockframe.c (inside_entry_file, inside_main_func,
inside_entry_func):  PC of zero is always "bottom of stack".

* printcmd.c (print_frame_args, print_frame_nameless_args):
Let print_frame_nameless_args decide whether there are any,
laying groundwork for possibly later printing 29K args for
functions where we have tag words but no symbols.
1993-02-02 08:38:00 +00:00
John Gilmore
7dc15bb750 * printcmd.c (print_frame_args, print_frame_nameless_args):
Let print_frame_nameless_args decide whether there are any,
laying groundwork for possibly later printing 29K args for
functions where we have tag words but no symbols.
1993-02-02 08:21:50 +00:00
Roland Pesch
2b21d8aac9 Fixes for doc targets. 1993-02-02 02:14:39 +00:00
John Gilmore
07c2fa3e53 * stack.c (parse_frame_specification): Parse as many arguments
as there are (up to MAXARGS).  Pass all of them in argc, argv
format to SETUP_ARBITRARY_FRAME.  Put the burden of checking how
many there were, onto SETUP_ARBITRARY_FRAME.
* tm-mips.h, tm-sparc.h:  Corresponding changes.
* mips-tdep.c, sparc-tdep.c:  Ditto.
1993-02-02 02:08:19 +00:00
John Gilmore
6edd74aef3 * hp300ux-nat.c: Update copyrights.
* mipsread.c (parse_partial_symbols):  Complain about block
indexes that go backwards.  Fix from Peter Schauer.
* symfile.c (syms_from_objfile, symbol_file_add):  Allow a
symbol-file that has no linkage symbols to be read.
* tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends):  Move
from tm- file to xm-file, since they're host dependent.
* valarith.c (value_binop):  Typo.
1993-02-02 01:53:17 +00:00
Stu Grossman
797bc12b32 * sparclite/aload.c: Add copyleft.
* sparclite/crt0.s:  Add comment at beginning.
1993-02-02 00:19:26 +00:00
Steve Chamberlain
2431d063fa *** empty log message *** 1993-02-01 23:00:11 +00:00
Michael Tiemann
7cb0f87089 * values.c (value_headof): Fix typo in which VTBL and ARG were
being confused for one another.
1993-02-01 01:16:35 +00:00
Michael Tiemann
a163ddeca1 * valops.c (typecmp): Now static. 1993-02-01 01:12:37 +00:00
Michael Tiemann
edf67bd181 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
baseclass--we don't always inherit its virtual function table
	pointer.
1993-02-01 01:11:17 +00:00
Michael Tiemann
271e50309b * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
pointer correctly in case value_struct_elt moves it around.
1993-02-01 01:07:51 +00:00
Michael Tiemann
d112a0c664 Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
* gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
	zero on recursive call.
1993-01-31 12:39:22 +00:00
John Gilmore
ec68a93f89 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
to avoid "too much defining" error from native C compiler (!).
1993-01-31 06:43:36 +00:00
John Gilmore
3d9b9577e0 * Makefile.in (HFILES): Add typeprint.h.
* typeprint.[ch]:  Update copyrights.
1993-01-31 03:56:56 +00:00
John Gilmore
bdec39b376 Update for doc/ changes. 1993-01-29 06:17:28 +00:00
John Gilmore
92063c3e60 * config/hp300hpux.mh: No cross-host file needed, just native. 1993-01-29 05:53:31 +00:00
John Gilmore
71e60679bd Remove nonexistent GO32 "native" support. 1993-01-29 05:49:03 +00:00