Commit Graph

1970 Commits

Author SHA1 Message Date
Jim Kingdon 2e142fdedd * breakpoint.h (struct bpstat_what): Don't use bitfields. 1993-10-19 16:05:23 +00:00
Jim Kingdon 915e6cd9f6 * typeprint.c: Add "class CLASS-NAME" to docstring for ptype. 1993-10-19 15:56:20 +00:00
Fred Fish 0ac1a039f4 * Makefile.in (ALLPARAM): Add config/m88k/{nm-delta88v4.h,
tm-delta88v4.h, xm-dgux.h}.
	* Makefile.in (ALLCONFIG):  Add config/m88k/{delta88v4.mh,
	delta88v4.mt}.
1993-10-19 13:27:55 +00:00
Fred Fish 2be58d4517 * README: Remove comment about SunOS 5.x programs leaving
coredumps.  Info from Sun is that this was not in customer
	releases.
1993-10-19 13:19:25 +00:00
Jim Kingdon 8c5e002153 * hppa-tdep.c (restore_pc_queue): Call target_terminal_ours after
done stepping the inferior.
1993-10-18 23:06:19 +00:00
Jim Kingdon adee89e8a2 * c-exp.y: Remove never-used (because of shift/reduce conflicts)
rules for pointers to members.
	* Makefile.in: Remove notice about expected shift/reduce conflicts.
1993-10-18 18:01:51 +00:00
Jim Kingdon f91b837dd0 * buildsym.c (finish_block): If we pop the context stack and it is
not empty, complain () instead of abort ().
1993-10-18 15:40:04 +00:00
Fred Fish cf4d863151 Bump version to 4.10.3 in main trunk after branch for gdb 4.11 1993-10-17 20:08:10 +00:00
Stu Grossman fb63d460a7 * procfs.c: Handle process exits more elegantly by trapping on
entry to _exit.  Also, cleanup procinfo list when process dies of
it's own accord (as opposed to being killed).
1993-10-17 09:12:58 +00:00
Jim Kingdon df0d53e3f4 * config/m88k/xm-dgux.h: Define NO_PTRACE_H. 1993-10-17 02:19:59 +00:00
Jim Kingdon 4cc5b060c2 * corelow.c (add_to_thread_list): Need a cast to go from PTR to
asection *.
1993-10-17 02:05:58 +00:00
Jim Kingdon 749e538bc8 * infrun.c: Add comment about signals.
* fork-child.c (fork_inferior): Remove CREATE_INFERIOR_HOOK again.
	Stu reinstated it (accidently I assume).
1993-10-17 01:56:01 +00:00
Stu Grossman 7c5d526e1f * procfs.c (procfs_wait): Losing Unixware can't do poll on /proc
files.  Use PIOCWSTOP instead.
* corelow.c (add_to_thread_list):  Fix arg to match prototype.
1993-10-17 01:02:57 +00:00
Stu Grossman 0aede96355 *** empty log message *** 1993-10-16 22:31:07 +00:00
Stu Grossman de43d7d005 * breakpoint.c (breakpoint_thread_match break_command_1):
Thread-specific breakpoint support.
* breakpoint.h (struct breakpoint):  Add thread id field.
* fork-child.c (fork_inferior):  Move call to init_thread_list()
back a bit so that init_trace_fun can do thread functions.
* hppa-tdep.c (restore_pc_queue):  Add pid to call to target_wait.
* hppab-nat.c (child_resume):  Handle default pid.
* hppah-nat.c (child_resume):  Handle default pid.
* i386lynx-nat.c (child_wait):  New arg pid.
* inflow.c (kill_command):  Reset thread list.
* infptrace.c (child_resume):  Handle default pid.
* infrun.c:  Thread-specific breakpoint support.
* inftarg.c (child_wait):  Add pid arg.
* osfsolib.c (solib_create_inferior_hook):  Add pid to call to
target_resume.
* procfs.c:  Multi-thread support.
* remote-bug.c (bug_wait):  Add pid arg.
* remote-hms.c (hms_wait):  Add pid arg.
* remote-mips.c (mips_wait):  Add pid arg.
* remote-mon.c (monitor_wait):  Add pid arg.
* remote-nindy.c (nindy_wait):  Add pid arg.
* remote-sim.c (gdbsim_wait):  Add pid arg.
* remote-udi.c (udi_wait):  Add pid arg.
* remote-vx.c (vx_wait):  Add pid arg.
* remote-z8k.c (sim_wait):  Add pid arg.
* remote.c (remote_wait):  Add pid arg.
* solib.c (solib_create_inferior_hook):  Add pid to call to
target_resume.
* target.h (struct target_ops):  Add pid arg to to_wait and
to_notice_signals.
* thread.c (valid_thread_id):  New func to validate thread #s.
* (pid_to_thread_id):  New func to do the obvious.
* thread.h:  Prototypes for above.

