Commit Graph

4932 Commits

Author SHA1 Message Date
Rob Savoye
046970407b * config/mips/idt.mt: Add support for the lsi33k target.
* config/sparc/sun4sol2.mh: Add support for ser-tcp.
1995-02-06 22:00:10 +00:00
Rob Savoye
16b3ea5edd * config/mips/idt.mt: Add support for ser-tcp and the lsi33k
target.
	* array-rom.c: Finish the rest of the support commands needed by
	GDB.
	* mips-tdep.c: Add LSI33k register names and processor type.
1995-02-06 21:48:44 +00:00
Rob Savoye
36439cd721 Add the rest of the commands needed by GDB. 1995-02-06 21:43:21 +00:00
Rob Savoye
c2a543679d Add support for ser-tcp and the Array lsi33k target. 1995-02-06 21:41:28 +00:00
Jim Kingdon
d039851f9f * gdbtk.c (gdb_disassemble): Deference pointer to function before
calling it (pre-ANSI compilers generally require this).
1995-02-06 04:39:14 +00:00
Jim Kingdon
f78d026a52 * Makefile.in (site.exp): Set host_alias and target_alias as well
as host_triplet and target_triplet.
1995-02-05 01:02:40 +00:00
Kung Hsu
22028e7d7e * arc.mt: add SER_HARDWIRE=ser-go32-para.o, to overwrite host .mh. 1995-02-04 00:55:51 +00:00
Kung Hsu
c98c60a6b7 * go32.mh, xm-go32.h: redundant files, not needed. 1995-02-04 00:54:15 +00:00
Kung Hsu
6396e0c04a * ser-go32-para.c (dos_read): fix syntax errors. 1995-02-04 00:51:30 +00:00
Stu Grossman
a76ef70a14 * core.c (dis_asm_read_memory), defs.h, gdbtk.c (gdb_disassemble),
top.c :  Get rid of dis_asm_read_memory_hook.  We can now call the
	disassemblers directly and have no need for this hook anymore.
	* defs.h, printcmd.c:  Make print_insn be static.

	* ser-go32.c (dos_comisr):  Make this 8 bit clean.
	* (dos_open dos_close):  Allow multiple opens to the same device.
	Use a ref count to prevent unwanted deallocations.
	* sparcl-tdep.c:  Put #ifdefs around all socket stuff to make GO32
	happy.
	* (sparclite_ops):  Switch to download_stratum.
	* target.h (enum strata):  Move download_stratum before
	process_stratum so that executable targets get pushed on top of
	download targets.
1995-02-03 19:35:54 +00:00
Rob Savoye
1b552670ac * array-rom.c: Remove the non GDB remote protocol config stuff.
* monitor.c: All reading/writing functions for memory and
	registers work.
1995-02-03 02:08:08 +00:00
Kung Hsu
75a5da5ffa * For arc specific changes. 1995-02-03 00:25:02 +00:00
Kung Hsu
249abc9805 * arc-tdep.c: new target dependent codes for arc processor.
* remote-arc.c: new file for arc-specific protocol through
        parallel line.
        * ser-go32-para.c: new file for go32 parallel port communication.
        * .Sanitize: sanitize arc specific files out.
1995-02-03 00:23:22 +00:00
Kung Hsu
183445bba9 * config/arc/.Sanitize: New file for config/arc directory.
* config/arc/arc.mt: new target makefile for arc processor.
        * config/arc/tm-arc.h: new target header for arc processor.
        * config/arc/go32.mh: new go32 host makefile for arc processor.
        * config/arc/xm-go32.h: new go32 host header for arc processor.
1995-02-03 00:19:19 +00:00
Stan Shebs
2d1444416e * Makefile.in (VERSION): Bump to 4.13.2. 1995-02-02 22:02:20 +00:00
Per Bothner
8a32900233 * f-typeprint.c (f_type_print_varspec_suffix): Print array index
ranges in reverse order.
	* f-valprint.c (f77_create_arrayprint_offset_tbl):  Fix calculation.

	* eval.c (evaluate_subscript):  Don't call value_subscript, since
	it adjusts for lower bound and enforces ranges.

	* expression.h (exp_code):  Remove MULTI_F77_SUBSCRIPT, OP_F77_SUBSTR.
	* eval.c, parse.c:  Removed uses of removed opcodes.
