Commit Graph

4996 Commits

Author SHA1 Message Date
Jeff Law
b5f105b7eb * gdb.disasm/hppa.s (fmemLRbug_tests): Add tests for the indexing
FP load/store variants.
	* gdb.disasm/hppa.exp (fmemLRbug_tests): Test new variants.
1995-02-24 00:47:29 +00:00
Jim Kingdon
6aa082e03d * gdb.base/term.exp: Do not give a warning if not native, it is
not an abnormal condition.
1995-02-23 02:30:57 +00:00
Per Bothner
835c255965 * ch-exp.y (expression_conversion): Recognize 'ARRAY () TYPE (EXPR)'
(same as C's '(TYPE[])EXPR')
1995-02-22 07:43:01 +00:00
Angela Marie Thomas
d439f0eca6 added regs.exp to Things-to-keep 1995-02-22 04:56:32 +00:00
Angela Marie Thomas
3f3aa8930c Added arc to Things-to-lose 1995-02-22 01:36:16 +00:00
Angela Marie Thomas
48828493bf Added remote-mon.c and ser-go32-para.c to Things-to-lose 1995-02-22 01:34:47 +00:00
Jim Kingdon
7cf24958fe * gdb.base/ptype.exp: Accept char[0] as well as char[] for "ptype
t_char_array".
1995-02-21 21:09:48 +00:00
Stan Shebs
7f4b4b71a2 * top.c (print_gdb_version): Update the year. 1995-02-21 20:27:41 +00:00
Per Bothner
1b5cdb7e22 * pr-5016.exp: Allow builtin types as either case. E.g. (BOOL|bool). 1995-02-21 00:29:08 +00:00
Per Bothner
9fa343240e * chillvars.ch: Add missing INIT's.
* chillvars.exp:  Allow builtin types as either case. E.g. (BOOL|bool).
1995-02-21 00:20:48 +00:00
Jim Kingdon
d940a47ef8 * Makefile.in (CC_FOR_TARGET,CXX_FOR_TARGET): Look for newlib in
`..' not in `../..'.
1995-02-19 22:36:18 +00:00
Jim Kingdon
566ac567d6 * lib/gdb.exp (default_gdb_version): Pass GDBFLAGS to gdb when we
are getting the version number.
1995-02-19 21:47:32 +00:00
Jim Kingdon
0794ff457b * gdb.base/{a1-selftest.exp,corefile.exp}: Do not give a warning
if not native, it is not an abnormal condition.
1995-02-19 21:12:56 +00:00
Peter Schauer
f5de490455 Sun Feb 19 11:05:28 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* procfs.c (unconditionally_kill_inferior):  Don't issue a PIOCKILL
	in addition to a PIOCSSIG to kill the inferior.
1995-02-19 19:08:34 +00:00
Per Bothner
27648f269f * gdb.texinfo (Artificial arrays): Note use of coerce-to-array-type. 1995-02-17 23:24:22 +00:00
Per Bothner
fda36387eb * parse.c (follow_types): Given (TYPE[]) (i.e. with no length),
create a 0-length array type, and set BOUND_CANNOT_BE_DETERMINED.
	* valops.c (value_cast):  If a cast like (TYPE[])VALUE (i.e. array
	of unknown length) use sizeof(VALUE)/sizeof(TYPE) as the length.
	* c-typeprint.c (c_type_print_varspec_suffix):  If array length
	is 0, print it, but not if upper_bound is BOUND_CANNOT_BE_DETERMINED.
1995-02-17 23:20:29 +00:00
J.T. Conklin
2b53190db8 * config/mt-vxworks (CFLAGS): Set to -g -Dvxworks.
(LDFLAGS): Set to -Xlinker -Ur.
1995-02-17 00:54:00 +00:00
Jim Kingdon
f7ef65ff72 * lib/gdb.exp: Just use "file exists", rather than undocumented
dejagnu procedure "findfile".
1995-02-17 00:00:53 +00:00
Michael Meissner
4e71f1ae3f Rewrite insque/remque support to cast all pointers to PTR. 1995-02-16 21:31:22 +00:00
Michael Meissner
92c6bf4d3a Rewrite Linux insque/remque support again. 1995-02-16 21:09:22 +00:00
J.T. Conklin
3aa3c59383 add 1995 to copyright 1995-02-16 18:42:42 +00:00
J.T. Conklin
65424cda04 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
Removed, these values are set by lib/gdb.exp.
* lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.
1995-02-16 18:41:54 +00:00
J.T. Conklin
983bfa6327 * config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
of replicating gdb startup code.
1995-02-16 01:10:04 +00:00
J.T. Conklin
bdbe77580e * config/mt-vxworks (LDFLAGS): Set to -r.
(CFLAGS_FOR_TARGET): Removed.
* config/vx-gdb.exp: always set prompt; gdb.exp sets it to
  (gdb) and gdb for vxworks uses (vxgdb).
1995-02-16 00:44:43 +00:00
J.T. Conklin
be813d0223 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
executable is not in the tree and host != target, use sed and
  program_transform_name to determine the gdb name used by the
  target.
1995-02-16 00:35:53 +00:00
Stan Shebs
bd749fdd7a keep Windows GDB, believe it or not 1995-02-15 23:19:55 +00:00
Michael Meissner
a978b966ff Declare insque/remque as int funcs if not Linux. 1995-02-15 22:59:36 +00:00
Michael Meissner
fed9a8d46e Only protect insque/remque on Linux. 1995-02-15 22:57:53 +00:00
J.T. Conklin
9c79b8b5eb * configure.in, gdb.{base,c++,chill}/configure.in: changed so
*-*-vxworks* matches vxworks and *-*-netware* matches NetWare.
1995-02-15 22:28:51 +00:00
J.T. Conklin
07dff0109d * all-cfg.texi: New flag, GDBSERVE, for NetWare's gdbserve.nlm.
* remote.texi (NetWare): New node, how to use gdbserve.nlm on
  NetWare targets.  Mostly stolen from the Server node.
1995-02-15 22:01:50 +00:00
Michael Meissner
677653a077 Define TEXT_SEGMENT_BASE as 1 for ppc-eabi; Make dcache.c compilable on Linux. 1995-02-15 18:51:31 +00:00
Stu Grossman
6131622e34 * annotate.c, breakpoint.c, defs.h, gdbtk.c, top.c: Replace
enable/disable_breakpoint_hook with modify_breakpoint_hook.
	* gdbtk.c:  General cleanups, get rid of unused variables.  Redo
	handling of stdout/stderr to just return output as the result of
	the tcl command that caused the output.  Cleanup -Wall stuff.
	* (breakpoint_notify):  Now returns just action and breakpoint
	number.
	* (gdb_get_breakpoint_list):  New routine.  Does the obvious.
	* (gdb_get_breakpoint_info):  Mostly derived from the old
	breakpoint_notify, but returns lots more info.
	* (dsprintf_append_element):  Helper routine, works like printf,
	but appends a tcl element onto the specified DString.  Good for
	building up lists as return values.
	* (gdbtk_enable/disable_breakpoint):  Go away.  Replaced with
	gdbtk_modify_breakpoint.
	* (*many routines*):  Use new result protocol.
	* (call_wrapper):  Make sure that recursive calls don't trash results.
	* gdbtk.tcl:  New windows, autocmd, and breakpoints.
	* (gdbtk_tcl_fputs):  Don't use $current_output_win redirection
	anymore.  It's not needed (in fact, this routine may not be needed
	anymore).
	* (gdbtk_tcl_breakpoint):  Change to reflect new breakpoint
	notification protocol.
	* (gdbtk_tcl_busy gdbtk_tcl_idle):  Straighten out buttons, remove
	catches.
	* (interactive_cmd):  Use this wrapper around button invocations
	of many commands.  This will catch errors and put the results into
	the command window.  It also updates all the other windows.
	* Also, change reliefs of most things to sunken.  This actually
	looks better.
	* (create_file_win):  Fix margin binding to allow breakpoints to
	work again.
	* (create_asm_win):  Use return value of gdb_disassemble instead
	of implicit I/O to the command window.
	* (create_command_window):  Use new result protocol to get output
	from commands.
