Commit graph

3687 commits

Author SHA1 Message Date
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
Steve Chamberlain
e8437082be * remote-e7000.c (e7000_wait): Cope with H8/300 register dump.
* config/h8300/h8300hms.mt: Add remote-e7000.
1993-11-23 07:49:49 +00:00
Peter Schauer
09305cbdfc * gdb.stabs/ecoff.mt: Delete alpha specific if block, fix typo.
* gdb.stabs/ecoff.sed:  Escape inserted blanks with backslashes, embed
	.stabs directives in comments.
1993-11-22 21:26:36 +00:00
Fred Fish
abab73c4dd * gdb/config/m88k/delta88.mh (NATDEPFILES): Added corelow.o and
coredep.o to this list.
	* gdb/m88k-nat.c (m88k_register_u_addr):  Avoid error when passed
	the number for an M88110 extended register by just returning the
	address of r0.
1993-11-22 19:08:33 +00:00
Fred Fish
d8b8343dc7 * go32-xdep.c (re_comp, re_exec): Remove stubs now that gdb
always uses it's own version of regex.
1993-11-20 17:22:28 +00:00
Kung Hsu
f68fd5c0b0 Modified Files:
ChangeLog valops.c symtab.c

        * valops.c(value_struct_elt_for_reference): enhance  search operator in
        c++.
        * symtab.c(decode_line_1): same as above.
1993-11-20 02:28:03 +00:00
Jim Kingdon
dbdf5a2a04 * symtab.c (decode_line_1): Add comment about use of
return_to_top_level directly instead of error.  Add comment saying
	that the '' should not be needed--that the completer should be fixed.
1993-11-19 21:16:16 +00:00
Jim Kingdon
d910c7e938 * TODO: New file, describing tests we could write.
* gdb.t09/corefile.exp: Move description of tests to write to TODO.
1993-11-19 20:24:02 +00:00
Jim Kingdon
b0f4ec40fc * TODO: New file, describing tests we could write.
* gdb.t06/corefile.exp: Move description of tests to write to TODO.
1993-11-19 20:22:34 +00:00
Kung Hsu
7e6deb7a27 Modified Files:
ChangeLog symtab.c

        * symtab.c(decode_line_1): fix the inconsistency of setting
        breakpoint with '' or without them. The '' is needed when you
        want name completion.
1993-11-19 19:13:41 +00:00
Jim Kingdon
1562fc8325 New file, for known lacks in testsuite 1993-11-19 17:20:18 +00:00
Kung Hsu
6ebc9cddfc Modified Files:
ChangeLog valops.c

        * valops.c(search_struct_method): to use unified search so type
	conversion operator works in calling method. (this file should be
	checked in with last commit, I missed it).
1993-11-18 18:54:11 +00:00
Fred Fish
7855533586 Fix for PR 3978:
* valprint.c (val_print_string):  When looking for a null
	terminator compare current bufsize to fetchlimit to determine
	when to stop, instead of computing buffer+fetchlimit which
	may overflow for very large limits (like "unlimited").
1993-11-18 16:34:43 +00:00
Kung Hsu
4f65eece26 Modified Files:
ChangeLog eval.c valarith.c

        * eval.c(evaluate_subexp): to use unified search so type conversion
        operator works in calling method.
        * valarith.c(value_x_binop, value_x_unop): same as above.
1993-11-18 02:30:33 +00:00
Ian Lance Taylor
4f09de58cd * mipsread.c: Change use of ECOFF information to correspond to
changes in bfd/libecoff.h.
	(mipscoff_symfile_offsets): Made static.
1993-11-17 23:58:46 +00:00
Kung Hsu
4062025808 Modified Files:
ChangeLog eval.c valops.c

        * valops.c (typecmp): improve prototype matching when calling
        a method. Make 'p (*(ostream *) &cout) << "lll" ' to work.
        * eval.c(evalute_subexp): fix operator search problem when call
        like  p x.'operator+'(i).
1993-11-17 18:07:58 +00:00
Stu Grossman
38ee1de094 Please CVS, let me kill this file! 1993-11-17 17:40:24 +00:00
Stu Grossman
4451055367 Please CVS, let me kill these files... 1993-11-17 17:39:00 +00:00
Stu Grossman
92d47a66ec * i386ly-nat.c, i386lynx-nat.c, m68kly-nat.c: Remove. Move
common code into lynx-nat.c.
	* lynx-nat.c:  New module.  Contains portable code for Lynx native
	stuff (mostly ptrace related).
	* config/i386/i386lynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o
	* config/m68k/m68klynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o

	* config/nm-lynx.h, config/tm-lynx.h:  New files to contain
	non-architecture specific native and target defs.
	* config/i386/nm-i386lynx.h, config/i386/tm-i386lynx.h,
	config/m68k/nm-m68klynx.h, config/m68k/tm-m68klynx.h:  Move all
	(arch) portable stuff into ../{tm nm}-lynx.h.
