Commit graph

1565 commits

Author SHA1 Message Date
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