Commit Graph

3150 Commits

Author SHA1 Message Date
Jim Kingdon
62db94cb84 * config/unix-gdb.exp (gdb_exit): Move info on this vs.
lib/gdb.exp (gdb_exit) from ChangeLog to comments.
1993-08-19 23:57:21 +00:00
Jim Kingdon
e09c5e26b8 * coffread.c (process_coff_symbol): Ignore tagnames like .0fake.
* coffread.c (coff_read_enum_type): #if 0 out code which changes
	enum {FALSE, TRUE} into boolean.
1993-08-19 23:33:59 +00:00
Jim Kingdon
0e8e97217f * gdb.t06/signals.exp: Skip the whole file with xfail for delta68. 1993-08-19 23:22:12 +00:00
Jim Kingdon
522b996209 * config/m68k/delta68.m{t,h}: Use nm-delta68.h, etc. not
non-existent files nm-delta.h, etc.
	* config/m68k/tm-delta68.h: Define CANNOT_STORE_REGISTER.
	* delta68-nat.c: Add "[0]" in offsetof argument.
	* delta68-nat.c (_initialize_kernel_u_addr): Don't try to set up
	nl with initializer, just assign to it.  Check n_scnum field on
	return.
1993-08-19 23:18:03 +00:00
Jim Kingdon
d3fa810c5d * defs.h: Try to clarify comment about ADDR_BITS_REMOVE. 1993-08-18 22:23:45 +00:00
Jim Kingdon
b2ccb6a465 * printcmd.c (print_address), values.c (value_as_pointer): Don't
use ADDR_BITS_REMOVE.
1993-08-18 20:31:12 +00:00
Jim Kingdon
479fdd26ee * blockframe.c (block_innermost_frame): Uncomment.
Return NULL if passed NULL.
	* frame.h: Declare it.
	* expression.h (union exp_element): Add field block.
	* parse.c (write_exp_elt_block): New function.
	* expression.h (OP_VAR_VALUE): Now takes additional struct block *.
	* *-exp.y: Write block for OP_VAR_VALUE.
	* eval.c, expprint.c, parse.c: Deal with block for OP_VAR_VALUE.
	* valops.c, value.h (value_of_variable), callers:
	Add second argument, for block.
1993-08-18 19:33:39 +00:00
Jim Kingdon
e56ac0ba86 * main.c (gdb_readline): If we read some characters followed by EOF,
return them rather than returning NULL.
1993-08-18 17:10:55 +00:00
Jim Kingdon
202eca5ed4 * hppab-nat.c hppah-nat.c infptrace.c (child_resume): Pass in pid as
argument, instead of using inferior_pid.
1993-08-18 02:33:00 +00:00
Jim Kingdon
48be4c355a * mips-tdep.c: Remove unused #ifndef NUMERIC_REG_NAMES and add comment. 1993-08-17 22:37:25 +00:00
K. Richard Pixley
637603f9e3 * config/m88k/tm-m88k.h: Fix typo in comment.
(FP_REGNUM): define in terms of SP_REGNUM
	  rather than by absolute number.  Also clearly comment that this
	  is a convenient lie in order to decrease future confusion.
	  (ACTUAL_FP_REGNUM): new macro for FP.
	  (FRAME_CHAIN_VALID): removed.  Standard default works fine.
	* m88k-tdep.c (frame_chain_valid): redundant, so removed.
	  (NEXT_PROLOGUE_INSN): removed unused fourth arg, fixed all
	  callers.
	  (read_next_frame_reg): declare static.
	  (examine_prologue): removed unused variabel insn2, rename insn1
	  to insn, rewrote comment about finding fp, sp, etc. set frame_fp
	  based on ACTUAL_FP_REGNUM rather than FP_REGNUM which is
	  actually a scammed alias for SP_REGNUM on m88k.
1993-08-17 22:21:50 +00:00
K. Richard Pixley
2f03f9a6c6 fixed typo in comment 1993-08-17 22:11:32 +00:00
Jim Kingdon
e7bb76cc16 * stabs.texinfo (Stack Variables): Re-write. 1993-08-17 21:28:42 +00:00
Jim Kingdon
c307bb118b * main.c (cd_command): If current_directory on entry is "/", then
don't append an extra slash.
	Don't assume that /../.. means /.
1993-08-17 18:03:15 +00:00
Jim Kingdon
b80bd1e064 * 29k-share/udi/udiphcfg.h: Always include udiphunix.h not udiphdos.h. 1993-08-17 17:33:28 +00:00
Jim Kingdon
4f1afa1641 * complaints.c (complain): fflush (stdout) after output. 1993-08-17 16:49:11 +00:00
Peter Schauer
7b98a09136 * config/i386/tm-i386bsd.h (SIGTRAMP_START, SIGTRAMP_END, FRAME_CHAIN,
FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET):
	Define to make backtracing through sigtramp work.
	* config/vax/tm-vax.h (SIGTRAMP_START, SIGTRAMP_END, TARGET_UPAGES,
	FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET):  Ditto.
1993-08-17 08:49:07 +00:00
Peter Schauer
d541211d61 * blockframe.c, frame.h (sigtramp_saved_pc): New routine to fetch
the saved pc from sigcontext on the stack for BSD signal handling.
	* config/i386/tm-i386bsd.h (SIGTRAMP_START, SIGTRAMP_END, FRAME_CHAIN,
	FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET):
	Define to make backtracing through sigtramp work.
	* config/vax/tm-vax.h (SIGTRAMP_START, SIGTRAMP_END, TARGET_UPAGES,
	FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET):  Ditto.
1993-08-17 08:47:25 +00:00
Jim Kingdon
b606bd8df4 * gdb.t00/teststrategy.exp: Deal with it if cmdsize = 1 line
doesn't exist (due to optimization).
1993-08-17 05:07:15 +00:00
Jim Kingdon
c31a3b2a3b * gdb.stabs/wierd.exp: Deal with it if echo of "file" command
contains \r because the filename is long.
1993-08-17 04:21:55 +00:00
Jim Kingdon
935d305dcc * stabs.texinfo (Stabs-in-elf): Talk about getting the start
addresses of a source file.  Also revise formatting.
	Change "object module" or "object file" to "source file".
	Various: Miscellaneous cleanups.
1993-08-17 03:23:50 +00:00
Jim Kingdon
0e0b4e647c * gdb.t06/signals.exp: Revise comments regarding "'next' behaved as
'continue'" bug, and change xfail back to i*86-univel-sysv4*.
1993-08-17 02:11:23 +00:00
Jim Kingdon
1109373ad4 * stack.c (frame_info, print_frame_info): Add comment about using
the starting source line number on a line boundary if backtracing
	through sigtramp.
1993-08-16 18:57:30 +00:00
Peter Schauer
c67d08e89b * config/m68k/tm-m68k.h (SIG_PC_FP_OFFSET, SIG_SP_FP_OFFSET):
Define for correct handling of bachtraces through _sigtramp.
1993-08-16 10:13:22 +00:00
Peter Schauer
adce222501 * gdb.t00/help.exp, gdb.t02/whatis.exp, gdb.t07/watchpoint.exp,
gdb.t08/opaque.exp, gdb.t17/interrupt.exp:  Update for vax running
	Ultrix.
	* gdb.t02/whatis.exp:  Use procedure to setup xfails on long versus
	int tests.
	* gdb.t08/opaque.exp:  Use procedure to setup xfails for opaque tests.
1993-08-16 10:06:20 +00:00
Peter Schauer
dff84871e9 * blockframe.c (create_new_frame, get_prev_frame_info):
Use the function name when calling IN_SIGTRAMP.
	* config/m68k/tm-m68k.h (SIG_PC_FP_OFFSET, SIG_SP_FP_OFFSET):
	Define for correct handling of bachtraces through _sigtramp.
	* m68k-tdep.c (m68k_find_saved_regs):  Adjust saved sp for fake
	sigtramp frames.
	* mipsread.c (parse_type):  Handle corrupt TIR info with complaint
	instead of core dump.
	* mipsread.c (parse_partial_symbols):  Put static symbols into the
	mimimal symbol table, use proper mst_types for all minimal symbols.
	* stack.c (frame_info, print_frame_info):  Use the starting source
	line number on a line boundary if backtracing through sigtramp.
