Commit Graph

4956 Commits

Author SHA1 Message Date
Jim Kingdon
0983715251 * gdb.base/nodebug.c (inner): Use variables so AIX linker doesn't
remove them.
	* gdb.base/nodebug.exp: Accept "function" in addition to "text
	variable and "variable" in addition to "data variable".
	* gdb.base/nodebug.exp: xfail datalocal and bsslocal tests for AIX.
1995-01-31 21:01:09 +00:00
Steve Chamberlain
ccbae88965 From nigel@algor.co.uk.
* ser-go32.c (dos_close): Don't crash if scb null.
	(dos_sendbreak): New function.
	(dos_ops): Point to dos_sendbreak.
	(dos_info): Calculate COM number correctly.
1995-01-31 19:30:27 +00:00
Jim Kingdon
a81ce07da8 * xcoffread.c (process_xcoff_symbol): Use new variables
func_symbol_type and var_symbol_type as type of functions and
	variables which don't have any stabs associated with them.
	Reindent most of function.
	(_initialize_xcoffread): Initialize *_symbol_type.

	* xcoffread.c (read_xcoff_symtab): Reindent most of function.
	Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
	them (this part commented out as I didn't quite get it to work).
	(cs_to_section, find_targ_sec): New functions, to support above code.
	* xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
	actually present.
1995-01-31 18:38:06 +00:00
Stu Grossman
78daa95e3a * gdbtk.tcl (create_file_win): Disable old popup menu for source
window.
1995-01-31 01:41:55 +00:00
Stu Grossman
0e887539b0 * sparcl-tdep.c: Add `sparclite' target for doing serial and udp
downloads to SPARClite demo boards.
1995-01-31 01:38:44 +00:00
Jim Kingdon
f51b66ca50 * gdb.base/list.exp (test_forward_search): Set listsize to 4 not
2.
	* gdb.base/list1.c (long_line): Add additional statement at start
	of function.
	* gdb.base/list.exp (test_forward_search): Update line number to
	reflect new statement.
1995-01-30 19:53:35 +00:00
Jim Kingdon
ba6ef5e5fd * remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
no hope of working as is for a long time (in particular, shebs' 27
	Jan 95 change confuses the issue further--target_read_memory and
	xfer_core_file do *not* do the same thing in this context).
	Revise comment.
1995-01-29 17:51:58 +00:00
Peter Schauer
de537409fc * elfread.c (elf_symtab_read): Do not test BSF_GLOBAL for
procedure linkage table symbols, it is no longer set due to the
	Jan 6 BFD change in bfd/elfcode.h.
1995-01-28 21:43:51 +00:00
Jeff Law
333a8ddecf * gdb.disasm/Makefile.in (clean): Delete "errs" file.
* gdb.stabs/Makefile.in: Likewise.

	* gdb.disasm/hppa.exp (all_fpu_comparison_tests): Revert last
	change.  Instead split the tests into smaller pieces.
	* gdb.disasm/hppa.s: Corresponding changes.
1995-01-28 08:42:31 +00:00
Stan Shebs
f22661eefd * top.c (use_windows): Clarify comments. 1995-01-28 01:38:39 +00:00
Stan Shebs
0d2d841287 * convex-tdep.c (xfer_core_file): Comment out.
* config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
	* remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
        references to target_read_memory.
	* gdbcore.h (xfer_core_file, core_open, core_detach): Remove
	declarations.
	* corelow.c (core_open, core_detach): Make static.
1995-01-28 01:32:10 +00:00
Stan Shebs
06c41b39c2 * arm-tdep.c: Make it compile.
(exec_file_command, xfer_core_file): Comment out.
	(arm_print_insn): Remove, now in libopcodes.
	(skip_prologue): Comment out most of body.
	(arm_frame_find_saved_regs): Move here from tm-arm.h.
	(_initialize_arm_tdep): Set tm_print_insn.
	* config/arm/tm-arm.h: Remove old refs to first_object_file_end.
	(XFER_CORE_FILE): Remove.
	(FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.
1995-01-28 01:17:33 +00:00
Jim Kingdon
e29b45a853 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Quote ^C when passing it to stty.  For some shells ^ is a pipe.
1995-01-27 18:22:15 +00:00
Jim Kingdon
a4efaf7c06 * gdb.base/funcargs.exp: Modify many tests so that every test
either passes or fails.  Make some test names unique.
1995-01-27 17:29:52 +00:00
Jim Kingdon
0d6a571b89 * Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in. 1995-01-27 16:53:21 +00:00
Jim Kingdon
66b063c03d * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
Call stty to set interrupt character.
1995-01-27 05:40:50 +00:00
Jim Kingdon
958f6a1310 * gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
for HP assembler versus GNU assembler based on actual behavior of
	$(CC), rather than assuming that $(AS) is always the GNU assembler.
1995-01-27 04:24:09 +00:00
Jim Kingdon
669c9fe334 * TODO: Suggest a few more stepping tests. 1995-01-27 03:22:42 +00:00
Jim Kingdon
606ae2ba23 * symtab.c (find_pc_line): When subtracting one to get a line
number, make sure not to end up with zero.
1995-01-27 03:15:20 +00:00
Jim Kingdon
bf644f8f74 * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
problems with those changes were (a) the file didn't compile, (b)
	they changed memset to bzero--memset is correct, (c) they took out
	code to deal with boards lacking floating point, (d) who knows
	what I didn't discover in a quick read.
1995-01-27 03:10:00 +00:00
Stu Grossman
c746aa850b * sparcl-tdep.c: Clean up formatting and indentation. 1995-01-27 01:34:48 +00:00
Steve Chamberlain
03fc5a0b43 * remote-hms.c (hms_ops): Change ref of hr_load_image
to gr_load_image.
	(dcache_flush, dcache_hit, dcache_value, dcache_fetch,
	dcache_poke, dcache_init):  Deleted.
	(hms_open, hms_resume, hms_fetch_word, hms_store_word):
	Use dcache routines provided by remote-util.h
1995-01-26 19:57:09 +00:00
Steve Chamberlain
d2d0e51de4 * remote-hms.c (hms_ops): Change ref of hr_load_image
to gr_load_image.
1995-01-26 18:53:20 +00:00
Steve Chamberlain
9d3a5bde4a New file. 1995-01-26 17:41:48 +00:00
Michael Meissner
9754404872 Add powerpc-*-eabi support. 1995-01-26 17:27:56 +00:00
Per Bothner
acc4efdecd * language.h (struct language_defn): New field c_style_arrays.
* language.c (unknown_language_defn, auto_language_defn,
	local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
	asm_language_defn):  Set c_style_arrays to true.
	* m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
	f-lang.c (f_language_defn):  Set c_style_arrays to false.
	* valops.c (value_string):  If c_style_array is not set,
	allocate string in gdb (not inferior) using allocate_value.

	* value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
	Only call value_coerce_array if current_language->c_style_arrays.
	* values.c:  Add #include "language.h".  (Needed for COERCE_ARRAY.)

	* valops.c (chill_varying_type):  New predicate.
	* valops.c (value_cast):  Support assigning a fixed string or array
	to a variable string/array structure.

	* valarith.c (value_subscripted_rvalue):  Extra parameter lowerbound.
	Check index>=lowerbound, and then add lowerbound to index here,
	instead of in caller.  Generalize to arbitrary lval_types.
	(value_subscript):  Use enhanced value_subscripted_rvalue if
	c_style_arrays is false (and index is in range).
1995-01-26 02:32:25 +00:00
Stu Grossman
b66051ec19 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
found.
	* gdbtk.tcl:  Initialize expr_update_list() to prevent errors when
	popping up expression window for the first time.
1995-01-26 02:27:06 +00:00
Per Bothner
ee3a45e7b7 * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
TYPE_LENGTH is length in bytes, not bits.
1995-01-26 02:19:13 +00:00
Stan Shebs
c429bbab3a * gdb.base/default.exp: xfail no-stack backtraces for h8300,
restart GDB for h8300 after a continue.
	(return): Add pattern to match a29k-udi behavior.
	* gdb.base/nodebug.exp: Remove obsolete comment.
	* gdb.base/regs.exp: New file, testing of register displays.
	* gdb.base/return.exp: Fix typo in reference to $objdir.
	* gdb.base/whatis.exp: Always start with a fresh GDB.
1995-01-26 00:02:46 +00:00
Jim Kingdon
7010dbced3 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Set timeout
higher, these tests generate a lot of output.
1995-01-25 22:16:08 +00:00
Jim Kingdon
5024a43fee * infrun.c (proceed): Flush stdout before resuming inferior.
* infcmd.c (step_1), annotate.c (annotate_starting):
	Don't bother to flush here.
1995-01-25 18:16:42 +00:00
Jeff Law
dc192b86c4 * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
by an ill-advised global search and replace.
1995-01-25 08:13:14 +00:00
Jim Kingdon
6535b97b3f * lib/gdb.exp (gdb_test): Remove catch from around the send. The
code following the catch silently ignored some errors; without the
	catch they should be thrown like any other tcl error.  Also, the
	catch used "" instead of {} which meant all the callers who wanted
	to include one of the characters "[]$ had to quote it an extra time.
	* gdb.base/{callfuncs.exp,commands.exp,gdbvars.exp,printcmds.exp,
	ptype.exp,signals.exp,watchpoint.exp}, gdb.c++/{cplusfuncs.exp,
	demangle.exp}, gdb.chill/chexp.exp, gdb.fortran/exprs.exp:
	Remove extra quoting.
1995-01-25 03:33:25 +00:00
David Edelsohn
c1ac88f9d5 Sanitize arc stuff. 1995-01-25 03:27:54 +00:00
Stu Grossman
8e5bc49fe5 * gdbtk.tcl (create_registers_window): Work around a radiobutton
widget bug to make Options|Natural button work.
1995-01-25 00:36:33 +00:00
Stu Grossman
c81a3fa9b6 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
g++ caused by out-of-order pc's.
	* gdbtk.tcl (files_command):  Remove duplicate file names.  Also,
	add scrollbar.
1995-01-24 21:49:11 +00:00
Jeff Law
af2e6b157e * gdb.base/commands.exp: Make test names unique; every test either
passes or fails.  Update some comments.
1995-01-24 05:16:25 +00:00
Jeff Law
36491e5bda * gdb.disasm/hppa.exp (do_system_control_tests): Update. 1995-01-24 04:59:07 +00:00
Stu Grossman
6bd7d9fad8 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
doc!
1995-01-24 01:23:18 +00:00
Jim Kingdon
1b0c5a4fbb * gdb.texinfo (Processes): New node. 1995-01-23 22:27:49 +00:00
Per Bothner
6d34c23688 Add support for Chill bitstring literals (e.h. H'FF00').
* ch-exp.y (match_bitstring_literal):  Fix for proper endianness.
	* expprint.c (print_subexp):  Don't call error on OP_BITSTRING,
	just print B'<unimlemented>'.
	* gdbtypes.c (create_set_type):  Fix bug in length calculation.
	* valops.c, value.h (value_bitstring):  New function.
	* eval.c (evaluate_subexp):  Implement support for OP_BITSTRING.

	* ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
	check that return type is non-void, and print in proper Chill syntax.
1995-01-23 21:20:58 +00:00
Rob Savoye
ce51845b10 * Makefile.in: Remove references to remote-mon.c.
* remote-mon.c: remove. Replaced by rom68k-rom.c.
	* rom68k-rom.c: Support for Rom68k monitor.
1995-01-23 19:25:24 +00:00
Jim Kingdon
a9c67591ce * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
gcc/ch/runtime not chillrt, since that is where the chill runtime
	lives now.
1995-01-23 18:54:29 +00:00
Steve Chamberlain
0c699ac167 * remote-hms.c (hms_load): Delete.
(target_ops): Use hr_load_image.
1995-01-23 08:11:30 +00:00
Steve Chamberlain
771d7a99ed Mon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
* remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
        Define memory_insert/remove_breakpoint.
	* xm-go32.h: Remove redundant SIGs.

Thu Jan 19 20:26:58 1995  Steve Chamberlain  <sac@splat>

	* ser-go32.c: Rewritten by nigel@algor.co.uk.
1995-01-23 08:09:02 +00:00
Jim Kingdon
89ac6f79fb The following fixes a FAIL caused by the fact that the alpha stabs
configuration didn't use the ".if alpha" code in weird.def.
	* gdb.stabs/weird.def (v_comb): Use type attribute to specify 32
	bit pointer, so the 32 bit version works even on the alpha.
	* gdb.stabs/{alpha.mt,ecoff.mt,aout.sed,hppa.sed,xcoff.sed,weird.def}:
	Remove the stuff which allowed us to have separate versions for
	alpha and everything else.
1995-01-22 06:25:50 +00:00
Jim Kingdon
b2385a0a47 * gdb.c++/cplusfuncs.exp (test_lookup_operator_functions): Fix
regexp which "info func operator\[\](" is supposed to match.  Fix
	string to send to GDB.  Note that GDB still doesn't work right.  Add a
	new test for "info func .perator\[\](" which GDB does handle correctly.
1995-01-21 23:52:00 +00:00
Jim Kingdon
e1a6b67ab3 * gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems. 1995-01-21 23:38:43 +00:00
Jim Kingdon
9f538e3e9d add new tests sigall.c and sigall.exp 1995-01-21 23:30:43 +00:00
Kung Hsu
456f6de6ad * add new file remote-vx29k.c. 1995-01-21 00:57:39 +00:00
Kung Hsu
1010fd28b5 * add new files vx29k.mt, tm-vx29k.h. 1995-01-21 00:56:22 +00:00
Per Bothner
dcda44a07a * expression.h (OP_LABELED): New operator, for Chill
labeled structre tuples.
	* ch-exp.y (tuple_element, named_record_element, tuple_elements):
	New non-terminals, to handle labeled structure tuples.
	(tuple):  Re-define using tuple_elements.
	* eval.c (evaluate_labeled_field_init):  New function, to handle
	initialization of structure fields, possibly using OP_LABELED.
	(evaluate_subexp):  Use it.
	* expprint.c (print_subexp case):  For OP_ARRAY, use Chill syntax
	for Chill.  Handled OP_LABELED.
	* parse.c (length_of_subexp, prefixify_subexp):  Handle OP_LABELED.

	* eval.c (evaluate_subexp):  Handle Chill Powerset tuples.
	* valarith.c (value_bit_index):  Just treat bitstring as represented
	by an array of bytes.  Alignment is handled by compiler.
1995-01-20 23:45:21 +00:00
Jim Kingdon
f34c87666e * gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
gdb.c++/inherit.exp, gdb.c++/templates.exp, gdb.c++/virtfunc.exp,
	gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp,
	gdb.base/printcmds.exp: Remove passcount, failcount, etc., stuff;
	it makes the tests harder to understand and confuses test-o-matic.
	The preferred style is that each test provides a PASS or a FAIL,
	and has a unique message (e.g. "continue #54" not just "continue")
	which is the same for the pass and the fail.
	* gdb.fortran/exprs.exp, gdb.fortran/types.exp,
	gdb.chill/chexp.exp: Move test_print_accept and test_print_reject
	to lib/gdb.exp.
	* gdb.base/printcmds.exp: Use test_print_accept.  Remove
	prt_accept which was basically the same thing.  Likewise for
	test_print_reject and prt_reject.
	* lib/gdb.exp (test_print_reject): Add some more error message
	patterns to match from the former printcmds.exp (prt_reject).
	* gdb.c++/classes.exp, gdb.base/scope.exp: Remove spurious xfails.
	One defect of the passcount stuff is that some of it failed to
	report XPASS where appropriate.
	* gdb.c++/cplusfuncs.exp (print_addr_of): No longer accept extra
	stuff before and after arg in expected pattern.
	(test_paddr_operator_functions): Re-do test without print_addr_of;
	this is the only test which seems to want extra stuff there.
1995-01-20 22:26:33 +00:00
Stan Shebs
5076ecd0f6 * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
* sh-tdep.c (gdb_print_insn_sh): Ditto.
1995-01-19 03:16:42 +00:00
Kung Hsu
6bbc99e309 * remote-os9k.c (rombug_open): Fix a bug in exception handling
command.
        * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
        write.
1995-01-18 19:31:25 +00:00
Rob Savoye
0b0669febd Add GDBPROTO macro for checking the type of protocol. 1995-01-18 19:11:30 +00:00
Stan Shebs
0f1cf1457f Reflect changes to pinsn and tdep files 1995-01-17 22:39:42 +00:00
Jim Kingdon
eedb3363e8 * parse.c (_initialize_parse): Improve wording of names of
msym_*_symbol_type.
1995-01-17 21:47:38 +00:00
Ian Lance Taylor
4c7edd73d9 update copyright 1995-01-17 19:11:06 +00:00
Ian Lance Taylor
89dd4786f1 * remote.texi: Update documentation of set/show mipsfpu. 1995-01-17 19:09:53 +00:00
Ian Lance Taylor
daa4c5f8a1 * config/mips/tm-mips.h (enum mips_fpu_type): New enum.
(mips_fpu): Change type to enum mips_fpu_type.
	(FIX_CALL_DUMMY): Handle mips_fpu == MIPS_FPU_SINGLE.
	* mips-tdep.c (mips_fpu): Change type to enum mips_fpu_type.
	Don't initialize.
	(mips_fpu_string): New static variable.
	(mips_push_dummy_frame): Handle mips_fpu == MIPS_FPU_SINGLE.
	(mips_pop_frame): Likewise.
	(mips_extract_return_value): Likewise.
	(mips_store_return_value): Likewise.
	(mips_set_fpu_command): New static function.
	(mips_show_fpu_command): New static function.
	(_initialize_mips_tdep): Change handling of set/show mipsfpu.
1995-01-17 19:08:31 +00:00
Jim Kingdon
5ad32be23c * a29k-tdep.c (gdb_print_insn_a29k): Fix typo (&info -> info). 1995-01-17 16:43:20 +00:00
Jim Kingdon
29f25f6f69 * gdb.base/nodebug.exp: Add tests to check that "print", "whatis"
and "ptype" work on variables in files compiled without -g.
	Replaces commented out "maint print msymbol" tests.
1995-01-17 16:22:23 +00:00
Jim Kingdon
3fb93d868b * parse.c (write_exp_msymbol): Use new variables
msym_*_symbol_type as type of msymbol expression.
	(_initialize_parse): Initialize them.
1995-01-17 16:16:20 +00:00
Stan Shebs
dbd9bcaa8b * config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o. 1995-01-17 04:53:00 +00:00
Stan Shebs
0336337260 Revert previous, ill-considered change to defs.h 1995-01-17 04:44:43 +00:00
Stan Shebs
18b46e7c53 General cleanup and simplication of disassembler interface.
* a29k-pinsn.c, arm-pinsn.c, convex-pinsn.c, gould-pinsn.c,
        hppa-pinsn.c, i386-pinsn.c, i960-pinsn.c, m68k-pinsn.c,
        m88k-pinsn.c, mips-pinsn.c, ns32k-pinsn.c, pyr-pinsn.c,
        rs6000-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c, vax-pinsn.c: Remove.
	* gould-tdep.c, ns32k-tdep.c, tahoe-tdep.c, vax-tdep.c: New files,
	had been -pinsn.c files.
	* Makefile.in (ALLDEPFILES): Remove removed files.
	(a29k-pinsn.o, arm-pinsn.o, convex-pinsn.o, gould-pinsn.o,
        hppa-pinsn.o, i386-pinsn.o, i960-pinsn.o, m68k-pinsn.o,
        m88k-pinsn.o, mips-pinsn.o, ns32k-pinsn.o, pyr-pinsn.o,
        rs6000-pinsn.o, sparc-pinsn.o, tahoe-pinsn.o, vax-pinsn.o):
        Remove compile actions.
	* arm-tdep.o, gould-tdep.o, ns32k-tdep.o, tahoe-tdep.o,
	vax-tdep.o: Add compile actions.
	* defs.h (tm_print_insn): New global.
	* a29k-tdep.c (gdb_print_insn_a29k): New function.
	(_initialize_a29k_tdep): Rename from _initialize_29k,
	set tm_print_insn.
	* alpha-tdep.c (print_insn): Remove.
	(_initialize_alpha_tdep): Set tm_print_insn.
	* arm-tdep.c (arm_print_insn): New function, was print_insn
	in arm-pinsn.c.
	* convex-tdep.c (convex_print_insn): New function, was print_insn
	in convex-pinsn.c.
	* h8300-tdep.c (print_insn): Remove.
	(gdb_print_insn_h8300): New function.
	(_initialize_h8300_tdep): New function.
	* h8500-tdep.c (print_insn): Remove.
	(_initialize_h8500_tdep): New function.
	* hppa-tdep.c (_initialize_hppa_tdep): Set tm_print_insn.
	* i386-tdep.c (_initialize_i386_tdep): New function.
	* i960-tdep.c (mem, next_insn): New functions, were in
	i960-pinsn.c.
	(_initialize_i960_tdep): Set tm_print_insn.
	* m68k-tdep.c (_initialize_m68k_tdep): New function.
	* m88k-tdep.c (_initialize_m88k_tdep): New function.
	* mips-tdep.c (gdb_print_insn_mips): New function.
	(_initialize_mips_tdep): Set tm_print_insn.
	* pyr-tdep.c (pyr_print_insn): New function, was print_insn
	in pyr-pinsn.c.
	* rs6000-tdep.c (_initialize_rs6000_tdep): New function.
	* sh-tdep.c (print_insn): Remove.
	(gdb_print_insn_sh): New function.
	(_initialize_sh_tdep): Set tm_print_insn.
	* sparc-tdep.c (_initialize_sparc_tdep): New function.
	* w65-tdep.c (print_insn): Remove.
	(_initialize_w65_tdep): New function.
	* z8k-tdep.c (print_insn): Remove.
	(gdb_print_insn_z8k): New function.
	(_initialize_z8k_tdep): Set tm_print_insn.
	* printcmd.c (print_insn): New function, generic disassembler.
	* config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o.

	* defs.h (query_hook, error_hook): Fix prototypes.
1995-01-17 04:36:51 +00:00
Kung Hsu
83d9bb1416 * Makefile.in: add new files remote-vx29k.c, config/a29k/tm-vx29k.h,
and config/a29k/vx29k.mt.
        * configure.in: add new configuration a29k-*-vxworks.
        * remote-vx29k.c: new file merged from WRS.
        * remote-vx.c: merge changes from WRS.
1995-01-16 23:56:41 +00:00
Kung Hsu
fcad29ce26 * config/a29k/vx29k.mt: new file for new configuration.
* config/a29k/tm-vx29k.h: new header file for newconfiguration.
1995-01-16 23:53:02 +00:00
Jim Kingdon
668336262c * gdb.base/setvar.c (dummy): Call malloc. 1995-01-16 20:14:38 +00:00
Jim Kingdon
24f5d04a56 * gdb.stabs/aout.sed: Enclose comments within a sed command to avoid
losing with the irix4 sed.
1995-01-16 17:24:13 +00:00
Jim Kingdon
0c72a5b7ed * gdb.base/sigall.exp (test_one_sig): Add xfail for "get signal
ALRM" on irix4.
1995-01-16 17:19:03 +00:00
Jim Kingdon
d722005e65 * TODO: Remove items about corefile.exp testing new exec-file and
backtrace; both are now done.  Add items about printing enums.
1995-01-16 03:21:04 +00:00
Steve Chamberlain
d723ade79e * w65-tdep.c, config/tm-w65.h, config/w65.mt: New files.
* configure.in: Suppprt for w65,
1995-01-16 01:45:49 +00:00
Steve Chamberlain
be21628de5 * w65-tdep.c, config/tm-w65.h, config/w65.mt: New files.
* configure.in: Suppprt for w65,
1995-01-16 01:29:48 +00:00
Steve Chamberlain
0a9f255594 new file. 1995-01-16 01:28:40 +00:00
Steve Chamberlain
16041d5304 Sun Jan 15 14:36:19 1995 Steve Chamberlain <sac@splat>
* breakpoint.h (disable_breakpoint, enable_breakpoint):
	New declarations.
	(enum bpdisp): Change name of 'delete' member to 'del'.
	(struct bpstat): Changed name to 'bpstats'.
	* breakpoint.c (disable_breakpoint, enable_breakpoint,
	breakpoint_chain): Made globally visible.
	(bpstat_stop_status): Use new name for bpstat.
	(break_command_1, watch_command_1, catch_command_1,
	breakpoint_auto_delete, denable_delete_breakpoint): Use 'del'
	instead of 'delete'.
	(set_breakpoint_sal): New function.
	* defs.h (registers_changed_hook): New declaration.
	* infcmd.c (run_stack_dummy): 'delete' is now 'del'.
	* inflow.c (new_tty): Treat WIN32 in same way as __GO32__
	* main.c (main): Don't scan options when in WIN32 and exit
	without entering main loop.
	* m2-exp.y (m2_elx): Member 'class' is now 'aclass'.
	* symtab.h (struct symbol, struct partial_symbol): Changed name of
	member 'class' to 'aclass'.
	(SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change.
	* top.c (registers_changed_hook): New definition.
	* utils.c (quit, notice_quit, initialize_utils): Treate WIN32
	in same way as __GO32__.
	* value.h (c_typedef_print): Rename 'new' argument.
1995-01-15 23:17:43 +00:00
Jim Kingdon
764adcb490 * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL. 1995-01-14 20:56:55 +00:00
Jim Kingdon
2d593cdda9 * gdb.base/sigall.exp (test_one_sig): Attempt to recover if
"get signal $thissig" test fails.
1995-01-14 18:23:51 +00:00
Jim Kingdon
8248d21bd9 * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
not stop_pc, to proceed.
1995-01-14 18:07:48 +00:00
Jim Kingdon
22b1c54a0c * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL. 1995-01-14 16:48:03 +00:00
Jim Kingdon
770b7c5935 * gdb.base/setvar.exp: Check for and reject crazy expected type hacks. 1995-01-14 16:29:24 +00:00
Stan Shebs
218d43e52e * Makefile.in (all): Don't make libgdb-files.
(libgdb): New action, makes libgdb-files.
1995-01-13 23:31:57 +00:00
Jim Kingdon
b5088d10b5 * infcmd.c (signal_command): Accept "signal 0"; the change to not
accept it was accidental.  "handle 0" and "info signal 0" remain
	illegal, though.
1995-01-13 22:55:37 +00:00
Per Bothner
0f8631fbae * stabsread.c (read_enum_type): When pending enum symbols are
put into the enum type, they must be inserted in "backwards
	order, in case we've overflowed a struct pending buffer.
1995-01-13 06:24:23 +00:00
Stu Grossman
4604b34cd3 * gdbtk.c gdbtk.tcl: Update/add copyright.
* gdbtk.tcl (build_framework):  Several fixes for filespec widget,
	including dismiss button, and better error handling.
	* (create_command_win):  Bind button 2 to retrieve selection.
1995-01-12 23:10:48 +00:00
Jim Kingdon
592355645c * gdb.base/sigall.c (gen_*): Pass argument to handle_* to avoid
compiler warning with dec alpha compiler.

	* gdb.base/commands.exp (if_while_breakpoint_command_test): Remove
	extra \n from gdb_test call (this explains why the prompt test
	that I removed yesterday was there).
	(user_defined_command_test): Remove extra \n and prompt test.

	* gdb.base/sigall.c: If SIGABRT == SIGLOST, just act as if SIGLOST
	doesn't exist.  Likewise if SIGIO == SIGPOLL, pretend SIGPOLL
	doesn't exist.
	* gdb.base/sigall.exp: Remove special handling for SIGIO and SIGPOLL.
	Also remove alpha workaround, which turns out to be because
	SIGABRT == SIGLOST.
1995-01-12 20:12:07 +00:00
Peter Schauer
cc62225cc8 Add procfs support for Alpha OSF/1-2.x.
* config/alpha/nm-osf.h:  Renamed from nm-alpha.h, generic
	OSF/1 native support.
	* config/alpha/alpha-osf1.mh (NAT_FILE):  Changed accordingly.
	(MUNCH_DEFINE):  Removed.
	* config/alpha/alpha-osf2.mh, config/alpha/nm-osf2.h:  New files
	for procfs support.
1995-01-12 18:14:01 +00:00
Peter Schauer
2592eef89b * README: Add note about SPARCworks cc release 3.0 and higher.
Add procfs support for Alpha OSF/1-2.x.
	* config/alpha/nm-osf.h:  Renamed from nm-alpha.h, generic
	OSF/1 native support.
	* config/alpha/alpha-osf1.mh (NAT_FILE):  Changed accordingly.
	(MUNCH_DEFINE):  Removed.
	* config/alpha/alpha-osf2.mh, config/alpha/nm-osf2.h:  New files
	for procfs support.
	* configure.in (alpha-dec-osf*):  Use alpha-osf2.mh for OSF/1
	release 2.x and higher, else alpha-osf1.mh, as the procfs support
	in release 1.x is incomplete.
	* Makefile.in (ALLCONFIG):  Add config/alpha/alpha-osf2.mh.
	* alpha-nat.c (supply_gregset, fill_gregset, supply_fpgregset,
	fill_fpgregset):  New routines for procfs support.
	* inftarg.c (_initialize_inftarg):  Don't add ptrace support
	if we have an optional procfs and /proc is accessible.
	* procfs.c:  Include sys/fault.h and sys/syscall.h before
	including sys/procfs.h.
	(unconditionally_kill_inferior):  If PROCFS_NEED_PIOCSSIG_FOR_KILL
	is defined, additionally perform a PIOCSSIG to really terminate
	the inferior.
	(create_procinfo):  Always return a result.
	(create_procinfo, do_attach):  Don't trace T_IFAULT faults if
	PROCFS_DONT_TRACE_IFAULT is defined.
	(procfs_init_inferior):  Use START_INFERIOR_TRAPS_EXPECTED as
	argument to startup_inferior if it is defined.
	(proc_set_exec_trap):  If PIOCSSPCACT is defined, use it instead
	of tracing exits from exec system calls. Needed for the user level
	loader under Alpha OSF/1.
	(do_detach):  Clear any pending signal if we want to detach from
	a process without a signal.
	(set_proc_siginfo):  If PROCFS_DONT_PIOCSSIG_CURSIG is defined,
	don't issue a PIOCSSIG if pr_cursig already contains the signal we
	intend to set.
	(info_proc_signals):  If PROCFS_SIGPEND_OFFSET is defined, the
	pending signals are numbered from 1 instead of 0.
	(info_proc_mappings):  Increase size of output format for addresses
	if BFD_HOST_64_BIT is defined.
	(procfs_stop):  Renamed from child_stop.
	(_initialize_procfs):  Don't add procfs support if we have an
	optional procfs and /proc is not accessible.
1995-01-12 18:12:04 +00:00
Jim Kingdon
3074a46dbf * gdb.base/sigall.exp: Add workaround for alpha weirdness. 1995-01-12 16:41:09 +00:00
Jim Kingdon
4a9758edbc * gdb.base/help.exp: Don't test "help show". 1995-01-12 06:17:40 +00:00
Stu Grossman
280c564c76 * gdbtk.tcl: Add button to control mixed source disassembly.
* Use text widgets in expr window.  The give me more control over
	layout.
	* Add auto-updating of exprs in expression window.
	* Handle expressions out of scope a bit better.
	* Make selected window pop up to the top when invoked via the
	menubar.
	* Make copyright message have raised relief.
1995-01-12 02:10:05 +00:00
Stu Grossman
724498fdc0 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
during startup.
1995-01-12 01:09:34 +00:00
Rob Savoye
b04a78d487 * array-rom.c: Add support for most commands.
* monitor.c: Add GDB remote protocol for the hybrid environment on
	the Array board.
1995-01-12 00:56:53 +00:00
Jim Kingdon
8bc8001669 * gdb.base/help.exp: Replace most of docstring for "define" with ".*". 1995-01-11 20:45:59 +00:00
Jim Kingdon
4a2170f0ea * gdb.base/a1-selftest.exp: Don't test "maint dump-me". That test
was a vestige of the manual TESTSTRATEGY, and the purpose of it
	was to make sure that gdb can read a core file.  But (a) the "read
	the corefile" part didn't make it to a1-selftest.exp, we just
	delete the corefile after creating it, and (b) we test reading
	corefiles in corefile.exp anyway.  Also, this test left around a
	xgdb process on Solaris.

	* gdb.base/corefile.exp: Also test backtrace.
1995-01-11 20:42:33 +00:00
Jeff Law
b47ae8fb93 Opps. Forgot to commit last night's ChangeLog entry. 1995-01-11 17:48:06 +00:00
Jeff Law
59528079ca * command.c (show_user_1): Use print_command_line to show a user
defined command (including control structures).

	* top.c (init_main): Change documentation for user defined
	commands to indicate they may accept up to ten arguments.
1995-01-11 07:46:44 +00:00
Jeff Law
b0c2974980 * gdb.base/commands.exp: Test a simple user defined command with
arguments and if/while statements; verify the full user command is
	printed by "show user".
1995-01-11 07:43:53 +00:00
Jeff Law
cba9d85e01 * gdb.base/commands.exp: Test if/while commands as part of a
breakpoint command list; verify they appear in breakpoint
	information.
1995-01-11 07:16:54 +00:00