1995-02-02 05:23:51 +00:00
Jim Kingdon
b7a24051cf * stabs.texinfo (Source Files): Document N_SO used to mark the end
of a source file.
1995-02-02 04:31:24 +00:00
Per Bothner
ead95f8ac2 * eval.c (evaluate_subexp): Clean up handling of
OP_UNDETERMINED_ARGLIST (no backtracking, more general).

	* f-valprint.c (f_val_print):  Print TYPE_CODE_STRING using
	LA_PRINT_STRING, and not val_print_string (which reads from inferior).

	* ch-lang.c (chill_is_varying_struct), ch-lang.h:  Remve function
	duplicate function made redundant by chill_varying_type.

	Re-write of f77 string and complex number support:

	* language.h (struct language_defn):  New fields string_lower_bound
	and string_char_type.
	* c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn),
	language.c (unknown_language_defn, auto_language_defn,
	local_language_defn), m2-lang.c (m2_language_defn), f-lang.c
	(f_language_defn), ch-lang.c (chill_language_defn):  Set new fields.
	* gdbtypes.c (create_string_type):  Use new string_char_type field.
	* valops.c (value_string):  Use new string_lower_bound field.

	* defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT):  Removed.
	* f-lang.c (f_create_fundamental_type, _initialize_f_language),
	m2-lang.c (m2_create_fundamental_type),
	gdbtypes.c (_initialize_gdbtypes):  Set TYPE_TARGET_TYPE of complex
	types.  Set their TYPE_CODEs to TYPE_CODE_COMPLEX.
	* mdebugread.c (mdebug_type_complex, mdebug_type_double_complex):
	Removed.  Use builtin_type_complex and builtin_type_double_complex.

	* gdbtypes.h (enum type_code):  Removed TYPE_CODE_LITERAL_STRING
	and TYPE_CODE_LITERAL_COMPLEX.
	* c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c:  Removed uses of
	TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX.
	* gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type,
	f77_create_literal_string_type):  Removed.
	* value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR,
	VALUE_SUBSTRING_MYADDR):  Removed.

	* expression.h (enum exp_opcode):  Rename OP_F77_LITERAL_COMPLEX to
	OP_COMPLEX.
	* parse.c:  Update accordingly.

	* f-valprint.c (f77_print_cmplx):  Removed.
	(f_val_print case TYPE_CODE_COMPLEX):  Re-write to use print_floating.

	* f-exp.y (STRING_LITERAL):  Use OP_STRING instead of OP_ARRAY.
	* eval.c (evaluate_subexp):  For case OP_ARRAY, don't call
	f77_value_literal_string.
	* valops.c, value.h (f77_value_literal_string, f77_value_substring,
	f77_assign_from_literal_string, f77_assign_from_literal_complex):
	Removed.
	(value_assign):  No longer need to handle literal types.
	* valops.c (f77_value_literal_complex), value.h:  Re-written and
	renamed to value_literal_complex.  Last arg is now a (complex) type.
	* valops.c (f77_cast_into_complex):  Re-written and renamed to
	cast_into_complex.
	* eval.c (evaluate_subexp):  Update accordingly.
1995-02-02 03:37:26 +00:00
Per Bothner
6073b8deba * ch-valprint.c (chill_val_print): On TYPE_CODE_STRING, don't
print address for non-'s'-formats.
	* ch-typeprint.c, ch-valprint.c:  Use chill_varying_type instead
	of chill_is_varying_struct.
1995-02-02 03:32:52 +00:00
Stan Shebs
e3be225eb4 gcc -Wall lint.
* alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
	(after_prologue): Remove unused local b.
	* procfs.c (thread.h): Include.
	(pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
	nested braces in initializer.
	* top.c (initialize_targets, initialize_utils): Declare.
	(locate_arg, insert_args): Add parens around tested assignments.
	* remote-utils.c (sr_scan_args): Remove decl of strtol.
	* remote.c (thread.h): Include.
	(remote_wait): Remove unused local p2.
	* sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
	registers array.

	defs.h (stdlib.h): Include.
	(exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
	(fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
	strtok,	strerror): Don't specify parameter types in declaration.
1995-02-02 00:10:50 +00:00
Per Bothner
adad95c056 * tuples.ch, tuples.exp, Makefile.in: New test case. 1995-02-01 21:08:52 +00:00
Per Bothner
f91a9e05e0 * ch-exp.y (value_string_element, string_primitive_value,
start_element, left_element, right_element, slice_size,
	lower_element, upper_element, first_element):  Removed.
	(value_string_slice, value_array_slice):  Replaced by ...
	(slice):  New non-terminal, with working slice support.
	(primitive_value_lparen, rparen):  New non-terminals.
	(maybe_tuple_elements):  New non-terminal, to allow empty tuples.
	(idtokentab):  Added "up".

	* value.h (COERCE_VARYING_ARRAY):  New macro.
	* valarith.c (value_subscript):  Use it.
	* valops.c (value_cast):  Likewise.  Also, do nothing if already
	correct type, and allow converting from/to range to/from scalar.

	* valops.c, value.h (varying_to_slice, value_slice):  New functions.
	* eval.c (OP_ARRAY):  Add cast for array element.
	* expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT):  New exp_opcodes.
	* valops.c (chill_varying_type):  Moved function frp, here ...
	* gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
	* parse.c (length_of_subexp, prefixify_subexp):  Add support
	for TERNOP_SLICE, TERNOP_SLICE_COUNT.
	* expprint.c (print_subexp, dump_expression):  Likewise.
	* eval.c (evaluate_subexp):  Likewise.

	* eval.c (evaluate_subexp case MULTI_SUBSCRIPT):  Don't call
	value_x_binop on a Chill varying string.
1995-02-01 21:02:51 +00:00
Jim Kingdon
ff884d6e71 * gdb.base/nodebug.exp: Add xfails for ultrix and irix5 (same
places as other ecoff systems).
1995-02-01 18:21:30 +00:00
Jim Kingdon
372bb8b4f0 * gdb.base/nodebug.exp: Add xfails for ultrix (same places as
other ecoff systems).
1995-02-01 17:08:16 +00:00
Jim Kingdon
3c1c71bf59 * gdb.base/a1-selftest.exp (test_with_self): Don't invoke stty on
ultrix.
1995-02-01 16:11:07 +00:00
Jim Kingdon
23676ab802 * config/m68k/monitor.mt,
config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
	depfiles in TDEPFILES not REMOTE_O.
1995-01-31 22:00:59 +00:00
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