Commit graph

1716 commits

Author SHA1 Message Date
Jim Kingdon
f5ebb9ea78 * Makefile.in (REGEX, REGEX1): Always use our own version of
regex.c to be consistent across hosts.
	* source.c (_initialize_source):  Initialize regex to use grep
	style syntax as an approximation to POSIX basic regex syntax.
1993-10-07 11:03:35 +00:00
Jim Kingdon
8966221d52 * hppa-tdep.c (frame_chain): Rework so that it correctly
handles boundaries where code with a frame pointer calls code
	without a frame pointer.
	(dig_fp_from_stack): New function.
1993-10-06 20:17:56 +00:00
Jim Kingdon
ebad9e902c * breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint. 1993-10-06 18:01:06 +00:00
Jim Kingdon
b4fd641ffb * README: Add Alpha notes from Schauer. 1993-10-06 17:52:35 +00:00
Jim Kingdon
cfeed64ee6 * Makefile.in (install, uninstall): Remove $$n.1 stuff; I don't
understand what it is trying to do, but I suspect it's not doing
	it.

	* config/ns32k/merlin.mh: Add comment about M_INSTALL.
	* config/m88k/{delta88.mh,delta88v4.mh}: Remove M_INSTALL and
	M_UNINSTALL; it tries to install a non-existent file gdb.z.
	* Makefile.in: Remove M_INSTALL stuff; the above were the only uses.
1993-10-05 21:25:10 +00:00
Jim Kingdon
ebccb10ba5 * stabsread.c (read_range_type): Remove comment which recommends
distinguishing float from complex by the name.
1993-10-05 20:39:49 +00:00
Peter Schauer
cef4c2e7a5 Changes to support alpha OSF/1 in native mode.
* alpha-nat.c, alpha-tdep.c, config/alpha/alpha-osf1.mt,
	  config/alpha/nm-alpha.h, config/alpha/tm-alpha.h, osfsolib.c:
	New files.
	* Makefile.in:  Add new files and dependencies.
	* configure.in:  Add alpha target.
	* config/alpha/alpha-osf1.mh (NATDEPFILES):  Add osfsolib.o
	* config/alpha/alpha-osf1.mh (MH_CFLAGS):  Remove, we can handle
	shared libraries now.
	* config/alpha/xm-alpha.h:  Cleanup, get MAKEVA_* defines right.

	* defs.h (CORE_ADDR):  Make its type overridable via CORE_ADDR_TYPE,
	provide `unsigned int' default.
	* breakpoint.c (breakpoint_auto_delete):  Delete only if we really
	stopped for the breakpoint.
	* stabsread.c, stabsread.h (define_symbol):  Change valu parameter
	to a CORE_ADDR.
	* stabsread.c (read_range_type):  Handle the case where the lower
	bound overflows and the upper doesn't and the range is legal.
	* infrun.c (resume):  Do not step a breakpoint instruction if
	CANNOT_STEP_BREAKPOINT is defined.

	* inferior.h (CALL_DUMMY_LOCATION):  New variant AT_ENTRY_POINT.
	Now that we have the bp_call_dummy breakpoint the call dummy code
	is no longer needed. PUSH_DUMMY_FRAME, PUSH_ARGUMENTS and
	FIX_CALL_DUMMY can be used to set up everything for the dummy.
	The breakpoint for the dummy is set at the entry point and thats it.
	* blockframe.c (inside_entry_file, inside_entry_func):  Do not stop
	backtraces if pc is in the call dummy at the entry point.
	* infcmd.c (run_stack_dummy):  Handle AT_ENTRY_POINT case. Use
	the expected breakpoint pc when setting up the frame for
	set_momentary_breakpoint.
	* symfile.c (entry_point_address):  New function for AT_ENTRY_POINT
	support.
	* valops.c (call_function_by_hand):  Handle AT_ENTRY_POINT case.
1993-10-05 19:44:57 +00:00
Jim Kingdon
e8e1304006 * configure.in: Recognize hppa*-*-hiux* (currently synonym for hpux).
Change other hppa host entries to use -*- not -hp-.
1993-10-05 17:51:13 +00:00
Jim Kingdon
291b84ff00 * minsyms.c (lookup_minimal_symbol_by_pc): Don't use mst_abs symbols. 1993-10-04 22:01:38 +00:00
Jim Kingdon
7db8914c95 * dbxread.c (process_one_symbol): Make n_opt_found static. 1993-10-04 19:19:16 +00:00
Jim Kingdon
c458501e30 * Rename i386lynx-tdep.c to i386ly-tdep.c for 14 character file names.
* Makefile.in, config/i386/i386lynx.mt: Change accordingly.
1993-10-04 17:38:17 +00:00
Jim Kingdon
4abc83b995 Mon Oct 4 11:02:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* values.c (record_latest_value): Fetch lazy values and set VALUE_LVAL
	to not_lval.

Sun Oct  3 15:54:51 1993  Stan Shebs  (shebs@rtl.cygnus.com)

	* objfiles.h (objfile): New slot sym_stab_info, use by most
	stab-reading formats.
1993-10-04 16:43:41 +00:00
Stan Shebs
965a5c32b7 Added new slot to objfile struct to be shared by all stab-reading formats. 1993-10-03 23:04:25 +00:00
Jim Kingdon
77fe3f84ff * mipsread.c, objfiles.c, utils.c: Use PTR not void *. RISC/OS
4.02 lacks void *.
	* elfread.c: Use void * not PTR inside PARAMS.
1993-10-03 01:50:53 +00:00
Jim Kingdon
bde18e3eaa * config/mips/news-mips.mh: Remove coredep.o; mips-nat.o does it.
* config/mips/news-mips.mh: Define NAT_FILE not NM_FILE.
	* config/mips/nm-news-mips.h: Include mips/nm-mips.h not nm-mips.h.
1993-10-03 00:39:42 +00:00
Stu Grossman
ead291d4c3 * Makefile.in, coff-solib.c, coff-solib.h, i386lynx.mt,
tm-i386lynx.h:  Add support for SVR3 COFF shared libraries.
1993-10-02 23:09:51 +00:00
Jim Kingdon
422a19551f * m88k-nat.c (store_inferior_registers): When writing all registers,
don't try to write EXIP_REGNUM or ENIP_REGNUM (not needed for this
	case, and they cause trouble).
1993-10-02 21:07:50 +00:00
Jim Kingdon
e05fe481fa * TODO: Don't suggest doing fast watchpoints by stepping a line
at a time.  That would be really hairy and still not fast enough.
	Do suggest debug registers and page table diddling.
1993-10-02 20:55:34 +00:00
Jim Kingdon
f73b07c9d2 * printcmd.c (do_examine): Make meaning of 'h', 'w', and 'g' not
depend on builtin_type_*.  Instead, it is always 2, 4, and 8 bytes
	like the documentation says.
	* printcmd.c (decode_format) [CC_HAS_LONG_LONG]: Remove 'l' as
	synonym for 'g'.  This was never documented, it shouldn't depend on
	CC_HAS_LONG_LONG, and I don't see what's wrong with 'g'.
1993-10-01 20:48:14 +00:00
Kung Hsu
5c7473b1df Modified Files:
ChangeLog

	* Fix cvs conflict parts.
1993-10-01 19:14:04 +00:00
Kung Hsu
6cb30309d5 Modified Files:
symtab.c ChangeLog

        * symtab.c: fix a bug in testsuite (virtfunc.exp)
	* ChangeLog: check in changelog
1993-10-01 17:16:04 +00:00
Jim Kingdon
3d8536f365 * m88k-nat.c (fill_gregset): Fix typo (R_SFIP -> R_FIP). 1993-10-01 00:51:41 +00:00
Jim Kingdon
dfbf020831 * blockframe.c (find_pc_partial_function): If pst->readin is
set, don't try to get symbols from pst.
1993-09-30 21:53:12 +00:00
Jim Kingdon
2289e1c30b * inflow.c (generic_mourn_inferior): Call reinit_frame_cache
instead	of doing it ourself.
	* blockframe.c (reinit_frame_cache): Use code which was in
	generic_mourn_inferior so we can use this function even when
	we have switched targets.
	* corelow.c (core_detach): Call reinit_frame_cache.
	* target.c (target_detach): Don't call generic_mourn_inferior
	(revert yesterday's change, now handled by core_detach).
	* objfiles.c (free_objfile): Detach any core file if we call
	SOLIB_CLEAR.  #include target.h.
1993-09-30 21:42:23 +00:00
Jim Kingdon
c5198d9378 * corelow.c (core_detach): Call reinit_frame_cache.
* target.c (target_detach): Don't call generic_mourn_inferior
	(revert yesterday's change, now handled by core_detach).
	* objfiles.c (free_objfile): Detach any core file if we call
	SOLIB_CLEAR.  #include target.h.
1993-09-30 21:27:16 +00:00
Jim Kingdon
01dfd41513 * fork-child.c (fork_inferior): Don't call target_terminal_init
and target_terminal_inferior until we are sure that the inferior
	has called gdb_setpgid.  This fixes PR 2900 (Schauer tracked it
	down and was able to reliably reproduce it by putting a sleep()
	before the gdb_setpgid()).
1993-09-30 20:41:17 +00:00
Peter Schauer
8d658c0866 * c-exp.y, m2-exp.y: Change type of address for msymbol to
builtin_type_long.
	* infptrace.c (fetch_register, store_inferior_register,
	child_xfer_memory):  Use PTRACE_XFER_TYPE for the type of ptrace
	transfers. Provide an `int' default for PTRACE_XFER_TYPE.