1993-08-16 10:03:57 +00:00
Peter Schauer
4fd0b84ea3 * blockframe.c (create_new_frame, get_prev_frame_info):
Use the function name when calling IN_SIGTRAMP.
	* config/m68k/tm-m68k.h (SIG_PC_FP_OFFSET, SIG_SP_FP_OFFSET):
	Define for correct handling of bachtraces through _sigtramp.
	* m68k-tdep.c (m68k_find_saved_regs):  Adjust saved sp for fake
	sigtramp frames.
	* mipsread.c (parse_type):  Handle corrupt TIR info with complaint
	instead of core dump.
	* mipsread.c (parse_partial_symbols):  Put static symbols into the
	mimimal symbol table, use proper mst_types for all minimal symbols.
	* stack.c (frame_info, print_frame_info):  Use the starting source
	line number on a line boundary if backtracing through sigtramp.
1993-08-16 09:58:26 +00:00
K. Richard Pixley
be58e87e08 hacking, whacking, and bug fixing. 1993-08-13 23:04:45 +00:00
K. Richard Pixley
4f4649a7e7 * Makefile.in (remote-bug.o): new rule.
(ALLDEPFILES): added remote-bug.c
1993-08-13 21:52:10 +00:00
K. Richard Pixley
e93790f05e * remote-hms.c (hms_wait): use -1 for timeout's which means block
forever rather than 99999.
1993-08-13 21:49:51 +00:00
K. Richard Pixley
057c2f4773 * ser-unix.c (get_tty_state): if a descriptor is not a tty, then
simply save encode this fact as the process group and return
	  success rather than an error.
	  (set_tty_state): if process group is -1, do not reset the
	  process group.
	  (hardwire_reachar): comment change.
1993-08-13 21:48:39 +00:00
K. Richard Pixley
0e5f1b37f6 comment change 1993-08-13 21:47:01 +00:00
K. Richard Pixley
f2f848b822 * config/m88k/tm-m88k.h: comment change to remove embedded
comment.
	  (SKIP_PROLOGUE): skip_prologue returns a value which is expected
	  to reset the pc argument.  So reset it.
1993-08-13 21:45:31 +00:00
Fred Fish
5069d77051 * Makefile.in (VERSION): Bump to 4.10.1 after release and cvs
tagging.
1993-08-13 17:17:16 +00:00
Jim Kingdon
ff1cdb40d9 * gdbserver/Makefile.in: Use GDBSERVER_LIBS and
GDBSERVER_DEPFILES.  Also remove much (but not all that could be
	removed) crud inherited from gdb Makefile.in.
	* config/i386/i386lynx.mh, config/sparc/sun4os4.mh: Define GDBSERVER_*.
	* gdbserver/README: Say it works on Sun and change configuration
	instructions slightly.
1993-08-13 02:05:47 +00:00
Fred Fish
9e191927ab * gdb.t17/interrupt.exp: Fix 'missing Continuing' case so pattern
to match does not match the passing case but still matches the
	failing case.
