Commit Graph

5340 Commits

Author SHA1 Message Date
Stan Shebs fe442b4308 * remote.c (remote_read_bytes, remote_write_bytes): Second arg
should be char *, not unsigned char *.
	* dcache.h (memxferfunc): Ditto.
	* monitor.c (monitor_write_memory, monitor_read_memory_single):
	Ditto.
	(monitor_make_srec): Let compiler figure size of hextab.
1995-06-25 23:23:06 +00:00
Jeff Law c9f7cd7b97 * gdb.base/interrupt.exp: Don't choke if $nointerrupts doesn't exist. 1995-06-25 18:56:52 +00:00
Jeff Law 1657d50b38 * lynx-nat.c (child_wait): Don't restart new threads and loop
to the top of child_wait; let the machine independent code in
        wait_for_inferior deal with new thread notifications.

lynx-6100 (partial)
Fixes SEGV when multi-threaded program hits a breakpoint in a new
thread.
1995-06-25 02:33:33 +00:00
Kung Hsu 8a7143f461 * remote-nindy (nindy_load): Put in target specific load, it's
20 times faster.
1995-06-23 18:54:56 +00:00
Stan Shebs 31bda44a6d * utils.c (error): Move local `args' outside conditional,
move local `string1' inside, declare function as void if
	non-ANSI compiler, dereference error_hook when calling.
