Commit Graph

36125 Commits

Author SHA1 Message Date
Jim Blandy ebeb39fe31 * coffread.c (coff_symfile_read): Don't try to read the line
number table from disk if the image file doesn't have a symbol
table; we'll never actually look at the info anyway, and Windows
ships DLL's with bogus file offsets for the line number data.
2002-08-22 05:50:11 +00:00
Alan Modra 56780f18c5 * elf32-m68hc11.c: Formatting fixes.
(elf32_m68hc11_gc_mark_hook): Correct params.  Remove unnecessary test.
	* elf32-m68hc12.c: Formatting fixes.
	(elf32_m68hc11_gc_mark_hook): Correct params.  Remove unnecessary test.
2002-08-22 05:41:53 +00:00
Alan Modra 7bbfa6f5d3 * gas/ppc/ppc.exp: Don't run e500 test on xcoff targets.
* gas/ppc/astest2.d: Escape dots.
2002-08-22 05:23:43 +00:00
Alan Modra a7c71b0c65 * coff-rs6000.c (rs6000coff_vec <object_flags>): Add SEC_CODE and
SEC_DATA.
	(pmac_xcoff_vec): Likewise.
	* coff64-rs6000.c (rs6000coff64_vec): Likewise.
	(aix5coff64_vec): Likewise.
2002-08-22 05:13:04 +00:00
Alan Modra b48fa14c86 * elf-bfd.h (struct elf_backend_data): Add struct elf_backend_data
param to elf_backend_copy_indirect_symbol.
	(_bfd_elf_link_hash_copy_indirect): Likewise.
	* elflink.h (elf_add_default_symbol, elf_fix_symbol_flags): Adjust
	calls to copy_indirect_symbol.
	* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
	* elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
	* elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
	* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
	* elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
	* elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
	* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
	* elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Likewise.
	* elf.c (_bfd_elf_link_hash_copy_indirect): Likewise.  Properly
	test refcounts for "used" values.
2002-08-22 01:27:20 +00:00
gdbadmin f43d77f5e1 *** empty log message *** 2002-08-22 00:00:32 +00:00
Alan Modra 2edac2bef7 daily update 2002-08-22 00:00:04 +00:00
Elena Zannoni dc1d03fc42 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
* config/tc-ppc.c (ppc_cleanup): Do something only if format
        is ELF.
        (ppc_apuinfo_section_add): Define only if format is ELF.
        (md_assemble): Emit APUinfo section only if format is ELF.
        Fix formatting.
2002-08-21 23:37:34 +00:00
Elena Zannoni 5bf1c6772c 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
        an e500 executable.
2002-08-21 22:56:02 +00:00
Michael Snyder 18f8152171 2002-08-21 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (DEFAULT_MIPS_TYPE): Delete unused macro.
	* config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
	* config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2002-08-21 22:39:26 +00:00
Michael Snyder 71b8ef9305 2002-08-21 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
	(MSYMBOL_SIZE): Replace macro with function.
2002-08-21 22:18:25 +00:00
Jim Blandy d174216d52 * valops.c (value_cast): Simplify and correct logic for doing a
static cast from a pointer to a base class to a pointer to a
derived class.
2002-08-21 17:24:31 +00:00
Andrew Cagney 0ab7a79125 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (default_print_registers_info): Replace
do_registers_info.
(registers_info): Use gdbarch_print_registers_info instead of
DO_REGISTERS_INFO.
* inferior.h (default_print_registers_info): Replace
do_registers_info.
* gdbarch.sh (PRINT_REGISTERS_INFO): New method.
(DO_REGISTERS_INFO): Change to a predicate function.
* gdbarch.h, gdbarch.c: Regenerate.

2002-08-21  Andrew Cagney  <ac131313@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Document
print_registers_info.  Note that DO_REGISTERS_INFO is deprecated.
2002-08-21 16:34:10 +00:00
Keith Seitz e23792ccb6 * gdb-events.sh: Add target-changed event.
* gdb-events.c: Regenerated.
        * gdb-events.c: Regenerated.
        * valops.c (value_assign): Add target-changed event notification
        to inlval_register, lval_memory, and lval_reg_frame_relative.
2002-08-21 15:34:36 +00:00
Joel Brobecker 9fb14e79f9 * NEWS: Add an entry regarding the improvement of the next/step
operation on Alpha Tru64 multi-processor machines.
2002-08-21 13:59:28 +00:00
Andrew Cagney 72acd513df 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* Makefile.in: Update dependencies for mi/ cli/ and tui/
directores.
2002-08-21 05:40:07 +00:00
Andrew Cagney 342af04b4c 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* Makefile.in: Update all _h macro definitions.
2002-08-21 05:03:38 +00:00
Andrew Cagney 6d39a69f2f 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (install-gdbtk): Move to install section.
(rdi-share/libangsd.a): Move to end of file.
2002-08-21 04:50:20 +00:00
Andrew Cagney fa5f27c703 2002-08-19 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_register_unwind): When a register, set addrp to
the register's byte.
2002-08-21 03:34:22 +00:00
Michael Snyder 5a89d8aaa2 2002-08-20 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
	used locally, so move them from the target machine header to here.
	(mips_set_processor_type, mips_register_name, mips32_next_pc,
	mips16_next_pc, cached_proc_desc, mips_set_processor_type):
	Make static.
	* config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2002-08-21 01:08:23 +00:00
