Commit graph

1680 commits

Author SHA1 Message Date
Jim Kingdon
f1ca2bdff9 * infcmd.c (run_stack_dummy): Set the frame in the bp_call_dummy
breakpoint.
1993-09-28 23:30:02 +00:00
Ian Lance Taylor
01f5ed6da0 * config/nm-sysv4.h: Include solib.h. Define SVR4_SHARED_LIBS.
* config/tm-sysv4.h: Don't include solib.h.
	* config/xm-sysv4.h: Don't define SVR4_SHARED_LIBS.
	* config/i386/i386v4.mt (TDEPFILES): Move solib.o from here...
	* config/i386/i386v4.mh (NATDEPFILES): ...to here.
	* config/i386/nm-i386v4.h: Include nm-sysv4.h.
	* config/m68k/amix.mt (TDEPFIES): Move solib.o from here...
	* config/m68k/amix.mh (NATDEPFILES): ...to here.
1993-09-28 21:58:59 +00:00
Jim Kingdon
5573d7d4b1 Tue Sep 28 09:45:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* symmisc.c (print_symbol): Use %02x not %2x for LOC_CONST_BYTES.

	Clean up problems with targets and hosts that have 64 bit longs
	and pointers and 32 bit ints.
	* breakpoint.c, buildsym.c, c-lang.c, c-valprint.c, ch-lang.c,
	ch-valprint.c, core.c, cp-valprint.c, dbxread.c, exec.c,
	expprint.c, gdbtypes.c, infcmd.c, language.c, language.h,
	m2-lang.c, maint.c, mips-tdep.c, mipsread.c, partial-stab.h,
	printcmd.c, remote-vx.c, solib.c, source.c, stack.c, symfile.c,
	symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
	Change all printf formats from %x to %lx if outputting an address.
	Change la_*_format to use long format.
	local_hex_string, local_hex_string_custom now take an unsigned long
	argument, change all callers.
	* coffread.c (read_coff_symtab):  Remove superfluous cast for
	complaint output.
	* dbxread.c (end_psymtab):  Cast MSYMBOL_INFO to long, not int.
	* findvar.c, value.h (write_register):  Change register value to long.
	* gdbtypes.h (struct type):  Change `bitsize' to long as
	TYPE_FIELD_STATIC_PHYSNAME uses this field as a pointer.
	* inferior.h (struct inferior_status):  Change type of stop_pc to
	CORE_ADDR.
	* language.h (local_octal_string, local_octal_string_custom):
	Remove prototype, the functions are neither defined nor used.
	* mipsread.c (parse_symbol):  Use temporary variable for bitsize as
	f->bitsize is a long now.
	* objfiles.c (add_to_objfile_sections, build_objfile_section_table):
	Use unsigned long casts instead of int for abusing sections_end
	pointer as integer.
	* stack.c (parse_frame_specification):  Change type of `args' to
	CORE_ADDR for SETUP_ARBITRARY_FRAME.

	* printcmd.c (make_vasize):  Allow redefinition via MAKEVA_SIZE.
	* mipsread.c (parse_type):  Alpha cc now supports the t->continued
	bit, update algorithm to match the way the compiler uses it.
1993-09-28 17:43:25 +00:00
Jim Kingdon
aca4585c94 * utils.c (fprintfi_filtered): Fix comments. 1993-09-28 17:10:37 +00:00
Stu Grossman
f0fcf00aad * coffread.c (read_coff_symtab): Don't call getfilename if there
are no auxents.
1993-09-28 01:19:07 +00:00
Jim Kingdon
01d3fdba2c * symtab.c (find_pc_line): Fix comments. 1993-09-27 16:34:29 +00:00
Jim Kingdon
7fc6a6b52e * remote-udi.c (udi_mourn): Don't pop target. 1993-09-27 15:30:29 +00:00
Stu Grossman
d113e6b28e * corelow.c: Add multi thread/process support for core files with
.reg/XXX pseudo-sections.
* i386lynx-nat.c thread.h thread.c:  Remove unnecessary core file
support.
1993-09-25 00:40:20 +00:00
Jim Kingdon
d4778d0f06 * valops.c (search_struct_method, value_struct_elt):
Use (value)-1, not -1, for error.
1993-09-23 19:46:32 +00:00
Jim Kingdon
3f528883ae * mips-tdep.c (mips_frame_chain): If frame size zero, return zero.
* rs6000-tdep.c: Add comment about framelessness.
1993-09-23 19:03:38 +00:00
Jim Kingdon
abef03ced2 * config/m88k/tm-m88k.h, m88k-tdep.c: Add call function stuff. 1993-09-23 17:20:44 +00:00
Jim Kingdon
114221b5a4 * infcmd.c (step_1), infrun.c (wait_for_inferior): Add comments
about SHIFT_INST_REGS.

	* exec.c (exec_file_command): Set text_end based on all code readonly
	sections, not just ".text".

	* defs.h, infcmd.c, config/z8k/tm-z8k.h, config/m88k/tm-m88k.h,
	config/sh/tm-sh.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
	z8k-tdep.c: Remove all references to ADDR_BITS_SET.
	* config/m88k/tm-m88k.h: Define TARGET_WRITE_PC.

	* config/m88k/tm-m88k.h: Add definitions for calling functions.
