Commit graph

5835 commits

Author SHA1 Message Date
Tom Tromey
f0b0d91597 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
double-clicking will work again.
	(create_asm_win): Put "break" at end of all B1 bindings.
	(create_file_win): Lower "sel" tag, don't raise it.
	(ensure_line_visible): New proc.
	(update_listing, update_assembly): Use it.
	(create_copyright_window): Destroy window on Leave event.
	(create_command_window): Put "break" at end of all B2 bindings.
1996-02-07 17:44:58 +00:00
Fred Fish
b0ee0cf2aa * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
apparently aren't needed in any reasonably recent version of
	linux.
1996-02-07 15:38:24 +00:00
Per Bothner
bb4119f19d * pr-8894.exp, pr-8894.ch, pr-8894-grt.ch: New test case. 1996-02-07 05:54:17 +00:00
Per Bothner
ec49fc987c * stabsread.c (read_range_type): If !self-subrange and language
is Chill, assume a true range.  If a true_range is a sub_subrange,
	use builtin_type_int for index_type.
This is for PR chill/8894.
1996-02-07 05:43:04 +00:00
Steve Chamberlain
263af1721b From Michael_Snyder@NeXT.COM (Michael Snyder):
* valops.c (value_arg_coerce): Coerce float to double, unless the
 	function prototype specifies float.
1996-02-06 02:49:52 +00:00
Tom Tromey
fc71ad23dd * language.c (set_language_command): Use languages table when
printing available languages.
1996-02-05 20:50:26 +00:00
Fred Fish
f56cc4e719 * command.c (add_cmd): Add missing initialization for enums member.
Reorder members to match structure declaration to make it easier to
	tell when one is missing.
1996-02-03 19:39:34 +00:00
Fred Fish
8bdae15642 * exec.c (exec_file_command): Fix problem reported by Hans Verkuil
(hans@wyst.hobby.nl) where filename in malloc'd memory is referenced
	after being freed.
1996-02-03 18:06:12 +00:00
Peter Schauer
255181a9ed * dwarfread.c (read_func_scope): Avoid GDB core dumps if
AT_name tag is missing.

	* procfs.c (procfs_stopped_by_watchpoint):  Fix logic when
	FLTWATCH and FLTKWATCH are defined.

	* remote.c (remote_read_bytes):  Advance memaddr for transfers,
	return number of bytes transferred for partial reads.

	* top.c (init_signals):  Reset SIGTRAP to SIG_DFL.
1996-02-03 11:32:34 +00:00
Steve Chamberlain
9a763320c2 Spell off correctly. 1996-02-02 21:43:15 +00:00
Steve Chamberlain
454ffae5c4 * win32-nat.c (mappings): Add ppc registers.
(child_resume): Turn of step for ppc.
1996-02-02 21:42:12 +00:00
Jeff Law
4771fe157f * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
Load libgloss.exp.
1996-02-02 17:20:54 +00:00
Jeff Law
a827a33f93 * gdb.disasm/hppa.exp: Compile directly into an executable, use
the executable, not the .o to run the tests from.

Remove a useless step and avoid loading a .o into a target board
(loads into address zero which causes all kinds of problems).
1996-02-02 03:22:45 +00:00
Steve Chamberlain
3d78f53277 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
xm-cygwin32.h): New.
	* config/i386/(*win32*): Becomes *cygwin32*.
	* configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
	(powerpcle-*-cygwin32): New.
	* configure: Regenerate.
	* win32-nat.c  (child_create_inferior): Call CreateProcess
	with the right program arg.
1996-02-01 18:39:00 +00:00
Jeff Law
4ad7025328 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition. 1996-02-01 18:03:01 +00:00
Fred Fish
0db5a6fe3f * serial.c: Change fputc/fputs/fprintf to _unfiltered forms. 1996-02-01 04:15:53 +00:00
Stan Shebs
256364e93a Name change 1996-02-01 03:26:15 +00:00
Stan Shebs
97abaf19da * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
here from config/i386/xm-i386mach.h, fix name.
	* config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
	* config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
	here from config/i386/xm-ptx4.h.
	* config/i386/nm-ptx4.h: Ditto,	from config/i386/xm-ptx.h.
	* config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
	* config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
