Commit graph

3612 commits

Author SHA1 Message Date
Jim Kingdon
b02fd8caa2 * exec.c (exec_file_command): If error occurs after we have opened
exec_bfd but before we call push_target, make sure to close exec_bfd.
1993-12-26 23:33:14 +00:00
Jim Kingdon
b2f03c3027 Sun Dec 26 16:59:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* infrun.c (wait_for_inferior): Remove confusing and inaccurate
	stuff about subroutine calls, return, etc., from comment which
	says "We've wandered out of the step range.".

Sun Dec 26 09:18:10 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)

	* infrun.c (wait_for_inferior): When checking whether the line has
	changed, check the symtab as well.
1993-12-26 23:06:56 +00:00
Jim Kingdon
5461330147 * gdbtypes.c (force_to_range_type): Use switch statement.
complain() not warning() if the TYPE_CODE isn't one we know how to
	deal with gracefully.  Use builtin_type_int not
	lookup_fundamental_type (the objfile we passed to
	lookup_fundamental_type was sometimes NULL).
1993-12-26 22:37:47 +00:00
Jim Kingdon
f4f0d17487 * valops.c (call_function_by_hand, push_word), defs.h (push_word),
convex-xdep.c, m88k-nat.c, i386m3-nat.c, mips-tdep.c, mipsm3-nat.c,
	ns32km3-nat.c, remote-bug.c, m88k-tdep.c, remote-hms.c, remote-mips.c,
	config/gould/tm-np1.h, hppa-tdep.c (hppa_fix_call_dummy), remote-vx.c:
	Use REGISTER_SIZE, unsigned LONGEST, and
	{store,extract}_unsigned_integer, instead of sizeof
	(REGISTER_TYPE) and REGISTER_TYPE.
	* All tm.h files: Change REGISTER_TYPE to REGISTER_SIZE.
	* hppa-tdep.c (pa_print_fp_reg): Remove unused variable val.

	* Makefile.in (ALLDEPFILES): Remove i386ly-nat.c and m68kly-nat.c.
	Add lynx-nat.c.
1993-12-26 18:10:22 +00:00
Jeff Law
192c3eeb94 * hppa-tdep.c (init_extra_frame_info): Correctly adjust the base
of the current frame when "fromleaf" is true.  Do not adjust the
        frame base of the innermost frame if it is a leaf function.
1993-12-26 04:06:32 +00:00
Jim Kingdon
28f851f93a * stabsread.c (define_symbol): Only combine a p/r pair into a
LOC_REGPARM if REG_STRUCT_HAS_ADDR.
1993-12-25 19:50:45 +00:00
Jim Kingdon
008d4449a7 Sat Dec 25 09:50:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* valops.c (value_struct_elt): Check for (value)-1 return from
	search_struct_method.
1993-12-25 19:28:47 +00:00
Jim Kingdon
04f566a356 * defs.h: Move definitions of TARGET_*_BIT after include of tm.h.
The old way (using #undef in tm.h) was ugly and asking for
	trouble, because it makes it possible for some file to use the
	wrong definition.  Move definition of HOST_CHAR_BIT after definition
	of TARGET_CHAR_BIT.
	* config/alpha/tm-alpha.h, config/h8300/tm-h8300.h,
	config/h8500/tm-h8500.h, config/z8k/tm-z8k.h: Don't undef TARGET_*_BIT
	before defining them.
1993-12-25 18:44:22 +00:00
Jim Kingdon
504ccfd788 * mdebugread.c: Change the builtin_type_* in this file to
mdebug_type_* and make them static.  Use TYPE_CODE_ERROR for
	complex and float decimal.
1993-12-25 18:04:33 +00:00
Jim Kingdon
ca603cff1e * printcmd.c (disassemble_command): Call wrap_here between printing
address and printing instruction.
1993-12-25 15:58:46 +00:00
Jim Kingdon
7677d4fda4 * stabsread.c (read_type): Don't fall through 'S' case (the case it
was falling though happened to do the thing thing ("break;") but that
	is hardly a good thing to assume).