1995-02-15 01:45:39 +00:00
Jim Kingdon
5466f20ff2 * expression.h: Move declaration of evaluate_subexp_with_coercion
from here...
	* value.h: ...to here.
	* expression.h: Don't include value.h
1995-02-14 22:02:49 +00:00
Jim Kingdon
a686510408 * expression.h: Move include of value.h until after declaration of
enum exp_opcode.
1995-02-14 20:01:30 +00:00
Stan Shebs
d5c8cefe19 * remote-e7000.c: Comprehensive cleanup; removal of dead code,
simplify code, declare things, format to standards.
	(inferior.h, value.h, command.h, remote-utils.h): Include.
	(e7000_login): Rename to e7000_login_command.
	(e7000_ftp): Rename to e7000_ftp_command.
	(e7000_drain): Rename to e7000_drain_command.
1995-02-13 00:26:39 +00:00
Stan Shebs
faf4dcd7f3 * irix5-nat.c (string.h): Include near beginning of file. 1995-02-12 22:59:44 +00:00
Jim Kingdon
18d3d85907 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
arg, it is a value not a symbol.

	gcc -Wall lint:
	* eval.c: Move declaration of evaluate_subexp_with_coercion from here..
	* expression.h: ..to here.
	* expression.h: Include value.h.
	* ch-lang.c (evaluate_subexp_chill): Add default case in switch.