more housekeeping
1996-02-01 02:59:15 +00:00
Stan Shebs
28bc5ef7bb * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
* config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Move to here
	from config/sparc/xm-nbsd.h.
	* config/sparc/nm-sun4os4 (CHILD_PREPARE_TO_STORE): Ditto, from
	config/sparc/xm-sparc.h.
	* config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
	(PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
	* config/sparc/sun4sol2.mh (NAT_FILE): Update.
	* config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
housekeeping
1996-02-01 02:47:32 +00:00
Jeff Law
17280c3f6f * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
floating point correctly.
        (STORE_RETURN_VALUE): Likewise.
        * config/pa/tm-pro.h (SOFT_FLOAT): define.
Fixes minor testsuite failures for pro targets.
1996-02-01 00:40:59 +00:00
Jeff Law
1be1bc3835 * gdb.base/break.exp: Don't test for program exit or exit status
if $noresults if nonzero.
        * gdb.base/langs.exp: Likewise.
        * gdb.base/watchpoint.exp: Likewise.
For proelf targets were we can't even tell if a process exits.
1996-01-31 21:44:24 +00:00
Jeff Law
9b2ceeb159 * gdb.base/default.exp: Remove extraneous call to load gdb.exp.
* gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
        trying to compile the testcase.
1996-01-31 21:24:38 +00:00
Fred Fish
44e9f3b3d3 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
Define to what should be reasonable values.  However, apparently
	a bug in linux mmap prevents mapped symbol tables from working.
1996-01-31 20:35:51 +00:00
Fred Fish
ad1e42be5a * defs.h (errno.h>: Move #include closer to head of file to solve
obscure problem with systems that declare perror with const arg, in
 	both errno.h and stdio.h, and const is defined away by intervening
 	local include.
1996-01-31 02:31:02 +00:00
Fred Fish
d3ba76fc95 From Jon Reeves <reeves@zk3.dec.com>:
* i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
	(mem_fault_routine): Fix misplaced volatile type qualifier in decl.
1996-01-30 22:47:23 +00:00
Fred Fish
9476906f63 Enclose gdbtk stuff inside gdb sanitization lines. Regenerate configure. 1996-01-30 03:10:17 +00:00
Fred Fish
f6ade5ddf3 * Makefile.in (diststuff): Make all-doc; diststuff target does not
exist in doc/Makefile.in.
1996-01-30 03:08:52 +00:00
Stan Shebs
cdea3fd3df * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used. 1996-01-30 02:51:56 +00:00
Wilfried Moser
d221b17e83 * ch-valprint.c (calculate_array_length): New function to determine
the length of an array type (see comment).
        (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
        array type is zero, call calculate_array_length.

        * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): They values
        may not be sorted. Scan all entries and set the real lower and
1996-01-29 08:17:22 +00:00
Wilfried Moser
d59558827e * builtins.ch, builtins.exp: Enhance test case.
* extstruct.ch, extstruct-grt.ch, extstruct.exp: New test case.
1996-01-29 08:09:04 +00:00
Fred Fish
fa9f58403a * config/xm-linux.h: Move include of solib.h and #define of
SVR4_SHARED_LIBS from here ...
	* config/nm-linux.h: ...to here.
1996-01-28 22:52:53 +00:00
Fred Fish
4708ac6573 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
Also check for gregset_t and fpregset_t types.
	* configure: Regenerate.
	* core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
 	is defined.
	(fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
 	and HAVE_FPREGSET_T are defined.  These changes allow systems
 	like linux that are migrating to /proc support to use a single
 	configuration for both new and old versions.

	* config/i386/linux.mt: Note that this is now for both a.out and
	ELF systems.
	* config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
	i386v4-nat.o
	* config/i386/tm-linux.h (tm-sysv4.h): Include.
	* config/i386/xm-linux.h (solib.h): Include
	(SVR4_SHARED_LIBS): Define.
	* i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
	(supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
	(supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T defined.
1996-01-27 18:51:09 +00:00
Stan Shebs
a77bf669dc * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
* config/i386/xm-sun386.h: Ditto.
	* config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
1996-01-26 21:53:03 +00:00
Steve Chamberlain
a4b4479a47 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
From Greg McGary  <gkm@gnu.ai.mit.edu>:
	* dcache.c (dcache_peek, dcache_poke): Advance addr for
	multi-byte I/O.
1996-01-25 21:01:17 +00:00
Jeff Law
4133a76e04 * infrun.c (normal_stop): Fix test for shared library event.
From dje.  Fixes minor testsuite problems.
1996-01-25 20:10:42 +00:00
David Edelsohn
b23b4cb58c * configure: Regenerated.
Forgot this.
1996-01-25 11:35:32 +00:00
David Edelsohn
d69674892c * sp64sol2.mt: New file. 1996-01-25 11:34:26 +00:00
David Edelsohn
146ee7dbc2 * configure.in (sparc64-*-*): Add default host configuration.
start-sanitize-gdbtk
	(sparc64-*-solaris2* host): Link statically if GCC used.
end-sanitize-gdbtk
	(sparc64-*-solaris2*): Add target configuration.
	* configure: Regenerated.
	* sparc/sp64sol2.mt: New file.
1996-01-25 11:33:27 +00:00
David Edelsohn
eb47fd9d71 * gdb.base/interrupt.exp (p func1): xfail sparc64-*-solaris2. 1996-01-25 07:44:10 +00:00
David Edelsohn
763361916f * Makefile.in (RUNTEST): srcdir renamed to rootsrc. 1996-01-25 06:33:59 +00:00
Tom Tromey
1a57cd09ea Look for -ldl or -ldld where needed by Tcl 7.5.
Updated copyrights.
Close backquote in 'lint' target.
1996-01-24 23:39:34 +00:00
Fred Fish
05b85be85c Add gdbreplay.c 1996-01-24 22:44:22 +00:00
Fred Fish
e8f1ad9a8b * NEWS: Make note of new record and replay feature for
remote debug sessions.
	* serial.c (gdbcmd.h): Include.
	(serial_logfile, serial_logfp, serial_reading, serial_writing):
 	Define here, for remote debug session logging.
	(serial_log_command, serial_logchar, serial_write, serial_readchar):
	New functions for remote debug session logging.
	(serial_open): Open remote debug session log file when needed.
	(serial_close): Close remote debug session log file when needed.
	(_initialize_serial): Add set/show commands for name of remote
	debug session log file.
	* serial.h (serial_readchar): Declare
	(SERIAL_READCHAR): Call serial_readchar().
	(SERIAL_WRITE): Call serial_write().
	(serial_close): Declare as extern.
	(serial_logfile, serial_logfp): Declare.
	* top.c (execute_command): Declare serial_logfp.  Log user command
	in remote debug session log if log file is open.
	* remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
	(array_read_inferior_memory): Rewrite to fix memory overwrite bug.
	* remote-array.c (SREC_SIZE): Remove, duplicates define in
	monitor.h.
	* remote-array.c (hexchars, hex2mem):  Remove, unused.
	* gdbserver/low-linux.c (store_inferior_registers): Remove
	unnecessary extern declaration of registers[].
	* gdbserver/Makefile.in (all): Add gdbreplay.
	* gdbserver/gdbreplay.c: New file.
	* gdbserver/README: Give example of recording a remote
	debug session with gdb and then replaying it with gdbreplay.
1996-01-24 21:30:37 +00:00
Per Bothner
ef11a52944 Note gdb.c++/classes.exp update. 1996-01-24 07:07:13 +00:00
Per Bothner
c6038971d6 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
(read_one_struct_field):  Support boolean bitfields.
	* c-valprint.c (c_val_print): Print booleans properly.
1996-01-24 07:02:57 +00:00
Tom Tromey
4e327047ce Updated for Tcl 7.5a2 and Tk 4.1a2 1996-01-24 06:27:59 +00:00
Stan Shebs
5a8d8b8db7 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
Remove, never used.
	* config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
Make Sparc VxWorks GDB compile
1996-01-24 02:59:06 +00:00
Per Bothner
084ae26cf5 * enum.ch, enum.exp: New test case (covers PRs 8869 and 8870). 1996-01-24 00:59:02 +00:00
Per Bothner
9293e88698 * ch-exp.c (parse_tuple): Error if invalid mode.
This fixes PR chill/8870.
1996-01-24 00:50:11 +00:00
Per Bothner
533bda7704 * value.h (COERCE_ARRAY): Don't coerce enums.
(COERCE_ENUM):  Don't COERCE_REF.
	(COERCE_NUMBER):  New macro (same as COERCE_ARRAY then COERCE_ENUM).
	* valops.c (value_assign):  Only do COERCE_ARRAY if internalvar (let
 	value_cast handle it otherwise); do *not* COERCE_ENUM either way.
	* valarith.c:  Use COERCE_NUMBER instead od COEREC_ARRAY.
	Add COERCE_REF before COERCE_ENUM.
	* values.c (value_as_long):  Simplify.
This fixes PR chill/8869.
	* valops.c (value_array):  Create internalvar if !c_style_arrays.
1996-01-24 00:35:09 +00:00