Commit Graph

5069 Commits

Author SHA1 Message Date
Jim Kingdon
2f8996dc3c * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
1817) was fixed literally years ago.
1995-03-11 05:34:40 +00:00
Kung Hsu
c230fbb6df * config/tm-arc.h: Change arc register names. 1995-03-11 00:17:15 +00:00
Stan Shebs
6e9cac5f32 default to keeping rather than losing gdbtk 1995-03-10 19:39:59 +00:00
Stan Shebs
8cbf6efc61 Finish sanitization gaffes 1995-03-10 18:39:48 +00:00
Peter Schauer
d4f389f692 * gdb.c++/templates.exp: Source templ-info.exp only if
the templates executable exists.
1995-03-10 12:18:05 +00:00
Peter Schauer
07b963574f * gdb.base/funcargs.exp (call_after_alloca): Remove `next'
test, it causes stepping out of call_after_alloca_subr with
	optimizing compilers.
	(localvars_in_indirect_call):  Consume GDB prompt if `finish'
	fails.

	* gdb.c++/misc.cc (class Contains_static_instance,
	class Contains_nested_static_instance),
	gdb.c++/classes.exp (test_static_members):  Test printing of
	a class that contains a static instance of the class.
1995-03-10 11:24:30 +00:00
Peter Schauer
a1a0d97484 Fix problems with infinite recursion when printing a class
that contains a static instance of the class.
	* cp-valprint.c (dont_print_vb_obstack):  Renamed from
	dont_print_obstack, made static.
	(dont_print_statmem_obstack):  New obstack, controls printing
	of static member classes.
	(_initialize_cp_valprint):  Initialize it.
	(cp_print_static_field):  New function, handles printing of
	static members.
	(cp_print_value_fields):  New parameter dont_print_statmem to
	handle recursive printing of static member classes, use
	cp_print_static_field to handle printing of static members.
	* c-valprint.c (cp_print_value_fields):  Update prototype and
	call to include additional dont_print_statmem parameter.
	* c-valprint.c, f-valprint.c (dont_print_obstack):  Remove unused
	extern declaration.

	* alpha-tdep.c, findvar.c, infptrace.c:  Include <string.h>.

	* config/alpha/tm-alpha.h (FRAME_FIND_SAVED_REGS):  Call
	alpha_find_saved_regs if fi->saved_regs is still NULL.

	* elfread.c (elf_symtab_read):  Ensure that the filename field
	of a minsym is nonempty. Ignore solib trampoline symbols from
	the main symbol table, they might have a bogus value.

	* procfs.c (set_proc_siginfo), config/alpha/alpha-osf2.mh:
	Fix typos in comments.
1995-03-10 11:21:32 +00:00
Jim Kingdon
45d6f6230e * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1.  That way
	we know whether the PDR ever got set.
	* mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
	use the PDR, just examine prologues instead.
1995-03-10 01:26:09 +00:00
Jeff Law
eb1e8d350d * somsolib.c (som_solib_section_offsets): Get offset of text
section right.
1995-03-09 06:37:02 +00:00
Stu Grossman
9468f8aa3e * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
type is not bp_breakpoint.
1995-03-09 00:43:41 +00:00
Stu Grossman
34c40fd7e8 * source.c (forward_search_command reverse_search_command): Set
convenience variable $_ to be the line # of the match.
	* symtab.c (decode_line_1):  Allow convenience variables to be
	used in line specs (for breakpoints and such).
1995-03-09 00:25:15 +00:00
Jim Kingdon
5e8ade2361 * *.exp: Skip all tests silently if skip_chill_tests returns true.
* misc.exp: Remove reference to non-existent variable passcount.
1995-03-08 21:32:37 +00:00
Jim Kingdon
a331c834c1 * lib/gdb.exp (skip_chill_tests): New procedure. 1995-03-08 21:30:07 +00:00
Jim Kingdon
54e85b8bd0 * gdb.base/signals.exp (signal_tests_1): xfail for irix. 1995-03-08 21:16:15 +00:00
Stan Shebs
9561821190 * Makefile.in (VERSION): Bump to 4.14.1.
* NEWS, README: Update for 4.14.
	* i386v-nat.c (i386_insert_aligned_watchpoint): Fix declaration.
	(i386_insert_nonaligned_watchpoint): Call aligned instead of
	generic watchpoint insertion.
