Commit Graph

3705 Commits

Author SHA1 Message Date
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
Jeff Law
5c08b47f03 * paread.c (pa_symtab_read): Also filter out local symbols starting
with "L$".
1993-11-01 03:46:30 +00:00
Jeff Law
ffb4ea6ab0 * paread.c (pa_symtab_read): Also filter out local symbols starting
with "L$".
1993-11-01 03:44:53 +00:00
Jim Kingdon
73edb321e3 * values.c (unpack_long, unpack_double, value_from_double),
valarith.c (value_binop), stabsread.c (define_symbol):
	Use extract_floating and store_floating instead of
	SWAP_TARGET_AND_HOST.
1993-10-31 20:45:41 +00:00
Jim Kingdon
52912aac0d * symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,
coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c:
	Change from using bfd target name to using the flavour.
1993-10-31 20:34:35 +00:00
Jim Kingdon
ffbfe25026 * remote.texi (VxWorks Remote): Clarify that rebuilding VxWorks kernel
is a mandatory step.  Make the stuff about that more concise.
1993-10-31 19:36:41 +00:00
Stan Shebs
30fb2a6495 Keep Lynx files 1993-10-31 19:35:44 +00:00
Stan Shebs
00bac33447 Keep Lynx files 1993-10-31 19:28:03 +00:00
Jim Kingdon
0eed42deee * symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,
coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c:
	Change from using bfd target name to using the flavour.
1993-10-31 18:54:28 +00:00
Jim Kingdon
00b02f17b5 * paread.c: Remove comment about how we should use an "ordinary"
file format with an hppa suffix.  There is nothing ordinary about SOM.
1993-10-31 15:56:44 +00:00
Jim Kingdon
f6c4bf1a82 * objfiles.h, infcmd.c, symfile.c: Add comments about how various
objfiles get created and when we should blow them away.
1993-10-31 15:46:34 +00:00
Jim Kingdon
4d57c5995e * symfile.c (reread_symbols): When re-reading symbols, do all the
right operations ourself, rather than calling symbol_file_command.
	If we re-read something, call clear_symtab_users not just
	breakpoint_re_set.
	* objfiles.h, objfiles.c (build_objfile_section_table): No longer
	static.
	* symfile.c (clear_symtab_users): Call clear_pc_function_cache.
	* coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c
	(*_symfile_offsets): Set objfile->num_sections.
	* remote.c (remote_wait), symfile.c (syms_from_objfile):
	Don't muck with objfile->num_sections now that all the symbol
	readers set it.
	* elfread.c: Clean up obsolete comment about handling only DWARF.
	* paread.c: Remove comment about how we should use an "ordinary"
	file format with an hppa suffix.  There is nothing ordinary about SOM.
1993-10-30 20:21:19 +00:00
Jim Kingdon
df0393e345 * config/i386/{i386m3.mh,i386mk.mh}, config/mips/mipsm3.mh,
config/ns32k/ns32km3.mh: Change MMALLOC_LIB to MMALLOC.
	* TODO: Update Mach stuff.
1993-10-30 13:42:43 +00:00
Stan Shebs
9bebe50081 More LynxOS support 1993-10-30 00:16:25 +00:00
Jim Kingdon
2af4851f09 * TODO: Add idea for "disassemble" with source. 1993-10-29 19:36:32 +00:00
Jim Kingdon
bf5c0d6448 * defs.h, findvar.c (extract_floating, store_floating): New functions.
* Move SWAP_TARGET_AND_HOST from defs.h to findvar.c because it is
	now used only by extract_floating and store_floating.
	* valprint.c (print_floating): Use unsigned arithmetic.  Use
	extract_unsigned_integer instead of SWAP_TARGET_AND_HOST.
	Change sizeof (float) to 4 and sizeof (double) to 8 (those are always
	the relevant sizes for this code, which is in #ifdef IEEE_FLOAT).
	* values.c (unpack_long, unpack_double, value_from_double),
	valarith.c (value_binop), stabsread.c (define_symbol):
	Use extract_floating and store_floating instead of
	SWAP_TARGET_AND_HOST.
	* config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*):
	Use extract_floating and store_floating.
	* config/m88k/tm-m88k.h: Add comments (it should be doing the same).
	* i386-tdep.c (i386_extract_return_value),
	* remote-nindy.c (nindy_store_registers): Use store_floating.
1993-10-29 18:16:33 +00:00
Steve Chamberlain
3beff94ec2 * remote-sim.c (gdbsim_store_register): Change var name so
it compiles with non-ANSI compilers.
1993-10-29 16:35:22 +00:00
Jim Kingdon
ce31a796fd * TODO: Add idea for "disassemble" with source. 1993-10-29 13:16:56 +00:00
Fred Fish
34ec93be19 * Makefile.in (VERSION): Bump to 4.11.1 after release and cvs
tagging.
1993-10-29 07:42:30 +00:00
Jim Kingdon
4a44dc1ac2 * TODO: Add section on Mach. Stop calling it a "bug list".
Remove John's name and email address.  Remove item on "always"
	("hook-stop" takes care of this).  Remove item on executables with
	no symbols (this works on some machines, at least).  Remove item
	about calling error() during symbol reading (I think all the important
	ones have been cleaned up).  Revise items about signals and remote
	systems.  Remove section on ^Z requiring several continues to make
	it go (this now works.  Perhaps the item is based on confusion over
	programs (like GDB itself) which catch SIGTSTP and then re-send
	themselves the signal.  PR 2575 might contain relevant info).
1993-10-29 01:29:21 +00:00
Fred Fish
617b4ae8c7 * NEWS: Note improvements in C++ support, preliminary thread
implementation, and LynxOS native and target support for 386.
1993-10-29 00:52:25 +00:00
Fred Fish
4904384232 * README: Add note from Peter Schauer about OSF/1 shared
libraries.  Add note from Pace Willisson about configuring on BSDI
	BSD/386 release 1.0.  Update gdb references to gdb 4.11.
1993-10-29 00:24:56 +00:00
Jim Kingdon
803f7af5d2 * NEWS: Add notes about Alpha and "set remotedebug" for UDI. 1993-10-28 21:25:31 +00:00
Jim Kingdon
355b334f68 * config/i386/{i386m3.mt,i386m3.mh},
config/mips/{mipsm3.mt,mipsm3.mh},
	config/ns32k/{ns32km3.mt,ns32km3.mh}: Use correct names for TM_FILE
	and XM_FILE.  Replace host files *mach3-xdep.o with native
	files *m3-nat.o.  Replace host file os-mach3.o with native
	file m3-nat.o.