1995-02-12 21:54:20 +00:00
Jim Kingdon
bc778001af * gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passing
floats, chars, and shorts where there are ANSI-style function
	definitions.
1995-02-12 21:34:19 +00:00
Per Bothner
2dac71f519 * pr-6292.ch, pr-6292.exp, Makefile.in: New test case. 1995-02-12 19:47:48 +00:00
Per Bothner
7398958c7d * language.h (struct language_defn): New field evaluate_exp.
* c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
	f-lang.c (f_language_defn), language.c (unknown_language_defn,
	auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
	Set evaluate_exp to evaluate_subexp_standard.
	* ch-lang.c (evaluate_subexp_chill):  New function.  Chill-specific
	support for MULTI_SUBSCRIPT.
	(chill_language_defn):  Set evaluate_exp to evaluate_subexp_chill.
	* eval.c (enum noside):  Move from here ....
	* expression.h (enum noside):  ... to here.
	(evaluate_subexp_standard):  New prototype.
	* eval.c (evaluate_subexp):  Renamed to evaluate_subexp_standard.
	Removed lo-longer-needed test for chill_varying_type.
	(evaluate_subexp):  New.  Calls exp->language_defn->evaluate_exp.
1995-02-12 19:21:04 +00:00
Per Bothner
60438e8e3e * ch-exp.y (maybe_expression_list): New non-terminal.
(primitive_value):  Allow empty parameter list.
1995-02-12 19:18:00 +00:00
Per Bothner
7c606261da * symtab.c (add_param_to_type): Remove (commented-out) function,
since that functionality has been re-written.
	* coffread.c:  Remove commented-out add_param_to_type support.
	* mdebugread.c (parse_symbol):  Likewise.
	* stabsread.c (define_symbol):  Likewise.
1995-02-12 18:54:50 +00:00
Per Bothner
5222ca60be * valops.c (value_arg_coerce): Now takes param_type argument.
(call_function_by_hand):  Convert arguments with value_arg_coerce
	early, and overwrite original args with converted args.
	No longer need multiple calls to value_arg_coerce.
	(value_arg_push):  Removed.
	* hppa-tdep.c (hppa_push_arguments):  No longer call value_arg_coerce.
	* mips-tdep.c (mips_push_arguments):  Likewise.
	* alpha-tdep.c (alpha_push_arguments):  Likewise.
	* rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
	Likewise.
	* value.h (value_arg_coerce):  Remove declaration.  (It's now static.)

	* valops.c (value_cast):  Do COERCE_VARYING_ARRAY after COERCE_REF.
1995-02-12 18:51:42 +00:00
Per Bothner
27202b6a47 * buildsym.c (finish_block): If finishing a function without known
parameter type info, set that from parameter symbols.
	* c-typeprint.c (c_type_print_varspec_suffix):  For TYPE_CODE_FUNC,
	print parameter types, if available.
	* ch-typeprint.c (chill_type_print_base):  Likewise.

	* gdbtypes.h (struct type):  Remove function type field.
	(TYPE_FUNCTION_TYPE):  Remove macro.  We can't as simply re-use
	function types now that we're also storing parameter types.
	And the payoff is much less.
	* gdbtypes.c (make_function_type):  Don't use/set TYPE_FUNCTION_TYPE.
	(recursive_dump_type):  Don't print TYPE_FUNCTION_TYPE.
	* dwarfread.c (read_subroutine_type):  Don't set TYPE_FUNCTION_TYPE.
1995-02-12 18:46:45 +00:00
Jim Kingdon
c44c67b5ae * gdb.base/langs.exp, gdb.base/langs*: New test.
* gdb.base/Makefile.in: Build it.
	* TODO: Remove item about checking that C names don't get C++
	demangling applied; this test tests it.
1995-02-12 17:55:09 +00:00
Jim Kingdon
21af55c92d * buildsym.c (start_subfile): Set language for f2c like for cfront. 1995-02-12 17:53:34 +00:00
Jim Kingdon
d05baf08ac * gdb.texinfo (Setting): Talk about the language of a source file
versus the working language.  The old documentation did not match
	what GDB did.
1995-02-11 04:24:21 +00:00
Rob Savoye
1703d66470 * op50n-rom.c: Add the control registers. 1995-02-10 03:21:55 +00:00
Stan Shebs
76a457c016 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
after, any host/target/native libraries.
	* dcache.c (insque, remque): Remove declarations.
	* gdbtypes.h (type_code): Remove trailing comma.

	From Peter Schauer:
	* xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
	STATIC_NODEBUG_VARS inside case.
1995-02-10 00:02:15 +00:00
Stan Shebs
e91160dcbe keep tm-pro.h 1995-02-09 23:38:29 +00:00