1995-03-08 21:07:41 +00:00
Per Bothner
34410e9541 * string.ch, string.exp, Makefile.in: New test case.
This is PR 5696.
1995-03-08 03:29:55 +00:00
Per Bothner
830a65b3ff * valops.c (value_slice): Do COERCE_VARYING_ARRAY.
This fixes PR 5696.
1995-03-08 03:26:21 +00:00
Stu Grossman
32fa4b5936 * monitor.c array-rom.c monitor.h rom68k-rom.c: Move target_ops
into monitor.c.
	* monitor.c (monitor_create_inferior):  Allow run command to start
	program.
1995-03-08 03:21:51 +00:00
Stu Grossman
f17aed8ba3 * monitor.c (monitor_load): Set PC to start address when done
loading.

	* array-rom.c monitor.h rom68k-rom.c:  Clean up target_ops.
	Remove ref to monitor_create_inferior.
1995-03-08 01:18:08 +00:00
Stu Grossman
8f07823450 * monitor.c: More general cleanups. Add prototypes, remove
unused routines.  Fix bug with wrong number of args to error().
1995-03-08 00:06:55 +00:00
Stu Grossman
cc60ad636d * main.c (main): Don't start up GUI when running under gdb mode
in emacs.
1995-03-07 09:32:29 +00:00
Stu Grossman
1265e2d823 * Makefile.in: Add rules for monitor.o and rom68k-rom.o to make
Sun make (with VPATH) work...

	* monitor.c monitor.h rom68k-rom.c:  Serious cleanup to make IDP
	(rom68k) target work right.
	* array-rom.c op50-rom.c w89k-rom.c:  Partial updates to new
	monitor.c interface.  More work needs to be done here.
	* config/m68k/tm-monitor.h:  Change DECR_PC_AFTER_BREAK to 0 to
	match the IDP monitor.  Also, set NUM_REGS to 18 cuz there's no
	floating-point for this card.
1995-03-07 09:26:39 +00:00
Stu Grossman
09374c9863 * command.h command.c top.c: Add var_enum command type. It's
like var_string but allows only only one of the specified strings.
1995-03-07 09:06:16 +00:00
Stu Grossman
85c8b135fe * serial.h ser-go32.c ser-go32-para.c ser-mac.c ser-tcp.c
ser-unix.c:  Add SERIAL_SETSTOPBITS to set the number of stopbits
	(needed for IDP board?!?!?).
