Commit graph

1845 commits

Author SHA1 Message Date
Jim Kingdon
98105ba26f * remote.c: Add comment explaining why dcache is disabled.
(remote_fetch_word, remote_store_word): Make static and #if 0.
	They are not called from anywhere.

Wed Sep  1 11:35:49 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)

	* symtab.c (find_pc_line, find_line_common),
	symtab.h (struct linetable), xcoffread.c (arrange_linetable):
	Revise comments re linetable sorting.
	* buildsym.c (compare_line_numbers): Sort by pc, not by line.
	* coffread.c: Tell end_symtab to sort the line table.
1993-09-01 22:15:01 +00:00
K. Richard Pixley
4ed97c9a83 bzero -> memset 1993-09-01 21:56:42 +00:00
K. Richard Pixley
9823e3f4c9 bcmp -> memcmp 1993-09-01 21:43:56 +00:00
Jim Kingdon
c438b3af2a * symtab.h (struct linetable), xcoffread.c (arrange_linetable):
Revise comments re linetable sorting.
	* buildsym.c (compare_line_numbers): Sort by pc, not by line.
	* coffread.c: Tell end_symtab to sort the line table.

	* coffread.c: Re-work a lot of the coff-specific stuff to use stuff
	in buildsym.c.  This includes coff_finish_block, coff_context_stack,
	coff_local_symbols, coff_file_symbols, coff_global_symbols,
	coff_end_symtab and coff_add_symbol_to_list.
	(read_enum_type): Deal with it now that we have a "struct pending"
	not a "struct coff_pending".

	* buildsym.c (end_symtab): Don't realloc subfile->linetable.
1993-09-01 21:15:27 +00:00
K. Richard Pixley
ade40d3153 bcopy -> memcpy 1993-09-01 20:37:15 +00:00
K. Richard Pixley
5a0a463feb break dcache out of remote-nindy.c 1993-09-01 19:16:57 +00:00
Peter Schauer
e7e02420a7 * mipsread.c (parse_partial_symbols): Use language from FDR if it
is unambigous.  Patch from ptf@delcam.co.uk (Paul Flinders).
	* mipsread.c (ecoff_symfile_info):  New struct to hold the global
	pending_list.
	* mipsread.c (mipscoff_symfile_init, parse_partial_symbols):
	Allocate the global pending list and link it to the objfile.
	* mipsread.c (is_pending_symbol, add_pending):  Use global pending
	list from objfile. Allocate pending list entries from the
	psymbol_obstack.
	* mipsread.c (free_pending):  Remove. The pending list is now
	freed when the psymbol_obstack is freed.
	* mipsread.c (psymtab_to_symtab1):  Remove pending list allocation,
	the global pending list is used now.
	* mipsread.c (parse_partial_symbols):  Skip only the first
	file indirect entry when building the dependency list.
1993-09-01 12:10:55 +00:00
K. Richard Pixley
d538b510a0 break dcache code out of remote.c 1993-09-01 00:43:09 +00:00
K. Richard Pixley
755892d6ff break dcache code out of remote-bug.c 1993-08-31 22:13:29 +00:00
Jim Kingdon
875fc229ff * c-typeprint.c (c_print_type_base): Treat show = 0 just like
show < 0.  The only case where we had been distinguishing is that
	show = 0 used to print "struct  " or "enum  " instead of
	"struct {...}" or "enum {...}" which seems clearly wrong.
1993-08-31 15:44:44 +00:00
K. Richard Pixley
df42979881 recognize m88110 1993-08-31 00:52:48 +00:00
Jim Kingdon
b556573de3 * valops.c (call_function_by_hand): If we discard cleanups, call
bpstat_clear (&inf_status.stop_bpstat).
1993-08-30 21:12:50 +00:00
Peter Schauer
cbba020f3f * stabsread.h, dbxread.c (end_psymtab): Return NULL if the psymtab
was empty and thrown away.
	* mipsread.c (parse_partial_symbols):  Do not add empty psymtabs to
	dependency list, skip self dependencies.
	* mipsread.c (parse_fdr):  Removed, obsolete.
	* mipsread.c (parse_lines):  Check for cbLine being zero, not
	cbLineOffset.
	* mipsread.c (struct symloc):  Add pst_language.
	* mipsread.c (parse_partial_symbols):  Set up proper language for header
	files, save it in pst_language for psymtab_to_symtab_1.
	* mipsread.c (psymtab_to_symtab_1):  Use pst_language.
1993-08-30 19:50:47 +00:00
Jim Kingdon
d86a7c5737 * configure.in: Fix typo m88*-motorola-svr4* -> sysv4*. 1993-08-30 15:58:18 +00:00
Ken Raeburn
61a2965923 From Utah, part of BFD HPPA cleanup:
* paread.c: Include som.h instead of libhppa.h.
1993-08-28 00:58:17 +00:00
Jim Kingdon
f153827490 * Rename files for 14-character limits:
gdbserver/remote-gutils.c -> gdbserver/utils.c
	gdbserver/remote-inflow.c -> gdbserver/low-lynx.c
	gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c
	gdbserver/remote-server.c -> gdbserver/server.c
	remote-monitor.c -> remote-mon.c
	* Makefile.in, gdbserver/Makefile.in, gdbserver/configure.in,
	config/m68k/monitor.mt,	config/i386/i386lynx.mh,
	config/sparc/sun4os4.mh: Change accordingly.
	* gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