1993-08-12 22:27:40 +00:00
Jim Kingdon
285ae57afb * Makefile.in (distclean): Remove *.plog *.sum *.psum site.*. 1993-08-12 22:05:06 +00:00
Jim Kingdon
3a642a828f * stabs.texinfo: Point to mangling info in gcc's gpcompare.texi. 1993-08-12 20:17:33 +00:00
John Gilmore
7a7d682b98 * lib/gdb.exp (gdb_exit): Move the best version of gdb_exit
to here.
* config/{mips-gdb.exp, nind-gdb.exp, udi-gdb.exp, vx-gdb.exp}:
Remove various versions of gdb_exit.
* config/vx-gdb.exp:  Remove quit_vxgdb, change a caller to call
gdb_exit.
* config/unix-gdb.exp:  gdb_exit remains here, and should override
the generic version, since it's doing a lot of wierd stuff that
the other versions aren't.  FIXME, fold it in, or abandon this
version.
1993-08-12 02:51:51 +00:00
Jim Kingdon
ae87844d7b * remote-{monitor,bug}.c: Make bug_ops not static (forward declaration
of statics doesn't work with SunOS4 /bin/cc).
	Rename the occurrence in remote-monitor.c to monitor_bug_ops.
1993-08-11 23:12:02 +00:00
Jim Kingdon
523ef1219e * blockframe.c (find_pc_partial_function),
mips-tdep.c (find_proc_desc): Deal with "pathological" case.
1993-08-11 22:14:09 +00:00
Jim Kingdon
48c95e5b9f * gdb.t24/demangle.exp: Add tests for PR 3220. 1993-08-11 19:59:27 +00:00
Fred Fish
e024d80c74 * gdb.t07/watchpoint.exp: Clear xfail with "i*86-*-*", not just
"i386-*-*".  Works for i486 as well.
1993-08-11 00:48:54 +00:00
Stan Shebs
69f660c69c Removed many junk machine-collected "conditionals", described some
legit ones.
1993-08-11 00:02:01 +00:00
Fred Fish
5ad3ae4ad9 * gdb.t06/signals.exp: Rework code that recognizes known SVR4
bug, and expand domain of xfail to all SVR4 systems, since the
	actual problem is likely to be in generic SVR4 /proc support.
1993-08-10 22:49:01 +00:00
Jim Kingdon
283bd6dbf2 * config/unix-gdb.exp (gdb_load): Add eof to expect statement. 1993-08-10 21:09:41 +00:00
Jim Kingdon
ae039ff3ca * config/unix-gdb.exp (gdb_load): Add eof to expect statement. 1993-08-10 20:56:52 +00:00
Jim Kingdon
0f1b1bcc12 * objfiles.h (struct objfile): Clean up comments for
{obj,sym}_private to clarify what they are private to.
1993-08-10 19:57:41 +00:00
Jim Kingdon
c1cd5aecbb * gdbint.texinfo (Getting Started): Use @itemize, not @table.
* gdbint.texinfo (Top): Add name to @top line, and re-write the
	paragraph which follows.

	* gdbint.texinfo (Host): Use @code not @samp for Makefile
	variables.  Looks better and avoids overful hbox.
1993-08-10 19:05:52 +00:00
Fred Fish
869cfa9fd5 * gdb.t17/interrupt.exp: Set up xfail for *-*-sysv4*, in chain of
xfails for other systems.  Match a missing 'Continuing.' as an
	explicit fail for i*86-*-sysv4*, so it doesn't hose other tests.
1993-08-10 18:42:20 +00:00
Fred Fish
adf18b2460 * gdb.t20 {classes.exp, inherit.exp, misc.exp}, gdb.t21/cplusfuncs.exp,
gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t31/chillvars.exp:
	Only issue warning for missing executables if -all option is used.
1993-08-10 17:31:45 +00:00
Fred Fish
c0398b8bd4 * gdb.stabs/wierd.exp: Only issue warning for missing wierd.o
file if -all option is used.  It's like an unpredictable XFAIL.
1993-08-10 16:58:44 +00:00
Stan Shebs
48f075eb2a Moved the function hashname from stabsread.c to buildsym.c, since
it's a general-purpose function.
1993-08-09 23:49:18 +00:00
Jim Kingdon
59556ad0a4 * gdbcore.h: New variable gnutarget.
* core.c: Add commands to set and show it.
	* Callers to bfd_*open*: Pass gnutarget instead of NULL as target.
	* environ.c (set_in_environ): For GNUTARGET, use set_gnutarget not
	putenv.
1993-08-09 21:36:49 +00:00
Jim Kingdon
525390a20c * remote-udi.c: Make udi_ops extern rather than trying forward
declaration of a static variable.
1993-08-09 21:12:01 +00:00
David MacKenzie
a9ded3ac7f add @finalout 1993-08-09 20:23:53 +00:00
Jim Kingdon
8a99c71208 * hppab-nat.c: Define ptrace to call_ptrace and pass the 5th arg
there, rather than using an ANSI C specific macro.
1993-08-09 20:07:25 +00:00
Jim Kingdon
3241e35dd9 * gdb.t15/funcargs.exp: Add comments that hppa xfails are only
for dynamically linked binaries.
1993-08-09 19:52:37 +00:00
Jim Kingdon
a2fbd4c8e9 * 29k-share/udi/udr.c: Include fcntl.h not sys/fcntl.h. Also put
sys/types.h near the top (just on general principles).
1993-08-09 19:17:04 +00:00
Jim Kingdon
b992d16b88 * environ.c (set_in_environ): Remove G960BASE and G960BIN; they are
no longer used.
1993-08-09 17:49:27 +00:00
Jim Kingdon
0685d95ff4 * gdbcore.h: New variable gnutarget.
* core.c: Add commands to set and show it.
	* Callers to bfd_*open*: Pass gnutarget instead of NULL as target.
	* environ.c (set_in_environ): For GNUTARGET, use set_gnutarget not
	putenv.

	* symtab.c (decode_line_1): Give error on unmatched single quote.
1993-08-09 16:53:32 +00:00
Jim Kingdon
95a98b5efa * ser-unix.c (hardwire_send_break) [HAVE_SGTTY]: Use select not usleep. 1993-08-08 21:02:37 +00:00
Jim Kingdon
3da5198c07 * remote.c: Add comments about 'd', 'r', and unrecognized requests.
* inflow.c (terminal_init_inferior): Don't muck with tty state if
	gdb_has_a_terminal() is false.
1993-08-08 20:11:10 +00:00
Jim Kingdon
205c1ddc32 * gdb.t20/inherit.exp: Change message for "print tagless struct"
to state that this is a known bug in old versions of g++.
1993-08-08 19:27:10 +00:00
Fred Fish
f645e83516 * dwarfread.c (record_minimal_symbol): Remove prototype and
function.
	* dwarfread.c (add_partial_symbol):  Remove code to add minimal
	symbols and remove comment about limitations.  Experiments show
	that now that gdb handles the ELF symtab better for creating
	minimal symbols, that no additional information is added by
	examining the DWARF information, and in fact, given the
	limitations, the DWARF code was actually making things worse.
1993-08-08 17:14:06 +00:00
Jim Kingdon
6117e42f9a * gdb.t17/interrupt.exp: Add xfail for 386 bsd. Accept echoed newline
while waiting for `Continuing'.
1993-08-08 16:16:35 +00:00
Fred Fish
6c8f91a1b7 * elfread.c (elf_symtab_read): Properly sort out the bss symbols
from the data symbols and give them the correct minimal_symbol_type.
	Add file static symbols to the minimal symbol table, not just
	global symbols.  Add absolute symbols as well (like _edata, _end).
	Redo stabs-in-elf special symbol handling now that file static
	symbols are entered into the into the minimal symbol table.
1993-08-08 00:30:07 +00:00
Fred Fish
379dd96582 * elfread.c (elf_symtab_read): Properly sort out the bss symbols
from the data symbols and give them the correct minimal_symbol_type.
	Add file static symbols to the minimal symbol table, not just
	global symbols.  Ignore symbols that are section names and file names.
	* dwarfread.c (add_partial_symbol):  Add comment about limitations
	of DWARF symbols for distinquishing data from bss when adding
	minimal symbols.  Add file local symbols to minimal symbols.
1993-08-07 20:27:19 +00:00
Fred Fish
d8ab5dbf82 * gdb.t10/nodebug.exp: Expect to find local/global minimal symbols
in text, data, and bss.
	* gdb.t10/nodebug.c:  Add local and global test variables for
	initialized and uninitialized data.
1993-08-07 14:47:55 +00:00
Jim Kingdon
e917bef39f * ser-go32.c: Define job_control variable. 1993-08-06 07:25:02 +00:00
Jim Kingdon
80b4aa1c07 * ser-go32.c: Define job_control variable. 1993-08-06 07:11:16 +00:00
David D. Zuhn
b39a398da5 handle z8k-coff 1993-08-05 22:57:13 +00:00
Jim Kingdon
038de4933e * 29k-share/udi/udip2soc.c: Include sys/types.h before sys/file.h. 1993-08-05 19:06:24 +00:00
Jim Kingdon
a824e46eac * config/i386/tm-i386bsd.h (NUM_REGS): There are only 10, not 11. 1993-08-05 17:53:42 +00:00
Jim Kingdon
f4dfe788b8 * config/unix-gdb.exp (gdb_exit): Add "wait". 1993-08-05 17:21:51 +00:00
Jim Kingdon
d625b3987a * inflow.c: Put all uses of F_GETFL and F_SETFL in #ifdef F_GETFL. 1993-08-05 16:08:22 +00:00
Jim Kingdon
8d9ec7b631 * 29k-share/udi/udip2soc.c: Include fcntl.h not sys/fcntl.h. 1993-08-05 14:28:32 +00:00
Fred Fish
a469d3b63b * gdb.t10/Makefile.in (nodebug.o): Don't use "-c -o", many
compilers don't grok it.
	* gdb.t16/gdbme.c (ctable1):  Initialize unsigned char array
	with small octal ints rather than character constants, which
	are signed and might not fit if first promoted to int.
1993-08-05 01:36:43 +00:00
Fred Fish
a88797b5ea * inflow.c (pass_signal): Signal handlers take one int arg;
supply an unused one to make it type compatible as an arg to
	signal().
1993-08-05 01:33:45 +00:00
Ian Lance Taylor
05e9e18869 * config/mips/tm-mips.h: Include bfd.h before coff/sym.h. 1993-08-04 01:35:35 +00:00
Fred Fish
ad6feb0847 * gdb.t09/Makefile.in (clean): Remove corefile. 1993-08-04 01:29:26 +00:00
Fred Fish
8e92ade7e8 * Makefile.in (ALLCONFIG): Add config/i386/i386nw.mt,
config/m68k/delta68.mh, config/m68k/delta68.mt,
	config/m68k/dpx2.mh, config/m68k/dpx2.mt, config/mips/riscos.mh,
	config/mips/news-mips.mh.
	* Makefile.in (ALLPARAM):  Add config/i386/nm-symmetry.h,
	config/i386/tm-i386nw.h, config/m68k/nm-delta68.h,
	config/m68k/tm-delta68.h, config/m68k/xm-delta68.h,
	config/m68k/nm-dpx2.h, config/m68k/tm-dpx2.h,
	config/m68k/xm-dpx2.h, config/mips/xm-makeva.h.
	* Makefile.in (ALLDEPFILES):  Add dpx2-nat.c.
1993-08-04 01:17:30 +00:00
Ian Lance Taylor
e906e7fa5f * mipsread.c: Updated for BFD ECOFF changes. Now gets the
swapping routines and external structure sizes via the
	ecoff_backend information.  No longer includes coff/mips.h.
1993-08-03 20:27:06 +00:00
Fred Fish
511e0322b9 * Makefile.in (SFILES): Add thread.c 1993-08-03 18:02:19 +00:00
David Edelsohn
6eb0b28399 * remote-sp64sim.c (simif_create_inferior): Add FIXME regarding
sim_set_args return code.
1993-08-03 17:25:23 +00:00
Stu Grossman
b367204f7f Keep server.h. 1993-08-03 08:51:51 +00:00
K. Richard Pixley
90fcdfbfcf Bumped version to 4.9.4. 1993-08-03 00:59:45 +00:00
K. Richard Pixley
203a8d5488 Added remote-bug.c. 1993-08-03 00:55:55 +00:00
K. Richard Pixley
5905161c08 * remote-monitor.c: updated copyright.
(bug_ops, monitor_desc): now static.
	  (monitor_desc): in several places, check and/or set to NULL.

	* remote-hms.c (hms_files_info): Add the appropriate items where
	  missing in the printf call.

	* remote-bug.c: new file for m88k bug support.

	* config/m88k/m88k.mt (TDEPFILES): added remote-bug.o.
1993-08-02 23:54:27 +00:00
Fred Fish
b5ed6e32c2 Remove '.Sanitize' from explicit list of Things-to-lose. It is now implicitly
added to the list by Sanitize, unless Sanitize knows it needs to keep it.
1993-08-02 23:29:32 +00:00
Steve Chamberlain
a305925112 * h8300-tdep.c: Use new variable h8300hmode. 1993-08-02 22:54:01 +00:00
Steve Chamberlain
969699760a Use variable h8300hmode. 1993-08-02 22:52:34 +00:00
Jim Kingdon
802d630846 * valops.c (typecmp): If we are passing a non-reference to a function
which takes a reference, pass the address.
	(value_arg_coerce): Don't use COERCE_ENUM; we don't want to dereference
	references here.
1993-08-02 22:41:50 +00:00
Jim Kingdon
3082244d35 * thread.c (thread_switch): Define as static.
(add_thread): Cast return value from xmalloc.
1993-08-02 22:13:32 +00:00
Jim Kingdon
ac88287fa2 * gdbtypes.c (fill_in_vptr_fieldno): Call check_stub_type.
* gdbtypes.{c,h}: Improve comments on vptr_fieldno.
1993-08-02 19:21:04 +00:00
Fred Fish
c178776de4 (I could have sworn I checked this change in a couple days ago, but it
showed up in a cvs diff, so here it is again...)
	* README:  Elaborate on gdb C++ support and cfront support.
1993-08-02 19:03:15 +00:00
Stu Grossman
da0baf42e1 Mon Aug 2 11:30:57 1993 Stu Grossman (grossman at cygnus.com)
* i386lynx-nat.c, thread.c, thread.h:  Update copyrights.
1993-08-02 18:33:21 +00:00
Jim Kingdon
a92499baaf * gdb.t06/signals.exp: Change xfail from "*-*-*" to be only for
NO_SINGLE_STEP machines.  Fix comment about its cause.  Uncomment
	the `continue' test right after it (also xfailed if NO_SINGLE_STEP).
1993-08-02 17:38:08 +00:00
Jim Kingdon
afa2499d88 * Makefile.in (ALLDEPFILES): Add i386lynx-nat.c. 1993-08-02 17:22:13 +00:00
Jim Kingdon
38867a454f Fix sanitization 1993-08-02 16:44:11 +00:00
Stu Grossman
0bea8fb147 Add i386lynx-nat.c. 1993-08-02 16:21:30 +00:00
Stu Grossman
6a21c756fa Add thread.c and thread.h. 1993-08-02 15:58:36 +00:00
Stu Grossman
db691e4b55 Mon Aug 2 08:42:50 1993 Stu Grossman (grossman at cygnus.com)
* gdbserver/remote-inflow.c (create_inferior):  Fix comments, and
	error msg.  Setup seperate process group for child.
	* (write_inferior_memory):  Sleep for 1 second and retry on ptrace
	failure.
1993-08-02 15:48:42 +00:00
Stu Grossman
884914bf03 Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)
* config/i386/i386lynx.mh (NATDEPFILES):  Drop coredep (for now).
	* config/i386/nm-i386bsd.h:  Protect from multiple inclusion.
	* config/i386/nm-i386lynx.h:  Lotsa new host porting stuff.
	* config/i386/tm-i386lynx.h:  Define SAVED_PC_AFTER_CALL and
	target_pid_to_str.