1993-09-23 17:16:35 +00:00
Peter Schauer
8b52d48669 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Define as noop as
the pushing of the struct return address is already handled in
	mips_push_arguments.
	* mips-tdep.c (reinit_frame_cache_sfunc):  Fix typo in prototype
	declaration.
	* mipsread.c (parse_symbol, parse_type, upgrade_type):  Add more
	sanity checks for corrupt symbol entries to avoid core dumps
	reported by benson@odi.com. Obviously Ultrix 4.3A cc now has
	the same problems as the OSF/1 alpha cc.
	* mipsread.c (parse_lines):  Iterate over the range of the compressed
	line number entries, the old iteration sometimes failed to stop
	and wrote past the end of the LINETABLE. Add sanity check to avoid
	the same problem in case the line number info is corrupt.
	* mipsread.c (parse_procedure):  Adjust pdr for alpha __sigtramp.
	* mipsread.c (parse_external, parse_partial_symbols):  Ignore stNil
	symbols that are produced for statics in .o files and stLocal symbols
	that are produced for every section in OSF/1 dynamically linked
	 executables.
	* mipsread.c (psymtab_to_symtab_1):  Put out `undefined symbols'
	warning only under `verbose on' as there are many undefined symbols
	in a dynamically linked executable.
1993-09-23 07:22:06 +00:00
Jim Kingdon
a9b35c674d * config/i960/nindy960.mt: Don't define REMOTE_O; REMOTE_O was
intended only for VxWorks.  Remove dcache.o from TDEPFILES now
	that we pick it up from the default REMOTE_O.
1993-09-23 00:27:06 +00:00
Jim Kingdon
e797b4bc3b * mips-tdep.c (mips_frame_chain): If frame size zero, return zero. 1993-09-22 20:33:36 +00:00
Jim Kingdon
bdef72d222 * mips-tdep.c (mips_frame_chain): If PROC_FRAME_OFFSET is zero,
then return zero.
1993-09-22 19:31:42 +00:00
Jim Kingdon
6deb63abcc * remote-nindy.c: Declare ninMemGet and ninMemPut. 1993-09-22 15:45:46 +00:00
Stu Grossman
b1eaba9ac4 * Makefile.in: Add i386lynx-tdep to the right places.
(TARDIRS):  Add gdbserver.