1993-09-30 19:06:33 +00:00
Jim Kingdon
185d20fcda * defs.h (TARGET_*_BIT): Don't use host information (sizeof) in
picking defaults.
1993-09-30 17:44:53 +00:00
Jim Kingdon
c9e92abd35 * findvar.c, value.h (write_register): Change val to LONGEST. 1993-09-30 17:15:27 +00:00
Jim Kingdon
8f341c15fd * cp-valprint.c (cp_is_vtbl_ptr_type): Continue to accept old form. 1993-09-30 16:43:35 +00:00
Stu Grossman
9040a00b8f * Makefile.in: Add deps for i386lynx-nat.o and i386lynx-tdep.o to
keep non-gnu makes happy.
1993-09-30 01:35:50 +00:00
Jim Kingdon
33f00b4425 check in ChangeLog entry for kung change 1993-09-29 18:27:19 +00:00
Jim Kingdon
49781499e5 * target.c (target_detach): Call generic_mourn_inferior.
* inflow.c (generic_mourn_inferior): Call flush_cached_frames.
1993-09-29 15:59:36 +00:00
Jim Kingdon
898140fe5a * dbxread.c, coffread.c, elfread.c: A few changes to comments. 1993-09-29 04:25:15 +00:00
Jim Kingdon
0ccbaadcf2 * dbxread.c, coffread.c: A few changes to comments. 1993-09-29 04:15:43 +00:00
Stan Shebs
b5b186a2cd Additions to support stabs-in-coff. 1993-09-29 01:53:52 +00:00
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