1993-08-02 15:41:49 +00:00
Stu Grossman
25286543da Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)
* Makefile.in (CLIBS):  Reorder to make Lynx ld happy.
	* (HFILES):  New file thread.h.
	* (OBS):  New file thread.c.
	* configure.in:  Host config for Lynx/386.
	* fork-child.c (fork_inferior):  Call init_thread_list().
	* infrun.c (resume):  Add pid to invocation of target_resume().
	* (wait_for_inferior): Pay attention to pid from target_wait().
	Multi-threading code now uses this to determine what to do.
	* inftarg.c (child_wait):  Conditionalize based on CHILD_WAIT macro.
	Use target_pid_to_str() macro throughout when printing pid.
	* inferior.h (child_resume):  Add pid to prototype.
	* hppab-nat.c hppah-nat.c infptrace.c (child_resume):  Pass in pid as
	argument, instead of using inferior_pid.
	* procfs.c (procfs_resume):  Pass in pid as argument.  Ignored for
	now.  Use target_pid_to_str() macro throughout for printing process id.
	* remote-adapt.c (adapt_resume):  Pass in pid as argument.
	* remote-eb.c (eb_resume):  Pass in pid as argument.
	* remote-es.c (es1800_resume):  Pass in pid as argument.
	* remote-hms.c (hms_resume):  Pass in pid as argument.
	* remote-mips.c (mips_resume):  Pass in pid as argument.
	* remote-mm.c (mm_resume):  Pass in pid as argument.
	* remote-monitor.c (monitor_resume):  Pass in pid as argument.
	* remote-nindy.c (nindy_resume):  Pass in pid as argument.
	* remote-sa.sparc.c (remote_resume):  Pass in pid as argument.
	* remote-sim.c (rem_resume):  Pass in pid as argument.
	* remote-sp64sim.c (simif_resume):  Pass in pid as argument.
	* remote-st.c (st2000_resume):  Pass in pid as argument.
	* remote-udi.c (udi_resume):  Pass in pid as argument.
	* remote-vx.c (vx_resume):  Pass in pid as argument.
	* remote-z8k.c (rem_resume):  Pass in pid as argument.
	* remote.c (remote_resume):  Pass in pid as argument.
	* solib.c (solid_create_inferior_hook):  Pass inferior_pid to
	target_resume().
	* target.c (normal_pid_to_str):  New routine to print out process
	ID normally.
	* target.h (struct target_ops):  Add pid to prototype at
	to_resume().  (target_resume):  Add pid argument.
	* (target_pid_to_str):  Default definition for normal type pids.
	* thread.c, thread.c:  New modules for multi thread/process control.
1993-08-02 06:25:36 +00:00
John Gilmore
804d23f31d Say that bug-gdb is also the place to send requests for help with GDB. 1993-08-01 20:03:51 +00:00
Fred Fish
84b5df3255 * Makefile.in (make-proto-gdb-1): Use -f opt on rm of Makefile. 1993-08-01 19:31:56 +00:00
Fred Fish
d144532707 * h8500-tdep.c: Add parens around a few macro args. 1993-08-01 16:43:32 +00:00
Jim Kingdon
77eb2e8f11 * TODO: Remove items about unix-to-unix/rapp debugging (now we
have gdbserver), moving xm files to subdirectory, ptype yylval,
	and file-local symbols.
1993-07-31 03:28:27 +00:00
Jim Kingdon
c4978d689e * gdb.t17/interrupt.exp: Add xfail for hppa. 1993-07-31 00:56:26 +00:00
Jim Kingdon
6ea34847c6 * stabs.texinfo (Procedures): Improve stuff on nested functions. 1993-07-30 23:31:14 +00:00
Jim Kingdon
eec03ebb50 * gdbtypes.h: Improve comments about C++ methods. 1993-07-30 23:06:37 +00:00
Fred Fish
bcca9a08dc * c-exp.y: Add missing 5th arg for one call to lookup_symbol, cast
NULL in all other calls to correct pointer types.
1993-07-30 21:20:56 +00:00
Jim Kingdon
6cfec92912 From Jeffrey Law:
* tm-hppa.h (TARGET_WRITE_PC): Define.
	* hppa-tdep.c (hppa_fix_call_dummy): If in a syscall,
	then return the address of the dummy itself rather than
	the address of $$dyncall.
	(target_write_pc): New function to store a new PC.
1993-07-30 20:49:52 +00:00
Peter Schauer
a4fbb03e2d Fix typo in previous ChangeLog entry. 1993-07-30 20:12:28 +00:00
Peter Schauer
69aa789bb2 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t08/opaque.exp,
gdb.t09/corefile.exp:  Cleanup xfails for fixed mips bugs.
	* gdb.t13/bitfields.exp, gdbme.c:  Examine a variable in the inferior
	to determine signed-ness of bitfields and use the result to setup
	the xfail.
	* gdb.t13/gdbme.c:  Add comment to the two indirect call0a lines.
	* gdb.t13/funcargs.exp:  Use it to step until the second indirect call
	line is reached if necessary.
1993-07-30 20:04:34 +00:00
Peter Schauer
f5a197a256 * breakpoint.c (breakpoint_re_set_one): Always reparse breakpoint
conditions, they might contain symbol table references.
	* mipsread.c (parse_symbol):  Handle opaque struct definitions and
	type naming for stTypedef symbols.