1993-10-28 15:04:40 +00:00
Jim Kingdon
4d52ec8623 * valops.c (value_assign): Change bitfield code to use a buffer of
the correct size, rather than an int.
1993-10-28 14:27:39 +00:00
Jim Kingdon
cfe5ad2d03 * config/i386/{i386m3.mt,i386m3.mh}: Use correct names for TM_FILE
and XM_FILE.  Replace host file i386mach3-xdep.o with native file
	i386m3-nat.o.
1993-10-27 22:06:52 +00:00
Jim Kingdon
bb1908342f * stabs.texinfo (Class Names): New node. 1993-10-27 21:40:36 +00:00
Jim Kingdon
b10f4dd977 * remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
* remote-mon.c: Remove commented out "set remotedebug" command.
	* remote-nindy.c: Clean up comment about wanting alternative to
	options specified on the GDB command line.
1993-10-27 20:35:25 +00:00
Jim Kingdon
bc28a06cc1 * fork-child.c (fork_inferior): Set inferior_pid before calling
init_trace_fun.  Move the code which gets us through the shell
	to new function startup_inferior.
	* inferior.h: Declare startup_inferior.
	* procfs.c (procfs_init_inferior), inftarg.c (ptrace_him):
	Call startup_inferior.
	* m3-nat.c (m3_trace_him): Call intercept_exec_calls.
	* config/nm-m3.h: Don't define STARTUP_INFERIOR.
	* config/i386/tm-i386m3.h, config/ns32k/tm-ns32k.h,
	config/mips/tm-mipsm3.h: Don't define START_INFERIOR_TRAPS_EXPECTED.
1993-10-27 19:30:27 +00:00
Jim Kingdon
73e7e44744 * m68k-stub.c: Change vector 13 from SIGFPE to SIGBUS. 1993-10-27 18:48:50 +00:00
Jim Kingdon
8d43be62a8 * gdb.texinfo (Command Files): Explain order of init file reading. 1993-10-27 18:26:40 +00:00
Jim Kingdon
64a0145050 * gdb.texinfo (Command Files): Explain order of init file reading. 1993-10-27 16:20:51 +00:00
Jim Kingdon
66ad6ec894 * remote.texi (Bootstrapping): Talk about getting the serial driver
to deal with ^C sent by gdb to stop the remote system.
1993-10-27 05:48:39 +00:00
Jim Kingdon
e3b9a4856f * remote.texi (Bootstrapping): Talk about getting the serial driver
to deal with ^C sent by gdb to stop the remote system.
1993-10-27 05:31:10 +00:00
Jim Kingdon
981ef35e01 * mips-tdep.c (mips_pop_frame): If proc_desc is NULL, don't dump core. 1993-10-27 05:21:01 +00:00
Jim Kingdon
6a6fe3dbde gcc -Wall lint:
* nlmread.c: Include stabsread.h.
	* Makefile.in: Update dependencies.
1993-10-26 22:16:07 +00:00
Jim Kingdon
f3d86961e4 * remote.c: Change PBUFSIZ back to 400. John's 28 Feb 1992 change
to increase it broke the ability to write large chunks of memory
	with m68k-stub and i386-stub.  Now we only use more than 400 on
	machines where we need that much to write the registers.
	* remote.c (remote_write_bytes): Eliminate possible abort().  The
	check for when to abort was off by a few bytes and besides which,
	it is handled by MAXBUFBYTES, which the caller uses.
	* m68k-stub.c: Add comments about trap #1 and trap #8 instructions.
1993-10-26 20:41:35 +00:00
David Edelsohn
c7efaa16dc * remote-sim.h (SIM_ADDR): New type (same as CORE_ADDR).
(sim_set_pc): Update prototype.
(sim_read, sim_write): Ditto, and use unsigned char *buf.
(sim_fetch_register, sim_store_register): Use unsigned char *buf.
(sim_info): Pass printf function as argument, add verbose argument.
(sim_stop_reason): Renamed from sim_stop_signal, fix prototype.
* remote-sim.c (gdbsim_wait): Update call to sim_stop_reason.
(gdbsim_files_info): Update call to sim_info.
1993-10-26 16:34:01 +00:00
Jim Kingdon
79971d11cc * valops.c (value_assign): Call reinit_frame_cache when assigning
to a register.
1993-10-26 15:49:39 +00:00
Stu Grossman
2cdce841c4 * infrun.c (wait_for_inferior): Fix PC out of objfile bounds
check to just use stop_func_name == 0.
1993-10-26 01:13:28 +00:00
Stu Grossman
12f4fe6cd6 * gdb.disasm/hppa.mt: Use $(srcdir) in hppa.o make rule. 1993-10-25 22:28:46 +00:00
Stu Grossman
b58a197344 * infrun.c (wait_for_inferior): Fix PC out of subroutine bounds
check to use prev_func_start/end instead of stop_func_start/end.
	* remote-udi.c (store_register):  Invalidate NPC/PC_REGNUM after
	changing PC.
1993-10-25 22:24:02 +00:00
Jim Kingdon
3c1423d645 * gdb.t06/signals.exp: Skip whole file with xfail for HPPA. 1993-10-25 22:08:47 +00:00
Jim Kingdon
a6e0dae9c3 * gdbserver/{low-lynx.c,low-sparc.c,low-sun3.c}, standalone.c,
m3-nat.c, i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c: bcopy -> memcpy.
1993-10-25 21:15:53 +00:00
Thomas Lord
59168c8b05 Changed the DOC parameter type to gdb_define_app_command.
Fixed typo.
1993-10-25 20:55:03 +00:00
Jim Kingdon
dfbb7762a5 gcc -Wall lint:
* breakpoint.c: Include thread.h.
	* coffread.c: Include stabsread.h.
	* Makefile.in: Update dependencies.
	* breakpoint.c (mention): Add bp_call_dummy to switch.
	* symmisc.c (dump_symtab): Use %d not %ld for line number.
