Commit Graph

37071 Commits

Author SHA1 Message Date
Christopher Faylor 591d46894b * configure.in: Use .gdbinit under Cygwin.
* configure: Regenerate.
2002-11-11 17:21:33 +00:00
Christopher Faylor 1a89f85f47 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if STRICT_PE_FORMAT. 2002-11-11 17:11:53 +00:00
Jeff Johnston 46ae13f0c9 2002-11-11 Jeff Johnston <jjohnstn@redhat.com>
* gdbmi.texinfo (-var-assign): Add comments about interaction
        with -var-update and add an example.  Part of fix for gdb/702.
2002-11-11 17:09:50 +00:00
Christopher Faylor b54e74606e * MAINTAINERS: Reinstate DJ Delorie as COFF maintainer. Drop COFF from cgf
maintainership.
2002-11-11 16:53:19 +00:00
Andrew Cagney 8971b011f4 2002-11-11 Andrew Cagney <ac131313@redhat.com>
* blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
	instead of void_code_ptr.
	(sigtramp_saved_pc): Ditto.
2002-11-11 16:23:58 +00:00
Christopher Faylor 4f17cc1330 * MAINTAINERS: Replace DJ Delorie as PE/COFF maintainer. 2002-11-11 16:06:50 +00:00
Andrew Cagney e6f181f51f 2002-11-11 Andrew Cagney <ac131313@redhat.com>
* x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
	i386_fp_regnum_p.
2002-11-11 16:00:57 +00:00
Svein Seldal 98199d8f1c * Makefile.am: Added tic4x dependecy
* Makefile.in: Regenerate
2002-11-11 14:58:49 +00:00
Svein Seldal 247b1fe610 gas tic4x target enhancements (long list - see gas/ChangeLog and
include/ChangeLog)
2002-11-11 14:29:01 +00:00
Hans-Peter Nilsson b7b0b72964 * ld-elf/sec64k.exp: New test.
* lib/ld-lib.exp (run_dump_test): Don't prepend "$srcdir/$subdir/"
	to a source file starting with "/".
2002-11-11 10:16:57 +00:00
Hans-Peter Nilsson 9df59bba97 * macro.c (get_any_string): Correct logic for not going beyond end
of in->ptr[].
2002-11-11 08:42:52 +00:00
Stan Shebs daa3eaaf8c Retire common MPW configury bits.
* mpw-mh-mpw: Remove.
        * mpw: Remove directory along with all of its files.
2002-11-11 05:38:51 +00:00
Kazu Hirata bc7eab726b * coff-h8300.c: Fix formatting.
* elf32-h8300.c: Likewise.
	* reloc16.c: Likewise.