1993-07-30 20:02:45 +00:00
Jim Kingdon
96c68efaf7 * c-exp.y (yylex): Detect C++ nested types. 1993-07-30 19:50:29 +00:00
David Edelsohn
38cbb25c2b * sp64-tdep.c (sparc64_frame_chain, sparc64_frame_saved_pc): Deleted.
(dump_ccreg, sparc_print_register_hook): New fns.
* remote-sim.h: New file.
* remote-sp64sim.h (sim_*): External fns.  (simif_*): Internal fns.

* config/sparc/sp64.mt: New file.
* config/sparc/tm-sp64.h (FRAME_CHAIN, FRAME_SAVED_PC): Deleted.
(PRINT_REGISTER_HOOK): Call new fn sparc_print_register_hook.
1993-07-30 19:12:33 +00:00
David Edelsohn
b562a1861c remote-sim.h: New file.
remote-sp64sim.h (sim_*): External fns.  (simif_*): Internal fns.
sp64-tdep.c (sparc64_frame_chain, sparc64_frame_saved_pc): Deleted.
(dump_ccreg, sparc_print_register_hook): New fns.
1993-07-30 18:57:41 +00:00
David Edelsohn
9be4f7b466 New file remote-sim.h. 1993-07-30 18:50:42 +00:00
David Edelsohn
3b22d69a5f sp64.mt: New file.
tm-sp64.h (FRAME_CHAIN, FRAME_SAVED_PC): Deleted.
(PRINT_REGISTER_HOOK): Call new fn sparc_print_register_hook.
1993-07-30 18:40:05 +00:00
Fred Fish
d50261e598 Add ptx.mh to Things-to-keep list. 1993-07-30 17:18:23 +00:00
Fred Fish
6879f0db79 * Makefile.in (ALLCONFIG): Add config/i386/ptx.mh 1993-07-30 17:16:48 +00:00
Fred Fish
1a94dd0ce2 Add dfe and include to Things-to-lose list. 1993-07-30 17:11:51 +00:00
Jim Kingdon
d3862cae59 From J. Law:
* infcmd.c (read_pc): Remove PA specific code.
	* tm-hppa.h (TARGET_READ_PC): Define.
	* hppa-tdep.c (target_read_pc): New function.
1993-07-30 17:01:26 +00:00
Fred Fish
775d4a4096 Add .Sanitize to Things-to-lose list. 1993-07-30 16:46:19 +00:00
Jim Kingdon
247145e6f0 * paread.c (pa_symtab_read): Put file-local symbols in minimal symbols.
* hppa-tdep.c (frame_chain_valid): Check that our function has the
	same address as _start, not that it must be the same symbol.
1993-07-30 15:52:26 +00:00
Jim Kingdon
ca33fca1f9 * symtab.c (gdb_mangle_name): Deal with it if type lacks a name. 1993-07-30 15:31:26 +00:00
Fred Fish
ebb962cda1 * NEWS: Add note that DEC alpha support is host only, not native. 1993-07-30 14:51:17 +00:00
Fred Fish
598db9ee39 * README: Emphasize that C++ support works best with GNU C++ and
stabs debugging format.
	* delta68-nat.c:  Add missing FSF copyright.
1993-07-30 14:42:31 +00:00
Jim Kingdon
3cde1ffa4b * paread.c (pa_symtab_read): Put file-local symbols in minimal symbols. 1993-07-30 14:17:41 +00:00
Jim Kingdon
f1a67de8e2 * paread.c (pa_symtab_read): Put file-local symbols in minimal symbols. 1993-07-30 14:14:02 +00:00
Fred Fish
a674371a3c Add remote-inflow-sparc.c and server.h to Things-to-lose list. 1993-07-30 07:39:05 +00:00
Fred Fish
40055e582d Add a4rc.sed, config, cyglogo.eps, and cygref.tex to Things-to-lose list. 1993-07-30 07:36:56 +00:00
Fred Fish
6212c366b5 Add monitor.mt and tm-monitor.h to Things-to-keep list. 1993-07-30 07:34:12 +00:00
Fred Fish
5ab0b84dbb Add delta68.mh, delta68.mt, nm-delta68.h, tm-delta68.h, xm-delta68.h to
Things-to-keep list.
1993-07-30 07:25:31 +00:00
Fred Fish
68f49dae33 * Makefile.in (ALLDEPFILES): Add delta68-nat.c
* Makefile.in (delta68-nat.o):  Add dependency.
1993-07-30 07:23:29 +00:00
Fred Fish
be0ed5bbb4 Add delta68-nat.c to Things-to-keep list. 1993-07-30 07:20:31 +00:00
Jim Kingdon
5d38a0a818 * value.h (COERCE_ENUM): Use COERCE_REF to coerce refs; value_ind
was adequate in gdb 3.5 but not now.

	* valops.c (typecmp): An array in t2 matches a pointer in t1.

	* valops.c (typecmp): When comparing type1& to type2, compare
	type1 and type2 as leniently as if we were comparing type1 to
	type2.
1993-07-30 05:34:24 +00:00
Jim Kingdon
1410f5f13b * cp-valprint.c (cplus_print_value): Don't dump core if the
baseclass doesn't have a name.
	* values.c (vb_match): New function, which finds the virtual
	base class pointer even if the types are nameless.
	(baseclass_{addr,offset}): Use it.
1993-07-30 01:42:09 +00:00
Jim Kingdon
84123aa604 * gdb.stabs/wierd.exp: New test, for nameless baseclasses. 1993-07-30 01:37:49 +00:00
Roland Pesch
f21c536221 * remote.texi: (MIPS Remote) make docn for set/show timeout,
retransmit-timeout follow same conventions as for other set/show params
1993-07-29 22:11:55 +00:00
Fred Fish
3a91417c9c Add alpha directory. 1993-07-29 21:53:15 +00:00
Fred Fish
f4f650be86 Fix alpha-osf.mh -> alpha-osf1.mh 1993-07-29 21:52:51 +00:00
Jim Kingdon
63757ecd89 * hppa-tdep.c: Make "maintenance print unwind" command from old
"unwind" command.
1993-07-29 21:42:31 +00:00
Jim Kingdon
54a11a1df0 * remote-udi.c: Remove udi_timer, call to siginterrupt, and associated
obsolete junk which apparently had been copied from the
	pre-serial.h remote.c, but which is no longer used.
1993-07-29 20:23:09 +00:00
Fred Fish
9b311b223d * Makefile.in (NONSRC): Need 29k-share/README, not
29k-share/udi/README.
1993-07-29 20:02:21 +00:00
Jim Kingdon
93af329a00 * paread.c (pa_symfile_init): If error reading string table, don't
use errno in cases where it hasn't been set.
1993-07-29 19:19:30 +00:00
Jim Kingdon
d4c22c5233 * ser-unix.c (gdb_setpgid): Pass our pid, not 0, to setpgid. 1993-07-29 19:02:08 +00:00
Jim Kingdon
4432b9f9ff * hppa-tdep.c: Remove all uses of use_unwind and `set use_unwind'
command.  Now we use unwind info by default if we can find it.
1993-07-29 18:41:26 +00:00
Fred Fish
e661686291 Add remote.texi, remove gdbinv-s.texi. 1993-07-29 18:30:06 +00:00
Jim Kingdon
3238fd0ae7 * gdbint.texinfo: Update statement about `some ancient Unix
systems, like Ultrix 4.0' to Ultrix 4.2.
1993-07-29 18:21:10 +00:00
Jim Kingdon
60a6003252 * remote-monitor.c (_initialize_monitor): Comment out use of
connect_command, since connect_command itself is commented out.

	* remote-monitor.c (generic_open): Parse arguments the same way
	as remote.c.