1993-08-27 23:27:02 +00:00
Jim Kingdon
13bd962292 * symmisc.c (dump_symtab): Use catch_errors around print_symbol.
Change calling sequence of print_symbol to fit catch_errors.
1993-08-27 22:55:04 +00:00
Jim Kingdon
427fec5d1b * mips-tdep.c: Call reinit_frame_cache every time the user does
"set heuristic-fence-post".
1993-08-27 19:33:43 +00:00
Jim Kingdon
20bee06dad * gdbserver/low-sun3.c: New file.
* gdbserver/Makefile.in, config/m68k/sun3.mh: Change accordingly.

	* Rename files for 14-character limits:
	gdbserver/remote-gutils.c -> gdbserver/utils.c
	gdbserver/remote-inflow.c -> gdbserver/low-lynx.c
	gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c
	gdbserver/remote-server.c -> gdbserver/server.c
	remote-monitor.c -> remote-mon.c
	* Makefile.in, gdbserver/Makefile.in, config/m68k/monitor.mt,
	config/i386/i386lynx.mh, config/sparc/sun4os4.mh: Change accordingly.
	* gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
1993-08-27 17:38:42 +00:00
Jim Kingdon
c033ec179a * Rename files for 14-character limits:
gdbserver/remote-gutils.c -> gdbserver/utils.c
	gdbserver/remote-inflow.c -> gdbserver/low-lynx.c
	gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c
	gdbserver/remote-server.c -> gdbserver/server.c
	remote-monitor.c -> remote-mon.c
	* Makefile.in, gdbserver/Makefile.in, config/m68k/monitor.mt:
	Change accordingly.
	* gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
1993-08-27 16:59:46 +00:00
Jim Kingdon
860a1754fd * infcmd.c, inferior.h (run_stack_dummy): If we stop somewhere
besides the dummy, return 1 rather than calling error().
	Let caller print the error message.  Remove name argument.
	* valops.c (call_function_by_hand): Deal with changes to calling
	sequence of run_stack_dummy.  Discard restore_inferior_status cleanup
	if run_stack_dummy returns 1.
1993-08-27 03:22:33 +00:00
Jim Kingdon
eb03abe8da * infrun.c (restore_inferior_status): Use catch_errors when
restoring selected frame.
1993-08-26 21:38:34 +00:00
Jim Kingdon
a1c8d76ef8 * frame.h, symtab.h, findvar.c (read_var_value): Change basereg
support to use LOC_BASEREG rather than SYMBOL_BASEREG_VALID.
	* dwarfread.c: Use LOC_BASEREG where appropriate.
	* Various: Support LOC_BASEREG and LOC_BASEREG_ARG.
1993-08-24 21:38:24 +00:00
Jim Kingdon
fb2fc3b6b5 * dbxread.c (end_psymtab): Clean up comment. 1993-08-24 21:13:37 +00:00
Jim Kingdon
9c75ce9f89 * coffread.c (init_lineno, init_stringtab): Don't check whether
xmalloc returned NULL.
1993-08-24 18:59:50 +00:00
Jim Kingdon
0e646bd577 * config/vax/xm-vaxult.h: Define NO_PTRACE_H. 1993-08-24 15:23:23 +00:00
Jim Kingdon
71bcfc7c58 undo last change 1993-08-24 15:07:05 +00:00
Jim Kingdon
e7711f981a * configure.in: vax-*-ultrix3* is like vax-*-ultrix2*. 1993-08-24 14:35:54 +00:00
Jim Kingdon
41a6194df9 * target.c, target.h: Add "set remotedebug" command.
* remote-bug.c, remote.c, remote-mips.c: Remove "set remotedebug" and
	"set m88ksnoop" options and use generic "set remotedebug" instead.
	* NEWS: Describe this change.
1993-08-24 06:55:35 +00:00
Jim Kingdon
2731625a56 * buildsym.h: Remove declaration of dbxread.c functions.
* stabsread.h: Group together dbxread.c functions.
	Move elfstab_build_psymtabs here from symfile.h.
	Declare pastab_build_psymtabs.
	* elfread.c, paread.c: Include stabsread.h (for stabsread_new_init
	declaration, etc).