Andrew Cagney 822e978b93 2002-08-20 Andrew Cagney <cagney@redhat.com>
* NEWS: Mention that the Apollo line was made obsolete.
* configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
m68*-hp-hpux* obsolete.
* configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
m68*-hp-bsd* and m68*-hp-hpux* obsolete.
* buildsym.c (make_blockvector): Make static.
* buildsym.h (make_blockvector): Make extern declaration obsolete.
* Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
(ALLDEPFILES): Remove dstread.c.
(dstread.o): Obsolete make rule.
* dstread.c: Makefile obsolete.
* dst.h: Ditto.
* config/m68k/hp300hpux.mt: Ditto.
* config/m68k/hp300hpux.mh: Ditto.
* config/m68k/hp300bsd.mt: Ditto.
* config/m68k/hp300bsd.mh: Ditto.
* config/m68k/apollo68b.mt: Ditto.
* config/m68k/apollo68v.mh: Ditto.
* config/m68k/apollo68b.mh: Ditto.
2002-08-21 00:57:44 +00:00
gdbadmin d5b39e0c53 *** empty log message *** 2002-08-21 00:00:33 +00:00
Alan Modra 6e8c230eaf daily update 2002-08-21 00:00:03 +00:00
Alan Modra 9f1838ed64 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
* config/tc-frv.c: Likewise.
	* config/tc-hppa.c: Likewise.
	* config/tc-ia64.c: Likewise.
	* config/tc-ip2k.c: Likewise.
	* config/tc-m68hc11.c: Likewise.
	* config/tc-m68k.c: Likewise.
	* config/tc-mmix.c: Likewise.
	* config/tc-mn10300.c: Likewise.
	* config/tc-sh.c: Likewise.
	* config/tc-sparc.c: Likewise.
	* config/tc-v850.c: Likewise.
2002-08-20 23:49:27 +00:00
Alan Modra 7abb6dea2c * ldlang.c (offsetof): Define if not defined. 2002-08-20 23:48:18 +00:00
Alan Modra e4c79bb232 * gmon_io.c (gmon_io_read_64, gmon_io_write_64): Define only if
BFD_HOST_U_64_BIT is defined.
	(gmon_io_read_vma, gmon_io_write_vma): Add ifdefs.
2002-08-20 23:47:26 +00:00
Alan Modra c5b060adc5 * readelf.c (parse_args): Change debug_dump_opt to static. 2002-08-20 23:46:41 +00:00
Alan Modra 8c2ab17d27 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Add PARAMS to
argument declaration.
2002-08-20 23:45:41 +00:00
Michael Snyder e41b17f0dc 2002-08-20 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_in_return_stub): Make static.
	(mips_gdbarch_init): Set in_solib_return_trampoline.
	* config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2002-08-20 23:07:43 +00:00
Michael Snyder d50355b63c 2002-08-20 Michael Snyder <msnyder@redhat.com>
* gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
	* gdbarch.c, gdbarch.h: Regenerate.
	* arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
	Add.
        * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2002-08-20 23:01:29 +00:00