1993-11-17 07:56:28 +00:00
Stu Grossman
d3225ea0ac * i386ly-nat.c, i386lynx-nat.c, m68kly-nat.c: Remove. Move
common code into lynx-nat.c.
	* lynx-nat.c:  New module.  Contains portable code for Lynx native
	stuff (mostly ptrace related).
	* config/i386/i386lynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o
	* config/m68k/m68klynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o

	* config/nm-lynx.h, config/tm-lynx.h:  New files to contain
	non-architecture specific native and target defs.
	* config/i386/nm-i386lynx.h, config/i386/tm-i386lynx.h,
	config/m68k/nm-m68klynx.h, config/m68k/tm-m68klynx.h:  Move all
	(arch) portable stuff into ../{tm nm}-lynx.h.
1993-11-17 07:17:45 +00:00
Jim Kingdon
d47a7f52cf * symtab.c (gdb_mangle_name): Only assume that the physname is
the entire mangled name if it looks like the mangled name of a
	constructor.  Needed for testsuite to work with GCC 2.4.5.
1993-11-17 04:24:34 +00:00
Jim Kingdon
dfbaacfa1f * gdb.t06/signals.exp: Add kludge to force re-sync. 1993-11-17 03:59:25 +00:00
Jim Kingdon
641436212f * gdb.t00/teststrategy.exp: If we accidently send the "maint dump-me"
to xgdb instead of gdb, get out of gdb.
1993-11-17 03:11:30 +00:00
Stu Grossman
069e056621 * i386ly-nat.c, i386lynx-nat.c, m68kly-nat.c: Remove. Move
common code into lynx-nat.c.
	* lynx-nat.c:  New module.  Contains portable code for Lynx native
	stuff (mostly ptrace related).
	* config/i386/i386lynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o
	* config/m68k/m68klynx.mh (NATDEPFILES):  i386ly-nat.o -> lynx-nat.o

	* config/nm-lynx.h, config/tm-lynx.h:  New files to contain
	non-architecture specific native and target defs.
	* config/i386/nm-i386lynx.h, config/i386/tm-i386lynx.h,
	config/m68k/nm-m68klynx.h, config/m68k/tm-m68klynx.h:  Move all
	(arch) portable stuff into ../{tm nm}-lynx.h.
1993-11-17 01:38:11 +00:00
Jim Kingdon
6e03b2b87e * a68v-nat.c: Replace with new version from Troy Rollo. The
version	I am replacing appears to be an old copy of sun3-nat.c.
	* dstread.c (dst_symfile_read): Replace sort_all_symtab_syms call
	with loop.