1993-08-24 01:43:59 +00:00
K. Richard Pixley
16f6ab6b2c * remote-bug.c: rename quiet to bug88k_snoop.
(double_scan, multi_scan): generalize double_scan into a scan
for multiple patterns.  Rename to multi_scan.
(bug_wait, bug_write_inferior_memory): adapt to use the new
multi_scan in order to catch and represent target bus errors.
(bug_scan): currently unused, so comment out.
(bug_quiet): removed.  Replaced with a standard user settable boolean.
1993-08-24 00:25:16 +00:00
K. Richard Pixley
e0508fdcf3 remove include of sys/dir.h. Appears unnecessary and isn't available
on solaris.
1993-08-24 00:18:04 +00:00
Jim Kingdon
304977ab6f * config/m88k/{delta88v4.mt,delta88v4.mh}: New files
* config/m88k/delta88.mh: Fix comment.
	* config/m88k/tm-delta88.h: Remove unused BCS define.
	* config/m88k/{tm-delta88v4.h,xm-delta88v4.h,nm-delta88v4.h}:
	New files.
	* configure.in: Recognize m88*-motorola-sysv4*.
	* m88k-nat.c: Always include sys/types.h; don't depend on USG.
1993-08-23 21:14:31 +00:00
Peter Schauer
f5d6b0c598 * mipsread.c (parse_symbol, parse_type, cross_ref): Pass name of symbol
as an argument and use it in complaints.
	* symmisc.c (dump_psymtab):  Dump filenames of dependencies.
1993-08-23 20:01:20 +00:00
Jim Kingdon
a656507936 Write ChangeLog entry for sef changes.
Remove dbxread.c change; I handle this in BFD by making the name start
with "a.out".
1993-08-23 19:46:03 +00:00
Jim Kingdon
6ecb870e36 * remote-nindy.c: Remove unused include of sys/ioctl.h. 1993-08-21 03:26:21 +00:00
Jim Kingdon
313dd52048 * frame.h, symtab.h: Revise comments regarding baseregs. 1993-08-21 02:54:33 +00:00
Peter Schauer
018ab14f59 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):
Set language for psymtab and symtab.
	* mipsread.c (new_symbol):  Set language and initialize demangled
	name for symbol.
	* symmisc.c (print_symbol):  Use SYMBOL_SOURCE_NAME when printing
	the symbol type.
	* symtab.c (decode_line_1):  Inhibit coredumps with cfront executables.
1993-08-20 22:10:15 +00:00
Jim Kingdon
0ca9bd1214 * Move KERNEL_U_ADDR from xm-hp300bsd.h to nm-hp300bsd.h and make
it conditionalized on 4.3 vs. 4.4.
	* config/m68k/nm-hp300bsd.h: Move REGISTER_U_ADDR out of 4.3 and
	4.4 sections; it was identical and now works for 4.4.
1993-08-20 21:59:05 +00:00
Jim Kingdon
b33e0e0b6a * mips-tdep.c (is_delayed): Use INSN*BRANCH* not ANY_DELAY. 1993-08-20 19:26:21 +00:00
Jim Kingdon
8af0de9131 * printcmd.c (MAKEVA_END): Update this version to use "aligner". 1993-08-20 19:09:12 +00:00
Peter Schauer
6ac14d259e * config/vax/tm-vax.h (BELIEVE_PCC_PROMOTION): Define.
* mipsread.c (parse_symbol, parse_type, cross_ref):  Handle corrupt
	file indirect entries with complaints instead of core dumps. Remove
	complaint for stTypedef within aggregates.