* exec.c (print_section_info):  Print entry point.
* i386lynx-nat.c (i386lynx_saved_pc_after_call):  Move into
i386lynx-tdep.c.  Add core file support.
* i386lynx-tdep.c:  New module for Lynx/386 target dependant code.
* maint.c:  Add `maint info sections' command to print info about all
sections that BFD knows about for exec and core files.
* sparc-tdep.c (sparc_push_dummy_frame):  Update stack pointer
before putting frame on the stack.  Consolidate writes to reduce
traffic for remote debugging.
* config/i386/i386lynx.mh (NATDEPFILES):  Remove exec.o.
* config/i386/i386lynx.mt (TDEPFILES):  Add exec.o, i386lynx-tdep.o.
* config/i386/nm-i386lynx.h:  Add target_pid_to_str().
* config/i386/tm-i386lynx.h:  Remove target_pid_to_str().
* sparclite/Makefile.in:  Add deps to keep Sun make happy.
1993-09-22 15:23:53 +00:00
Jim Kingdon
cb6b02027c * breakpoint.h, breakpoint.c (bpstat_stop_status): Add new argument
not_a_breakpoint.
	* infrun.c (wait_for_inferior): Pass it.  Also consolidate the
	test of whether we are stepping into a CURRENTLY_STEPPING macro.
1993-09-22 01:16:50 +00:00
K. Richard Pixley
817ac7f82b * breakpoint.c (bpstat_stop_status),
infcmd.c (step_1),
	  infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef and insert macro.

	* m88k-tdep.c: include ieee-float.h.  new global target_is_m88110.
	  new const struct ext_format_m88110 for float format.
	  (pic_prologue_code): add braces.
	  (next_insn): remove unused variable buf.
	  (frame_find_saved_regs): remove unused variables next_addr,
	  saved_regs, regnum.
	  (frame_locals_address): remove unused variables frame, ap.
	  (frame_args_address): remove unused variables frame, ap.
	  (push_parameters): add some breaks and a default case.

	* remote-bug.c: remove redundant includes of value.h, target.h,
	  serial.h.
	  (bug_open): corrected typo, sr_multi_scan -> gr_multi_scan.
	  (bug_fetch_register): special case sfip register for m88110.
	  remove flag bit masking of pc registers.  This should be handled
	  by the ADDR_BITS_* macros.
	  (bug_store_register): special case sfip register for m88110.
	  Corrected sprint format for extended registers.
1993-09-22 00:43:55 +00:00
Jim Kingdon
bb7b38008e * breakpoint.c (breakpoint_1): Support bp_call_dummy. 1993-09-21 22:55:39 +00:00
Ian Lance Taylor
610a7e7458 * elfread.c (record_minimal_symbol_and_info): Guess the section to
use from the type.
	* objfiles.c: Include gdb-stabs.h for SECT_* macros.
	(objfile_relocate): Relocate textlow and texthigh in psymtabs.
	Relocate partial symbols.  Check that minimal SYMBOL_SECTION is
	nonnegative before using it.
	* symtab.h: Adjust section field comment.
1993-09-21 21:21:35 +00:00
Jim Kingdon
e15f2a5457 * remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it. 1993-09-21 20:35:36 +00:00
Jim Kingdon
4ef6b45196 * printcmd.c (print_scalar_formatted): When truncating value we are
going to print as unsigned, handle it generally for any length
	less than sizeof (LONGEST), rather than special-casing sizeof (char),
	sizeof (short), and sizeof (long).  Clarify comment on what this
	is for.
1993-09-21 18:54:46 +00:00
Jim Kingdon
8b05f64a70 * symfile.c (deduce_language_from_filename): Accept .cxx for C++.
* buildsym.c (start_subfile): Use deduce_language_from_filename
	rather than checking for .C or .cc ourself.
1993-09-21 17:41:45 +00:00
Jim Kingdon
1bef45eae0 * defs.h: Declare argument of re_comp as const char *. 1993-09-20 21:49:24 +00:00
Jim Kingdon
66a48870ac * remote.c, remote-mips.c: Use sr_get_debug not remote_debug. 1993-09-20 21:20:59 +00:00
Jim Kingdon
424ab390d6 * README: Say using bfd from another release doesn't generally work. 1993-09-20 21:04:46 +00:00
Jim Kingdon
1fdbc4d17b * mipsread.c (parse_type): Don't complain() if we guessed struct
and it was a union, or vice versa.
1993-09-18 21:11:25 +00:00
Jim Kingdon
84d598611e * defs.h (make_cleanup): Change PTR to void * when inside PARAMS.
Some of the following is in #ifdef CALL_DUMMY_BREAKPOINT_OFFSET.
	* breakpoint.h (enum bptype): Add bp_call_dummy.
	(struct bpstat_what): Add call_dummy field.
	* infrun.c (wait_for_inferior): Deal with it.
	* breakpoint.c (bpstat_what): Deal with call dummy breakpoint.
	* infcmd.c (run_stack_dummy): Set the call dummy breakpoint.
	* config/sparc/tm-sparc.h: Define CALL_DUMMY_BREAKPOINT_OFFSET.
1993-09-18 19:15:36 +00:00
Jim Kingdon
40b92220c5 * remote-sim.h: New file.
* remote-sim.c: Add remote debug feature.  Rename stuff to distinguish
	interface to simulator from gdb-specific stuff.  Other changes.
start-sanitize-v9
	* remote-sp64sim.c: Renamed to remote-sim.c.
	Use sr_get_debug instead of our own sim_verbose/simif_snoop.
	Use gnutarget in call to bfd_openr.
	Rename simif_* to gdbsim_*.
	* config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
end-sanitize-v9
1993-09-17 17:27:43 +00:00
Peter Schauer
30d20d1545 * findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
the xor and subtract.  Otherwise it will not sign extend if the type
	of LONGEST is larger than int.
	* cp-valprint.c (cp_print_class_method):  Inhibit core dump if
	domain is an undefined cross reference.
	* valops.c (call_function_by_hand):  Set real_pc to correct
1993-09-17 11:46:50 +00:00
Jim Kingdon
f8efbf2296 * config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero. 1993-09-17 04:54:52 +00:00
Jim Kingdon
ca0622e7e0 * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
to tm-a29k.h and a29k-tdep.c and make it an enum.
	* a29k-tdep.c (a29k_get_processor_type): New function.  Fix many
	aspects of how we detected the processor type.
	* remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
	rather than figuring out the type ourselves.
1993-09-16 23:45:46 +00:00
Stu Grossman
c9de302ba5 * infrun.c (wait_for_inferior): Allow user to single step within
a stack dummy.
1993-09-16 20:18:26 +00:00
Jim Kingdon
2670a1dd47 * dbxread.c (copy_pending): Deal with END NULL.
(process_one_symbol): Add comments about what common_block NULL means.
1993-09-16 19:54:47 +00:00
Stu Grossman
f2e21136eb * sparc-stub.c (_trap_low): Do restore/save sequence after
setting sp to ensure that we load the previous window from the
right place on the stack.
1993-09-16 19:16:19 +00:00
Peter Schauer
85999c054b * mipsread.c: Many changes for alpha ecoff format:
Correct sizeof(int) == sizeof(long) assumptions.
	Replace stParsed hack by putting the parsed types on the pending chain.
	Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro,
	provide default for cross debugging.
	Swapping the symbol back is no longer needed as the symbol is not
	modified anymore.
	Add new alpha basic types, handle btTypedef, handle stStaticProc
	external symbols .
	Update and clean up cross_ref for alpha cc cross ref variations.
	Allocate types on the type_obstack to inhibit storage leaks.
	* config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM):  Define.
	* gdbtypes.c (recursive_dump_type):  Dump TYPE_TAG_NAME if it is set.
1993-09-16 07:38:42 +00:00
Jim Kingdon
ddf5d7e82e * paread.c, coffread.c, elfread.c, dwarfread.c:
Include <time.h> and <sys/types.h> before libbfd.h.
1993-09-15 16:45:44 +00:00
Jim Kingdon
5ed0ccafca * stabsread.c (read_type): Process "s" (size) type attribute.
If type is defined to another type, copy the type.
1993-09-15 00:46:55 +00:00
Ian Lance Taylor
aa8fe9070c * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
* config/i386/i386v4.mt (TDEPFILES): ...to here.
1993-09-14 22:41:49 +00:00
K. Richard Pixley
b70b042d02 fix serial.h inclusion 1993-09-14 20:08:23 +00:00
K. Richard Pixley
a94abe5bb7 use remote-utils facilities for baud_rate 1993-09-14 19:34:15 +00:00
Jim Kingdon
fc77365385 * paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h. 1993-09-14 18:10:42 +00:00
Jim Kingdon
1225fcbd24 * paread.c: Include <time.h> before libbfd.h.
* paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
1993-09-14 17:32:45 +00:00
Jim Kingdon
899931b638 * Makefile.in (a29k-tdep.o): Depend on $(defs_h).
* config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
	if this	is a transparent procedure.
1993-09-14 16:22:07 +00:00
Jim Kingdon
55fea07b55 * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
hack so this file compiles again.

	* remote-utils.c (gr_multi_scan): Cast return value from alloca.
	(gr_multi_scan): #if 0 never-reached return(-1).
1993-09-14 01:08:22 +00:00
K. Richard Pixley
c6f494e8be collect some remote things into remote-utils 1993-09-13 22:12:16 +00:00
Jim Kingdon
37c99ddb4e * inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
pc_changed.  If it was ever set to a non-zero value, it was before
	GDB 2.8.  It doesn't seem to have any useful function.
1993-09-13 20:54:00 +00:00
Jim Kingdon
e3c16900cd * defs.h: Don't define NORETURN (see comment). 1993-09-13 20:13:03 +00:00