Michael Snyder 757a7cc676 2002-08-20 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
	(mips_gdbarch_init): Set skip_trampoline_code,
	in_solib_call_trampoline.
	* config/mips/tm-mips.h (REGISTER_NAME): Delete.
	(IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2002-08-20 22:44:55 +00:00
Elena Zannoni c8001721f3 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* ppc-tdep.h (struct gdbarch_tdep): Add ev registers.

	* rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
	vector type for ev registers.
	(e500_pseudo_register_read): New function.
	(e500_pseudo_register_write): New function.
	(e500_dwarf2_reg_to_regnum): New function.
	(PPC_UISA_NOFP_SPRS): New macro.
	(PPC_EV_REGS): New macro.
	(PPC_GPRS_PSEUDO_REGS): New macro.
	(registers_e500): New register set for e500.
	(variants): Add e500 variant.
	(rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
	before setting architectural dependent variations.  Initialize ev
	registers numbers.  Add case for e500 architecture.  Set the
	number of pseudo registers.
2002-08-20 22:24:29 +00:00
Elena Zannoni 64366f1caf 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c: Clean up comments.
2002-08-20 22:11:48 +00:00
Andrew Cagney 7e78f0ca69 2002-08-20 Andrew Cagney <cagney@redhat.com>
* h8300-tdep.c: Re-indent file.
2002-08-20 22:02:48 +00:00
Michael Snyder f7ab6ec685 2002-08-19 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
	(MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
	(FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
	POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
	(CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
	CALL_DUMMY_ADDRESS): Delete.
	* mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
	mips_msymbol_is_special, mips_fix_call_dummy): New functions.
	(mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
	push_dummy_frame, fix_call_dummy, init_extra_frame_info,
	push_return_address.
	(mips_register_raw_size, mips_eabi_use_struct_convention,
	mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
	mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
	mips_init_extra_frame_info, mips_eabi_push_arguments,
	mips_n32n64_push_arguments, mips_push_return_address,
	mips_push_dummy_frame,	mips_pop_frame,	mips_skip_prologue,
	mips_breakpoint_from_pc, mips_call_dummy_address): Make	static.
2002-08-20 21:58:44 +00:00
Jim Blandy 697f7479bb * Makefile.in (LDFLAGS): Allow the configure script to establish a
default for this.
* gdbserver/Makefile.in (LDFLAGS): Same.
2002-08-20 21:32:18 +00:00
Keith Seitz e86ae29ff5 * breakpoints.c (watch_command_1): Use internal breakpoint
when setting a watchpoint_scope breakpoint.
2002-08-20 20:03:35 +00:00
Elena Zannoni 216b504fa7 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* gdbtypes.c (build_builtin_type_vec64): Add name to type.
	(build_builtin_type_vec64i): Ditto.
	(build_builtin_type_vec128): Ditto.
	(build_builtin_type_vec128i): Ditto.
2002-08-20 19:57:32 +00:00
Michael Snyder b5d1566e1b 2002-08-19 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_frame_num_args): New function.
	(mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
	frame_saved_pc, frame_args_address, frame_locals_address,
	frame_num_args, and frame_args_skip.
	* config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
	FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
	FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
	* config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2002-08-20 19:41:59 +00:00
Michael Snyder 73da396e0b 2002-08-20 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
	(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
	* mips-tdep.c (mips_store_struct_return): New function.
	(mips_extract_struct_value_address): New function.
	(mips_gdbarch_init): Set store_struct_return and
	extract_struct_value_address.
2002-08-20 19:32:47 +00:00
Michael Snyder 2f1488ce23 2002-08-20 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
	(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
	* mips-tdep.c (mips_store_struct_return): New function.
	(mips_extract_struct_value_address): New function.
	(mips_gdbarch_init): Set store_struct_return and
	extract_struct_value_address.
2002-08-20 19:26:23 +00:00
David Carlton 41ff2da14c 2002-08-13 David Carlton <carlton@math.stanford.edu>
* dwarf2read.c (dwarf2_build_psymtabs): Check that
	dwarf_line_offset is nonzero before creating dwarf_line_buffer.
	(read_file_scope): Check that line_header is nonzero before
	decoding macro information.
2002-08-20 18:45:30 +00:00
Mark Kettenis e5451d58f4 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
flag the general-purpose registers as floating-point on targets
that don't support the floating-point registers.
2002-08-20 17:59:50 +00:00
Mark Kettenis e1b73efd99 *** empty log message *** 2002-08-20 17:38:46 +00:00
Elena Zannoni 4a6daafa0b 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (altivec_register_p): Delete.
	(rs6000_do_altivec_registers): Delete.
	(rs6000_altivec_registers_info): Delete.
	(rs6000_do_registers_info): Delete.
	(_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
	(rs6000_gdbarch_init): Remove setting of do_registers_info.
2002-08-20 17:33:51 +00:00
Elena Zannoni ab4327e008 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* infcmd.c (do_registers_info): Print vector registers in hex
	format only.
	(print_vector_info): Check that printing registers
	makes sense.
	(print_float_info): Ditto.
2002-08-20 16:33:32 +00:00
Andrew Cagney cb1d2653f9 2002-08-20 Andrew Cagney <ac131313@redhat.com>
* mips-tdep.c (mips_gdbarch_init): Update.
(mips_o32_extract_return_value): Rewrite.
(mips_o32_store_return_value): Rewrite.
(mips_o32_xfer_return_value): New function.
(mips_xfer_register): Tweak debug print message.  Allow for
buf_offset when dumping the value transfered.
2002-08-20 16:11:49 +00:00
Andrew Cagney dfc3d9b245 2002-08-20 Andrew Cagney <ac131313@redhat.com>
* config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
* config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
* config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
* config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
* mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2002-08-20 13:17:55 +00:00
Richard Sandiford 483fc7cd61 [gas/]
* config/tc-mips.c (macro2): Implement rotates by zero using shifts
        by zero.

[gas/testsuite]
	* gas/mips/rol.s: Add rotate by zero tests.
	* gas/mips/rol.d: Update accordingly.
	* gas/mips/rol64.d: Expect rotates by zero to use dsrl.
2002-08-20 08:28:35 +00:00
Alexandre Oliva a08bafb59b * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
* configure.in (CC_FOR_TARGET, GCJ_FOR_TARGET, CXX_FOR_TARGET,
CXX_FOR_TARGET_FOR_RECURSIVE_MAKE): Likewise.
2002-08-20 03:04:03 +00:00