Commit graph

2073 commits

Author SHA1 Message Date
Jim Kingdon
796d1fd3fb * remote-mips.c (mips_ops): Fix docstring. 1994-01-28 22:06:01 +00:00
Jim Kingdon
97cc042806 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
* infptrace.c (kill_inferior): Add comments.
	* main.c (quit_command): Call target_close after we kill or
	detach.
	* remote-udi.c (udi_close): Don't error() if QUITTING.
1994-01-28 21:58:12 +00:00
Jim Kingdon
ddd0223e94 * config/m68k/tm-monitor.h: Changes to bring this into accordance
with the old tm-m68k-em.h:
	(GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
	(HAVE_68881): Don't undefine; this #define is obsolete.
	(REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
	Add FIXME regarding GET_LONGJMP_TARGET.
1994-01-28 21:10:07 +00:00
Jim Kingdon
b09f44d2c9 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments. 1994-01-28 20:43:59 +00:00
Rob Savoye
0ffba0293e * configure.in: Make m68k-coff and aout add monitor support in
addition to the standard serial support.
1994-01-28 18:58:54 +00:00
Jim Kingdon
bb7cb9828e * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
index indexNil.
1994-01-28 16:56:58 +00:00
Jim Kingdon
9fdb3f7aad * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
* elfread.c (record_minimal_symbol_and_info),
	dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
1994-01-28 16:25:25 +00:00
Jim Kingdon
6202263d81 * i386-stub.c: Add ".text" right before "mem_fault:". 1994-01-28 02:50:18 +00:00
Jim Kingdon
9c41f6a680 * main.c (baud_rate): Add FIXME comment about printing -1 value.
* remote-utils.c (usage): Fix message to be accurate and conform
	more closely to normal conventions.

	* remote-utils.c (gr_files_info): Have the exec_bfd test control
	whether to show information about exec_bfd, and not control whether
	to show information about device and speed.

	* remote-utils.c (gr_open): If sr_get_device returns NULL, give
	usage message, don't dump core.

	* remote-bug.c (bug_write_memory): Use alloca, not GCC extension
	for variable size array.
	(bug_fetch_register, bug_store_register): Rename "value" to
	"fpreg_buf" because some compilers don't like variables whose
	names are the same as types.
	(bug_store_register): Use a cast when converting char * to
	unsigned char *.
1994-01-28 02:18:39 +00:00
Jim Kingdon
d5c551c9df * symmisc.c (maintenance_print_symbols): Don't refer to the name
of the command in error message (the text was referring to the old
	name of the command).

	* symmisc.c (dump_symtab): Fix args to fprintf_filtered.
1994-01-28 00:46:43 +00:00
Jim Kingdon
0e4ad984b1 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
full details on structure elements without names.  This partially
	reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
	of those changes was accidental.
1994-01-27 23:55:10 +00:00
Jim Kingdon
577da8cbbd * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
defined, make it an error to specify a single argument which is not
	a frame number.
1994-01-27 21:44:40 +00:00
Jim Kingdon
a28d16d380 * Makefile.in (version.c), main.c (print_gdb_version): Use
host_alias and target_alias, not host_canonical and
	target_canonical, to print configuration.
1994-01-27 20:19:13 +00:00
Jim Kingdon
d92f3f0853 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
of builtin_type_long.  It is necessary to get a type which is
	TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
1994-01-27 01:23:50 +00:00
Jim Kingdon
833e0d94cc Fix many sins which will come up in 32 bit x 64 bit GDB, and
various miscellaneous things discovered in the process:
	* printcmd.c, defs.h (print_address_numeric): New function.
	* c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
	breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
	cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
	printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
	Use it.
	* utils.c, defs.h (gdb_print_address): New function.
	* expprint (dump_expression), gdbtypes.h: Use it.
	* breakpoint.c (describe_other_breakpoints),
	symmisc.c (dump_symtab, print_symbol):
	Use filtered not unfiltered I/O.
	(remove_breakpoints): Remove BREAKPOINT_DEBUG code.  Might as well
	just run gdb under a debugger for this (and it had problems with
	printing addresses, how to print b->shadow, etc.).
	* buildsym.c (make_blockvector), core.c (memory_error),
	exec.c (print_section_info), maint.c (print_section_table),
	mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
	symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
	Add comments saying code is broken.  Marked with "FIXME-32x64".
	* dbxread.c (process_one_symbol), partial-stab.h (default),
	remote-vx.c (vx_run_files_info):
	Don't cast int being passed to local_hex_string.
	* symmisc.c (print_symbol): Don't cast long being passed to %lx.
	* symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
	only being a long.
	* symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
	and LOC_LOCAL.
	* printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
	* source.c: Include <sys/types.h> regardless of USG.
1994-01-27 00:36:05 +00:00
Peter Schauer
67e9b3b31b * valops.c (value_assign): Set `type' after coercing toval.
* c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
	Use extract_unsigned_integer to get the address of a reference.
1994-01-25 21:03:56 +00:00
Jim Kingdon
3bc45b7a1a Improve ChangeLog entry for HAVE_SIGSETMASK to discuss what ANSI specifies
(just for kicks).
1994-01-25 18:51:54 +00:00
Jim Kingdon
91a0575c8a * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
AIX can use ? instead of \ for continuation.  Deal with it.
1994-01-25 17:28:05 +00:00
Jim Kingdon
364648978f * paread.c (read_unwind_info): Just assign to objfile->obj_private,
not OBJ_UNWIND_INFO.  Assigning to a cast is a GCC-ism which
	the HP compiler in ANSI mode doesn't like.

	* main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
	based on USG, rather than defining HAVE_SIGSETMASK to an expression
	containing defined.  This is for the HP compiler in ANSI mode.
1994-01-25 16:39:10 +00:00
John Gilmore
2ba6182bbc * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
Clean up the changes of 11 Jan, as recommended by Peter Schauer.
1994-01-25 04:54:05 +00:00
Per Bothner
96b6b765fc * ch-exp.y (match_string_literal): Allow a zero-length string.
* ch-lang.c (chill_printstr):  Don't print zero-length string funny.
1994-01-23 20:42:00 +00:00
Jim Kingdon
dfd4c728fa * i386aix-nat.c (i386_float_info): Reverse order of registers before
passing them to print_387_status.
	(print_387_status): Don't subtract top from 7 before using it.
	* i387-tdep.c: Remove comment about AIX wanting "top" subtracted
	from 7; the above explains it.
1994-01-22 22:14:04 +00:00
Peter Schauer
5efd597b3c * mips-tdep.c (init_extra_frame_info): Use frame relative stack
pointer value when fixing up the frame at the start of a function
1994-01-22 20:45:55 +00:00
Stu Grossman
e90445c997 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
Sparc from the stack.
1994-01-22 20:34:37 +00:00
Jim Kingdon
864df7e6f3 * remote-mips.c (mips_initialize): Clear mips_initializing via
cleanup chain, not directly.

	* ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
	of -1 mean forever, like in the HAVE_SGTTY case.  Warn if we are
	munging the timeout due to the limited range of c_cc[VTIME].
1994-01-22 19:16:02 +00:00
Jim Kingdon
08f74b9271 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
* procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
	m3-nat.c (m3_create_inferior): Pass it.
	* procfs.c: Remove ptrace function.  It was declared in a way which
	conflicted with the prototype in unistd.h on Solaris.
1994-01-22 17:36:41 +00:00
Peter Schauer
cdcf48bea9 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
in the sigcontext if it is a signal trampoline frame.
	* config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
	Define for Solaris2.
1994-01-22 09:40:17 +00:00
Stu Grossman
8bf94f44bc * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
config/sparc/tm-sparclynx.h:  Move defs of FRAME_SAVED_I0/L0 to
	tm-sparc.h so they can be overridden if necessary.
1994-01-22 08:42:14 +00:00
Stu Grossman
d575ddc0ef * lynx-nat.c: Add Sparc support.
* sparcly-nat.c:  Remove.  It's useless.
	* config/sparc/nm-sparclynx.h:  Rewrite.
	* config/sparc/sparclynx.mh (NATDEPFILES):  Replace sparcly-nat.o
	with lynx-nat.o
	* config/sparc/tm-sparclynx.h:  Rewrite.
1994-01-22 01:58:55 +00:00
Ian Lance Taylor
0024027986 * rs6000-pinsn.c: Use the new disassembler in the opcodes
directory.  Old code was discarded, since the new opcode table has
	a different format.
1994-01-22 00:16:18 +00:00
Fred Fish
a2608ea10e * Makefile.in (realclean): Remove info files per make-stds.texi. 1994-01-21 22:31:50 +00:00
Jim Kingdon
6545c6a085 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
if N_SO_ADDRESS_MAYBE_MISSING is defined.
	* config/sparc/tm-sun4sol2.h: Define it.
1994-01-21 17:53:57 +00:00
Jim Kingdon
cd5ee29439 Thu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* printcmd.c (print_address_symbolic):  Unconditionally use msymbol
	if we did not find a symbol.
1994-01-21 17:43:32 +00:00
Jeff Law
918fea3e3c * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
is not defined.

	* hppab-nat.c (call_ptrace): Delete redundant function.
	(kill_inferior, attach, detach, child_resume): Likewise.
	(child_xfer_memory): Likewise.

	* hppah-nat.c (call_ptrace): Delete redundant function.
	(kill_inferior, attach, detach, child_resume): Likewise.

	* config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.

	* config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.

	* config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.

	* config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): Define.
	(CHILD_XFER_MEMORY): Define.
	(PT_*): Define so that generic infptrace.c code can be used.
1994-01-21 16:22:51 +00:00
Jim Kingdon
1b880e74fb * xcoffread.c (xcoff_symfile_read): Make second parameter a
struct section_offsets *, not a (nonexistent) struct section_offset *.
1994-01-21 14:44:29 +00:00
Jim Kingdon
6657a0c7ea * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
internal_xcoff_symtab, not an array of one of them.  Change lots of
	"main_aux" to "&main_aux" and so on.
1994-01-21 14:38:58 +00:00
Jim Kingdon
27ad511f84 * coffread.c, xcoffread.c: Include <coff/internal.h>
before "symfile.h".
1994-01-21 14:26:20 +00:00
Jim Kingdon
dbb0fae2de * coffread.c (coff_getfilename): Make it not static. 1994-01-21 00:34:07 +00:00
Jim Kingdon
d4a0983ab0 * xcoffread.c (read_xcoff_symtab): complain() not abort().
* xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
	a completely gratuitous difference between xcoffread.c and coffread.c).
1994-01-20 22:38:03 +00:00
Jim Kingdon
d7e7e85159 * infrun.c (wait_for_inferior): Don't set frame for
step_resume_breakpoint for IN_SIGTRAMP cases.

	* infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
	breakpoint.c (bpstat_what): Move step_resume from its own field of
	the struct bpstat_what into the main_action.  Make it override
	other breakpoints.  This is a conservative change in the sense
	that before the step resume breakpoint was a breakpoint.c
	breakpoint, hitting the step resume breakpoint overrode even
	calling bpstat_stop_status.
1994-01-19 21:14:40 +00:00
Peter Schauer
f1de67d323 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
in case execution was stopped in the called function.
	* stack.c (print_frame_info, frame_info):  If backtracing through
	a call dummy, handle the starting source line number on a line
	boundary like backtracing through sigtramp.
	* sparc-tdep.c (sparc_frame_find_saved_regs):  Get frame address
	for call dummy frame right.  Remove old test for dummy frame,
	it has been unused at least since gdb-3.5.
	* sparc-tdep.c (sparc_push_dummy_frame):  Set return address register
	of the dummy frame.
1994-01-19 20:45:30 +00:00
Jim Kingdon
c6e0f918e2 * infcmd.c (signal_command): Accept 0 as legitimate signal number. 1994-01-18 21:20:28 +00:00
Jim Kingdon
db4340a625 * infrun.c (signals_info), target.c (target_signal_from_name):
Use ugly casts to avoid enumvar < enumvar or enumvar++.
1994-01-18 19:13:38 +00:00
Jim Kingdon
d881dd869f * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
* inflow.c (terminal_ours_1): When discussing how to deal with the
	tty state, make note of query() as well as readline.
1994-01-18 04:29:34 +00:00
Jim Kingdon
4d4f2d50c8 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
signals for which stop and print are cleared by default.
1994-01-18 04:14:34 +00:00
Jeff Law
c7f3b703a3 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
reserved fields to hold a stub unwind entry type.  Fix typo.
        (stub_unwind_entry): New structure for raw stub unwind entries.
        (stub_unwind_types): The types of stubs we may encounter.
        (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
        * hppa-tdep.c (rp_saved): Use additional information provided
        by linker stub unwind descriptors.
        (frameless_function_invocation): Likewise.
        (frame_chain_valid): Likewise.
        * paread.c (compare_unwind_entries): New function for sorting
        unwind table entries.
        (read_unwind_info): Rewrite to remove dependency on host endianness.
        Read in data from the $UNWIND_END$ subspace which contains linker
        stub unwind descriptors.  Merge that data into the basic unwind
        table.
1994-01-18 04:04:36 +00:00
Jeff Law
5c38fcee3f * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions. 1994-01-18 04:02:06 +00:00
Jim Kingdon
af8b790667 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
from either the symbol name or the auxent.
	* coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
	no longer static.
1994-01-18 03:42:30 +00:00
Fred Fish
0e7da49c55 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h. 1994-01-17 21:36:29 +00:00
Peter Schauer
b90811f914 * README: Update notes for alpha port. 1994-01-17 17:18:18 +00:00