1993-12-24 20:43:29 +00:00
Jim Kingdon
8ba154e2f0 remove stray <<<<< from CVS 1993-12-24 19:05:23 +00:00
Per Bothner
852b3831ce * valops.c (value_coerce_array): Handle STRINGs as well as ARRAYs. 1993-12-21 22:22:45 +00:00
Per Bothner
cba009211a * ch-exp.y (match_dollar_tokens): Fix off-by-one bug.
* ch-lang.c (chill_is_varying_struct), ch-lang.h:  New function.
	* ch-lang.c (chill_printstr):  Use double quotes, not single quotes.
	* ch-typeprint.c (chill_type_print_base):  Handle TYPE_CODE_BITSTRING.
	Improve printing of TYPE_CODE_STRING, TYPE_CODE_SET, and
	TYPE_CODE_STRUCT (including checking chill_is_varying_struct).
	Print TYPE_DUMMY_RANGE by printing its TYPE_TARGET_TYPE.
	Handle TYPE_CODE_ENUM.
	* ch-valprint.c (chill_val_print):  Handle TYPE_CODE_BITSTRING.
	For TYPE_CODE_STRING, never print address.  Handle VARYING strings.
	* gdbtypes.c (force_to_range_type):  New.
	* gdbtypes.c (create_set_type):  Make work, following Chill layout.
	* gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND, TYPE_DUMMY_RANGE): New.
	* stabsread.c (read_type):  Distinguish string and bitstring from
	char-array and set.
	* valarith.c (value_subscript), valops.c (value_coerce_array):
	Handle STRINGs as well as ARRAYs.
	* valarith.c (value_bit_index):  Fix think.  Use new macros.
1993-12-21 22:18:51 +00:00
Kung Hsu
40f2446977 Modified Files:
ChangeLog symtab.c c-valprint.c

        * symtab (decode_line_1): fix a bug when position char is not
        set correctly.
        * c-valprint (c_val_print): handle vtbl printing when vtbl is not
        set up yet.
1993-12-17 18:51:17 +00:00
Ian Lance Taylor
5ddff1344f * mips-tdep.c (read_next_frame_reg): If SIGFRAME_REG_SIZE is not
defined, define it as 4.
1993-12-16 21:47:59 +00:00
Jeff Law
27405a282e * config/m68k/nm-hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
* config/m68k/tm-hp300bsd.h (REMOTE_BPT_VECTOR): Define.

        * config/m68k/tm-m68k.h (REMOTE_BPT_VECTOR): Allow targets to
        override.
        (REMOTE_BREAKPOINT): Likewise.
1993-12-16 21:10:24 +00:00
Per Bothner
e909f287a8 Implement support for Chill POWERSETs.
* ch-exp.y (operand_2):  Implement 'Element IN PowerSet'.
	* ch-typeprint.c (chill_type_print_base):  Handle POWERSETs.
	* ch-valprint.c (chill_val_print):  Handle TYPE_CODE_SET.
	* eval.c (evaluate_subexp):  Implement BINOP_IN.
	* expression.h (enum exp_opcode):  Added BINOP_IN.
	* gdbtypes.c (create_set_type), gdbtypes.h:  New function.
	* stabsread.c (read_type):  If 'S', create a set type.
	* valarith.c (value_bit_index, value_in), value.h:  New functions,
	for indexing in SETs.
1993-12-14 04:32:51 +00:00
Fred Fish
f3628b3985 * paread.c (pa_symfile_init): Check for the existance of stabs
after DBX_TEXT_SECT has been initialized.
1993-12-13 14:46:21 +00:00
Steve Chamberlain
23a0b2d019 * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
(DECP_PC_AFTER_BREAK): Now is 0.
	* config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
	REGISTER_NAMES): update to new view.  (INIT_EXTRA_FRAME_INFO): No
	extra frame info now.
	* config/sh/sh.h (NOP): Define NOP insn.
	* config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
	* config/z8k/z8ksim.mt (TDEPFILES): Add remote-sim.o to list.
1993-12-12 00:08:33 +00:00
Steve Chamberlain
e34f4a4305 * config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
* config/z8k/z8ksim.mt (TDEPFILES): Add remote-sim.o to list.
1993-12-12 00:07:12 +00:00
Steve Chamberlain
b4d3d0e5de * config/sh/sh.h (NOP): Define NOP insn. 1993-12-12 00:05:54 +00:00
Steve Chamberlain
3b5b507559 * config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
REGISTER_NAMES): update to new view.  (INIT_EXTRA_FRAME_INFO): No
	extra frame info now.