1993-11-16 20:29:03 +00:00
Jim Kingdon
f0c8468387 * Makefile.in (TAGS): Depend on TAGFILES_{NO,WITH}_SRCDIR.
* Makefile.in: (HFILES,TAGFILES): Split into _WITH_SRCDIR and
	_NO_SRCDIR versions.
	(TAGS): Only add srcdir to TAGFILES_NO_SRCDIR.
	(This is part of a long saga involving me putting srcdir on
	everything (perhaps for now-obsolete reasons, I forget), Rich
	removing the srcdir from everything, Stu putting it back some
	places for Sun make, and me just now getting around to fixing
	`make TAGS' again).
1993-11-16 19:51:59 +00:00
Jim Kingdon
92a6c3cc31 Add ChangeLog entry for change by Rob 1993-11-16 16:27:54 +00:00
Jim Kingdon
2ede707a97 Correct typos in sac ChangeLog entry 1993-11-16 16:25:21 +00:00
Kung Hsu
9ed1a1d9ca Modified Files:
ChangeLog stack.c

        * stack.c(print_frame_info): print demangled function name
        ansi style.
1993-11-16 02:58:42 +00:00
Steve Chamberlain
1b68cb4fb3 How many times do I have to do this... 1993-11-15 23:49:21 +00:00
Steve Chamberlain
2f5e17369c Use remote-e7000.c 1993-11-15 23:29:56 +00:00
Jim Kingdon
5a356fb84f * config/i386/linux.mh: Remove XM_CLIBS, TERMLIB, SYSV_DEFINE, and
REGEX.
	* config/i386/xm-linux.h: Don't include xm-i386v.h.  Define
	HOST_BYTE_ORDER ourselves.  Define HAVE_TERMIOS not HAVE_TERMIO.
	Define NEED_POSIX_SETPGID.  Include unistd.h.
1993-11-15 23:29:10 +00:00
Steve Chamberlain
863099f41e * remote-e7000.c: New file to cope with the Hitachi E7000 ICE.
* remote-utils.c, remote-utils.h (gr_load_image): New function to
	download to target.
	* h8300-tdep.c, h8500-tdep.c, remote-z8k.c, sh-tdep.c z8k-tdep.c
	(sim_load): delete.
	* remote-sim.c (sim_load): Use gr_load_image.
	* config/sh/sh.mt: Add remote-e7000
1993-11-15 23:26:56 +00:00
Steve Chamberlain
cdf73c5c3b Initial revision 1993-11-15 23:25:03 +00:00
Steve Chamberlain
ef419d261c Why does cvs keep core dumping? 1993-11-15 23:22:31 +00:00
Steve Chamberlain
bf2429ab86 * remote-utils.c, remote-utils.h (gr_load_image): New function to
download to target.
1993-11-15 23:21:29 +00:00
Kung Hsu
adbdb5276a Modified Files:
ChangeLog symtab.c

        * symtab.c(gdb_mangle_name): fix the problem with constructor
        name mangling.
1993-11-15 20:40:03 +00:00
Jim Kingdon
dda398c369 * gdbtypes.h: Add TYPE_FLAG_TARGET_STUB.
* gdbtypes.c (check_stub_type): On TYPE_FLAG_TARGET_STUB, do
	what cleanup_undefined_types does for arrays, except we clear
	TYPE_FLAG_TARGET_STUB if we fix up the type.
	* stabsread.c (cleanup_undefined_types): Add comments about how
	doing arrays here is no longer the clean way to do it.
	(read_array_type): Set TYPE_FLAG_TARGET_STUB as well as calling
	add_undefined_type.
	* c-typeprint.c, ch-typeprint.c: Move call to check_stub_type
	outside switch so it happens for all type codes.
	* cp-valprint.c (cp_print_value_fields): Recurse to val_print,
	instead of c_val_print, so that check_stub_type gets called.

	* gdbtypes.h, gdbtypes.c, m2-lang.c, ch-lang.c, c-lang.c: Remove
	TYPE_FLAG_SIGNED.  It was inconsistently set, never checked
	(except in recursive_dump_type), and is pointless.
1993-11-15 20:13:30 +00:00
Jeff Law
db98e4d85e * paread.c (pa_symfile_init): Look for the $TEXT$ section rather
than the .text section.
1993-11-15 08:42:01 +00:00
Jim Kingdon
f6d7df5638 * stabsread.c: Remove #if 0'd dbx_class_complaint. We now handle
this (more or less) gracefully, and complain() was never a good
	way of dealing with this.
1993-11-15 05:36:36 +00:00
Jeff Law
20fde16acc * gdb.stabs/hppa.mt: A makefile fragment for the PA.
* gdb.stabs/configure.in (hppa*-*-*): Use it.
	* gdb.stabs/hppa.sed: New sed script for the PA.
1993-11-14 07:20:53 +00:00
Jim Kingdon
dd06d920c8 * gdb.stabs: Re-write weird.def and configuration to use sed
instead of cpp.  sed is portable and POSIX; cpp is neither.
1993-11-14 06:50:42 +00:00
Jim Kingdon
79cf7e1f33 * stabsread.c (read_type): Skip the colon when reading a
cross-reference.  Only complain, not error_type, on unrecognized
	cross-reference types.  error_type, not dump core, if the colon is
	missing.
1993-11-14 06:40:47 +00:00
Jim Kingdon
f50cb1a34d * stabs.texinfo (Nested Symbols): New node.
(String Field, Symbol Descriptors, Cross-References): Refer to it.
1993-11-14 06:33:55 +00:00
Jim Kingdon
68702ea3dd * gdb.stabs: Re-write weird.def and configuration to use sed
instead of cpp.  sed is portable and POSIX; cpp is neither.
1993-11-14 05:57:47 +00:00
Jim Kingdon
aad143dc5d * gdb.stabs: Re-write weird.def and configuration to use sed
instead of cpp.  sed is portable and POSIX; cpp is neither.
1993-11-14 05:35:22 +00:00
Stu Grossman
537eba71b1 * config/m68k/tm-sun3.h: Disable use of alternate breakpoint insn
when doing remote stuff.
1993-11-13 00:26:06 +00:00
Jim Kingdon
963ee102f2 * c-exp.y (yylex): Call lookup_symtab not lookup_partial_symtab. 1993-11-13 00:06:49 +00:00
Jim Kingdon
9d271503e8 * partial-stab.h: Ignore ':' symbol descriptors. Same case as
Kung's stabsread.c change.
1993-11-12 22:30:05 +00:00
Jim Kingdon
397f9dcdb9 * stabs.texinfo (Nested Symbols): New node.
(String Field, Symbol Descriptors): Refer to it.
1993-11-12 22:18:29 +00:00
Jim Kingdon
b219511b11 * gdb.t06/signals.exp: Remove one sun3 XFAIL which has been fixed. 1993-11-12 21:32:42 +00:00
Kung Hsu
2fb58b984c Modified Files:
ChangeLog stabsread.c

        * stabsread.c (patch_block_stabs, define_symbol, read_type): in
        g++ template instantiation, nested class can be part of the
        params, and '::' can gets into symbol or type names. This is
        to fix the problem. (fix pr3837)
1993-11-12 19:34:24 +00:00
Kung Hsu
624456be75 Modified Files:
gdbtypes.c ChangeLog

        * gdbtypes.c (lookup_struct_elt_type): Handle type ref or pointer
        to struct/union case. (fix pr3857)
1993-11-12 19:21:13 +00:00
Stu Grossman
9a13e99e20 * coff-solib.c (coff_solib_add): Cast result of alloca().
* m68k-tdep.c (m68k_saved_pc_after_call):  Get rid of
	GDB_TARGET_IS_SUN3.  Use more general SYSCALL_TRAP macro.
	* config/m68k/m68klynx.mh (NATDEPFILES):  Remove exec.o (it's
	already in TDEPFILES).
	* config/m68k/tm-m68k.h (SAVED_PC_AFTER_CALL):  Use
	m68k_saved_pc_after_call.
	* Remove all Sun3 specific stuff.
	* (FIX_CALL_DUMMY):  Cast arg to bfd_putb32 to unsigned char *.
	* config/m68k/tm-m68klynx.h:  Define SYSCALL_TRAP as trap #10.
	Disable REMOTE_BREAKPOINT mechanism.
	* config/m68k/tm-sun3.h:  Get rid of GDB_TARGET_IS_SUN3.
	* Protect from multiple includion.
	* Move Sun3 specific stuff from tm-m68k.h to here.
	* Define SYSCALL_TRAP as trap #0.
	* Remove def of SAVED_PC_AFTER_CALL (now in tm-m68k.h).
	* gdbserver/low-lynx.c:  Redo all register store/fetch stuff to
	make it portable for 386 and 68k.
1993-11-12 18:59:43 +00:00
Jim Kingdon
002a422b22 * mips-tdep.c (init_extra_frame_info): Check to see whether the
registers mentioned in the proc_desc have been saved.  This
	generalizes mips_in_lenient_prologue in the sense that we keep
	searching until we've found saves for all the registers, not just
	look for a "lenient prologue" pattern.
	* mips-tdep.c: #if 0 lenient prologue code.

	* mips-tdep.c (heuristic_proc_desc): Don't assume a host short
	is 16 bits.
1993-11-12 16:35:59 +00:00
Jim Kingdon
6fd1e9eeb1 * config/i386/i386sol2.mh: Comment out corelow.o. 1993-11-12 05:33:56 +00:00
Jim Kingdon
4c7db70b42 * printcmd.c (address_info): Use filtered, not unfiltered functions.
We should be able to deal with a QUIT here.
1993-11-12 02:06:50 +00:00
Jeff Law
91f8701603 * printcmd.c (address_info): Use fprintf_symbol_filtered
to print the symbol name.

	* stabsread.c (define_symbol): Handle cfront lossage for
	struct/union/enums and typedefs.

	* partial-stab.h (case N_BINCL): Update psymtab_language
	as appropriate when changing subfiles.
	(case N_SOL): Update psymtab_language as appropriate when
	changing subfiles.  Add typedef for structs, unions, and enums
	when processing C++ files.
1993-11-11 23:27:21 +00:00
Jim Kingdon
577379ab60 * stabs.texinfo (Stabs in ELF): Clarify how Bbss.bss work with respect
to picking which Bbss.bss symbol to use, and (because there seems to
	be no good way of doing it) re-write some of the text to make it
	sound like Bbss.bss isn't such a great idea after all (as currently
	designed).
1993-11-11 21:35:07 +00:00
Jim Kingdon
3f73b7c868 * gdb.texinfo (C): In addition to saying people have to use g++ for
good results, say they have to use stabs.  Specifically say cfront
	doesn't work well.
	(Summary): Merge in information on Modula-2, Pascal, and Chill from
	the gdb README.  Add xrefs to places where the support for the various
	languages is described in detail.
1993-11-11 19:58:00 +00:00
Jim Kingdon
017dff7034 * README: Remove information on languages and just cite the (newly
updated) information in doc/gdb.texinfo instead.
1993-11-11 19:52:49 +00:00
Jim Kingdon
66e8e483de * delta68-nat.c: Fix typos (add missing ");" and stuct -> struct). 1993-11-11 19:24:46 +00:00
Jim Kingdon
71256429ca * dbxread.c (process_one_symbol, N_RBRAC): Don't clear
within_function just because local_symbols is NULL.  It appears
	that this bug has existed since the 10 Apr 89 change which started
	clearing within_function here.
1993-11-10 21:05:38 +00:00
Jim Kingdon
4023311b08 * dbxread.c: Remove BELIEVE_PCC_PROMOTION define. The code which
used this was moved to stabsread.c a long time ago.
1993-11-10 19:42:31 +00:00
Jim Kingdon
56756a5a28 * config/m68k/tm-m68k.h: Clean up CALL_DUMMY comment.
* config/m68k/{tm-hp300bsd.h,tm-hp300hpux.h,tm-m68k-em.h,
	tm-monitor.h,tm-sun3.h,tm-vx68.h}, config/sparc/tm-sparc.h:
	Define BELIEVE_PCC_PROMOTION.
1993-11-10 19:32:22 +00:00
Jim Kingdon
447bc3edeb * dstread.c (dst_sym_fns): Update for flavours.
* symfile.c (find_sym_fns): Add kludge for apollo like for rs/6000.
	* dstread.c (dst_symfile_offsets): Set objfile->num_sections.
1993-11-10 16:31:17 +00:00
Jim Kingdon
89ce0c8f50 gcc -Wall lint:
* thread.c: Include "gdbcmd.h" and <ctype.h>.
	* Makefile.in: Update dependency.
	* thread.c (thread_command): Remove unused variable p.
	* values.c (unpack_double): Use len instead of TYPE_LENGTH (type).
	* valprint.c (print_floating): Correctly check sign bit now that
	we are using unsigned arithmetic.
	* symtab.c (find_pc_line_range): Remove unused variables exact_match,
	ind, and l.
1993-11-10 15:58:48 +00:00
Kung Hsu
27ed24c364 Modified Files:
valarith.c ChangeLog

        * valarith.c (value_x_binop): fix search operator in class bug
        * valarith.c (value_x_unop): fix search operator in class bug
1993-11-10 01:47:09 +00:00
Jim Kingdon
7fb951392a * Makefile.in (init.c): Add udi2go32.o to list of files that we
should not try to search for _initialize_* functions.

	* remote-udi.c (udi_wait): Change UDIGdb_StdoutReady back to
	UDIStdoutReady.  It accidentally got changed on 24 Oct 93 when
	stdout was changed to gdb_stdout.  Likewise for UDIGetStdout,
	UDIStderrReady, and UDIGetStderr.
1993-11-10 01:34:39 +00:00
Thomas Lord
753a74d977 Same as last time (putc_unfiltered) only this time having saved the
modified source before checking it in.
1993-11-09 21:29:50 +00:00
Thomas Lord
eb279da1db Fixed too many args to putc_unfiltered. 1993-11-09 21:15:55 +00:00
Roland Pesch
c79890ee1a Fixed a few regular typos (@var for @value). 1993-11-09 19:07:05 +00:00
Jim Kingdon
7714a8b593 * utils.c (quit): Also call gdb_flush on standard output and error. 1993-11-09 18:50:22 +00:00
Jim Kingdon
36c848dbaf * .gdbinit: Remove "source /.gdbinit". It causes a spurious error
if /.gdbinit doesn't exist (and I know of no convention of putting
	something in /.gdbinit).
1993-11-09 18:28:04 +00:00
Kung Hsu
aa074e84be Modified Files:
cp-valprint.c ChangeLog

        * cp-valprint.c (cp_print_value_fields): change output from <no
        value> to <optimized out or zero length>
1993-11-09 02:22:12 +00:00
Jeffrey Wheat
99c411063e RUNTEST = test for existance of a runtest in the source tree first. 1993-11-09 01:42:17 +00:00
Jim Kingdon
de759c833b * Makefile.in: Remove unused variable GCC. Remove "#CC=cc" line
which doesn't really relate to anything.
1993-11-08 23:18:46 +00:00
Jim Kingdon
058470e1dc * Makefile.in (CC_FOR_TARGET): Test for existence of gcc/xgcc, not
for existence of gcc/Makefile.
1993-11-08 23:12:38 +00:00
Jim Kingdon
3971f61b9c * gdb.t20/gdbme.cc: Add comment about pmi being optimized out. 1993-11-08 22:58:34 +00:00
Jim Kingdon
97f298e851 * inflow.c (terminal_init_inferior), infptrace.c (child_resume):
Add comments about use of Lynx PIDGET and how we will want to
	clean it up.
1993-11-08 18:16:06 +00:00
Jim Kingdon
b857d95635 * stabs.texinfo: Clean up stuff about visibility and virtual
characters.

	* stabs.texinfo (N_M2C): Cite Sun doc.
1993-11-08 17:54:29 +00:00
Jim Kingdon
1dfaef6225 * stabsread.c (read_one_struct_field): Don't give up on unknown
visibility character, just shove it in fip->list->visibility.
	(read_baseclasses): Don't give up on unknown virtual or visibility
	characters, just assume a reasonable default, complain, and keep
	going.
	(attach_fields_to_type): Complain on unrecognized visibility.
	One result of all this is that '9' (VISIBILITY_IGNORE) can be used
	in a stab as well as being something which GDB uses internally.
1993-11-08 17:27:48 +00:00
Jim Kingdon
d4e68deccb * stabsread.c: Remove long_kludge_name code (it was already #if 0).
* stabsread.c (read_one_struct_field): Clean up comments to reflect
	Kung's change of 5 Nov 93.
1993-11-08 17:02:08 +00:00
David Edelsohn
71896de836 * configure.in: Remove h8300h, we have multilib now. 1993-11-08 16:00:17 +00:00
David Henkel-Wallace
b11b3aceb2 netware target support. 1993-11-08 14:28:46 +00:00
David Henkel-Wallace
2fa6925b12 assert netware, etc 1993-11-08 14:27:46 +00:00
Peter Schauer
2cacd1e3f6 * symtab.c (decode_line_1, decode_line_2): Do not adjust pc by
FUNCTION_START_OFFSET if funfirstline is not set.
1993-11-08 07:51:23 +00:00
Kung Hsu
024f65b180 Modified Files:
gdbtypes.h stabsread.c cp-valprint.c ChangeLog

        * gdbtypes.h : add a field 'ignore_field_bits in cplus_specific,
        and macros to handle the bits.
        * stabsread.c (read_one_struct_field): add VISIBILITY_IGNORE, and
        for field of length 0, set this bit on.
        * cp-valprint.c (cp_print_value_fields): for VISIBILITY_IGNORE
        field, print <no value>.
1993-11-06 01:32:11 +00:00
Roland Pesch
0cb95a9c27 * gdb.texinfo: updates re threads. 1993-11-06 01:29:12 +00:00
Roland Pesch
02f868b192 * gdb.texinfo: updates re threads.
* remote.texinfo: avoid index entries starting with digits.
1993-11-06 00:58:33 +00:00
Roland Pesch
54616a9999 * gdb.texinfo: updates re threads.
* remote.texinfo: avoid index entries starting with digits.
1993-11-06 00:33:29 +00:00
Jim Kingdon
f7ae8a41b7 * Version 4.11.2. 1993-11-05 20:54:42 +00:00
Stu Grossman
5090e82cca * inflow.c (terminal_init_inferior): Temporarily use Lynx PIDGET
macro to set process groups.
	* infptrace.c (child_resume): Temporarily use Lynx PIDGET to
	specify resumption of all threads.
	* infrun.c (wait_for_inferior):  Fix handling of thread-specific
	breakpoints for systems where DECR_PC_AFTER_BREAK > 0 (ie: backup
	PC by the right amount when continuing the thread).
	* thread.c (thread_apply_command):  Add the  `thread apply'
	command to apply a given GDB command to a list of threads.
1993-11-05 19:27:49 +00:00
Jim Kingdon
e2507f812e * Makefile.in (init.c): Don't call sed if filename is empty. 1993-11-05 13:59:31 +00:00
Jim Kingdon
073cca33d1 * gdb.stabs/weird.exp, gdb.t22/virtfunc.exp: Accept "_vb." as well as
"_vb$".
1993-11-05 06:12:59 +00:00
Jim Kingdon
4a8f7bf11d * gdb.t00/teststrategy.exp: Add xfail for RS/6000.
* gdb.t03/ptype.exp: Add comments and messages about FAILs with xlc.
1993-11-05 05:36:03 +00:00
Jim Kingdon
b30c81b649 * dbxread.c (unknown_symchar_complaint): Make message refer to
"symbol descriptor" not "symbol type character" for consistency
	with stabs.texinfo terminology.
1993-11-05 04:57:29 +00:00
Jim Kingdon
f73fb0ce03 * stabsread.c (read_struct_fields): Accept either '$' or '.' as
the character which introduces a cpp_abbrev or anonymous type.
1993-11-05 04:49:06 +00:00
Jim Kingdon
5576858065 * c-lang.c (c_printstr): Print "" to stream (like all the other
output from this function), not gdb_stdout.
1993-11-05 03:01:47 +00:00
Jim Kingdon
c7d4c4c8ce * dbxread.c (process_one_symbol): Do relocate 'S' symbols by
the text offset (revert 12 Oct 93 change).
1993-11-04 23:03:03 +00:00
Jim Kingdon
eba272f39e * lib/gdb.exp (default_gdb_exit): Remove `catch "close"'. 1993-11-04 16:59:00 +00:00
Jim Kingdon
7079e7665d * configure.in: Make hppa*-*-hiux* use hppahpux,
not non-existent hppahiux.
1993-11-04 14:52:53 +00:00
Kung Hsu
f1c6dbf683 Modified Files:
values.c valops.c ChangeLog

        * values.c (value_fn_field): when physical name not found, do not
        error, but return null.
        * valops.c (value_struct_elt): when name and args match does not
        mean it is the one, some times a typedef class can have the same
        memeber method and args. This probably will not happen with new
        version of g++, but it does happen in old g++ and cause gdb error.
1993-11-04 00:49:24 +00:00
Jim Kingdon
021a5c6b01 Merge changes for dos x udi:
* Makefile.in (udi2go32.o): add rule to build this file
	* 29k-share/udi/udi2go32.c: new file
	* config/a29k/a29k-udi.mt: add udi2go32.o
	* 29k-share/udi/{udr.c, udip2soc.c}: #ifdef out the entire file
	  if __GO32__ is defined.  What a hack.
1993-11-03 21:33:13 +00:00
Jim Kingdon
d1b785153e Merge changes from progressive for dos x udi:
* Makefile.in (udi2go32.o): add rule to build this file
	* 29k-share/udi/udi2go32.c: new file
	* config/a29k/a29k-udi.mt: add udi2go32.o
	* 29k-share/udi/{udr.c, udip2soc.c}: #ifdef out the entire file
	  if __GO32__ is defined.  What a hack.
1993-11-03 21:04:56 +00:00
Jim Kingdon
51763ee245 * lib/gdb.exp: Comment out code which depends on non-existent
`transform' procedure.
1993-11-03 19:57:50 +00:00
Stan Shebs
912be1146f Add my ChangeLog entry for gdbserver back in again 1993-11-03 19:47:52 +00:00
Jim Kingdon
cba398379d * remote.c (putpkt, getpkt): Don't call interrupt_query. 1993-11-03 18:59:04 +00:00
Jim Kingdon
0ed85708d6 * findvar.c (value_of_register): Rename val to reg_val to avoid
name conflict with some (e.g. tm-m68k.h) REGISTER_CONVERT_TO_VIRTUAL.
1993-11-03 18:33:10 +00:00
Rob Savoye
85174909de * lib/gdb.exp: Transform tool name.
* gdb.t*/*.exp: Change error to perror so it works with DejaGnu
	1.1's new error handling system.
1993-11-03 18:28:22 +00:00
Jim Kingdon
87cd094b7c * main.c: Add variables source_line_number, source_file_name,
source_error, source_error_allocated, and source_pre_error.
	(command_line_input): If source_file_name set, increment
	source_line_number and set error_pre_print with them.
	(source_command): Set source_* and make a cleanup so they get
	set back.
1993-11-03 16:20:02 +00:00
Jim Kingdon
4f9834005e * stack.c (down_silently_command): Add comment about PR 1913. 1993-11-03 02:23:10 +00:00
Jim Kingdon
4142aab89d * breakpoint.c (insert_breakpoints, delete_breakpoint): Call
target_terminal_ours_for_output before attempting output.

	* fork-child.c (fork_inferior): Fix comment so that it suggests
	"set shell" rather than having "set env SHELL" affect GDB's
	operation.
1993-11-02 23:55:19 +00:00
Thomas Lord
69fb299ec3 Don't let printf_unfiltered functions inherit a fixed-size buffer
from their _filtered counterparts.
1993-11-02 23:03:41 +00:00
Peter Schauer
ad09cb2bd3 * findvar.c (value_of_register, value_from_register),
hppa-tdep.c (pa_print_fp_reg), infcmd.c (do_registers_info),
	valops.c (value_assign):   Use REGISTER_CONVERT_TO_* only if
	REGISTER_CONVERTIBLE is defined, otherwise just copy the content.
	Pass desired type to REGISTER_CONVERT_TO_*.

	* config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*):
	Pass length of desired type to store/extract_floating.
	* config/i386/tm-arm.h, config/i386/tm-i386aix.h,
	config/i386/tm-sun386.h, config/i386/tm-symmetry.h,
	config/m88k/tm-m88k.h config/rs6000/tm-rs6000.h (REGISTER_CONVERT_*):
	Use extract_floating and store_floating with length of desired type.
	* config/m68k/tm-news.h (STORE,EXTRACT_RETURN_VALUE):  Add type
	parameter to REGISTER_CONVERT_*.

	* config/a29k/tm-a29k.h, config/convex/tm-convex.h,
	config/gould/tm-np1.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h,
	config/h8500/tm-h8500.h, config/i386/tm-i386v.h,
	config/mips/tm-mips.h, config/ns32k/tm-merlin.h,
	config/ns32k/tm-umax.h, config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
	config/sh/tm-sh.h, config/sparc/tm-sparc.h, config/tahoe/tm-tahoe.h,
	config/vax/tm-vax.h, config/z8k/tm-z8k.h (REGISTER_CONVERTIBLE,
	REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL):  Remove
	versions for which REGISTER_CONVERTIBLE is always false.
	* z8k-tdep.c (register_convert_to_virtual, register_convert_to_raw):
	Remove, no longer used.

	* alpha-tdep.c (alpha_register_convert_to_raw,
	alpha_register_convert_to_virtual):  New routines to handle
	the different raw formats in alpha floating point registers.
	* config/alpha/tm-alpha.h (REGISTER_CONVERTIBLE,
	REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW):  Use them.
1993-11-02 21:51:10 +00:00
Stan Shebs
1cecf3b26a * gdbserver/configure.in: Recognize *-*-lynxos* instead of
*-*-lynx*, recognize sparc-*-lynxos*.
	* gdbserver/Makefile.in (install, install_only): Add.
	* gdbserver/gdbserver.1: New file, man page for gdbserver.
1993-11-02 20:50:35 +00:00
Jim Kingdon
e1164c83ae * paread.c (pa_symtab_read): Change comments to say ignoring
labels really should be handled by the assembler/compiler.
1993-11-02 16:47:14 +00:00
Jim Kingdon
ae7016045f * stabs.texinfo (Enumerations): Talk about large, negative and
octal values.  Clean up cross reference to type attributes.
	(String Field): Say that GDB 4.11 supports size attribute.
1993-11-02 15:16:31 +00:00
Jim Kingdon
d136b7637d Remove infrun.hacked.c. I just looked at the diff, and don't see any
interesting ideas there.  It is over two years old....
1993-11-02 05:52:14 +00:00
Stan Shebs
ee9feb6550 Fix a couple typos introduced by recent checkins 1993-11-02 02:07:03 +00:00
Jim Kingdon
b86a1b3baa * symtab.c, symtab.h, source.c: Change find_line_pc_range to take
a struct symtab_and_line argument, rather than a symtab and a line.
	Re-write it to be based on the address rather than bogusly adding
	one to the line number and hoping that has something to do with the
	end of the line.
1993-11-02 00:05:34 +00:00
Thomas Lord
199b2450f6 Change the stream argument to _filtered to GDB_FILE *.
Change all references to stdout/stderr to gdb_stdout/gdb_stderr.

Replace all calls to stdio output functions with calls to
corresponding _unfiltered functions (`fprintf_unfiltered')

Replaced calls to fopen for output to gdb_fopen.

Added sufficient goo to utils.c and defs.h to make the above work.

The net effect is that stdio output functions are only directly used
in utils.c.  Elsewhere, the _unfiltered and _filtered functions and
GDB_FILE type are used.

In the near future, GDB_FILE will stop being equivalant to FILE.

The semantics of some commands has changed in a very subtle way:
called in the right context, they may cause new occurences of
prompt_for_continue() behavior.  The testsuite doesn't notice anything
like this, though.

Please respect this change by not reintroducing stdio output
dependencies in the main body of gdb code.  All output from commands
should go to a GDB_FILE.

Target-specific code can still use stdio directly to communicate with
targets.
1993-11-01 22:25:23 +00:00
Jim Kingdon
d566fd91cf * config/m88k/m88k.mh (NATDEPFILES): Remove exec.o. 1993-11-01 21:11:12 +00:00
Jim Kingdon
95bfaf1c01 * Makefile.in, gdb.t2*/Makefile.in: Add -O to CXXFLAGS. 1993-11-01 20:49:03 +00:00
Jim Kingdon
3fd4045fdb * paread.c (pa_symtab_read): Change comments to say ignoring
labels really should be handled by the assembler/compiler.

	* Makefile.in: Add -O to CXXFLAGS.

	* TODO: Expand comments on fast watchpoints.
1993-11-01 20:41:35 +00:00
Jeff Law
55449edd2d Fix typo in recent hange from using bfd target name to using the flavour. 1993-11-01 07:51:03 +00:00