* coff-solib.c (coff_solib_add):  Use nameoffset field to locate
filename.
1993-10-16 06:42:02 +00:00
Jim Kingdon 9bc3153e82 * h8300-tdep.c, h8500-tdep.c: Define sim_load only, but not
sim_kill, sim_open, or sim_set_args.
1993-10-16 05:07:31 +00:00
Jim Kingdon 921b588b92 x 1993-10-16 04:58:20 +00:00
Jim Kingdon 12e0f76653 * stack.c (print_stack_frame): Put catch_errors around
print_frame_info so (for example) error printing source doesn't
	cause auto-displays to get skipped in normal_stop.
1993-10-16 04:37:45 +00:00
Jim Kingdon 88938c54aa * findvar.c (value_from_register): When preparing to cast a value
from REGISTER_VIRTUAL_TYPE to type, copy the REGISTER_VIRTUAL_SIZE;
	the old code didn't copy the whole thing.
	* valops.c (value_assign): Add comment.
1993-10-16 02:41:17 +00:00
Peter Schauer c0e1076db2 * mipsread.c (upgrade_type): Replace bitsize sanity checks and
complaint by a comment explaining why they were useless.
1993-10-15 19:58:39 +00:00
Jim Kingdon 78cab901b0 * Move comments on bypassing call dummy breakpoint from stack.c
to breakpoint.h.
1993-10-15 19:37:29 +00:00
Jim Kingdon c540818b16 Fri Oct 15 11:52:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* symtab.c (lookup_partial_symtab):  If filename is not found and
	contains no slashes, try again and compare without leading path
	components.
	* symtab.c (lookup_symtab_1):  Replace open coded version of
	lookup_partial_symtab with a function call.