1993-12-12 00:05:25 +00:00
Steve Chamberlain
34f07efe01 * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
(DECP_PC_AFTER_BREAK): Now is 0.
1993-12-12 00:03:31 +00:00
Steve Chamberlain
08c0d7b84f * ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
(go32_readchar): Special handling for faster polling. (async
	structure): Volatile.
	* h8300-tdep.c (print_register_hook): Allocate and use the right
	number bytes for the raw register.
	* h8500-tdep.c (regoff, frame_find_saved_reg, examine_prologue):
	deleted. (h8500_register_size, h8500_register_virtual_type, ):
	Use new way of counting registers.
	* remote-e7000.c (echo_index): deleted. (expect): Better handling
	of user interrupts. (expect_prompt): Remove never used log file
	support. (want, want_nopc): Add support for H8/300H.
	(fetch_regs_from_dump): Treat \r and \n as whitespace.
	(e7000_drain): Send an "end" command before waiting for output to
	stop.  (e7000_wait): Cope with H8/300H, better handling of user
	interrupts.  (why_stop, expect_n, sub2_from_pc): New function.
	* remote-utils.c (gr_load_image): call fflush and QUIT more regularly.
	* utils.c (notice_quit): New function for polling for user interrupts.
1993-12-12 00:00:53 +00:00
Fred Fish
11b959da9c * stabsread.c (read_array_type): Allow negative array bounds,
without interpreting that to mean "adjustable."
	* ch-valprint.c (chill_val_print):  Handle RANGE types.
	* ch-typeprint.c (chill_type_print_base):  Handle BOOL.
	Handle variant records.  Handle RANGE types.
1993-12-11 01:27:23 +00:00
Ian Lance Taylor
a0b28275a1 Change remite-e7000.c to remote-e7000.c. 1993-12-08 05:53:58 +00:00
Ian Lance Taylor
9c5c676b0f Typo 1993-12-08 05:08:04 +00:00
Ian Lance Taylor
916b904d7e * config/mips/idt.mt: Use tm-idt.h instead of tm-bigmips.h.
* config/mips/idtl.mt: Use tm-idtl.h instead of tm-mips.h.
	* config/mipos/tm-idt.h, config/mips/tm-idtl.h: New files; use
	different BREAKPOINT value for IDT.
1993-12-08 05:06:48 +00:00
Ian Lance Taylor
0c7b877b38 * mipsread.c: Include bfd.h and coff/sym.h. 1993-12-07 23:42:56 +00:00
K. Richard Pixley
88cc9a424a set the other three terminal state pieces for systems that HAVE_SGTTY 1993-12-07 00:41:42 +00:00
Ian Lance Taylor
b60f658495 * configure.in: Recognize mips* for all mips targets.
(mips*el-*-elf*, mips*-*-elf*): New targets; use idt and idtl.
1993-12-06 18:34:07 +00:00
Ian Lance Taylor
e03c0cc670 Added Irix 5 support.
* configure.in (mips-sgi-irix5*): New host and target.  Use irix5
	for both.
	* config/mips/irix5.mh, config/mips/irix5.mt,
	config/mips/xm-irix5.h, config/mips/nm-irix5.h,
	config/mips/tm-irix5.h, irix5-nat.c: New files for Irix 5 support.
	* mdebugread.c: New file, split out of mipsread.c.  Added
	elfmdebug_build_psymtabs routine.  Added some checks on external
	symbols.  Changed code to keep ecoff_debug_info and
	ecoff_debug_swap structs in the psymtab and in global pointers
	rather than retrieving them from the bfd.  Also changed to keep
	the pending list with the psymtab rather than the objfile (each
	psymtab for a single objfile points to the same pending list).
	* mipsread.c: Bulk of file moved into mdebugread.c, leaving just
	the sym_fns.
	* Makefile.in (SFILES): Added mdebugread.c.
	(OBS): Added mdebugread.o.
	(mdebugread.o): New target.
	* symfile.h: Declare mdebug_build_psymtabs and
	elfmdebug_build_psymtabs.
	* elfread.c (struct elfinfo): Added mdebugsect field.
	(elf_locate_sections): Remember location of .mdebug section.
	(elf_symfile_read): Call elfmdebug_build_psymtabs on .mdebug
	section.
	* infrun.c (AT_FUNCTION_START): Set to 0 if not already defined.
	(wait_for_inferior): Use AT_FUNCTION_START if it is defined to see
	if PC is at the start of a function.
	* mips-tdep.c (read_next_frame_reg): Use SIGFRAME_REG_SIZE, and
	give it a default definition.
	(mips_skip_prologue): Skip instructions which initialize $gp
	register.
	(in_sigtramp): New procedure, moved in from mipsread.c.
	* config/mips/tm-mips.h: Declare in_sigtramp.