1995-06-23 04:41:37 +00:00
Stan Shebs 26a53fe826 * mac-xdep.c (stdarg.h): Don't include. 1995-06-23 03:37:58 +00:00
Victoria Mixon af215b1a6a gdb.texinfo: gdb manual up to date for 95q3
remote.texi:
1995-06-22 21:28:02 +00:00
Kung Hsu 89fd75ae2b * remote-nindy.c (nindy_wait): Change timeout in SERIAL_READCHAR. 1995-06-22 20:16:56 +00:00
Fred Fish b9f12fd911 * gdb.base/return.exp: Xfail `return double' test failure
on at least Solaris 2.3 and handle future/past versions on
	a case by case basis as appropriate.  Also update message
	to include i*86 failures.
1995-06-22 00:51:47 +00:00
Steve Chamberlain 45993f6118 Hmm.. The ChangeLog went in, but not the code....
* monitor.c: Turn on caching.
	(monitor_printf): If a ^C was sent, don't expect to see its
	echo.
	(monitor_open): Enable caching.
	(monitor_resume, monitor_load): Flush cache.
	(monitor_xfer_memory): Call cache routine.
	(monitor_dump_regs): New.
	(monitor_fetch_registers):  If monitor_dump_regs available
	then use it.
	(monitor_load): Don't ref exec_bfd if it's NULL.
	(monitor_load_srec): Use new monitor_make_srec calling convention.
	(monitor_make_srec): Rewrite to cope with two, three and four byte
	addresses.
	* remote-hms.c (hms_cmds): Initialze end-of-command delim.
	* dcache.h, dcache.h: Rewritten.
	* remote.c: Reenable caching.
	(getpkt): Reduce MAX_TRIES to 3.
	(remote_xfer_memory): Use dcache_xfer_memory.
	* defs.h (error_hook): New.
	* top.c (error_hook): New definition.
	* utils.c (error): Use error_hook if initialized.
	* sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use
	HAVE_SOCKETS in place of #ifndef GO32.
1995-06-21 21:47:06 +00:00
Jeff Law b3a34d4fc0 * hppam3-nat.c: Change HP800_THREAD_STATE to TRACE_FLAVOR and
HP800_THREAD_STATE_COUNT to TRACE_FLAVOR_SIZE.
1995-06-21 19:29:00 +00:00
Steve Chamberlain c3a9b88e1e Wed Jun 21 05:57:56 1995 Steve Chamberlain <sac@slash.cygnus.com>
* monitor.c: Turn on caching.
	(monitor_printf): If a ^C was sent, don't expect to see its
	echo.
	(monitor_open): Enable caching.
	(monitor_resume, monitor_load): Flush cache.
	(monitor_xfer_memory): Call cache routine.
	(monitor_dump_regs): New.
	(monitor_fetch_registers):  If monitor_dump_regs available
	then use it.
	(monitor_load): Don't ref exec_bfd if it's NULL.
	(monitor_load_srec): Use new monitor_make_srec calling convention.
	(monitor_make_srec): Rewrite to cope with two, three and four byte
	addresses.
	* remote-hms.c (hms_cmds): Initialze end-of-command delim.
	* dcache.h, dcache.h: Rewritten.
	* remote.c: Reenable caching.
	(getpkt): Reduce MAX_TRIES to 3.
	(remote_xfer_memory): Use dcache_xfer_memory.
	* defs.h (error_hook): New.
	* top.c (error_hook): New definition.
	* utils.c (error): Use error_hook if initialized.
	* sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use
	HAVE_SOCKETS in place of #ifndef GO32.
1995-06-21 19:23:06 +00:00
Jeff Law 5e2f4e2d6f * config/pa/tm-hppa.h (PSW_*): Define processor status word masks.
(INSTRUCTION_NULLIFIED): Allow specific targets to override.
	* config/pa/tm-hppao.h (INSTRUCTION_NULLIFIED): Define to work
	around losing mach kernel behavior.
1995-06-21 04:20:15 +00:00
Stan Shebs f886dc0f27 * gdb.texinfo: Update dates and versions, fix comments about
hardware watchpoints in future releases and about the
	sharedlibrary command.
1995-06-20 21:51:17 +00:00
Stan Shebs 4a4307947e * monitor.c (monitor_wait): Don't use the watchdog timeout
if its value is 0.
	* w89k-rom.c (w89k_open): Define to be static.
1995-06-20 19:13:20 +00:00
Stu Grossman 8c19daa1e5 * gdbtk.c: Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free. 1995-06-20 17:41:11 +00:00
Stu Grossman f1b64caa98 * gdbtk.tcl (add_breakpoint_frame): Add more fields.
* (create_file_win create_asm_win build_framework):  Create null
	bindings for meta keys to keep window from dropping down to
	insertion point when meta is pressed by itself.  New bindings:
	   Up/Down - Scroll up/down one line at a time
	   Next/Prior - Scroll up/down one page at a time
	   Home/End - Warp to current pc/end of file
	* (build_framework):  Turn on breakpoint menu.
	* (create_command_window):  Implement tab completion.  Add binding
	for ^C to stop target.
1995-06-20 17:30:44 +00:00
Jeff Law 156285aac0 * somsolib.c (som_solib_add): Validate regexp argument.
Don't assume the first entry on dld's library list is the main
        program.  Don't load the same library more than once and don't
        consider the main program a shared library.
        (som_solib_sharedlibrary_command): New function
        (_initialize_som_solib): Add "sharedlibrary" command.

mentor-7135
1995-06-19 21:26:58 +00:00
Stan Shebs e33c359dcb * array-rom.c: Remove, no longer used.
* remote-hms.c (hms_open): Make static.

	* mpw-config.in (MacSerial.h): Copy from version in {CIncludes},
	not {MPW}Interfaces:CIncludes.
	* ser-mac.c (mac_baud_rate_table): Fix value for 38400 baud.
1995-06-15 22:10:27 +00:00
Per Bothner 0faa324790 * ch-exp.y: Remove lots of unsupported productions and names.
Add support for IF-expressions, ORIF, ANDID, NUM, and ADDR.
This makes progress for PR 5826.
1995-06-14 21:30:58 +00:00
Stu Grossman 73033da704 Copyright update in tm-est.h, and minor formatting cleanup.
Add remote-est.o to TDEPFILES in monitor.mt.
1995-06-14 20:31:58 +00:00
Per Bothner a055dacb68 * chillvars.exp, string.exp: New tests for LOWER/UPPER/LENGTH 1995-06-14 20:05:59 +00:00
Per Bothner 6137983598 * parser-defs.h (enum precedence): Added PREC_BUILTIN_FUNCTION.
* expression.h (enum exp_opcode):  Added UNOP_LOWER, UNOP_UPPER,
	UNUP_LENGTH.
	* expprint.c (dump_expression):  Handle the new exp_opcodes.
	(print_subexp):  Handle PREC_BUILTIN_FUNCTION.
	(print_simple_m2_func):  Removed.
	(print_subexp):  Remove support for Modula2 builtin functions.
	* m2-lang.c (m2_op_print_tab):  Add support for builtin functions.
	* ch-exp.y:  Parse LOWER, UPPER, and LENGTH builtins.
	(write_lower_upper_value):  Convenience function for LOWER and UPPER.
	(upper_lower_argument, length_argument):  Removed non-terminals.
	* ch-lang.c (chill_op_print_tab):  Entries for UPPER, LOWER, LENGTH.
	(type_lower_upper):  New function.  Calculate LOWER/UPPER of type.
	(value_chill_length):  New function.  Calcalate LENGTH of ARRAY/STRING.
	(evaluate_subexp_chill):  Handle UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
This fixes PR 5015 (and 5826 which is a duplicate).
1995-06-14 19:59:35 +00:00
Stan Shebs 2e1cc80191 Windows support bits from Steve Chamberlain <sac@slash.cygnus.com>.
* defs.h: Don't declare strchr and friends if WIN32.
	(DIRNAME_SEPARATOR): Move here from source.c.
	(SLASH_P, SLASH_CHAR, SLASH_STRING, ROOTED_P): New macros,
	symbolic definitions for filename bits.
	* top.c (cd_command): Use these.
	* source.c (mod_path, openp): Ditto.
	* terminal.h: Disable termio/sgtty definitions if WIN32.
	* findvar.c (registers_changed): Call registers_changed_hook
	if it is defined.
1995-06-12 20:07:45 +00:00
J.T. Conklin 43b442f17c * Makefile.in (distclean, realclean): Remove config.cache and
config.log.
1995-06-12 19:33:08 +00:00
Jeff Law ca95702a3a Zap static data problem off the TODO list. 1995-06-12 06:27:26 +00:00
Jeff Law 99e0981c60 * somsolib.c: Include gdb-stabs.h.
(som_solib_section_offsets): Use SECT_OFF_XXX rather than 0, 1,
	etc.  Initialize offsets for RODATA & BSS too.
Remainder of mentor-6302.
1995-06-12 06:24:20 +00:00
Jeff Law b7202faa33 * hppa-tdep.c (frame_chain): Try to compensate for incomplete
register information in core files when backtracing.
1995-06-11 00:03:02 +00:00
Stu Grossman e431d135cf * remote-nrom.c: Remove everything but download code. More
cleanups.
1995-06-09 21:53:55 +00:00
Stu Grossman 5bdf05c785 typo in tcp_open 1995-06-08 22:45:47 +00:00
Stu Grossman 4887063b3c * defs.h maint.c monitor.c remote-mips.c remote.c: Add support
for `watchdog' variable.  This allows the user to put an upper
	limit on the amount of time that GDB will wait for the target to
	return from a step or continue operation.  This will primarily be
	used for the testsuite, where it is difficult to come up with a
	reasonable timeout for things like function calls, which can take
	as long as three minutes under some circumstances.  If the
	watchdog timer expires, GDB will generate an error that looks like
	`Watchdog has expired.', and will detach from the target.

	* remote-mips.c (mips_open):  Setup initial frame from target.
	Print it out so that user is told where the program is stopped
	when they attach.

	* remote-nrom.c:  Loads of cleanups.  Use serial code to open
	network connections.  Use expect() to wait for response to
	download command.

	* ser-tcp.c (tcp_open):  Retry connection if we get ECONNREFUSED.

	* serial.c serial.h (serial_open serial_fdopen serial_close):
	Allow users to open the same device multiple times.  They all get
	to share the same serial_t.  This is about the only way to have
	multiple active targets use the same device (for download and
	debug).

	* sparcl-tdep.c:  Keep #include <unistd.h> away from GO32.

	* target.c:  Add `targetdebug' variable.  If this is non-zero,
	then a special target is put at the top of the target stack which
	will cause all calls through the target vector to have their args
	and results printed out.