1993-10-15 17:11:11 +00:00
Jim Kingdon 5d76c8e662 * fork-child.c (fork_inferior), remote-eb.c (eb_create_inferior),
remote-mon.c (monitor_create_inferior), remote-nindy.c
	(nindy_create_inferior), remote-st.c (st2000_create_inferior),
	remote-vx.c (vx_create_inferior): Remove CREATE_INFERIOR_HOOK; it
	is replaced by init_trace_fun.
	* config/convex/xm-convex.h, convex-xdep.c: Add comments explaining
	how to do without CREATE_INFERIOR_HOOK for whoever fixes the Convex
	port.

	* Makefile.in: Add Mach files to ALLDEPFILES, etc.
	* m3-nat.c: Clean up more hair--message(), cprocs.
	* configure.in: Recognize Mach targets and hosts.
	* config/ns32k/tm-umax.h: Add some #ifndef's so tm-ns32km3.h can
	include this file.
	* Mach headers in config/*/tm-*.h: Fix includes to match correct
	locations of files.
1993-10-15 04:26:06 +00:00
Rob Savoye 8c4731b588 * remote-mon.c (general_open): Set dev_name. Minor tweaking to get
it working again.
	* config/m68k/tm-monitor.h: Remove floating point register names
	as there aren't any on any of the monitors that use this code.
1993-10-15 03:41:58 +00:00
Jim Kingdon 179cd9230f * inflow.c: Pass pointer to process group, not process group itself,
to TIOCSPGRP ioctl.
1993-10-14 02:48:33 +00:00
Jim Kingdon 76e473bbdd * inflow.c (terminal_ours_1): Don't print warning on failure to
set process group.
1993-10-13 18:29:09 +00:00
Jim Kingdon 9309b4d929 * printcmd.c (printf_command): Instead of using makeva* and
calling vprintf, just make the appropriate calls to printf.
	* printcmd.c, config/pa/xm-pa.h, config/mips/xm-makeva.h,
	config/alpha/xm-alpha.h, config/m88k/xm-m88k.h: Remove all
	traces of makeva*.  My apologies to everyone (including me!)
	who spent so much time getting it to work on various machines,
	but look at the bright side, at least you won't have to do it
	again in the future.

	* printcmd.c (printf_command): Make a cleanup for val_args (fixes
	a memory leak).
1993-10-13 18:17:49 +00:00
Jim Kingdon d62e3f378d * config/mips/xm-mips.h: Remove comment about HAVE_SGTTY vs. usleep. 1993-10-13 04:00:46 +00:00
David D. Zuhn 79f68f0f83 only configure gdbserver for native environments 1993-10-13 01:08:40 +00:00
Jim Kingdon 4fc9d7c70e * stabsread.c (read_type): Treat a negative type number at the start
of a type as a type reference, not as a definition of a type with
	"50=" omitted.  This makes things work on the RS/6000 again (the
	14 Sep 1993 change broke it).
1993-10-12 23:55:13 +00:00
Jim Kingdon d76eb5f484 * inflow.c: Use 0 (standard input) not scb->fd.
(terminal_ours_1): If printing warning, don't claim it happened in
	terminal_inferior.
1993-10-12 23:12:17 +00:00
Jim Kingdon 4161c620de * blockframe.c (get_prev_frame_info): Don't error() if there are no
frames; just return NULL.
1993-10-12 21:22:03 +00:00
Jim Kingdon 95171817ba * xcoffsolib.h, xcoffexec.c: Undo the part of Fred's bfd->abfd
change which involved structure elements.  It was unnecessary and
	was not consistently done.
1993-10-12 20:36:37 +00:00
Jim Kingdon 9438d64262 * stabsread.h, stabsread.c, dbxread.c (common_block*, copy_pending):
Move common block handling from dbxread.c to stabsread.c.
	Use the name from the BCOMM instead of the ECOMM.
	Allocate things on the symbol_obstack.
	* xcoffread.c (process_xcoff_symbol): Process C_BCOMM, C_ECOMM,
	and C_ECOML.  On unrecognized storage classes, go ahead and call
	define_symbol (after the complaint).

	* dbxread.c (process_one_symbol): Don't relocate 'S' symbols by
	the text offset.
1993-10-12 20:02:11 +00:00
Peter Schauer 49d607d260 * osfsolib.c (solib_create_inferior_hook): Reset stop_soon_quietly
after shared library symbol reading to get rid of warning from
	heuristic_proc_start.
1993-10-12 19:37:14 +00:00
David D. Zuhn 59c2be48f9 fix unterminated character string 1993-10-12 19:03:59 +00:00
Jim Kingdon 78934ba843 * stabsread.c: Fix comment about gcc 2.3.3 stab for long long int. 1993-10-12 14:05:22 +00:00
Jim Kingdon 843cea0d2b * m3-nat.c, config/nm-m3.h: Add a target_ops struct and other
various things to try to get this to work.
1993-10-11 22:39:54 +00:00
Jim Kingdon 7da354f4ac * symtab.h: Fix comments re headers, sharing blockvectors, etc. 1993-10-11 19:33:57 +00:00
David D. Zuhn cabb6f5919 update REMOTE_O for i960-vxworks to make it compile again 1993-10-11 18:49:22 +00:00
Peter Schauer 99a15c6431 * mipsread.c (parse_partial_symbols): Do not add undefined
symbols to the partial symbol table.
1993-10-11 16:25:43 +00:00
Peter Schauer 3e6b06745c * alpha-tdep.c (init_extra_frame_info): Remove kludge for gcc,
gcc has to be compatible with the native tools.
	* alpha-tdep.c (alpha_push_arguments):  Rename NUM_ARG_REGS to
	ALPHA_NUM_ARG_REGS and move its definition to tm-alpha.h.
	* config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS):  Change it to the
	way the native tools define it, update comment.
1993-10-11 09:55:41 +00:00
Jim Kingdon c18b613acd * inflow.c: Remove unused includes of sys/param.h and sys/types.h.
* inflow.c, ser-unix.c, ser-go32.c, ser-tcp.c, serial.h,
	terminal.h, fork-child.c, main.c, utils.c: Move all the process
	group stuff back to inflow.c and terminal.h; that's a better place
	for it and fixes problems with trying to get/set the process group
	of a tty we're doing remote debugging on.
	* terminal.h: Skip the redefines and includes if HAVE_TERMIOS.
1993-10-09 00:00:56 +00:00
Fred Fish a71c0593c6 * osfsolib.c, remote-sim.c, remote.c, solib.c, xcoffexec.c,
xcoffsolib.h:  Use 'abfd' for bfd variables instead of 'bfd'.
	Sun cc doesn't like variable names that match their typedef'd type.
1993-10-08 23:04:45 +00:00
Jim Kingdon a14a8fad36 * inflow.c: Remove unused includes of sys/param.h, etc.
* inflow.c, ser-unix.c, ser-go32.c, ser-tcp.c, serial.h,
	terminal.h: Move all the process group stuff back to inflow.c;
	that's a better place for it and fixes problems with trying to get/set
	the process group of a tty we're doing remote debugging on.
	* terminal.h: Skip the redefine crap if HAVE_TERMIOS.
1993-10-08 22:18:27 +00:00
Jim Kingdon 443abae18c * findvar.c, value.h (symbol_read_needs_frame): New function.
* c-exp.y, m2-exp.y: Call it instead of having our own switch on
	the symbol's class.
	* valops.c (value_of_variable): Use symbol_read_needs_frame to
	decide whether we care about finding a frame.
1993-10-08 20:33:22 +00:00
Peter Schauer 747a632937 * blockframe.c (get_frame_block): Do not adjust pc if the frame
function was interrupted by a signal.
1993-10-08 09:54:32 +00:00
Jim Kingdon f1e7bafcec * config/h8300/tm-h8300.h: Don't define sr_get_debug.
* remote-sim.c: Include remote-utils.h.
	* target.h: Add comment about target_has_execution.
1993-10-08 00:37:19 +00:00
Steve Chamberlain 3f0184acb0 * h8300-tdep.c (sim_load, sim_kill, sim_open, sim_set_args):
New functions.
	* infrun.c (normal_stop): Don't try and set the pc in the current
	frame coredump if there isn't one.
	* remote-sim.c (gdbsim_store_register): Don't
	SWAP_TARGET_AND_HOST, sim_store_register takes bytes in raw order.
	(gdbsim_wait): Set status with WSETSTOP.
	* config/h8300/tm-h8300.h (sr_get_debug): Define
1993-10-07 23:21:02 +00:00
Jim Kingdon c2d751d5e5 New Mach stuff:
* config/i386/i386mach.c: Explain this is for the old (probably
	non-functional and/or obsolete) Mach stuff.
	* m3-nat.c, config/nm-m3.h,
	i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c,
	config/i386/{i386m3.mh,i386m3.mt,tm-i386m3.h,xm-i386m3.h},
	config/i386/{i386mk.mh,i386mk.mt,tm-i386mk.h,xm-i386mk.h},
	config/mips/{mipsm3.mh,mipsm3.mt,tm-mipsm3.h,xm-mipsm3.h},
	config/ns32k/{ns32km3.mh,ns32km3.mt,tm-ns32km3.h,xm-ns32km3.h}:
	New files.
1993-10-07 20:13:08 +00:00
Jim Kingdon 2f1c7c3fd0 * blockframe.c (find_pc_partial_function): If we call
PSYMTAB_TO_SYMTAB, call target_terminal_ours_for_output first.
	This is needed now that wait_for_inferior passes in endaddr.
	* infrun.c: Move call to target_terminal_inferior from proceed
	to resume.
1993-10-07 18:40:39 +00:00
Stu Grossman 981a330933 * blockframe.c (find_pc_partial_function): Fix handling for PCs
beyond the end of the last function in an objfile.
* coff-solib.c (coff_solib_add):  Use BFD to get fields from .lib
section.
* infrun.c (wait_for_inferior):  Modify test for subroutine entry
to include pc out of bounds of the previous function.
* remote.c (remote_wait):  Use strtoul for parsing 'N' message.
Add code to relocate symfile_objfile->sections.
1993-10-07 16:42:08 +00:00
Jim Kingdon 50a5403978 * config/sparc/sun4os4.mh: Add comment saying why we don't use
-lresolv.
1993-10-07 11:28:51 +00:00
Jim Kingdon cf3e377e61 * breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
that clears the `inserted' flag for all breakpoints and deletes
	any breakpoints which should go away between runs of programs.
	* inflow.c (generic_mourn_inferior), infrun.c (init_wait_for_inferior),
	remote-es.c (es1800_load), comments in exec.c and corelow.c:
	Use it instead of mark_breakpoints_out.
	* breakpoint.c (mark_breakpoints_out):  Update comment, tm-rs6000.h
	uses it in a completely different context.
	* breakpoint.c (breakpoint_re_set_one):  Add bp_call_dummy case.
1993-10-07 11:16:35 +00:00
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
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
Jim Kingdon f46ffb9ebd More gcc lint:
* exec.c (ignore): Return 0.
	* stack.c (return_command): Fetch lazy value directly, not via
	VALUE_CONTENTS, to avoid "value computed is not used".
	* inflow.c (new_tty): Move osigttou inside #if.

	* remote.c (remote_fetch_registers): If remote reply is short, just
	note that fact and keep going (reading extra registers as all bits 0).
	(remote_store_registers): Send number of registers that were found
	by remote_fetch_registers.
	* m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
	HAVE_68881.  Define CANNOT_STORE_REGISTER if ptrace() can't write
	floating registers.
	* config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
	Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
	* Makefile.in, configure.in: Change accordingly.
1993-09-09 18:33:44 +00:00
Peter Schauer da398610b5 * mipsread.c (cross_ref): Allow SGI extended symbol types as cross
reference targets.
	* symmisc.c (print_symbol):  Use TYP_TAG_NAME not TYPE_NAME to avoid
	printing of identities.
1993-09-09 12:02:59 +00:00
Jim Kingdon 93bb0afaf6 * breakpoint.c (breakpoint_1): Deal with step resume breakpoint. 1993-09-09 00:33:22 +00:00
K. Richard Pixley 89812a0ed5 gcc lint 1993-09-08 21:45:46 +00:00
K. Richard Pixley c323585b89 gcc lint 1993-09-08 21:45:17 +00:00
K. Richard Pixley fee933f19c gcc lint 1993-09-08 21:30:33 +00:00
K. Richard Pixley 72cd0384f2 gcc lint 1993-09-08 21:23:41 +00:00
K. Richard Pixley 6406a86740 gcc lint 1993-09-08 21:16:23 +00:00
K. Richard Pixley e7bf1152a9 gcc lint 1993-09-08 21:04:59 +00:00
K. Richard Pixley 0ac0a9f6f1 gcc lint 1993-09-08 20:57:08 +00:00
K. Richard Pixley 46c28185ab some gcc lint 1993-09-08 20:15:34 +00:00
Jim Kingdon 78ae813613 Back out this change; it doesn't work.
Tue Sep  7 13:06:44 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)

	* dbxread.c (process_one_symbol): If the value of an N_FUN for a
	function is zero, use minimal symbols to get the address.
1993-09-08 19:03:21 +00:00
Jim Kingdon bf6608851f * Makefile.in (mipsread.o): Depend on $(bfd_h). 1993-09-08 15:48:03 +00:00
Ian Lance Taylor 4f8a48e5a2 * remote.c (remote_wait): Don't call error. Instead, call warning
inside a loop.  User can ^C to get out.
1993-09-07 22:15:15 +00:00
Jim Kingdon 8467b44674 * gdbserver/Makefile.in (TAGS): config files are in
$(srcdir)/../config, not $(srcdir)/config.
1993-09-07 21:39:47 +00:00
Jim Kingdon ed1a07ad1f * config/pa/tm-hppa.h: Declare target_read_pc and target_write_pc.
(STORE_RETURN_VAULE): Pass the correct offset of the return
	register to write_register_bytes.
	* hppa-tdep.c: Use target_write_pc if PCOQ_TAIL_REGNUM was not saved.
1993-09-07 19:57:45 +00:00
Ian Lance Taylor 4a87a64ad3 * config/m68k/tm-m68k.h (FIX_CALL_DUMMY): Changed name of swapping
routine to match BFD name change.
	* config/z8k/tm-z8k.h (FIX_CALL_DUMMY): Likewise.
1993-09-07 18:36:47 +00:00
Jim Kingdon 8adcfb97ad * dbxread.c (process_one_symbol): If the value of an N_FUN for a
function is zero, use minimal symbols to get the address.
1993-09-07 18:12:26 +00:00
Jeffrey Wheat 538b206806 Changed elf32_symbol_type to elf_symbol_type 1993-09-06 22:08:31 +00:00
Ian Lance Taylor 758aeb93fc * remote.c (remote_wait): Added 'W' and 'N' responses. 1993-09-06 19:46:43 +00:00
Jim Kingdon 9e19dee1f0 * main.c, utils.c: Add comments about immediate_quit. 1993-09-03 22:53:45 +00:00
Jim Kingdon 5ec3ba257b * elfread.c (elf_symtab_read): Don't add symbols starting with ".L"
to minimal symbols.
1993-09-03 16:27:35 +00:00
Jim Kingdon 38c5f504d1 * target.c (pop_target): Don't try to deal with the stack becoming
empty.  Shouldn't happen and the code that tried was broken.
1993-09-03 15:34:13 +00:00
Jim Kingdon ac7a377f64 * dcache.c: Cast return value from xmalloc.
* remote.c: Move setting of immediate_quit from remote_open to
	remote_start_dummy and set it back to zero when done.
1993-09-03 14:26:29 +00:00
Jim Kingdon eba94f7d0d * m88k-tdep.c: Remove a bunch of unused #includes. 1993-09-02 21:23:16 +00:00
Jim Kingdon a3178c64fd * language.h: Add comment about current_language. 1993-09-02 19:12:37 +00:00
Jim Kingdon fb27a96270 * mips-tdep.c (_initialize_mips_tdep): Change heuristic-fence-post
from var_uinteger to var_zinteger.
1993-09-02 16:50:45 +00:00
Jim Kingdon f9440640b2 * m88k-tdep.c: Include sys/dir.h before sys/user.h.
Include sys/types.h regardless of USG.

	* configure.in: Fix typo (delta88r4 -> delta88v4).

	* config/m88k/xm-delta88.h: Don't include sys/siginfo.h.  It was
	to make this work on SVR4 before SVR4 had its own configuration,
	and it breaks SVR3.
1993-09-02 06:20:20 +00:00
Jim Kingdon 7f5a51a460 * config/m88k/delta88v4.h (NATDEPFILES): Remove infptrace.o inftarg.o. 1993-09-02 06:13:28 +00:00
Jim Kingdon d9a23ef770 * config/m88k/xm-dgux.h: Renamed from config/m88k/xm-m88k.h.
* config/m88k/m88k.mh: Use xm-dgux.h.
	* config/m88k/xm-m88k.h: New file, with HOST_BYTE_ORDER,
	MAKEVA_END and MAKEVA_ARG.
	* config/m88k/xm-*.h: Include m88k/xm-m88k.h.
	* printcmd.c: Remove __INT_VARARGS_H code; now in xm-m88k.h.
1993-09-02 05:57:33 +00:00
Jim Kingdon 22202966ce * config/m88k/xm-dgux.h: Renamed from config/m88k/xm-m88k.h.
* config/m88k/xm-m88k.h: New file, with HOST_BYTE_ORDER,
	MAKEVA_END and MAKEVA_ARG.
	* config/m88k/xm-*.h: Include m88k/xm-m88k.h.
	* printcmd.c: Remove __INT_VARARGS_H code; now in xm-m88k.h.
1993-09-02 05:35:49 +00:00
Jim Kingdon a80193badd * remote-udi.c (udi_wait): Call `warning' not `error'. 1993-09-02 05:00:48 +00:00
Jim Kingdon 67a64bec4e * symtab.c (COMPLETION_LIST_ADD_SYMBOL): If the symbol has a
demangling, don't put the mangled form in the completion list.
1993-09-02 02:25:34 +00:00
Jim Kingdon 996ccb3043 * symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c,
symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c
	partial-stab.h, symmisc.c, gdbtypes.c: Lint.  Remove (or put
	inside #if) unused variables and labels.  Fix unclosed comment.
	Deal with enumeration values unhandled in switch statements.  Make
	sure non-void functions return values.  Include appropriate
	headers.
	* dbxread.c (elfstab_build_psymtabs): Don't check for unsigned
	value < 0.
1993-09-02 01:41:40 +00:00
K. Richard Pixley c398de0cdd index -> strchr 1993-09-01 22:24:34 +00:00
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