Commit Graph

10380 Commits

Author SHA1 Message Date
Jim Blandy 0adb2abaa6 * s390-tdep.c (s390_gdbarch_init): Register the function
`standard_coerce_float_to_double', since GCC for the S/390 follows
the standard rules for passing floats.
2001-11-13 17:26:46 +00:00
Jim Blandy 641225a400 * valops.c (default_coerce_float_to_double,
standard_coerce_float_to_double): Doc fixes.
2001-11-13 16:44:13 +00:00
Jim Blandy 648f4f7985 Patch from Peter Schauer:
* symtab.c (find_pc_sect_line): If we can't find the function
containing PC, we certainly won't have line number information for
that location, so return zero immediately.
2001-11-13 16:42:50 +00:00
Andrew Cagney 0cb2e7c50f Eliminate REGISTER_CONVERTIBLE(). 2001-11-13 03:10:35 +00:00
Andrew Cagney 2c10d744f3 Zap REGISTER_CONVERTIBLE from m88k. 2001-11-13 02:39:29 +00:00
gdbadmin 8df934503e *** empty log message *** 2001-11-13 00:00:33 +00:00
Mark Kettenis 226271d3c0 * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
* i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
* config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
(SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
2001-11-12 22:27:35 +00:00
Jim Blandy c263635274 Patch from Andreas Schwab <schwab@suse.de>:
* eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
instead of xmalloc.
2001-11-12 21:20:18 +00:00
Jim Blandy c26e46834f * corefile.c (write_memory_unsigned_integer,
write_memory_signed_integer): New functions.
(write_memory): Move to be with other write_memory_* functions.
* gdbcore.h (write_memory_unsigned_integer,
write_memory_signed_integer): New declarations.
2001-11-12 21:08:04 +00:00
Geoffrey Keating 9aa1fe7eee * dwarf2read.c (dwarf_decode_lines): Properly deal with
unknown standard opcodes.
2001-11-12 20:36:55 +00:00
Daniel Jacobowitz 1902c51fa6 * lib/mi-support.exp (mi_run_to_helper): Move comments
outside of gdb_expect.
2001-11-12 19:44:28 +00:00
gdbadmin 514734b62f *** empty log message *** 2001-11-12 00:00:03 +00:00
Daniel Jacobowitz dcf95b4721 * lib/mi-support.exp: (mi_run_to_helper, mi_run_to,
mi_step_to, mi_next_to, mi_continue_to, mi_finish_to,
        mi0_step_to, mi0_next_to, mi0_continue_to, mi0_finish_to,
        mi0_run_to): New functions.
        * gdb.mi/mi-simplerun.exp: Use them.
        * gdb.mi/mi0-simplerun.exp: Likewise.
        * gdb.mi/mi-var-cmd.exp: Likewise.
        * gdb.mi/mi0-var-cmd.exp: Likewise.
2001-11-11 20:11:03 +00:00
Corinna Vinschen 84826df144 Change target name from stormy16 to xstormy16. 2001-11-11 19:58:19 +00:00
Andrew Cagney 5b582da3d4 * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
(sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
(i586-sco-sysv5uw7.1.1): Mention problem with threads.
2001-11-11 18:34:46 +00:00
Andrew Cagney b18c45ede9 From Mark Kettenis <kettenis@gnu.org>:
* breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
breakpoints when they fail.
2001-11-11 16:39:59 +00:00
gdbadmin a3cab9a92b *** empty log message *** 2001-11-11 00:00:33 +00:00
Andrew Cagney 3d6d86c64b s/value_ptr/struct value */ 2001-11-10 21:34:56 +00:00
Andrew Cagney 6943961c98 s/value_ptr/struct value */ 2001-11-10 20:44:38 +00:00
Andrew Cagney 610510309f s/value_ptr/struct value */ 2001-11-10 20:15:13 +00:00
Andrew Cagney 45b074e11d * gdb.asm/asmsrc1.s: Add ``gdbasm_'' prefix to all macros.
* gdb.asm/asmsrc2.s, gdb.asm/d10v.inc: Update.
2001-11-10 17:55:48 +00:00
Andrew Cagney bf50d346c5 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
2001-11-10 02:28:37 +00:00
Andrew Cagney 9383332cc4 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
2001-11-10 01:44:43 +00:00
gdbadmin a73b8fec64 *** empty log message *** 2001-11-10 00:00:37 +00:00
Michael Snyder db62520a00 2001-11-08 Michael Snyder <msnyder@redhat.com>
* gdb.base/callfuncs.exp: Add tests for nested call dummies.
	Add pass/fail message for stop at breakpoint in call dummy function.
2001-11-09 19:14:54 +00:00
Jim Blandy d4d0c21e8f * s390-tdep.c: Don't use a call dummy.
(s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
(s390_push_return_address): Put the address of the inferior call
breakpoint in r14.
(s390_gdbarch_init):
- Provide trivial definition of s390_call_dummy_words; register it
  with the gdbarch appropriately.
- Delete S390x_call_dummy_words.
- Gather inferior-call-related settings into a group.
- Use generic dummy frames.
- Put the inferior call breakpoint at the entry point.
- Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
  generic_push_dummy_frame, generic_fix_call_dummy.
- There is a call dummy breakpoint offset; it's zero.
2001-11-09 19:14:00 +00:00
Jim Blandy f7aaef7d5b Typo: s390-nat.c -> s390-tdep.c. 2001-11-09 19:01:13 +00:00
Jim Blandy 01c464e928 * s390-nat.c: (s390_push_arguments): Write a back chain pointer
into the dummy frame, to help us get backtraces.
2001-11-09 18:58:14 +00:00
Jim Blandy f312f05740 * values.c (value_as_address): If VAL is a function or method,
just return its address; don't let COERCE_ARRAY convert its
address to a pointer, and then have unpack_long convert it back to
an address.
2001-11-09 16:41:50 +00:00
Pierre Muller 5598ce1171 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
* p-lang.c (is_pascal_string_type): New function to determine if a
	type is a string type.
	* p-lang.h: Add prototype for is_pascal_string_type.
	* p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
	to display strings nicely.
2001-11-09 09:48:09 +00:00
Pierre Muller 94a716bf57 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y (yylex): Only change case of expression if symbol is found.
	Also check for GPC standard name form.
2001-11-09 09:46:40 +00:00
Andrew Cagney f6a9480ec1 A simple script to indent GDB source code. 2001-11-09 04:00:00 +00:00
gdbadmin 75aa290a64 *** empty log message *** 2001-11-09 00:00:06 +00:00
Jim Blandy 64f9bb983b * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
got_load_len, to placate compiler.
2001-11-08 23:28:36 +00:00
Mark Kettenis cd3c07fc0b * i386-tdep.c (i386_gdbarch_init): Fix typo. 2001-11-08 20:26:42 +00:00
Michael Snyder eef747c069 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/templates.exp: Replace "const &" with "const ?&",
	making the whitespace optional.  Also replace "(void) with
	"((void|)), making the keyword "void" optional.
2001-11-08 19:21:54 +00:00
Jim Blandy 8001d1e4ef * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
file_frame_chain_valid.
2001-11-08 19:16:10 +00:00
Michael Snyder 63f5049969 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.c++/virtfunc.exp: Replace "const &" with "const ?&",
	making the whitespace optional.  Also replace "(void) with
	"((void|)), making the keyword "void" optional.
2001-11-08 19:12:30 +00:00
Michael Snyder 3bf40917fc 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.base/callfuncs.c (t_float_values): This function must
	_not_ be prototyped, and the following function (t_float_values2)
	must be prototyped (if the compiler supports it), so that GDB
	can be tested against both cases.  Usually one case involves
	promotion of float to double, while the other does not.
	* gdb.base/callfwmall.c: Ditto.
2001-11-08 19:08:34 +00:00
Michael Snyder b57034379c 2001-11-07 Michael Snyder <msnyder@redhat.com>
* gdb.asm/asm-source.exp (bt ALL in foo2): Accept a backtrace that
	includes a stack frame for "start".
2001-11-08 19:06:18 +00:00
Jim Blandy 8ac0e65a44 * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
from the constant pool, but doesn't add in the constant pool's
address to it, then this function probably isn't using r12 as a
GOT pointer, and that load probably wasn't part of the prologue.
2001-11-08 19:06:04 +00:00
Jim Blandy 4c801202fe * s390-tdep.c (s390_gdbarch_init): Use the default
prepare_to_proceed function established by config/nm-linux.h;
don't try to set it to linuxthreads_prepare_to_proceed.
2001-11-08 19:03:54 +00:00
Andrew Cagney a62cc96ec5 Enable multi-arch for i386. 2001-11-08 18:32:08 +00:00
Andrew Cagney 8ea43c6d5a Don't update ``set architecture'' when ``set disassembly-flavor[sic]'' 2001-11-08 18:23:43 +00:00
Elena Zannoni 274d631f21 2001-10-30 Elena Zannoni <ezannoni@redhat.com>
* dbxread.c (set_namestring): New function, replacing the
 	SET_NAMESTRING macro.
 	(SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
 	CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
 	definitions.
 	(read_dbx_symtab): Don't include partial-stab.h any more. Don't
 	reuse code in partial-stab.h, include the code directly, instead.

         * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
 	(HFILES_NO_SRCDIR): Remove partial-stab.h.

 	* partial-stab.h: Remove file.
2001-11-08 04:58:40 +00:00
Elena Zannoni 6a34fd2fd5 2001-11-07 Elena Zannoni <ezannoni@redhat.com>
* dbxread.c (set_namestring): New function, replacing the
	SET_NAMESTRING macro.
	(SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
	CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
	definitions.
	(read_dbx_symtab): Don't include partial-stab.h any more. Don't
	reuse code in partial-stab.h, include the code directly, instead.

        * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
	(HFILES_NO_SRCDIR): Remove partial-stab.h.
2001-11-08 04:39:04 +00:00
Elena Zannoni 686c918fbf Whoops, forgot to commit this yesterday:
2001-11-06  Elena Zannoni  <ezannoni@redhat.com>

        * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
        END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
        (parse_partial_symbols): Don't include partial-stab.h any
        more. Don't reuse code in partial-stab.h, include the code
        directly, instead. Simplify code from partial-stab.h eliminating
        ifdef DBXREAD_ONLY code.

        * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
2001-11-08 02:59:32 +00:00
Andrew Cagney a72293e2a7 When non-multi-arch, use predefault as the value of a pure-multi-arch
method.
2001-11-08 01:33:04 +00:00
Mark Kettenis 8cf03c4c87 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
hardcoding the register number.
2001-11-08 00:03:52 +00:00
gdbadmin 3a27e00009 *** empty log message *** 2001-11-08 00:00:36 +00:00