1995-06-08 22:42:36 +00:00
Per Bothner 7e965616ff * chillvars.ch (xptr): Declare new variable.
* chillvars.exp (test_ptr):  New function to test EXPR->MODENAME.
This is to test PR chill/6932.
1995-06-08 00:52:06 +00:00
Per Bothner 3029162cdf * ch-exp.y: Handle <primitive_value> "->" <modename>.
This fixes PR chill/6932.
1995-06-08 00:49:10 +00:00
Michael Meissner b726a3d884 Do not redefine {BIG,LITTLE}_BREAKPOINT if already defined. 1995-06-07 22:04:10 +00:00
Michael Meissner a4c7302a32 Define BREAKPOINT as either {BIG,LITTLE}_BREAKPOINT, depending on target byte order. 1995-06-07 21:48:28 +00:00
Jeff Law fbf8d7e17a * somsolib.c (som_solib_section_offsets): Handle relative pathnames.
Part of mentor-6302.
1995-06-07 18:48:00 +00:00
Jeff Law c38e0b58f3 * hppa-tdep.c (frame_saved_pc): Handle backtracing through signal
handler in dynamically linked executables.
mentor-7139
1995-06-07 18:43:58 +00:00
Michael Meissner 5c172b4bfd Fix some little endian problems 1995-06-06 14:49:32 +00:00
David Edelsohn 4f36d4ab73 * arc-tdep.c (arc_bfd_mach_type): New static global.
(codestream_fill): Handle byte order differences.
	(setup_prologue_scan): Don't read stdarg function's "sub sp,sp,N".
	(arc_get_frame_setup): Read it here.
	(arc_frame_saved_pc): And here.
	(arc_print_insn): New function.
	(arc_set_cpu_type): Set arc_bfd_mach_type.  Don't set tm_print_insn.
	(_initialize_arc_tdep): Set tm_print_insn to arc_print_insn.