1993-10-25 20:20:15 +00:00
Thomas Lord
b94e8c39e0 Substantial rewrite. 1993-10-25 19:40:46 +00:00
Jim Kingdon
bb42d443ad * gdb.t24/demangle.exp: Remove "3220" from the one remaining xfail.
It is not from PR 3220.
1993-10-25 18:44:32 +00:00
Fred Fish
60d7eacecb Remove incorrect comment about SEC_HAS_CONTENTS not getting set. 1993-10-25 14:38:38 +00:00
Jim Kingdon
3373287100 * gdb.t00/{help.exp,default.exp}: Loosen up a few more tests which
just started failing because they depended on the order the
	subcommands are presented, or exact docstring text.  This kind of
	test is a pain and has minimal benefit.
1993-10-25 00:01:16 +00:00
Jim Kingdon
abe28b9214 Sun Oct 24 20:16:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* parse.c, parser-defs.h (write_exp_msymbol):  New function to write
	the appropriate expression for a minimal symbol.
	* c-exp.y, m2-exp.y:  Use it.
1993-10-24 23:42:02 +00:00
Jim Kingdon
94c74a0c22 * remote-vx.c (vx_wait): Rename pid parameter to pid_to_wait_for.
Some compilers (legitimately) don't like variables in the
	function's outermost block whose name is the name as a parameter.
1993-10-24 18:05:39 +00:00
Fred Fish
90141f9c4e * elfread.c (elf_symtab_read): Use bfd convention that both
initialized and uninitialized data sections have the SEC_ALLOC
	flag bit set, but only initialized sections have SEC_LOAD set.
	SEC_DATA is ignored since it only gets set for initialized
	data.  Likewise, SEC_HAS_CONTENTS is ignored now because it
	never gets set.
1993-10-24 16:41:11 +00:00
David Edelsohn
592f517aa3 * remote-sim.h (sim_stop): New enum.
(sim_stop_signal): Change prototype, result is enum sim_stop.
* remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.
1993-10-23 21:56:47 +00:00
Jim Kingdon
dcb389736b * stabsread.c (define_symbol): Skip the whole thing about "pcc
promotion" on little-endian machines.
1993-10-23 01:56:18 +00:00
Jim Kingdon
c3cabecb47 * remote-vx.c: Rename pid parameter to pid_to_wait_for. Some
compilers (legitimately) don't like variables in the function's
	outermost block whose name is the name as a parameter.
1993-10-23 01:14:47 +00:00
Jim Kingdon
2d62828161 Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
* dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
	New files.
	* config/m68k/nm-apollo68b.h: Add more defines.
	* configure.in: Recognize apollo target, not just host.
1993-10-22 20:25:43 +00:00
Jim Kingdon
835fe6e630 Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
* dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
	New files.
	* config/m68k/nm-apollo68b.h: Add more defines.
	* configure.in: Recognize apollo target, not just host.
1993-10-22 16:03:08 +00:00
Jim Kingdon
7129250052 new for apollo 1993-10-22 15:24:31 +00:00
Jim Kingdon
d19e168692 new for apollo 1993-10-22 15:14:45 +00:00
Jim Kingdon
3b891e0b5c * configure.in: Add * to end of all OS names. 1993-10-22 13:49:08 +00:00
Fred Fish
c8bd627f9f * Makefile.in (ALLPARAM): Add config/m88k/xm-delta88v4.h 1993-10-22 13:24:55 +00:00
Jim Kingdon
f701d1341c * munch: Removed. 1993-10-22 06:08:04 +00:00
Jim Kingdon
49f8eccbff * Makefile.in (init.c): Generate using the source, not munch. This
cleans up all kinds of hassles (which nm to use in munch, etc).  The
	new formatting conventions (mostly already followed) are that
	the name of the _initialize_* routines must start in column zero,
	and must not be inside #if.
	* munch: Removed.
	* Makefile.in: Remove references to munch.
	* serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
	alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
	procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
	i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
	z8k-tdep.c: Make sure the above conventions are followed.  Make
	sure they are all declared as returning void.  Clean up
	miscellaneous comments and such.
1993-10-22 06:03:50 +00:00
Jim Kingdon
976bb0be03 * Makefile.in (init.c): Generate using the source, not munch. This
cleans up all kinds of hassles (which nm to use in munch, etc).  The
	new formatting conventions (mostly already followed) are that
	the name of the _initialize_* routines must start in column zero,
	and must not be inside #if.
	* munch: Removed.
	* Makefile.in: Remove references to munch.
	* serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
	alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
	procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
	i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
	z8k-tdep.c: Make sure the above conventions are followed.  Make
	sure they are all declared as returning void.  Clean up
	miscellaneous comments and such.
1993-10-22 05:55:58 +00:00
Jim Kingdon
b8615faeec * Makefile.in: Update dependencies to reflect all these new includes. 1993-10-22 01:49:27 +00:00
Jim Kingdon
c853c90d12 * sh-tdep.c (sim_load): Add function. 1993-10-22 00:53:32 +00:00
David D. Zuhn
f7fa951fd0 add pid argument to mips_wait 1993-10-21 23:02:40 +00:00
Jim Kingdon
100f92e2de * Makefile.in (c-exp.tab.o): Remove notice about shift/reduce conflicts
which no longer occur.

	gcc -Wall lint:
	* findvar.c (symbol_read_needs_frame), corelow.c (ignore),
	inflow.c (gdb_has_a_terminal): Make sure to return a value.
	* regex.h: Declare re_set_syntax.
	* printcmd.c: Include valprint.h.
	* infcmd.c, exec.c, maint.c, core.c: Include language.h.
	* maint.c: Include expression.h.
	* infrun.c, fork-child.c, corelow.c, inflow.c: Include thread.h.
	* inftarg.c: Include command.h.
	* coredep.c: Include value.h.
	* c-exp.y, m2-exp.y, ch-exp.y: Include bfd.h, symfile.h and objfiles.h.
	* ch-typeprint.c: Include typeprint.h.
	* ch-valprint.c: Include c-lang.h.
	* nlmread.c: Include buildsym.h.
	* environ.c: Include gdbcore.h.  Only include defs.h once.
	(set_in_environ): Cast const char * to char * when passing to
	set_gnutarget.
	Remove unused variables:
	* printcmd.c (printf_command): args_to_vprintf.
	* coffread.c (coff_symfile_init): strsection.
	Move variables to within the #ifdefs where they are used:
	* symtab.c (gdb_mangle_name): opname.
	* inftarg.c (child_attach): pid and exec_file.
	* inftarg.c (child_detach): siggnal.
	* objfiles.c (allocate_objfile): mapto, md, and fd.
	* objfiles.c (free_objfile): mmfd.
	* infrun.c (wait_for_inferior): Include BPSTAT_WHAT_LAST in switch.
	* infrun.c (wait_for_inferior): Remove unused same_pid label.
	* inferior.h: Declare set_sigint_trap and clear_sigint_trap.
	* parser-defs.h: Declare write_exp_elt_block.
	* stabsread.h: Declare elfstab_offset_sections and
	coffstab_build_psymtabs.