2002-11-11 05:05:22 +00:00
Daniel Jacobowitz 01ad7f3617 * gdbtypes.h (struct main_type): Move artificial flag out of
loc.  New member of ``struct field'' named static_kind.  Reduce
	overloaded meaning of bitsize.
	(FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
	(TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
	(FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.

	* ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
	new fields.
	(template_to_fixed_record_type, template_to_static_fixed_type)
	(to_record_with_fixed_variant_part): Likewise.
	* coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
	* dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
	* dwarfread.c (struct_type, enum_type): Likewise.
	* hpread.c (hpread_read_enum_type)
	(hpread_read_function_type, hpread_read_doc_function_type)
	(hpread_read_struct_type): Likewise.
	* mdebugread.c (parse_symbol): Likewise.
2002-11-11 00:55:34 +00:00
gdbadmin 299aba957e *** empty log message *** 2002-11-11 00:01:02 +00:00
Alan Modra 66cd976c53 daily update 2002-11-10 23:00:05 +00:00
Hans-Peter Nilsson 480c8d9474 * config/tc-mmix.c (get_putget_operands): Mark both possible
operands as invalid at beginning.
2002-11-10 18:35:51 +00:00
Andrew Cagney bf1e52be95 2002-11-10 Andrew Cagney <ac131313@redhat.com>
* breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
	* stack.c (print_frame_info_base): Update.
	(print_frame_info_base, frame_info): Update.
	* sparc-tdep.c (sparc_init_extra_frame_info): Update.
	(sparc_frame_saved_pc): Update.
	* ada-lang.c (find_printable_frame): Update.
	* breakpoint.c (deprecated_frame_in_dummy): Update.
2002-11-10 15:36:26 +00:00
Hans-Peter Nilsson 32c27eed9c * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
Initialize target of fixup to zero.
2002-11-10 13:09:11 +00:00
Hans-Peter Nilsson 646a0a402c * ld-mmix/local1.d, ld-mmix/local3.d, ld-mmix/local5.d,
ld-mmix/local7.d: Tweak for change in readelf output.
2002-11-10 09:29:07 +00:00
gdbadmin f8f016f4d7 *** empty log message *** 2002-11-10 00:00:02 +00:00
Alan Modra eb9e99e691 daily update 2002-11-09 23:00:04 +00:00
Mark Kettenis ce556f8539 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
defined.
(regmap): Extend to cover all registers.
(PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
definitions.
(fetch_register, sore_register): Simplify.
(old_fetch_inferior_registers, old_store_inferior_registers):
Remove functions.
(cannot_fetch_register, cannot_store_register): Change
implementation to use regmap array to decide which registers
cannot be fetched/stored.  This removes $orig_eax from the
registers that cannot be fetched/stored.
(fetch_inferior_registers): Call fetch_register directly instead
of calling old_fetch_inferior_registers.
(store_inferior_registers): Call store_register directly instead
of calling old_store_inferior_registers.
(i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
(i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
* config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2002-11-09 21:31:12 +00:00
Klee Dienes 932bb5249e 2002-11-09 Klee Dienes <kdienes@apple.com>
* i387-tdep.c (i387_supply_register): When called with NULL as a
        buffer, mark the register as not provided (to mirror the behavior
        of supply_register).
        (i387_supply_fxsave): Ditto.
        (i387_supply_fsave): Ditto (inherits the behavior from
        i387_supply_register).
2002-11-09 19:34:35 +00:00
Klee Dienes ebe68b2757 2002-11-09 Klee Dienes <kdienes@apple.com>
* blockframe.c (sigtramp_saved_pc): Use
        builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
        extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
        instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2002-11-09 19:28:22 +00:00
Klee Dienes 82661bd0df 2002-11-09 Klee Dienes <kdienes@apple.com>
* chexp.exp: Mark as obsolete.
        * pr-5016.exp: Remove stray trailing newline.
2002-11-09 19:15:23 +00:00
Andrew Cagney 15220c65c0 2002-11-09 Andrew Cagney <ac131313@redhat.com>
* frame.c (get_prev_frame): Test prev_p to identify a previously
	unwound frame.  Initialize prev_p.
	* frame.h (struct frame_info): Add field prev_p.  Expand prev/next
	comment.
2002-11-09 18:14:10 +00:00
Andrew Cagney 95adb866d7 2002-11-09 Andrew Cagney <ac131313@redhat.com>
* frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
	for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
	more comments.  Zap dead code.
2002-11-09 17:45:17 +00:00
Mark Kettenis e71ecd70b2 * infcmd.c (print_vector_info, print_float_info): Move code that
checks whether the target has any registers and whether there is a
selected frame up, such that it is also used if a target provides
multi-arch definitions of these functions.
2002-11-09 12:44:23 +00:00
Alan Modra f72dfb13ce * ld-elfvsb/define.s: Avoid use of @ in .type directive. 2002-11-09 12:27:50 +00:00
Andrew Cagney 72bdd9279d 2002-11-08 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (DESTDIR): Define.
	(install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
	prefix.
2002-11-09 03:14:11 +00:00
Andrew Cagney c525330d5e 2002-11-08 Andrew Cagney <ac131313@redhat.com>
* config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
	i386obsd-tdep.c.  Rename paths containing "gdb.c++" to "gdb.cxx".
2002-11-09 02:53:25 +00:00
Alan Modra 52585bb8f1 * elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output
section when dynamic section unused;  _bfd_strip_section_from_output
	instead.
2002-11-09 00:52:27 +00:00
gdbadmin c200757530 *** empty log message *** 2002-11-09 00:00:03 +00:00
Andrew Cagney 38c968cfa6 2002-11-08 Andrew Cagney <ac131313@redhat.com>
* i386-linux-tdep.c: Include "reggroups.h".
	(i386_linux_register_reggroup_p): New function.
	(i386_linux_init_abi): Set register_reggroup_p to
	i386_linux_register_reggroup_p.
	* i386-tdep.h (i386_register_reggroup_p): Declare.
	* i386-tdep.c: Include "reggroups.h".
	(i386_init_reggroups): New function.
	(i386_add_reggroups): New function.
	(i386_register_reggroup_p): New function.
	(i386_sse_reggroup, i386_mmx_reggroup): New variables.
	(_initialize_i386_tdep): Call i386_init_reggroups.
	(i386_gdbarch_init): Set register_reggroup_p and add in the i386
	specific reggroups.
2002-11-08 23:59:58 +00:00
Mark Kettenis 371a6e84e5 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
request that's available in *BSD.
2002-11-08 23:48:38 +00:00
Mark Kettenis 94ba925ab9 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove. 2002-11-08 23:35:14 +00:00
Mark Kettenis 19e333637a * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
FDOFF_REGNUM.
2002-11-08 23:31:09 +00:00
Andrew Cagney 8779790c2e 2002-11-08 Andrew Cagney <ac131313@redhat.com>
* frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
	* dummy-frame.c (find_dummy_frame): Rename
	generic_find_dummy_frame, make static.  Return the dummy frame
	instead of the regcache.
	(generic_find_dummy_frame): Re-implement using find_dummy_frame,
	(cached_find_dummy_frame): New function.  Use find_dummy_frame.
	(dummy_frame_register_unwind): Rename
	generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
	* dummy-frame.h (dummy_frame_register_unwind): Rename
	generic_call_dummy_register_unwind.
2002-11-08 23:12:52 +00:00
Alan Modra 34f5246900 daily update 2002-11-08 23:00:04 +00:00
Mark Kettenis 8674b74f1c * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
except the inclusion of "i386/tm-i386.h", to...
* config/i386/nm-i386v42mp.h: ...here.
* config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2002-11-08 21:00:47 +00:00
Andrew Cagney 4c1e7e9d5e 2002-11-08 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (frame.o): Update dependencies.
	* blockframe.c (current_frame, frame_obstack_alloc)
	(frame_saved_regs_zalloc, get_current_frame)
	(set_current_frame, create_new_frame)
	(set_unwind_by_pc, get_next_frame)
	(flush_cached_frames, reinit_frame_cache)
	(frame_saved_regs_register_unwind)
	(deprecated_generic_get_saved_register)
	(get_prev_frame, get_frame_pc, get_frame_saved_regs)
	(_initialize_blockframe): Move frame code from
	here...
	* frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
	"annotate.h" and "dummy-frame.h".
	(_initialize_frame): New function.
2002-11-08 20:48:55 +00:00
Jeff Johnston e78c0063c1 2002-11-08 Jeff Johnston <jjohnstn@redhat.com>
* mi-main.c (mi_command_loop): Initialize raw_stdout and gdb_stdout
        only if mi version is <= 1.
        (mi_init_ui): Initialize raw_stdout and gdb_stdout if mi version
        is > 1 so startup message is treated as console output.  This is
        part of fix for PR gdb/604.
2002-11-08 20:39:06 +00:00
Jeff Johnston 1f312e798b 2002-11-08 Jeff Johnston <jjohnstn@redhat.com>
* lib/mi-support.exp (mi_gdb_start): Verify the startup message
        for mi1 and current mi is in correct format.  New mi startup message
        should be in mi console format.  This is part of fix for PR gdb/604.
2002-11-08 20:37:50 +00:00
Jim Blandy 921e78cf01 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
when we finish a function a context.
* buildsym.h (outermost_context_p): New macro.
(Bug analyzed by David Edelsohn.)
2002-11-08 20:05:10 +00:00
Andrew Cagney 9c1412c1a1 2002-11-08 Andrew Cagney <ac131313@redhat.com>
* blockframe.c: Include "dummy-frame.h".
	(struct dummy_frame, dummy_frame_stack)
	(generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
	(generic_pc_in_call_dummy, deprecated_read_register_dummy)
	(generic_push_dummy_frame, generic_save_dummy_frame_tos)
	(generic_save_call_dummy_addr, generic_pop_current_frame)
	(generic_pop_dummy_frame, generic_fix_call_dummy)
	(generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
	dummy frame code from here...
	* dummy-frame.c: ...to here.  New file.
	* dummy-frame.h: New file.
	(generic_call_dummy_register_unwind): Declare.
	(generic_find_dummy_frame): Declare.
	* Makefile.in (SFILES): Add dummy-frame.c.
	(dummy-frame.o): Specify dependencies.
	(dummy_frame_h): Define.
	(COMMON_OBS): Add dummy-frame.o.
	(blockframe.o): Update dependencies.
2002-11-08 19:42:00 +00:00
Jim Blandy 208d818701 * dwarf2read.c (read_func_scope): Restore local_symbols and
param_symbols after we finish the function context.  (Based on a
patch from David Edelsohn.)
2002-11-08 19:33:37 +00:00
David Carlton 413dad4d0e 2002-11-08 David Carlton <carlton@math.stanford.edu>
* linespec.c (symbol_found): New function.
	(minsym_found): New function.
	(decode_line_1): Separate out some code into separate functions.
2002-11-08 19:16:17 +00:00
Joel Brobecker 5512c44af4 * i386-tdep.c (i386_frameless_signal_p): Make non static for
the benefit of the interix target.
       * i386-tdep.h (i386_frameless_signal_p): Declare.
2002-11-08 17:34:31 +00:00
Andrew Cagney 1b33ef47a1 2002-11-08 Andrew Cagney <ac131313@redhat.com>
* i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
	declaration that snuck in from change below.
2002-11-08 17:03:27 +00:00