1995-03-07 09:03:37 +00:00
Stu Grossman
7baea94608 * defs.h utils.c remote-hms.c remote-pa.c remote.c: Fix defs and
usage of fputc_unfiltered and putchar_unfiltered.  Eliminate
	putc_unfiltered (it's superfluous).
1995-03-07 08:57:32 +00:00
Stu Grossman
236274b9f8 * command.h command.c: Add var_enum command type. It's like
var_string but allows only only one of the specified strings.
1995-03-07 08:32:55 +00:00
Jim Kingdon
e70bba9f27 * valops.c (value_cast): Don't use backslash newline--pre-ANSI
compilers (such as SunOS4 /bin/cc) don't generally support it
	except in some contexts.
1995-03-06 23:12:02 +00:00
Per Bothner
3654c0672f * tuples.ch (setnmode); New module.
* tuples.exp:  Add some extra tests.
These are from PR 5024.
1995-03-06 22:11:17 +00:00
Jeff Law
4eb2d21922 * gdb.disasm/hppa.exp: Delete redundant ".*" at the beginning of
each expect pattern.  Cuts runtime from 12 to about 4 seconds.
1995-03-06 17:46:26 +00:00
Michael Tiemann
2379f65cab Fix typo in spelling. 1995-03-05 18:15:30 +00:00
Per Bothner
374887b408 * callch.ch, callch.exp, Makefile.in: New test case.
Extended testing for PR 6292.
1995-03-04 23:15:48 +00:00
Per Bothner
f7a69ed795 * valops.c (value_cast): Cehck for cast to array type *before*
we coerce array to pointer (in case arg2 is already array).

	* valops.c (call_function_by_hand):  Set using_gcc to 2 if using
	gcc2.  Needed for REG_STRUCT_HAS_ADDR to work on sparc.
	Also check REG_STRUCT_HAS_ADDR for union, array and string types.

	* valops.c (call_function_by_hand):  Re-arrange code for pushing
	paramaters on the stack so we can do better STACK_ALIGN.

	* valops.c (call_function_by_hand):  Call error if the number
	of arguments is fewer than parameter types in function type.
1995-03-04 02:24:26 +00:00
David Edelsohn
732ff6aff3 * sparc-tdep.c (sparc_extract_struct_value_address): Move
sparc64 support to here.
	(sparc64_extract_struct_value_address): Deleted.
	(dump_ccreg): Add a prototype so long long arg -> int.
	* sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
	(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1995-03-04 01:37:30 +00:00
David Edelsohn
1cd3b16334 * sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1995-03-04 01:35:34 +00:00
Jeff Law
3a0fbb3bb3 * hpread.c (hpread_record_lines): New argument "offset". All
callers changed.  Use it to handle dynamic address relocation.
	(hpread_build_psymtabs): Adjust texthigh as we read each function
	debug symbol.  Fix computation of texthigh.
	(hpread_read_subrange_type): Work around macro bugs in HP's
	compilers.
	(hpread_process_one_debug_symbol): Correctly map source lines.
1995-03-04 00:55:45 +00:00
Jeff Law
2097152a52 * somread.c (check_strange_names): Filter names emitted by the HP
compiler when generating PIC code.
1995-03-03 22:25:27 +00:00
Jeff Law
13ffa6bece * valops.c (value_struct_elt_for_reference): Work around macro
bugs in HP's compilers.
	* c-exp.y (block): Likewise.
1995-03-03 22:15:23 +00:00
Jim Kingdon
5816555bca * rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
store_address.
1995-03-03 21:47:14 +00:00
Jim Kingdon
0d172a2ef4 * utils.c [_AIX]: Include stddef.h instead of #defining size_t. 1995-03-03 21:38:54 +00:00
Michael Meissner
629b6214ad Support saving saved regs with multiple stores in addition to store multiple instructions in prologue. 1995-03-03 17:39:37 +00:00
David Edelsohn
8b0f5a9df9 * sparc-tdep.c (decode_asi): New function.
(sparc_print_register_hook): Pretty print more v9 registers.
1995-03-03 09:06:51 +00:00
David Edelsohn
0fb8b15a92 * sparc/tm-sp64.h (REGISTER_NAMES): Fix some typos. 1995-03-03 08:57:52 +00:00
David Edelsohn
306d27ca4e * dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
(target_to_host): Change result type to CORE_ADDR.
1995-03-03 06:26:25 +00:00
David Edelsohn
462df1228c Forgot this one (from sparc64 changes). 1995-03-02 23:18:13 +00:00
Jim Kingdon
b112f2aee4 * rs6000-tdep.c: Fix byte-swapping sins. 1995-03-02 23:16:05 +00:00
Jim Kingdon
b77a4fbe8f * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Only
disassemble 8, not 16, instructions for part 4.
1995-03-02 22:24:44 +00:00
Michael Meissner
dc59e98286 Minor code cleanup in rs6000-tdep.c 1995-03-02 21:51:30 +00:00
Jim Kingdon
cc5be3662c * config/vx-gdb.exp (gdb_start): Use \030, not \CX. tcl doesn't
support the latter anymore.
1995-03-02 15:45:02 +00:00
Jim Kingdon
ff0a7ea5cd * misc.exp: If executable does not exist, issue warning and skip
remaining tests, like other chill tests.
1995-03-02 14:23:40 +00:00
Jim Kingdon
60fdbf97c7 * gdb.base/Makefile.in: Try compiling callfuncs.c, if that fails try
-DNO_PROTOTYPES.
	* gdb.base/callfuncs.c: Control use of prototypes based on
	NO_PROTOTYPES, not __STDC.
	* gdb.base/callfuncs.exp (do_function_calls): xfail one of the
	t_float_values2 tests if prototypes in use.

	* gdb.base/callfuncs.c (t_float_values, t_float_values2,
	t_double_values):  When checking differences against DELTA, check
	that difference is within the range (-DELTA,DELTA), not just
	(-infinity,DELTA).
1995-03-02 14:09:31 +00:00