1993-10-21 20:41:50 +00:00
Ken Raeburn
003ccb904d Patch from Jeff Law:
* paread.c: Fix references to "hppa" that should now be "som".
1993-10-21 19:28:54 +00:00
Jim Kingdon
ad0a2521d2 * symtab.c (decode_line_1): Don't use SYMBOL_LINE for functions. 1993-10-21 17:32:52 +00:00
Jim Kingdon
e252598636 * stabs.texinfo (Local Variable Parameters): Re-write paragraph on
floats passed as doubles (to improve clarity).
1993-10-21 14:20:50 +00:00
Jim Kingdon
bf96935bbc * gdb.t09/corefile.exp: At end of test, use "core" command with
no arguments.
1993-10-21 13:32:51 +00:00
Stu Grossman
cadd2c6f7c * remote-udi.c (udi_store_registers, store_register): Use
UDI29KPC address space when modifying PC.  It seems that you can't
	modify the PC directly (at least in the isstip simulator).
1993-10-21 10:10:21 +00:00
Jim Kingdon
68dc3cd9fc * Move "set remotebaud" from remote-utils.c to main.c to it applies
to remote.c as well.
1993-10-21 05:30:47 +00:00
Jim Kingdon
577e6a8dc5 * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles.
1993-10-21 05:24:18 +00:00
Jim Kingdon
9c38eb65ac * target.h: Put remote_debug declaration back here. Add baud_rate.
* remote.c, remote-udi.c, remote-utils.h: Let target.h take care of
	declaring these.  Those random externs all over are error prone.
	* Move "set remotebaud" from remote-utils.c to main.c to it applies
	to remote.c as well.

	* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
	Sort symtabs for this objfile only, not for all objfiles.
	* symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
1993-10-21 05:22:34 +00:00
Jim Kingdon
8f6960c90e * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles.
	* symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
1993-10-21 04:41:56 +00:00
Jim Kingdon
a087ce7137 * mipsread.c (parse_symbol): In third-eye, a function has a block
within it which represents the whole function.  Create only one
	GDB block for both.
1993-10-21 01:32:05 +00:00
Stu Grossman
5f22e4edc6 * config/a29k/a29k-udi.mt: Define REMOTE_O as null so that we don't
get the default remote* modules.
1993-10-21 00:58:19 +00:00
Stu Grossman
d0d8484a4a * main.c: Make baud_rate and remote_debug be global variables,
remove #include "remote-utils.h".  This makes it possible to build
	GDB without remote-utils.c.  Also, move setting of remote_debug
	into main, so that all remote*.c files can use it (not just the
	serial line ones).  And, make baud_rate be an int.
	* remote-udi.c:  Change kiodebug to remote_debug.
	* remote-utils.c:  Move setting of baud rate and debug into main.c.
	* remote-utils.h:  Redefine sr_{get set}_debug and sr_{get set}_baud
	to use baud_rate and remote_debug globals for compatibility.
	* remote.c:  Use remote_debug and baud_rate globals directly,
	instead of sr_ functions, so that we don't need to load
	remote-utils.c.
1993-10-21 00:49:42 +00:00
Jim Kingdon
fc81adb803 * stabsread.c (define_symbol): When combining a LOC_ARG and a
LOC_REGISTER, use the type from the LOC_REGISTER, not from the
	LOC_ARG.
1993-10-20 23:45:13 +00:00
Jim Kingdon
9ab86fa36e * stabs.texinfo (Local Variable Parameters): Re-write paragraph on
floats passed as doubles (to improve clarity).
1993-10-20 23:13:46 +00:00
K. Richard Pixley
921f2b29a9 define some signals 1993-10-20 21:36:06 +00:00
Jim Kingdon
b8c0ec2737 * Makefile.in (INTERNAL_LDFLAGS): New macro. The new part is
that we use CFLAGS and PROFILE_CFLAGS to link.
	(gdb, rapp, kdb): Use INTERNAL_LDFLAGS instead of
	LDFLAGS and/or GLOBAL_CFLAGS.
1993-10-20 17:15:45 +00:00
Stu Grossman
36b1d5287c * Makefile.in: Add $(srcdir) to all refs to 29k-share
directories.
1993-10-20 16:51:41 +00:00
Stu Grossman
486b3fe18c * gdb.t{01 02 03 04 05 06 07 08 09 10 11 12 13 15 16
17}/Makefile.in:  Make it possible to run the testsuite with Sun
	make and CC = cross gcc by adding explicit build rules for .o
	files.
1993-10-20 16:23:17 +00:00
Roland Pesch
a88ec2134a fix one bad date, credits 1993-10-20 02:03:50 +00:00
Fred Fish
ed89c3d938 * Makefile.in (ALLCONFIG): Add config/i386/{i386m3.mh, i386m3.mt,
i386/i386mk.mh i386/i386mk.mt}, config/mips/{mipsm3.mh,
	mipsm3.mt}, config/ns32k/{ns32km3.mh, ns32m3.mt}
	* Makefile.in (remote_utils_h):  Add remote-sim.h
	* Makefile.in (NONSRC):  Add i386-nlmstub.c
	* Makefile.in (HFILES):  Add coff-solib.h
1993-10-20 00:30:09 +00:00
Kung Hsu
731c7e1779 Modified Files:
ChangeLog

        * values.c (value_virtual_fn_field): Fix the offset calculation
        when calling virtual functions. (gdb.t22/virtfunc.exp).
        * eval.c (evaluate_subexp): same as above.