1993-07-29 18:11:33 +00:00
Jim Kingdon
6e35b037df * hppa-tdep.c (pc_in_linker_stub): Fix unclosed comments. 1993-07-29 17:14:38 +00:00
Roland Pesch
4af6d50262 * h8-cfg.texi, all-cfg.texi: new flag GDBSERVER
* Makefile.in: depend on remote.texi rather than gdbinv-s.texi
* remote.texi: (Server) New node on gdbserver.  (Remote Serial,
ST2000 Remote, MIPS Remote): mention `host:port' syntax for TCP.
* remote.texi: new name for former gdbinv-s.texi
* gdb.texinfo: use remote.texi rather than gdbinv-s.texi
1993-07-29 00:53:58 +00:00
Jim Kingdon
b88edd756e * config/mips/xm-mips.h: Define HAVE_TERMIOS. 1993-07-28 23:33:57 +00:00
Jim Kingdon
c4ed7353fc * dbxread.c (record_minimal_symbol): Don't put gcc_compiled or
__gnu_compiled* symbols into the minimal symbols.
1993-07-28 18:50:11 +00:00
Ian Lance Taylor
e0953e07a9 * gdbinv-s.texi: Documented timeout and retransmit-timeout
variables for MIPS remote debugging protocol.
1993-07-28 15:29:26 +00:00
Ian Lance Taylor
0907dc0932 * remote-mips.c (_initialize_remote_mips): Added "timeout" and
"retransmit-timeout" variables to set mips_receive_wait and
	mips_retransmit_wait, respectively.
1993-07-28 15:28:53 +00:00
Peter Schauer
ffff16b39c * symmisc.c (dump_msymbols): Handle new mst_file_* types. 1993-07-28 11:00:53 +00:00
Jim Kingdon
8805c1ee2c * serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
* nindy-share/*, remote-nindy.c: Extensive hacking to make it
	conform to GDB conventions like using memcpy not bcopy, serial.h,
	etc.  This is to make it host on Solaris, AIX, etc.
	* Makefile.in: Reflect removed nindy-share files.
	* config/i960/nindy960.mt (TDEPFILES): Remove ttybreak.o.
1993-07-28 07:51:01 +00:00
Jim Kingdon
704deef2c0 * serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
* nindy-share/*, remote-nindy.c: Extensive hacking to make it
	conform to GDB conventions like using memcpy not bcopy, serial.h,
	etc.  This is to make it host on Solaris, AIX, etc.
	* Makefile.in: Reflect removed nindy-share files.
1993-07-28 06:45:35 +00:00
Jim Kingdon
157ea89d77 * remote-udi.c: Remove old comment about download not implemented. 1993-07-28 02:43:27 +00:00
Jim Kingdon
efdd6b6454 * stack.c (print_frame_info): Revise comment about `pathological'
case (there was a wrong FIXME about text labels; also asm() can
	trigger this as well as versions of ar which truncate .o names).
1993-07-28 01:11:32 +00:00
Jim Kingdon
56ad756a85 * buildsym.c (start_subfile): If a .c file includes a .C file, set
the language of both of them to C++.
1993-07-28 00:22:08 +00:00
Jim Kingdon
7706616f20 * config/sparc/xm-sun4os4.h: Define MEM_FNS_DECLARED and include
<memory.h>.
	Include <malloc.h> rather than declaring malloc functions ourself.

	* ser-unix.c (set_tty_state): Don't ignore errors setting process
	group.
	* inflow.c (terminal_inferior): If attach_flag set, ignore errors
	from set_tty_state.
1993-07-27 22:37:51 +00:00
Peter Schauer
0eb22669dc * breakpoint.c (breakpoint_1): Walk the breakpoint chain to decide if
we have breakpoints or watchpoints as we might have to ignore internal
	breakpoints.

	Fix gdb core dumps after `file newfile' commands.
	* symtab.h, symfile.c (clear_symtab_users):  New routine which
	unconditionally clears symtab users. clear_symtab_users_once
	commented out as it was a noop anyway.
	* objfiles.c (free_objfile):  Don't call clear_symtab_users_once.
	* objfiles.c (free_all_objfiles), symfile.c (new_symfile_objfile),
	xcoffexec.c (exec_close):  Call clear_symtab_users if necessary.
	* symfile.c (syms_from_objfile):  Install cleanups for errors during
	symbol reading.
	* coffread.c, dbxread.c, mipsread.c, xcoffread.c (*_symfile_read):
	Lint cleanup code, call do_cleanups explicitly.
	* symfile.c (symbol_file_add):  Call new_symfile_objfile and
	reinit_frame_cache _after_ the new symbols are read in.
1993-07-27 19:40:57 +00:00
Jim Kingdon
3ef0fc8c58 * dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
N_GSYM functions.
1993-07-27 19:01:11 +00:00
Jim Kingdon
38bbfd3795 * fork-child.c (fork_inferior): Only quote exec file if needed.
* mipsread.c (parse_symbol): Remove 21 Jul 93 change with
	stTypedef inside an stBlock.
1993-07-27 17:43:09 +00:00
Peter Schauer
b31ca3dece * mipsread.c (parse_type): Do not set tag name for compiler
generated fake tag names.
1993-07-27 08:59:44 +00:00
K. Richard Pixley
333355f33f add exec.o to m88k TDEPFILES. 1993-07-27 00:36:08 +00:00
Jim Kingdon
b8ec9a798f * hppa-tdep.c: Remove all uses of use_unwind and `set use_unwind'
command.  Now we use unwind info by default if we can find it.

	* config/sparc: Move VARIABLES_INSIDE_BLOCK and SUN_FIXED_LBRAC_BUG
	to tm-sparc.h so they are shared between Solaris and SunOS4.
	* dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
	N_GSYM functions.
1993-07-26 22:16:09 +00:00
Jim Kingdon
41c86b695a * config/pa/tm-hppa.h (REGISTER_NAMES): Use "fr" rather than "fp"
for floating point registers.
1993-07-26 20:41:50 +00:00
Jim Kingdon
03ffea6377 * stabs.texinfo (Negative Type Numbers): FORTRAN LOGICAL fix. 1993-07-26 20:36:43 +00:00
Jim Kingdon
1c8961dd35 * mipsread.c (parse_symbol): Put stStaticProc symbols in minimal
symbols as mst_file_text.
1993-07-26 20:33:35 +00:00
Jim Kingdon
01c4b03990 * stabs.texinfo (Negative Type Numbers): FORTRAN LOGICAL fix. 1993-07-26 20:14:41 +00:00
Jim Kingdon
230a3ab0d4 * stabsread.c (rs6000_builtin_type): Make logical types be
TYPE_CODE_BOOL.
1993-07-26 20:04:02 +00:00
Jim Kingdon
08ecd8f3d8 * hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory. 1993-07-26 19:19:39 +00:00
Jim Kingdon
91ab5674f8 * stabsread.c (rs6000_builtin_type): Make `logical' be TYPE_CODE_BOOL. 1993-07-26 18:23:59 +00:00
Jim Kingdon
0e84d6ec2d * stabs.texinfo (Negative Type Numbers): FORTRAN LOGICAL fix. 1993-07-26 18:14:20 +00:00
Jim Kingdon
d889f6b7c7 * breakpoint.{c,h} (struct breakpoint): Replace symtab field with
source_file field.
1993-07-26 05:26:55 +00:00
Brendan Kehoe
c3f6638e3e undo previous change 1993-07-24 02:47:55 +00:00
Brendan Kehoe
4015bfb977 * ch-exp.y (yycheck, yydefred, yydgoto, yygindex, yylen, yylhs,
yyrindex, yysccsid, yysindex, yyss, yyssp, yytable, yyvs, yyvss):
        Also define these to chill_{name}, for 386BSD's yacc.
        * m2-exp.y: Likewise.
1993-07-23 22:37:01 +00:00
Jim Kingdon
f47e56c99f * exec.c, corelow.c (target_ops struct): Don't allow
{insert,remove}_breakpoints to be defaulted to
	memory_{insert_remove}_breakpoint.
1993-07-23 18:18:41 +00:00
Jim Kingdon
9aa3aa8c75 * demangle.c: Make it so `help set dem' tells you how to get the
list of demangling styles.

	* Makefile.in: Use REMOTE_O macro not remote.o.
1993-07-23 17:25:20 +00:00
Jim Kingdon
f261333bd3 * Makefile.in: Use REMOTE_O macro not remote.o.
* config/i960/{nindy960,vxworks960}: Don't use remote.o.
1993-07-22 22:47:34 +00:00
Ian Lance Taylor
073c6b2b61 * coredep.c: If NEED_SYS_CORE_H defined, include <sys/core.h>
(can't include it in nm-*.h file because it causes conflicts with
	a.out symbol definitions).
	* hp300ux-nat.c (fetch_core_registers): Commented out; obsolete.
	* config/m68k/hp300hpux.mh (NATDEPFILES): Added coredep.o and
	corelow.o.
	* config/m68k/nm-hp300hpux.h (NEED_SYS_CORE_H): Defined.
	(REGISTER_U_ADDR): Defined.
	* config/m68k/xm-hp300hpux.h (HAVE_TERMIOS): Define instead of
	HAVE_TERMIO.
	* config/pa/xm-hppah.h: Likewise.