1993-08-20 05:12:14 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
K. Richard Pixley
90fcdfbfcf Bumped version to 4.9.4. 1993-08-03 00:59:45 +00:00
Steve Chamberlain
a305925112 * h8300-tdep.c: Use new variable h8300hmode. 1993-08-02 22:54:01 +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
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
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
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
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
Fred Fish
6879f0db79 * Makefile.in (ALLCONFIG): Add config/i386/ptx.mh 1993-07-30 17:16:48 +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
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
68f49dae33 * Makefile.in (ALLDEPFILES): Add delta68-nat.c
* Makefile.in (delta68-nat.o):  Add dependency.
1993-07-30 07:23:29 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
3d7d298018 * config/i386/xm-i386sco.h: Define HAVE_TERMIOS. 1993-07-20 00:31:15 +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
Jim Kingdon
dc34b11d9d * ser-unix.c: Don't try to use job control with termio. 1993-07-19 18:51:00 +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
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
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
Jim Kingdon
5b336d29ca * NEWS: Mention that remote.c now has a `load' operation. 1993-07-15 18:28:40 +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
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
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
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
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
David Edelsohn
524895ab98 * gdbcore.h (read_memory_integer, read_memory_unsigned_integer):
Make prototype match definition.
1993-07-13 18:58:41 +00:00
Fred Fish
8bdc1fd08a * elfread.c: Remove notice about file still being under
construction.
1993-07-13 18:49:51 +00:00
Fred Fish
98d8248937 * Makefile.in (ultra3-xdep.o, umax-xdep.o): Add missing ')'. 1993-07-13 18:20:55 +00:00
Jim Kingdon
8549490910 * a29k-tdep.c (read_register_stack): Make val static. 1993-07-12 22:51:09 +00:00
David Edelsohn
e1f63216eb h8300 stuff. 1993-07-12 21:12:02 +00:00
Jim Kingdon
1326dacef9 * c-valprint.c (c_val_print): Fix thinko with unspecified length
arrays.
1993-07-12 18:00:48 +00:00
Jim Kingdon
eabbe766c0 * hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
use it.
1993-07-12 16:34:23 +00:00
Jim Kingdon
f1ed43304a * symtab.c (decode_line_1): Use end of block to figure out whether
val.end is in the same function, not minimal symbols.

	* source.c (line_info): Add a few more wrap_here's.

	* i386-tdep.c (i386_follow_jump): Do byteswapping where needed and
	don't make assumptions about sizes of host data types.

	* blockframe.c, symtab.h (find_pc_partial_function): New arg endaddr.
	* infrun.c, breakpoint.c, printcmd.c: Change callers.
	* printcmd.c (containing_function_bounds): Remove.
	* printcmd.c (disassemble_command): Use find_pc_partial_function,
	not containing_function_bounds.
	* infcmd.c (step_1): Use find_pc_partial_function rather than
	trying to roll our own.  Move check for a pc between SIGTRAMP_START and
	SIGTRAMP_END in find_pc_partial_function, not step_1.
1993-07-12 03:42:35 +00:00
Jim Kingdon
f6365bd696 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc):
Keep unswapped value in array of char, not REGISTER_TYPE.
	Use REGISTER_RAW_SIZE not sizeof (REGISTER_TYPE).
	(sparc_extract_struct_value_address): Use TARGET_PTR_BIT not
	sizeof (CORE_ADDR).
1993-07-12 00:45:02 +00:00
David Edelsohn
9fc8002c2d Add v9 sanitized entry for sparc-tdep.c. 1993-07-12 00:13:50 +00:00
Jim Kingdon
0a8f174266 * configure.in (m68*-bull-sysv*): added support for Bull dpx2.
* config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files.
	* config/m68k/dpx2.m{h,t}: New files.
1993-07-11 23:29:31 +00:00
David Edelsohn
53adb297a1 config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Fix typo, add
more parens around macro arg.
1993-07-11 19:36:38 +00:00
Jim Kingdon
fe67503857 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
step_resume_break_address with step_resume_breakpoint (now local
	to wait_for_inferior).
	({insert,remove}_step_breakpoint): Remove.
	(wait_for_inferior): Set step resume break with
	set_momentary_breakpoint.  Test hitting it with bpstat_stop_status
	and bpstat_what	(stop_step_resume_break removed).
	* breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
	which includes previous return value as main_action, and a step_resume
	bit.
	* breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
	there is another breakpoint there, insert it.
	* infrun.c (wait_for_inferior): Rearrange the spaghetti a bit.  Use
	a few more gotos.
	Various: Clean up and add comments.
1993-07-11 04:52:50 +00:00
Jim Kingdon
fee44494f1 * infrun.c [TDESC]: Remove remaining tdesc code (see ChangeLog
for Wed Nov 13 16:45:13 1991).
1993-07-10 14:59:02 +00:00
Jim Kingdon
58e49e2178 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
* h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
	not short *.

	* findvar.c, defs.h
	({extract,store}_{signed_integer,unsigned_integer,address}):
	New routines to replace SWAP_TARGET_AND_HOST.
	All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
1993-07-10 05:03:22 +00:00
Jim Kingdon
34df79fc9d * findvar.c, defs.h
({extract,store}_{signed_integer,unsigned_integer,address}):
	New routines to replace SWAP_TARGET_AND_HOST.
	All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
1993-07-10 01:35:53 +00:00
Jim Kingdon
271d73872f x 1993-07-09 21:20:09 +00:00
Jim Kingdon
19bdd57f75 * utils.c: Clean up comments about wrap buffer and wrap_here.
* printcmd.c (printf_command): Call wrap_here before vprintf.
1993-07-09 20:11:47 +00:00
Jim Kingdon
28d14fd878 * mipsread.c (cross_ref): Set the name to unknown for "struct *" case.
Patch from ptf@delcam.co.uk (Paul Flinders).
1993-07-09 18:40:26 +00:00
Jim Kingdon
4d50f90ab8 * a29k-tdep.c, findvar.c (get_saved_register): Fix byteswapping sins. 1993-07-09 18:33:23 +00:00
Peter Schauer
2fcdae93aa * defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
* mips-tdep.c (init_extra_frame_info):  Set proper fci->frame if pc
	is at the start of the dummy code.
1993-07-09 16:50:43 +00:00
Jim Kingdon
dd99f8e4b2 * sparc-tdep.c (sparc_push_dummy_frame): Skip all the do_save_insn
stuff, just write the sp and fp.
	(sparc_pop_frame): Skip the do_restore_insn; we already restore
	the sp with the other out registers.
1993-07-09 03:53:46 +00:00
Jim Kingdon
558f4183fb * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
arguments.
1993-07-08 20:06:19 +00:00
Jim Kingdon
47976ba770 * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep. 1993-07-08 19:53:05 +00:00
Jim Kingdon
6de931d2a9 Add filename which dje forgot to include 1993-07-08 17:40:31 +00:00
David Edelsohn
bc4937f37c h8/300h stuff. 1993-07-08 15:55:48 +00:00
David Edelsohn
d0414a1127 * h8300-tdep.c (print_insn): Call print_insn_h8300h if h8/300h.
(examine_prologue): reg_save_depth is 4 if h8/300h.
1993-07-08 15:32:38 +00:00
David Edelsohn
be47465751 * findvar.c (read_register): Provide some support for 64 bit regs.
(write_register): Ditto.
1993-07-08 15:27:23 +00:00
Jim Kingdon
3206db6299 * config/mips/nm-riscos.h: machine/machparam.h is always the right
place to look for BSD43_NBPG, not machine/vmparam.h
1993-07-08 03:58:39 +00:00
Jim Kingdon
5402346525 * infcmd.c (run_stack_dummy): New argument name.
Change error message in (another) attempt to make it comprehensible.
	* valops.c (call_function_by_hand): Pass name to run_stack_dummy.
	* symtab.h: Declare demangle and asm_demangle since macros use them.
1993-07-08 03:32:00 +00:00
Jim Kingdon
e860d210f4 * eval.c (evaluate_subexp): Add comment about calling a member
function of a variable in a register.
1993-07-08 02:04:57 +00:00
Jim Kingdon
d3dd680054 * expression.h: Clean up comment about string in STRUCT_STRUCT etc. 1993-07-07 23:56:30 +00:00
Jim Kingdon
23a8e2915c * frame.h, blockframe.c, stack.c, a29k-tdep.c,
config/gould/tmp-{pn,np1}.h,
	config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
	next_frame from struct frame_info.  It has no purpose beyond
	->next->frame and is an artifact from GDB 2.8.
1993-07-07 20:29:56 +00:00
Jim Kingdon
c2153bf2ba * Makefile.in: Remove gdb before creating a new one.
Update init.c atomically.
1993-07-06 18:56:48 +00:00
Jim Kingdon
de6a270409 * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}.
(ALLCONFIG): Add config/alpha/alpha-osf1.mh.

	* infcmd.c (_initialize_infcmd): In docstring for "continue",
	describe argument as setting ignore count.
1993-07-06 17:15:02 +00:00
David Edelsohn
b1d0b1614b * h8300-tdep.c (examine_prologue): Fix call to read_memory_unsigned_integer. 1993-07-04 22:07:17 +00:00
Jim Kingdon
0c5af733b1 * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here
rather than including xm-bigmips.h.
1993-07-03 00:36:35 +00:00
Jim Kingdon
1500864f5b * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and
default cases.
1993-07-03 00:27:47 +00:00
Jim Kingdon
fdf138bb6a * Makefile.in (distclean): Remove y.tab.h. 1993-07-03 00:24:51 +00:00
Steve Chamberlain
85e07872b6 New target macros for getting at the pc, sp and fp.
* infcmd.c (read_pc, write_pc):  Modify to use new macros.
	(read_sp, write_sp, read_fp, write_fp): New functions.
	* blockframe.c (reinit_frame_cache, get_prev_frame_info):  Use new functions.
	* breakpoint.c (bpstat_alloc): ditto.
	* infrun.c (wait_for_inferior): ditto.
	* stack.c (print_frame_info): ditto.
	* valops (call_function_by_hand): ditto.
	* corelow.c (core_open): ditto.
	* h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
	target_write_pc, target_read_fp, target_write_fp): New functions.
	* inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
1993-07-02 21:25:04 +00:00
Ian Lance Taylor
d8a80e6ddc * configure.in (mipos-*-riscos*): New host and target; use riscos.
* config/mips/nm-riscos.h: If BSD43_NBPG is not defined by
	vmparam.h, include machparam.h.
	(KERNEL_U_ADDR): Define to be BSD43_UADDR.
1993-07-02 20:54:02 +00:00
Jim Kingdon
c0bca41c47 * c-exp.y (yylex): Give error if unmatched single quote. 1993-07-02 20:04:02 +00:00
Jim Kingdon
75fa3e0fd2 * Remove unused STACK_END_ADDR in the following files (in other
files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
	tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
	tm-hp300hpux.h, tm-isi.h.
1993-07-02 18:48:44 +00:00
Jim Kingdon
1f72a94a6a * xm-sysv4.h: Undefine HAVE_TERMIO. 1993-07-01 22:04:17 +00:00
Jim Kingdon
3762d62487 * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
we can still process "modern" core files.
1993-07-01 21:07:02 +00:00
Jim Kingdon
0abbc7715f miscellaneous fixes to make RISC/os work; see ChangeLog's 1993-07-01 21:00:15 +00:00
Jim Kingdon
a77a5278a4 * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
print c_line.
	(_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
	is defined; don't care what it is defined to.
1993-07-01 18:22:02 +00:00
Jim Kingdon
95f2d25323 * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO. 1993-07-01 01:10:22 +00:00
Jim Kingdon
c2e247c4ff * inftarg.c: Remove unused include of terminal.h.
* signals.h: Don't undefine signals anymore.
	* main.c: Use job_control from serial.h.
	* fork-child.c (fork_inferior): Use gdb_setpgid.
	* serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
	* utils.c (quit): Use current_target->to_terminal_ours to figure
	out whether we care about lack of job control, rather than __GO32__.
	* utils.c: Include serial.h not terminal.h
	(quit): Use job_control not TIOCGPGRP.
	* terminal.h: Don't undefine TIOCGPGRP.
	* serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
	* utils.c (quit): Use it.
	* serial.h: Add SERIAL_UN_FDOPEN.
	* utils.c (quit): Use it.
	* ser-unix.c: Add process group to ttystate.
	[HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
	* inflow.c: Include serial.h not terminal.h.
	Use serial.h stuff to replace most of the maze of #ifdef's.
	* inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
	* serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
	* ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
	* serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
	Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
	SERIAL_SET_PROCESS_GROUP.
	* inflow.c: Use them.
	* config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
	Define HAVE_TERMIOS.
	* Various: Remove all use of TIOC*_BROKEN.
1993-06-30 22:20:53 +00:00
Peter Schauer
eed6de01f2 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define. 1993-06-30 19:23:35 +00:00
Peter Schauer
76a1bd4cc0 * symtab.h (BLOCK_SHOULD_SORT): Do not sort blocks corresponding to
a function to avoid printing of function arguments in wrong order
	due to sorting.
	* symfile.c (compare_symbols):  Remove code for sorting arguments
	as blocks containing arguments are no longer sorted.
	* symtab.c (lookup_block_symbol):  Update comment accordingly.
1993-06-29 20:18:26 +00:00
Jim Kingdon
64b097786a * config/pa/tm-hppa.h: Remove unused ARGS_GROW_DOC.
(REG_STRUCT_HAS_ADDR): Add comment.
1993-06-29 18:27:56 +00:00
Jim Kingdon
a8c2562115 * infrun.c (wait_for_inferior): Use find_pc_line not find_pc_symtab
to check whether there is line number information.
1993-06-29 16:54:23 +00:00
David D. Zuhn
fe76016acb fix docstring so that it compiles 1993-06-29 16:02:41 +00:00
David D. Zuhn
77641260c5 fix include file ordering problem (bfd.h vs. symfile.h) 1993-06-29 15:30:57 +00:00
Jim Kingdon
fd09c96316 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
don't expect it, change it to LOC_STATIC so at least we don't coredump.

	* c-typeprint.c (c_type_print_base): Don't error() on invalid type.
1993-06-29 15:25:27 +00:00
Jim Kingdon
d63aae7f32 * symtab.h (struct symtab, line_charpos): Fix comment.
* source.c (identify_source_line): Fix off by one bug with line.
1993-06-29 14:47:17 +00:00
Jim Kingdon
c702007b17 x 1993-06-28 22:34:29 +00:00
Jim Kingdon
6b9561a423 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment. 1993-06-28 17:38:30 +00:00
Peter Schauer
be2860fbf3 * valprint.c (val_print_type_code_int): Fix off by one error with
eliminating leading zeroes for large little endian integers.
1993-06-27 15:56:44 +00:00
Jim Kingdon
42280556eb * config/mips/riscos.mh (CC): Use -systype sysv. 1993-06-27 14:28:30 +00:00
Jim Kingdon
68d2db622d * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section. 1993-06-27 14:16:34 +00:00
Jim Kingdon
ee0d1b6565 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h. 1993-06-27 14:06:28 +00:00
Jim Kingdon
751b4006af * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
CALL_DUMMY between different 68k machines.
1993-06-26 02:05:54 +00:00
Stu Grossman
a037b21e75 * remote.c: Add arg names to prototypes, in a modest effort at
clarification.  Also add prototypes for some new functions.
	* (remote_wait):  Better error reporting for 'T' responses.
	* ser-go32.c (strncasecmp):  Make str1 & str2 be const.
	* (dos_async_init):  Make usage message reflect requested port #.
	* ser-tcp.c (tcp_open):  Terminate hostname properly to prevent
	random hostname lookup failures.  Add nicer message for unknown
	host error.  (wait_for):  Wake up in case of exceptions.  Also,
	restart select() if we got EINTR.
	* ser-unix.c (wait_for):  Restart select() if we got EINTR.
	* serial.c: (serial_close):  Clean up code.
1993-06-26 00:22:30 +00:00
Jim Kingdon
f3fe62b125 * Makefile.in (*.tab.c): Use ./c-exp.tab.c not just c-exp.tab.c.
Make comment explaining this comprehensible.
	(TAGFILES): Include ALLDEPFILES.
	(ALLDEPFILES): udi2soc.c and udr.c are in 29k-share/udi, not
	29k-share/udi/udi.
	(update-alldeps): Remove; obsolete.
1993-06-25 20:28:06 +00:00
Jim Kingdon
e50ebec874 * remote.c: Move comments regarding packets to top of file with the
rest of the protocol comments.
	Fix incorrect description of 'T' response.
1993-06-25 19:44:18 +00:00
Jim Kingdon
3576a41210 * README (Reporting Bugs): Refer people to the GDB manual. 1993-06-25 19:35:35 +00:00
Jim Kingdon
7e71985c9e * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
* stabsread.c: Type -16 is 4 bytes.
1993-06-25 19:29:45 +00:00
Jim Kingdon
a38b1233c2 * remote-udi.c: Improve docstring. 1993-06-25 19:11:22 +00:00
Fred Fish
872dd3fe12 * elf_symfile_read (bfd_elf32_find_section): Revert back to
calling bfd_elf_find_section to track bfd changes.
1993-06-25 18:51:11 +00:00
Jim Kingdon
ef3986bbe1 * config/mips/xm-riscos.h: Define USG. 1993-06-25 16:31:24 +00:00
Jim Kingdon
f75ad5da8f * config/mips/riscos.mh (REGEX{,1}, MUNCH_DEFINE, MH_CFLAGS): Define. 1993-06-25 16:27:51 +00:00
Jim Kingdon
a32ebcfd6b * main.c (filename_completer): Don't complete to files ending in ~.
* NEWS: Mention filename completion and "info line" enhancements.

	* main.c (symbol_completion_function): On "info t foo", return NULL,
	don't error().

	* main.c (symbol_completion_function): Don't use readline word
	breaking.  Use new calling convention for c->completer and
	complete_on_cmdlist.
	* command.h (struct command): Change arguments; now the text passed
	to completer does not have any word breaking done.  New arg word.
	* symtab.{c,h} (make_symbol_completion_list): Do word breaking.  Take
	word argument.
	* {main.c,gdbcmd.h} ({filename,noop}_completer): Take word argument.
	* command.{c,h} (complete_on_cmdlist): Take word argument.

	* command.c (lookup_cmd_1): Doc fix.
1993-06-25 03:47:12 +00:00
K. Richard Pixley
b8774958a0 define OP_INCLUDE 1993-06-24 23:16:00 +00:00
Jim Kingdon
4ae030b938 * partial-stab.h: Consolidate case statements for N_LSYM and N_FUN.
* dbxread.c: Change comment regarding acc.
1993-06-24 00:44:54 +00:00
K. Richard Pixley
97090015dd remove lines with only tabs 1993-06-23 23:54:57 +00:00
K. Richard Pixley
f4cc789c22 -I$(BFD_DIR) rather than including from the library proper. Hmph. 1993-06-23 23:41:40 +00:00
K. Richard Pixley
7ae7b9191e Makefile rework 1993-06-23 22:59:35 +00:00
K. Richard Pixley
baa3837246 remove redundant include of symtab.h 1993-06-23 22:17:35 +00:00
K. Richard Pixley
fbca751901 removed alloca.c which is now in libiberty 1993-06-23 22:13:19 +00:00
K. Richard Pixley
8860783950 new M_UNINSTALL macro 1993-06-23 22:09:27 +00:00
K. Richard Pixley
c2df19bdb1 new M_UNINSTALL macro 1993-06-23 22:06:58 +00:00
Jim Kingdon
6ffbfcc2a5 * config/ns32k/{merlin.mh,xm-merlin.h}: Be consistent about name
of gdb-sh.
1993-06-23 19:44:05 +00:00
Jim Kingdon
ec06a3cb25 * dbxread.c (copy_pending): Change name and function of begi argument
to endi, since that is what the caller needs.
1993-06-23 19:20:49 +00:00
Jim Kingdon
853a233b92 * Makefile.in (TAGFILES): Don't include YYFILES.
* Makefile.in (HFILES): Include monitor.h.

	* Makefile.in: Include text that used to be in alldeps.mak.
	Remove config/mips/{bigmips.mh,xm-bigmips} from it.
	* Makefile.in, configure.in: Remove all traces of alldeps.mak.
1993-06-23 15:54:34 +00:00
Jim Kingdon
29f3879c61 * main.c (main): Print help message on stdout not stderr
per standards.texi.
	New option --version per standards.texi.
	In help message, show long options with "--" not "-".
	Don't try to print help message or version until after we have
	called initialize_all_files.
1993-06-23 05:56:42 +00:00
Jim Kingdon
15d4eb2197 * solib.c (solib_add_common_symbols): Don't call lookup_minimal_symbol.
(solib_add): Call special_symbol_handling once, not once per library.
1993-06-22 23:35:35 +00:00
Jim Kingdon
59ba57dad6 * procfs.c (procfs_resume): Don't pass a SIGTSTP whose action
is SIG_DFL.

	* procfs.c (procfs_resume): Skip the unnecessary PRSVADDR on all
	systems, not just Solaris.
1993-06-22 19:48:52 +00:00
Jim Kingdon
9ddfb9eb20 * stabsread.c: Include <ctype.h>. 1993-06-22 08:20:18 +00:00
Jim Kingdon
3768398df8 * fork-child.c (fork_inferior): Quote exec_file so it can contain
funky characters.
1993-06-22 04:27:00 +00:00
Fred Fish
68eabdd300 * Makefile.in (INCLUDE_CFLAGS): Add BFD_INCLUDES for now, since
bfd.h is included by target.h, which most of gdb includes.
	* depend:  Hand remove BFD_INCLUDES from ${CC} lines, now that
	it's in INCLUDE_CFLAGS.
1993-06-22 00:05:40 +00:00
Jim Kingdon
2c7ab4ca35 * config/i386/*aix*, i386aix-nat.c: New files.
* configure.in: Use them.
	* alldeps.mak: List them.
	* coffread.c (decode_base_type): Deal with anonymous enum type.
	* i387-tdep.c (print_387_status_word): Add comment re "top".
	* i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
	* dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*.  Define them if and
	only if not defined by a header file.
	* mipsread.c: Don't define L_SET or L_INCR.
1993-06-21 23:46:49 +00:00
Jim Kingdon
c96d68c281 * config/i386/*aix*: New files.
* alldeps.mak: List them.
1993-06-21 23:14:07 +00:00
Fred Fish
200a347093 * Makefile.in (BFD_INCLUDES): Bfd.h is now back in bfd build dir.
* depend:  Hand updated to match.
1993-06-21 22:11:44 +00:00
Jim Kingdon
089dc22027 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.
(read_cpp_abbrev): Don't complain specially for $_.  Also return 0 if
	we don't recognize the abbrev.
1993-06-20 20:30:31 +00:00
Jim Kingdon
2a4e8cc37d * solib.c (solib_add_common_symbols): Add comment about performance. 1993-06-20 05:28:07 +00:00
Jim Kingdon
ee06f23011 * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files.
* configure.in (mips-*-sysv*): Use riscos for host, bigmips for target.
1993-06-18 22:20:26 +00:00
Jim Kingdon
b487ba2e77 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
* config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
	* configure.in (mips-sony-*): Use news-mips for host.
1993-06-18 21:39:27 +00:00
Jim Kingdon
e64ec645a8 * buildsym.h: Doc fix for processing_acc_compilation. 1993-06-18 17:40:50 +00:00
Jim Kingdon
8715a9f36a * printcmd.c (print_formatted): Don't use tab in wrap_here arg. 1993-06-18 03:12:22 +00:00
Jim Kingdon
fc61e9eeec * Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
${srcdir}/../include.

	* config/m88k/xm-delta88.h: Comment out unused defines which conflict
	with system headers.
	* printcmd.c (printf_command): Cast second arg to vprintf to PTR.
	Use VPRINTF macro if defined.
	* config/m88k/xm-delta88.h: Define VPRINTF.  Include <sys/siginfo.h>.
	Define TIOC{GETC,GLTC}_BROKEN.
	* m88k-nat.c: Uncomment include of <sys/ptrace.h>.
	* main.c: Rename initialize_{main,cmd_lists,history} to init_* to
	make things easier on munch (apparently this matters on
	the delta88 with svr3).
1993-06-18 02:32:27 +00:00
David D. Zuhn
c8fee4a53e canonicalize install.sh location 1993-06-18 00:35:08 +00:00
Steve Chamberlain
7ccb1e4401 * configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
host.
	* sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard
	wired (and wrong) constant.
	* values.c (unpack_long): Add case to unpack when target object is
	sizeof(int).
	* config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the
	simulator defines.
1993-06-17 22:16:07 +00:00
K. Richard Pixley
21cc14d850 start tracking user visible changes 1993-06-16 23:13:57 +00:00
K. Richard Pixley
1c5d60496e rename user settable option from rpcTimeout to vxworks-timeout. 1993-06-16 23:11:46 +00:00
Fred Fish
53f0969be3 * Makefile.in (depend): More makefile diddling.
* alldeps.mak, depend:  Update to latest automatically built
	versions.
1993-06-16 21:34:42 +00:00
Fred Fish
3ef6f6045e * Makefile.in (depend): Bfd.h keeps moving, keep up with it.
* alldeps.mak, depend:  Update to latest automatically built
	versions.
1993-06-16 19:28:19 +00:00
K. Richard Pixley
568947885c make rpcTimeout user settable 1993-06-15 19:28:40 +00:00
Jim Kingdon
df0f0dcced * main.c, symfile.c, source.c, exec.c, core.c: Use it for
"directory", "source", "cd", "symbol-file" "add-symbol-file",
	"load", "file", "exec-file", "core-file" commands.
1993-06-14 20:50:12 +00:00