1993-10-19 22:17:57 +00:00
Jim Kingdon
e00def2dd1 * gdb.t15/funcargs.exp: Don't put comments on same line as
setup_xfail (@#$*%& tcl braindamage!).
1993-10-19 21:40:09 +00:00
Roland Pesch
fa6df1a7b2 Tue Oct 19 14:21:18 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
* a4rc.sed: update to work with Andreas Vogel papersize params

	* refcard.tex: use Andreas Vogel simplifications of papersize
	params; remove useless version info; update copyright date.
1993-10-19 21:25:32 +00:00
Kung Hsu
dcd8fd8c17 Modified Files:
values.c eval.c

        * values.c (value_virtual_fn_field): Fix the offset calculation
        when calling virtual functions. (gdb.t22/virtfunc.exp).
        * eval.c (evaluate_subexp): same as above.
1993-10-19 21:20:37 +00:00
Fred Fish
18c3a1c3da Clean out all references to snapshots.readme, a file that is not
distributed in gdb releases.
1993-10-19 19:38:05 +00:00
Jim Kingdon
615289ece9 * config/rs6000/rs6000.mh (TERMCAP): Define to -lcurses.
* Makefile.in: Define CXXFLAGS.
1993-10-19 17:20:53 +00:00
Stu Grossman
b4aa170e4a * sparclite/Makefile.in: Fixup so that this works with Sun make
and VPATH.
1993-10-19 16:34:16 +00:00
Jim Kingdon
25f9d853cd * gdb.texinfo (Symbols): Add class NAME to doc for ptype. 1993-10-19 16:26:06 +00:00
Jim Kingdon
2e142fdedd * breakpoint.h (struct bpstat_what): Don't use bitfields. 1993-10-19 16:05:23 +00:00
Jim Kingdon
915e6cd9f6 * typeprint.c: Add "class CLASS-NAME" to docstring for ptype. 1993-10-19 15:56:20 +00:00
Fred Fish
0ac1a039f4 * Makefile.in (ALLPARAM): Add config/m88k/{nm-delta88v4.h,
tm-delta88v4.h, xm-dgux.h}.
	* Makefile.in (ALLCONFIG):  Add config/m88k/{delta88v4.mh,
	delta88v4.mt}.
1993-10-19 13:27:55 +00:00
Fred Fish
2be58d4517 * README: Remove comment about SunOS 5.x programs leaving
coredumps.  Info from Sun is that this was not in customer
	releases.
1993-10-19 13:19:25 +00:00
Fred Fish
a3e0cf1ea4 * snapshots.readme: Reword paragraph about not publicising
location of gdb snapshots.
1993-10-19 13:15:42 +00:00
Jim Kingdon
f9a96aa314 * gdb.disasm/hppa.exp: Use $objdir/$subdir/$binfile not just $binfile. 1993-10-19 02:56:08 +00:00
Jim Kingdon
8c5e002153 * hppa-tdep.c (restore_pc_queue): Call target_terminal_ours after
done stepping the inferior.
1993-10-18 23:06:19 +00:00
Jim Kingdon
adee89e8a2 * c-exp.y: Remove never-used (because of shift/reduce conflicts)
rules for pointers to members.
	* Makefile.in: Remove notice about expected shift/reduce conflicts.
1993-10-18 18:01:51 +00:00
Jim Kingdon
f91b837dd0 * buildsym.c (finish_block): If we pop the context stack and it is
not empty, complain () instead of abort ().
1993-10-18 15:40:04 +00:00
Jim Kingdon
f843c95fc3 * parse.c, parser-defs.h (follow_types): New function.
* c-exp.y (ptype : typebase abs_decl): Use it.
	* c-exp.y (ptype): Add support for type qualifiers after the
	typebase.  The typebase rule already has support for them before
	the typebase.
	* Makefile.in: Change the expected number of shift/reduce
	conflicts to 6.  This is OK--the 2 new conflicts are basically the
	same as one of the old ones.
1993-10-18 01:10:25 +00:00
Fred Fish
cf4d863151 Bump version to 4.10.3 in main trunk after branch for gdb 4.11 1993-10-17 20:08:10 +00:00
Jim Kingdon
c0c14c1e8d * infrun.c (wait_for_inferior): Clean up comments which were at
the top of the file, making them more concise and moving them with
	the code (Sorry, Randy, but these stream-of-consciousness comments
	really have to go).  Switch the order of the "&&", which makes
	things clearer and turns out to be an improvement with respect to
	side effects and speed.
1993-10-17 14:30:20 +00:00
Stu Grossman
fb63d460a7 * procfs.c: Handle process exits more elegantly by trapping on
entry to _exit.  Also, cleanup procinfo list when process dies of
it's own accord (as opposed to being killed).
1993-10-17 09:12:58 +00:00
Jim Kingdon
18122d8bd3 * infrun.c: Add comment about signals. 1993-10-17 02:21:12 +00:00
Jim Kingdon
df0d53e3f4 * config/m88k/xm-dgux.h: Define NO_PTRACE_H. 1993-10-17 02:19:59 +00:00
Jim Kingdon
2a23937211 * gdb.disasm: New directory for GDB disassembler tests. 1993-10-17 02:09:07 +00:00
Jim Kingdon
15598f4229 * gdb.disasm: New directory for GDB disassembler tests. 1993-10-17 02:09:06 +00:00
Jim Kingdon
4cc5b060c2 * corelow.c (add_to_thread_list): Need a cast to go from PTR to
asection *.
1993-10-17 02:05:58 +00:00
Jim Kingdon
749e538bc8 * infrun.c: Add comment about signals.
* fork-child.c (fork_inferior): Remove CREATE_INFERIOR_HOOK again.
	Stu reinstated it (accidently I assume).
1993-10-17 01:56:01 +00:00
Stu Grossman
7c5d526e1f * procfs.c (procfs_wait): Losing Unixware can't do poll on /proc
files.  Use PIOCWSTOP instead.
* corelow.c (add_to_thread_list):  Fix arg to match prototype.
1993-10-17 01:02:57 +00:00
Stu Grossman
952a820e43 * procfs.c (procfs_set_sproc_trap): Don't use this if sproc
isn't available.
* (procfs_notice_signals):  Fix prototype.
1993-10-16 22:32:04 +00:00
Stu Grossman
0aede96355 *** empty log message *** 1993-10-16 22:31:07 +00:00
Stu Grossman
de43d7d005 * breakpoint.c (breakpoint_thread_match break_command_1):
Thread-specific breakpoint support.
* breakpoint.h (struct breakpoint):  Add thread id field.
* fork-child.c (fork_inferior):  Move call to init_thread_list()
back a bit so that init_trace_fun can do thread functions.
* hppa-tdep.c (restore_pc_queue):  Add pid to call to target_wait.
* hppab-nat.c (child_resume):  Handle default pid.
* hppah-nat.c (child_resume):  Handle default pid.
* i386lynx-nat.c (child_wait):  New arg pid.
* inflow.c (kill_command):  Reset thread list.
* infptrace.c (child_resume):  Handle default pid.
* infrun.c:  Thread-specific breakpoint support.
* inftarg.c (child_wait):  Add pid arg.
* osfsolib.c (solib_create_inferior_hook):  Add pid to call to
target_resume.
* procfs.c:  Multi-thread support.
* remote-bug.c (bug_wait):  Add pid arg.
* remote-hms.c (hms_wait):  Add pid arg.
* remote-mips.c (mips_wait):  Add pid arg.
* remote-mon.c (monitor_wait):  Add pid arg.
* remote-nindy.c (nindy_wait):  Add pid arg.
* remote-sim.c (gdbsim_wait):  Add pid arg.
* remote-udi.c (udi_wait):  Add pid arg.
* remote-vx.c (vx_wait):  Add pid arg.
* remote-z8k.c (sim_wait):  Add pid arg.
* remote.c (remote_wait):  Add pid arg.
* solib.c (solib_create_inferior_hook):  Add pid to call to
target_resume.
* target.h (struct target_ops):  Add pid arg to to_wait and
to_notice_signals.
* thread.c (valid_thread_id):  New func to validate thread #s.
* (pid_to_thread_id):  New func to do the obvious.
* thread.h:  Prototypes for above.

* coff-solib.c (coff_solib_add):  Use nameoffset field to locate
filename.
1993-10-16 06:42:02 +00:00
Jim Kingdon
9bc3153e82 * h8300-tdep.c, h8500-tdep.c: Define sim_load only, but not
sim_kill, sim_open, or sim_set_args.
1993-10-16 05:07:31 +00:00
Jim Kingdon
1468bec92b * h8300-tdep.c, h8500-tdep.c: Define sim_load only, but not
sim_kill, sim_open, or sim_set_args.
1993-10-16 04:59:47 +00:00
Jim Kingdon
921b588b92 x 1993-10-16 04:58:20 +00:00
Jim Kingdon
12e0f76653 * stack.c (print_stack_frame): Put catch_errors around
print_frame_info so (for example) error printing source doesn't
	cause auto-displays to get skipped in normal_stop.
1993-10-16 04:37:45 +00:00
Jim Kingdon
88938c54aa * findvar.c (value_from_register): When preparing to cast a value
from REGISTER_VIRTUAL_TYPE to type, copy the REGISTER_VIRTUAL_SIZE;
	the old code didn't copy the whole thing.
	* valops.c (value_assign): Add comment.
1993-10-16 02:41:17 +00:00
Peter Schauer
c0e1076db2 * mipsread.c (upgrade_type): Replace bitsize sanity checks and
complaint by a comment explaining why they were useless.
1993-10-15 19:58:39 +00:00
Jim Kingdon
78cab901b0 * Move comments on bypassing call dummy breakpoint from stack.c
to breakpoint.h.
1993-10-15 19:37:29 +00:00
Jim Kingdon
d699eb2124 * gdb.t06/break.exp: For "next over recursive call", fail on any
incorrect output, not just on "factorial (value=2)".
1993-10-15 18:50:29 +00:00
Jim Kingdon
cfb56ba23e Fri Oct 15 11:52:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* gdb.t12/scope.exp:  Remove xfails, filename::var syntax should be
	working now. Add an xfail if accesing a bss variable causes
	a memory error if the target is not yet run.
1993-10-15 17:13:27 +00:00
Jim Kingdon
c540818b16 Fri Oct 15 11:52:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* symtab.c (lookup_partial_symtab):  If filename is not found and
	contains no slashes, try again and compare without leading path
	components.
	* symtab.c (lookup_symtab_1):  Replace open coded version of
	lookup_partial_symtab with a function call.
1993-10-15 17:11:11 +00:00
Jim Kingdon
5d76c8e662 * fork-child.c (fork_inferior), remote-eb.c (eb_create_inferior),
remote-mon.c (monitor_create_inferior), remote-nindy.c
	(nindy_create_inferior), remote-st.c (st2000_create_inferior),
	remote-vx.c (vx_create_inferior): Remove CREATE_INFERIOR_HOOK; it
	is replaced by init_trace_fun.
	* config/convex/xm-convex.h, convex-xdep.c: Add comments explaining
	how to do without CREATE_INFERIOR_HOOK for whoever fixes the Convex
	port.

	* Makefile.in: Add Mach files to ALLDEPFILES, etc.
	* m3-nat.c: Clean up more hair--message(), cprocs.
	* configure.in: Recognize Mach targets and hosts.
	* config/ns32k/tm-umax.h: Add some #ifndef's so tm-ns32km3.h can
	include this file.
	* Mach headers in config/*/tm-*.h: Fix includes to match correct
	locations of files.
1993-10-15 04:26:06 +00:00
Rob Savoye
8c4731b588 * remote-mon.c (general_open): Set dev_name. Minor tweaking to get
it working again.
	* config/m68k/tm-monitor.h: Remove floating point register names
	as there aren't any on any of the monitors that use this code.
1993-10-15 03:41:58 +00:00
Jim Kingdon
81d460c775 * gdb.t24/demangle.exp: Clean up spacing (2 strings), inclusion of
constructor name (2 string), name of _GLOBAL_ demangling (2 strings),
	name of __st* demangling (2 strings).  Did Kung really get the
	more than 95 others right without testing them?
1993-10-15 00:36:26 +00:00
Kung Hsu
ff24cba9b6 Modified Files:
ChangeLog

	* gdb.t24/demangle.exp: clean up XFAILS, more than 100 of them.
1993-10-14 23:33:33 +00:00
Jim Kingdon
8092225e36 Thu Oct 14 11:40:30 1993 Jeffrey Law (law@cs.uah.edu)
* configure.in (configdirs): Add gdb.disasm
	* gdb.disasm: New directory for GDB disassembler tests.
	* gdb.disasm/hppa.{exp,s,mt}: Disassembly tests for the HPPA.
1993-10-14 21:58:58 +00:00
Jim Kingdon
478826389e Thu Oct 14 11:40:30 1993 Jeffrey Law (law@cs.uah.edu)
* configure.in (configdirs): Add gdb.disasm
	* gdb.disasm: New directory for GDB disassembler tests.
	* gdb.disasm/hppa.{exp,s,mt}: Disassembly tests for the HPPA.
1993-10-14 21:03:36 +00:00
Jim Kingdon
a86bd05a66 * gdb.t00/help.exp: Don't test "help set". 1993-10-14 18:53:31 +00:00
Jim Kingdon
8d22f022d2 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Remove all xfails
from within expect statements.  None of these happen anymore and
	they cause regressions to be silently unnoticed.

	* gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Add notes (in failure
	messages) about known failures with gcc cygnus-2.4.5-930417.
1993-10-14 18:40:20 +00:00
Jim Kingdon
74aa67d3d3 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Remove all xfails
from within expect statements.  None of these happen anymore and
	they cause regressions to be silently unnoticed.

	* gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Add notes (in failure
	messages) about known failures with gcc cygnus-2.4.5-930417.

	* gdb.t22/virtfunc.exp: Add notes (in comment and failure message)
	about problem with gcc cygnus-2.4.5-930828.
1993-10-14 18:20:52 +00:00
Jim Kingdon
486e58a5d1 * gdb.t20/inherit.exp: Remove all xfails from within expect statements.
None of these happen anymore and they cause regressions to be silently
	unnoticed.

	* gdb.t20/inherit.exp: Add note (in failure message) about known
	failure with gcc cygnus-2.4.5-930417.
1993-10-14 17:50:24 +00:00
Jim Kingdon
f164292134 * gdb.t20/inherit.exp: Add note (in failure message) about known
failure with gcc cygnus-2.4.5-930417.

	* gdb.t22/virtfunc.exp: Add notes (in comments and failure message)
	about problem with gcc cygnus-2.4.5-930828.
1993-10-14 17:29:01 +00:00
David Edelsohn
3f33ec63b5 Remove references to shade. 1993-10-14 17:13:29 +00:00
Jim Kingdon
89c394ece7 * gdb.t02/Makefile.in, gdb.t08/Makefile.in: Make all depend on
comp-info.exp so it gets built if it doesn't exist.

	* gdb.t13/{Makefile.in,bitfields.exp}: Remove comp-info.exp stuff;
	it is no longer used.
	* gdb.t13/comp-info.c: Removed.
1993-10-14 16:47:34 +00:00
Jim Kingdon
9536b32ca2 * gdb.t06/signals.exp: Add xfail for sun3. 1993-10-14 06:03:23 +00:00
Jim Kingdon
179cd9230f * inflow.c: Pass pointer to process group, not process group itself,
to TIOCSPGRP ioctl.
1993-10-14 02:48:33 +00:00
Jim Kingdon
76e473bbdd * inflow.c (terminal_ours_1): Don't print warning on failure to
set process group.
1993-10-13 18:29:09 +00:00
Jim Kingdon
9309b4d929 * printcmd.c (printf_command): Instead of using makeva* and
calling vprintf, just make the appropriate calls to printf.
	* printcmd.c, config/pa/xm-pa.h, config/mips/xm-makeva.h,
	config/alpha/xm-alpha.h, config/m88k/xm-m88k.h: Remove all
	traces of makeva*.  My apologies to everyone (including me!)
	who spent so much time getting it to work on various machines,
	but look at the bright side, at least you won't have to do it
	again in the future.

	* printcmd.c (printf_command): Make a cleanup for val_args (fixes
	a memory leak).
1993-10-13 18:17:49 +00:00
Jim Kingdon
d62e3f378d * config/mips/xm-mips.h: Remove comment about HAVE_SGTTY vs. usleep. 1993-10-13 04:00:46 +00:00
David D. Zuhn
79f68f0f83 only configure gdbserver for native environments 1993-10-13 01:08:40 +00:00
Jim Kingdon
99d1da6a3c * gdb.texinfo (Files): Say what address the load command loads it at. 1993-10-13 00:46:09 +00:00
Jim Kingdon
4fc9d7c70e * stabsread.c (read_type): Treat a negative type number at the start
of a type as a type reference, not as a definition of a type with
	"50=" omitted.  This makes things work on the RS/6000 again (the
	14 Sep 1993 change broke it).
1993-10-12 23:55:13 +00:00
Jim Kingdon
d76eb5f484 * inflow.c: Use 0 (standard input) not scb->fd.
(terminal_ours_1): If printing warning, don't claim it happened in
	terminal_inferior.
1993-10-12 23:12:17 +00:00
Jim Kingdon
4161c620de * blockframe.c (get_prev_frame_info): Don't error() if there are no
frames; just return NULL.
1993-10-12 21:22:03 +00:00
Jim Kingdon
95171817ba * xcoffsolib.h, xcoffexec.c: Undo the part of Fred's bfd->abfd
change which involved structure elements.  It was unnecessary and
	was not consistently done.
1993-10-12 20:36:37 +00:00
Jim Kingdon
9438d64262 * stabsread.h, stabsread.c, dbxread.c (common_block*, copy_pending):
Move common block handling from dbxread.c to stabsread.c.
	Use the name from the BCOMM instead of the ECOMM.
	Allocate things on the symbol_obstack.
	* xcoffread.c (process_xcoff_symbol): Process C_BCOMM, C_ECOMM,
	and C_ECOML.  On unrecognized storage classes, go ahead and call
	define_symbol (after the complaint).

	* dbxread.c (process_one_symbol): Don't relocate 'S' symbols by
	the text offset.
1993-10-12 20:02:11 +00:00
Peter Schauer
49d607d260 * osfsolib.c (solib_create_inferior_hook): Reset stop_soon_quietly
after shared library symbol reading to get rid of warning from
	heuristic_proc_start.
1993-10-12 19:37:14 +00:00
David D. Zuhn
59c2be48f9 fix unterminated character string 1993-10-12 19:03:59 +00:00
Jim Kingdon
05238df4e2 * stabs.texinfo (Common Blocks): Minor cleanups. 1993-10-12 19:03:38 +00:00
Jim Kingdon
f8cbe5189d * stabs.texinfo: Update ld stabs in elf relocation to reflect the fact
that Sun has backed away from the linker kludge and thus the relevant
	issue is changes to the SunPRO tools, not the Solaris linker.

	* stabs.texinfo (Traditional Integer Types): Clean up description
	of octal bounds a little bit.  Document extra leading zeroes.
1993-10-12 14:59:38 +00:00
Jim Kingdon
78934ba843 * stabsread.c: Fix comment about gcc 2.3.3 stab for long long int. 1993-10-12 14:05:22 +00:00
Fred Fish
0bc1509110 Change sp64sim.h to sp64sim.mt in keep_these_too list. Add sp64.mt,
tm-sp64.h, sp64sim.mt, tm-sp64sim.h to lose_these_too list if not added
to keep_these_too list.
1993-10-12 02:48:21 +00:00
Fred Fish
3ea2c30ac7 Add sp64-tdep.c to lose_these_too if it is not added to keep_these_too. 1993-10-12 02:46:26 +00:00
Jim Kingdon
843cea0d2b * m3-nat.c, config/nm-m3.h: Add a target_ops struct and other
various things to try to get this to work.
1993-10-11 22:39:54 +00:00
Jim Kingdon
7da354f4ac * symtab.h: Fix comments re headers, sharing blockvectors, etc. 1993-10-11 19:33:57 +00:00
David D. Zuhn
cabb6f5919 update REMOTE_O for i960-vxworks to make it compile again 1993-10-11 18:49:22 +00:00
Peter Schauer
99a15c6431 * mipsread.c (parse_partial_symbols): Do not add undefined
symbols to the partial symbol table.
1993-10-11 16:25:43 +00:00
Peter Schauer
3e6b06745c * alpha-tdep.c (init_extra_frame_info): Remove kludge for gcc,
gcc has to be compatible with the native tools.
	* alpha-tdep.c (alpha_push_arguments):  Rename NUM_ARG_REGS to
	ALPHA_NUM_ARG_REGS and move its definition to tm-alpha.h.
	* config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS):  Change it to the
	way the native tools define it, update comment.
1993-10-11 09:55:41 +00:00
Jim Kingdon
c18b613acd * inflow.c: Remove unused includes of sys/param.h and sys/types.h.
* inflow.c, ser-unix.c, ser-go32.c, ser-tcp.c, serial.h,
	terminal.h, fork-child.c, main.c, utils.c: Move all the process
	group stuff back to inflow.c and terminal.h; that's a better place
	for it and fixes problems with trying to get/set the process group
	of a tty we're doing remote debugging on.
	* terminal.h: Skip the redefines and includes if HAVE_TERMIOS.
1993-10-09 00:00:56 +00:00
Fred Fish
a71c0593c6 * osfsolib.c, remote-sim.c, remote.c, solib.c, xcoffexec.c,
xcoffsolib.h:  Use 'abfd' for bfd variables instead of 'bfd'.
	Sun cc doesn't like variable names that match their typedef'd type.
1993-10-08 23:04:45 +00:00
Jim Kingdon
a14a8fad36 * inflow.c: Remove unused includes of sys/param.h, etc.
* inflow.c, ser-unix.c, ser-go32.c, ser-tcp.c, serial.h,
	terminal.h: Move all the process group stuff back to inflow.c;
	that's a better place for it and fixes problems with trying to get/set
	the process group of a tty we're doing remote debugging on.
	* terminal.h: Skip the redefine crap if HAVE_TERMIOS.
1993-10-08 22:18:27 +00:00
Jim Kingdon
443abae18c * findvar.c, value.h (symbol_read_needs_frame): New function.
* c-exp.y, m2-exp.y: Call it instead of having our own switch on
	the symbol's class.
	* valops.c (value_of_variable): Use symbol_read_needs_frame to
	decide whether we care about finding a frame.
1993-10-08 20:33:22 +00:00
Jim Kingdon
cefa23ca43 * remote.c (remote_wait): Use strtoul for parsing 'N' message.
Add code to relocate symfile_objfile->sections.
1993-10-08 16:51:14 +00:00
Peter Schauer
747a632937 * blockframe.c (get_frame_block): Do not adjust pc if the frame
function was interrupted by a signal.
1993-10-08 09:54:32 +00:00
Jim Kingdon
f1e7bafcec * config/h8300/tm-h8300.h: Don't define sr_get_debug.
* remote-sim.c: Include remote-utils.h.
	* target.h: Add comment about target_has_execution.
1993-10-08 00:37:19 +00:00
Steve Chamberlain
a38386ad86 define sr_get_debug. 1993-10-07 23:22:00 +00:00
Steve Chamberlain
3f0184acb0 * h8300-tdep.c (sim_load, sim_kill, sim_open, sim_set_args):
New functions.
	* infrun.c (normal_stop): Don't try and set the pc in the current
	frame coredump if there isn't one.
	* remote-sim.c (gdbsim_store_register): Don't
	SWAP_TARGET_AND_HOST, sim_store_register takes bytes in raw order.
	(gdbsim_wait): Set status with WSETSTOP.
	* config/h8300/tm-h8300.h (sr_get_debug): Define
1993-10-07 23:21:02 +00:00
Jim Kingdon
fd32a1ddc0 * gdb.texinfo (Signaling): Update for symbolic symbol names
and add a section explaining the difference between the GDB
	signal command and the shell kill utility.
1993-10-07 21:33:37 +00:00
Jim Kingdon
c2d751d5e5 New Mach stuff:
* config/i386/i386mach.c: Explain this is for the old (probably
	non-functional and/or obsolete) Mach stuff.
	* m3-nat.c, config/nm-m3.h,
	i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c,
	config/i386/{i386m3.mh,i386m3.mt,tm-i386m3.h,xm-i386m3.h},
	config/i386/{i386mk.mh,i386mk.mt,tm-i386mk.h,xm-i386mk.h},
	config/mips/{mipsm3.mh,mipsm3.mt,tm-mipsm3.h,xm-mipsm3.h},
	config/ns32k/{ns32km3.mh,ns32km3.mt,tm-ns32km3.h,xm-ns32km3.h}:
	New files.
1993-10-07 20:13:08 +00:00
Jim Kingdon
44a19d2c5b new for mach 1993-10-07 19:48:20 +00:00
Jim Kingdon
3e2d5304e7 new for mach3 (really native not host) 1993-10-07 19:28:38 +00:00
Jim Kingdon
2f1c7c3fd0 * blockframe.c (find_pc_partial_function): If we call
PSYMTAB_TO_SYMTAB, call target_terminal_ours_for_output first.
	This is needed now that wait_for_inferior passes in endaddr.
	* infrun.c: Move call to target_terminal_inferior from proceed
	to resume.
1993-10-07 18:40:39 +00:00
Jim Kingdon
899e041349 new for mach 1993-10-07 18:03:51 +00:00
Jim Kingdon
ce5d02049b * gdb.t17/interrupt.exp: Add xfail for Irix (currently not really
relevant because ^C doesn't get sent but failure can be reproduced
	interactively).
1993-10-07 17:04:40 +00:00