1993-07-22 19:49:44 +00:00
Jim Kingdon
e60f6bb848 * hppa{b,h}-nat.c: Warning, not error, if can't access registers. 1993-07-22 16:49:42 +00:00
Jim Kingdon
70c7ec2eda * mipsread.c (parse_symbol): when stTypedef and friends occur within
an stBlock, skip over the fields of the inner one.

	* mips-tdep.c (init_extra_frame_info): If in lenient prologue, call
	heuristic_proc_desc rather than just assuming registers not saved.
1993-07-22 05:00:05 +00:00
Jim Kingdon
002c6d1777 * gdb.t00/teststrategy.exp: Remove extra quote. 1993-07-22 04:24:28 +00:00
Jim Kingdon
6665d54ceb * gdb.t07/watchpoint.exp: Change xfail for calling function with
watchpoint enabled to "*-*-*".
1993-07-22 01:55:26 +00:00
Jim Kingdon
cb6afa30e7 * gdb.t15/{mips_pro.{c,exp},Makefile.in}: New test. 1993-07-22 01:28:38 +00:00
Jim Kingdon
51b4195fb5 * Makefile.in (regex.o): Add dependency. 1993-07-21 22:48:39 +00:00
Jim Kingdon
72943ad06a * hppa{b,h}-nat.c: Warning, not error, if can't access registers. 1993-07-21 19:57:36 +00:00
Jim Kingdon
22b4b22308 * config/pa/hppa{b,h}.h: Define ATTACH_DETACH. 1993-07-21 18:39:30 +00:00
Peter Schauer
94eebcc572 * config/mips/xm-makeva.h: New file implements va_list alignment
restrictions for mips hosts.
1993-07-21 10:16:33 +00:00
Peter Schauer
1a2a932d4f * config/mips/xm-makeva.h: New file implements va_list alignment
restrictions for mips hosts.
	* config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
	Use it.
1993-07-21 10:15:21 +00:00
Peter Schauer
66fe741646 * config/mips/xm-makeva.h: New file implements va_list alignment
restrictions for mips hosts.
	* config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
	Use it.
	* mips-tdep.c (init_extra_frame_info):  Do not check for
	mips_in_lenient_prologue if it is a dummy frame.
1993-07-21 10:13:30 +00:00
Peter Schauer
579f025837 * mipsread.c (fixup_sigtramp): Initialize pdr.adr, it is used by
mips_in_lenient_prologue.
1993-07-21 07:13:13 +00:00
Jim Kingdon
b9b9f55a52 * Makefile.in (refcard.dvi): Use srcdir where necessary. 1993-07-20 23:37:05 +00:00
Jim Kingdon
23d3557255 * mips-tdep.c (heuristic_proc_start): First time we print the
warning, elaborate.
	(_initialize_mips_tdep): Improve docstring for `set heur'.
1993-07-20 22:36:13 +00:00
Jim Kingdon
726d33a436 * config/rs6000/tm-rs6000.h: Remove call to insert_step_breakpoint. 1993-07-20 21:24:20 +00:00
Jim Kingdon
f29b5686e4 * symtab.c (find_line_symtab): New function, to deal with multiple
symtabs with the same name.
	(find_line_pc{,_range}): Use it.
	(find_pc_symtab): Add comment about overlapping symtabs.
1993-07-20 21:15:45 +00:00
Jim Kingdon
d39d83c1be Reflect symmetry changes 1993-07-20 18:12:53 +00:00
Peter Schauer
9d77e877fe * gdb.stabs/configure.in: If configured -with-gnu-as for mips-*-*
targets use aout.mt instead of ecoff.mt as gas understands
	standard aout format.
1993-07-20 07:04:26 +00:00
Fred Fish
db85f5231f * Makefile.in (SFILES): Add nlmread.c.
* Makefile.in (OBS):  Add nlmread.o.
	* Makefile.in (nlmread.o):  Add new target.
	* configure.in (i[34]86-*-netware):  New configuration.
	* nlmread.c, config/i386/{i386nw.mt, tm-i386nw.h}:  New files
	for NLM/NetWare support.
1993-07-20 04:53:03 +00:00
Jim Kingdon
62d4a6865e * lib/gdb.exp (runto): Don't insist that function we are running to
was compiled with -g.

	* gdb.t10/{nodebug.{c,exp},Makefile.in}: New test.
1993-07-20 02:57:39 +00:00
Jim Kingdon
164207cae3 * symtab.h (enum minimal_symbol_type): Add mst_file_*.
* partial-stab.h [DBXREAD_ONLY]: Record statics in miminal symbols.
	* dbxread.c (record_minimal_symbol): Deal with statics.
	* minsyms.c (lookup_minimal_symbol): Prefer externals to statics.
1993-07-20 02:50:15 +00:00
Jim Kingdon
675d65db00 * gdb.t17/interrupt.exp: Before sending ^C, give the inferior time
to get back into the read system call.
	Accept leading newline in case where we woke it up.
1993-07-20 01:15:20 +00:00
Jim Kingdon
3d7d298018 * config/i386/xm-i386sco.h: Define HAVE_TERMIOS. 1993-07-20 00:31:15 +00:00
Jim Kingdon
88bc5cafd0 * printcmd.c, config/pa/xm-pa.h, config/alpha/xm-alpha.h: Make it so
arg_bytes field of makeva_list is always aligned.
	* config/pa/xm-pa.h: Make arglist_address a char *.
1993-07-19 23:31:09 +00:00
Jim Kingdon
1cd080b520 * printcmd.c, config/pa/xm-pa.h, config/alpha/xm-alpha.h: Make it so
arg_bytes field of makeva_list is always aligned.
	* config/pa/xm-pa.h: Make arglist_address a char *.
1993-07-19 23:20:55 +00:00
Roland Pesch
da374d8043 Repair bugs in conditionals, spotted by Zoo during "latest" build. 1993-07-19 19:04:24 +00:00
Jim Kingdon
dc34b11d9d * ser-unix.c: Don't try to use job control with termio. 1993-07-19 18:51:00 +00:00
Jim Kingdon
28403b8ee7 * hppa-tdep.c (pc_in_linker_stub): New function.
(find_proc_framesize): Return 0 for linker stubs.
	(rp_saved): Tell the caller where rp is saved.
	(frame_chain_valid): Return 1 for linker stubs.
	(frame_saved_pc): Use return value from rp_saved.
1993-07-19 17:36:18 +00:00
Peter Schauer
6f87ec4a21 Make breakpoint_re_set_one work with overloaded member functions,
`b 123' and `b foo' if foo is a static function.
	* symtab.c (decode_line_1, decode_line_2):  New argument `canonical'
	to return canonical line specs if requested by the caller.
	* breakpoint.c, source.c, symtab.c, symtab.h:  Change prototypes and
	callers accordingly.
	* symtab.c (build_canonical_line_spec):  New helper function which
	constructs the canonical line spec.
	* breakpoint.c (break_command_1):  Use canonical line spec instead
	of command string as addr_string if necessary.
	* source.c (line_info):  Fix storage leak.
1993-07-19 06:41:16 +00:00
Jim Kingdon
29b8ed0aaa * infptrace.c: Split out define of PT_KILL; Sequent defines PT_KILL
but not the others.
	* symm-tdep.c: Remove exec_file_command.
	[_SEQUENT_] (ptx_coff_regno_to_gdb, register_addr): New functions.
	A few miscellaneous cleanups.
	* symm-nat.c: Renamed from symm-xdep.c.
	* All symmetry dependent files: Many changes.
1993-07-19 05:09:06 +00:00
Jim Kingdon
56eec3c737 * infptrace.c: Split out define of PT_KILL; Sequent defines PT_KILL
but not the others.
	* symm-tdep.c: Remove exec_file_command.
	[_SEQUENT_] (ptx_coff_regno_to_gdb, register_addr): New functions.
	A few miscellaneous cleanups.
	* symm-nat.c: Renamed from symm-xdep.c.
	* All symmetry dependent files: Many changes.
1993-07-19 05:00:13 +00:00
Jim Kingdon
ee5fb95969 * mips-tdep.c (mips_skip_prologue): New argument lenient.
Use read_memory_nobpt.
	(is_delayed, mips_in_lenient_prologue): New functions.
	(init_extra_frame_info): If in the prologue, don't use saved registers.
	* config/mips/tm-mips.h: Declare mips_skip_prologue.
1993-07-19 02:28:21 +00:00
Jim Kingdon
fc39be5870 * partial-stab.h (N_SO): Add the text offset to valu before, not after,
passing it to END_PSYMTAB.
1993-07-18 22:50:30 +00:00
Peter Schauer
76b098d175 * gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
to make the stabs test work on ecoff systems using gcc and -with-stabs.
	* gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}:  Modify to
	enable ecoff configuration.
1993-07-18 15:47:51 +00:00
Roland Pesch
8467a2ad46 MOD2 1993-07-17 01:58:47 +00:00
Jim Kingdon
ac82e9a5b7 * symtab.c (find_pc_symtab): Call warning, not printf directly.
* solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
1993-07-17 01:58:33 +00:00
Roland Pesch
09934a2b2e Introduce MOD2 switch to segregate material on Modula-2; eventually
each supported language should be controlled by a separate switch, and CONLY
should be retired.
1993-07-17 01:57:50 +00:00
Ian Lance Taylor
2e9e68699d * mipsread.c: No longer need to undefine ZMAGIC. 1993-07-16 16:58:08 +00:00
Ian Lance Taylor
f75906eb17 * m88k-pinsn.c: Moved code into opcodes/m88k-dis.c.
(print_insn): Now just calls print_insn_m88k.
1993-07-15 22:07:28 +00:00
David Edelsohn
ccdc578f57 * h8300-tdep.c (examine_prologue): Make prototype match definition. 1993-07-15 21:55:14 +00:00
David Edelsohn
1ca9e7c943 (examine_prologue): Make prototype match definition. 1993-07-15 21:53:51 +00:00
Jim Kingdon
be9af13cb5 minor fixes 1993-07-15 21:16:12 +00:00
Jim Kingdon
38e1c8decb * stabs.texinfo: Cleanups regarding statics. 1993-07-15 20:44:09 +00:00
Jim Kingdon
24dcc70729 * stabs.texinfo: Cleanups regarding statics. 1993-07-15 20:29:23 +00:00
Jim Kingdon
ab17c2d292 * gdbinv-s.texi (Bootstrapping): Document exceptionHandler.
(Debug Session): Mention exceptionHandler.  Add xref to Bootstrapping.
1993-07-15 19:00:08 +00:00
Jim Kingdon
5b336d29ca * NEWS: Mention that remote.c now has a `load' operation. 1993-07-15 18:28:40 +00:00
Jim Kingdon
d08c6f4c11 * hppa-tdep.c (pc_in_linker_stub): New function. 1993-07-15 17:49:41 +00:00
Jim Kingdon
5ac7f56ee8 * hppa-tdep.c (pc_in_linker_stub): New function.
(find_proc_framesize): Return 0 for linker stubs.
	(rp_saved): Tell the caller where rp is saved.
	(frame_chain_valid): Return 1 for linker stubs.
	(frame_saved_pc): Use return value from rp_saved.