1995-06-02 18:29:46 +00:00
J.T. Conklin 119a5f4e87 * nlm/{configure.in, Makefile.in}: Converted to use autoconf.
* nlm/configure: New file, generated with autoconf 2.3.
1995-05-31 22:21:32 +00:00
J.T. Conklin 3be5f0397a * nlm/configure.in: Use sed instead of awk to get the value of
cpufile.  Awk is not a utility required by the GNU coding
  standards.  This change also fixes the rigid whitespace
  requirements that were required for awk.
1995-05-31 19:31:20 +00:00
J.T. Conklin 2de498d8e3 * sparclite/aload.c: Use a file descriptor instead of a stdio
stream for i/o with target board.
  Use #error if HAVE_TERMIOS is not defined.

* sparclite/{Makefile.in, configure.in}: Converted to use
  autoconf.
* sparclite/configure: New file, generated with autoconf 2.3.
1995-05-31 19:13:06 +00:00
Jeff Law 089c930358 * defs.h: Include either varargs.h or stdarg.h (for va_list).
Fix stupid thinko in last change ("..." -> "va_list").
1995-05-29 05:26:27 +00:00
Jeff Law 413cba82b4 * defs.h (vprintf_filtered declaration): Add PARAMS prototype;
gcc-2.5 chokes on format attributes for unprototyped functions.
	(vfprintf_filtered declaration): Likewise.
	(vprintf_unfiltered declaration): Likewise.
	(vfprintf_unfiltered). Likewise.
1995-05-29 05:15:18 +00:00
J.T. Conklin 094fd4ae01 * configure.in: Use sed instead of awk to get the values of
hostfile, targetfile and nativefile.  Awk is not a utility
  required by the GNU coding standards.  This change also
  fixes the rigid whitespace requirements that were required
  for awk.
* configure: regenerated.
1995-05-28 07:07:21 +00:00
Angela Marie Thomas 0cc3f4fcc3 Sat May 27 16:24:04 1995 Angela Marie Thomas <angela@cirdan.cygnus.com>
* sparclite/{Makefile,configure}.in: Add hooks for building with
        -lsocket & -lnsl for solaris2.  Don't build aload/eload for DOS.
1995-05-27 23:32:22 +00:00
Stan Shebs 588405286c Update gdbtk keep/lose to match main GDB sanitize 1995-05-25 01:30:34 +00:00
Steve Chamberlain 4936656ad7 * arm-tdep.c (_initialize_arm_tdep): Use print_insn_little_arm
now.
1995-05-25 01:05:35 +00:00
Steve Chamberlain 54af8e6e7b Wed May 24 15:49:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
* arm-tdep.c (convert_from_extended, convert_to_extended):
	New.
	* coffread.c (enter_linenos): Return if linetab 0.
	* config/arm/arm.mt (TDEPFILES): Add simulator support.
	* config/arm/tm-arm.h (FRAME_FIND_SAVED_REGS): Fix prototypes.
1995-05-24 23:56:24 +00:00
Jim Kingdon eea578da54 * lib/gdb.exp: Fix comment which erroneously identified
gdb_file_cmd as gdb_load (the 19 May change was in fact to
	gdb_file_cmd not gdb_load).
	* config/unix-gdb.exp (gdb_load): Add "upvar timeout timeout".
1995-05-24 15:12:13 +00:00