1993-12-06 17:31:05 +00:00
Ian Lance Taylor
a17535c780 * serial.h (serial_fdopen): Make parameter const to match
function definition.
1993-12-06 17:18:06 +00:00
Ian Lance Taylor
a2f1e2e5f8 New files for Irix 5 support. 1993-12-06 17:12:23 +00:00
Roland Pesch
9934dce825 Unsnarl xref for h8 config (while making sure it still works for "all" config) 1993-12-06 07:14:16 +00:00
John Gilmore
ba6c26e314 Fix a few typos. 1993-12-04 03:13:48 +00:00
Stu Grossman
47dddec52c * config/mips/irix4.mh: Enable ser-tcp.o. 1993-12-03 22:22:05 +00:00
Jeff Law
af5ede6e65 * gdb.disasm/hppa.exp (all_fpu_memory_tests): Test FP quadword
stores.
        * gdb.disasm/hppa.s (fpu_memory_indexing_tests): Add FP quadword
        stores.
        (fpu_short_memory_tests): Likewise.
1993-12-02 05:55:34 +00:00
Ian Lance Taylor
1f44fb57ca * Makefile.in (check): Do not use subdir_do, so that
TARGET_FLAGS_TO_PASS is used correctly.
1993-11-30 20:26:35 +00:00
Stu Grossman
0bbe764a71 * i386-nlmstub.c: Undo I/O redirection changes by Tom Lord.
These definitely won't work under Netware.
1993-11-30 00:14:37 +00:00
Kung Hsu
e9935d43b7 Modified Files:
ChangeLog stabsread.c

        * stabsread.c(read_struct_field): Fix the check when getting to
        member functions. (fix pr4000).
1993-11-29 23:40:31 +00:00
Ian Lance Taylor
1d208eb3aa gcc -Wall -O lint:
* mips-tdep.c (heuristic_proc_desc): Initialize reg30 to avoid
	warning.  Unnest comment.
	(init_extra_frame_info): Remove unused variable mask.
	(MASK): Fully parenthesize.
	(mips_push_dummy_frame): Remove unused variable val.
	(mips_skip_prologue): Remove unused variables f and b.
1993-11-29 21:52:21 +00:00
Peter Schauer
7aa77627b3 * mipsread.c (parse_symbol, parse_partial_symbols): Do not create
(partial) symbols for opaque struct definitions.
1993-11-29 20:24:49 +00:00
Stu Grossman
d954204659 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Change call_inst
to unsigned char to avoid domain warning for some values.
1993-11-29 19:40:08 +00:00
Roland Pesch
b1955f0b2a Formatting improvements from 93q4 release. 1993-11-29 05:58:11 +00:00
Roland Pesch
2ae6d007f2 Fix punctuation after corrected xref. 1993-11-29 02:45:53 +00:00
Roland Pesch
22b5dba55e * gdb.texinfo (New Features): mention threads.
(Summary, C): fix xrefs in newly contributed text.
	(Threads): index entries, clarifications, example
	(passim): minor typos fixed, phrasing improvements

	* remote.texi (Bootstrapping): rephrase text on ^C and add index
	entries; (Server): explain use of gdbserver w/real-time systems,
	add example of conflicting TCP port; (MIPS Remote) break up
	running text into table, highlighting commands, and add example.
1993-11-29 02:43:47 +00:00
Roland Pesch
274eb90a96 comment fix. 1993-11-24 22:23:23 +00:00
Roland Pesch
294b2b49d7 * refcard.tex: avoid bad linebreaks even when REFEDITS=psrc.sed
(these probably crept w/minor changes in spacing when A4 stuff
	       updated recently); update copyright date consistently
* cygref.tex: bring up to date with refcard.tex
1993-11-24 22:18:27 +00:00