1993-07-15 17:38:59 +00:00
Jim Kingdon
0568df2acf * gdb.t15/funcargs.exp (localvars_in_indirect_call): New test. 1993-07-15 17:10:43 +00:00
Jim Kingdon
f09aae8404 * stack.c (print_frame_info): When checking PC_IN_CALL_DUMMY,
pass the sp relative to the frame in question, not the sp in the
	innermost frame.
1993-07-15 15:15:42 +00:00
Jim Kingdon
4fb0ff3b3d * mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
already checked the first characters.
1993-07-15 07:28:14 +00:00
Jim Kingdon
b5d4d6d7f8 * mipsread.c (parse_procedure): Take as argument the symtab to look
the name up in.  Look it up with mylookup_symbol, not lookup_symbol.
	(psymtab_to_symtab_1): For stabs, pass the symtab to parse_procedure.
1993-07-15 07:25:58 +00:00
Jim Kingdon
9adb88b7de * mipsread.c (psymtab_to_symtab_1, parse_procedure): For stabs,
save the indices of the MIPS_EFI_SYMBOL_NAME symbol rather than
	looking them up by the names of the functions.

	* mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
	already checked the first characters.
1993-07-15 05:24:16 +00:00
Jim Kingdon
e91ceb3c59 * printcmds.exp: Add another printf test. 1993-07-14 22:54:22 +00:00
Jim Kingdon
19318471a1 x 1993-07-14 22:47:45 +00:00
Jim Kingdon
1ab786f460 Changes from Jeffrey Law:
* printcmd.c (makeva_list): Use MAKEVA_EXTRA_INFO to define
	machine dependent fields in the makeva_list structure.
	(makeva_size): Allocate extra space to handle gaps made by
	alignment restrictions.
	* config/pa/xm-pa.h (MAKEVA_EXTRA_INFO): Define.
	(MAKEVA_START): Initialize arglist_address field.
	(MAKEVA_ARG): Always store arguments on natural alignment
	boundaries.  Set arglist_address to the address right after
	the args.
	(MAKEVA_END): Simply return the value stored in arglist_address.
1993-07-14 22:44:03 +00:00
Ian Lance Taylor
6dc31f06c3 * configure.in: If configured -with-stabs on any target, add
stabsdirs to configdirs.
1993-07-14 22:38:37 +00:00
Jim Kingdon
bf5b632df7 * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
address, not addr.

	* hppah-nat.c (store_inferior_registers): Don't print i in cases
	where we aren't using it.
1993-07-14 21:38:39 +00:00
Stu Grossman
ea7f0a9ff3 Check in ChangeLog entry that got lost.
Fri Jun 25 17:02:45 1993  Stu Grossman  (grossman at cygnus.com)

	* gdbserver/Makefile.in:  Add dependancies on server.h.
	* gdbserver/remote-gutils.c:  Remove lots of unused functions and
	variables.
	* gdbserver/remote-inflow.c:  Remove lots of unused variables and
	#includes.  Also, use PTRACE_* symbols instead of constants.
	(mywait):  Surround calls to wait() with enable/disable_async_io()
	so that we can be interrupted from GDB while waiting for the
	child.  Also, handle child exit more gracefully.
	* gdbserver/remote-server.c:  Remove lots of unused variables.
	Move all extern defs into server.h.  Redo main loop so that
	failure from getpkt() causes communications to be re-established.
	Fix 'k' command so that it restarts the child.
	* gdbserver/remote-utils.c:  Remove lots of unloved vars and
	subrs.  Move many extern decls into server.h.  (remote_open):  For
	tcp, seperate usage of proto fd from connected fd.  Close proto
	fd after getting connection.  (putpkt/getpkt):  Pay attention to
	errors when reading/writing.  Report these to the caller.  New
	routines input_interrupt/enable_async_io/disable_async_io to make
	it possible to get an I/O interrupt when data arrives from the
	comm link.
	* serial.h:  New file to contain common defs for all remote files.
1993-07-14 21:19:09 +00:00
Jim Kingdon
968dca8d81 * a29k-tdep.c (get_saved_register): Fix typo. 1993-07-14 18:55:57 +00:00
David Edelsohn
bd96254f96 * configure.in: Recognize h8300h (variant of h8300).
Recognize sparc64-*-*.
1993-07-14 16:49:18 +00:00
Jim Kingdon
5af4f5f6f1 Tue Jul 13 14:03:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* stabsread.c (define_symbol): Make the caddr_t hack apply to `function
	returning foo' as well as `pointer to foo'.

	* remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined.
	* config/m68k/tm-m68k.h: Define it.
	* mem-break.c, breakpoint.c: Improve comments.

Tue Jul 13 13:35:31 1993  Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)

	* config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h".
	* config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
1993-07-14 15:12:05 +00:00