aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2000-05-102000-05-10 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+8
* ldlang.c (open_input_bfds): Don't load the same file within a group again if the whole archive has been loaded already.
2000-05-102000-05-10 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder9-747/+2311
Make Sparc a Multi-Arch target. Discard PARAMS macro (require ANSI). * sparc-tdep.c: include arch-utils.h. (SPARC_HAS_FPU, FP_REGISTER_BYTES, FP_MAX_REG NUM, SPARC_INTREG_SIZE, DUMMY_REG_SAVE_OFFSET): provide multi-arch-compatible definitions. (GDB_TARGET_IS_SPARC64): make into a runtime test. (struct frame_extra_info): Define, use instead of the macro. (Many places): Use alloca instead of statically allocated buffers that depend on a multi-arch variable such as MAX_REGISTER_RAW_SIZE. (sparc_extract_struct_value_address): Accept a pointer arg instead of an array sized by REGISTER_BYTES. (examine_prologue): Accept a pointer to an array of CORE_ADDR, instead of the defunct struct frame_saved_regs. Recognize new Sparc64 store instructions as part of the prologue. Ignore the destination of a frame store when parsing the prologue (so long as it's on the stack). (sparc_push_dummy_frame): Fix incorrect buffer offset for PSTATE. (sparc_frame_find_saved_regs): Accept a ptr to an array of CORE_ADDR instead of the defunct struct frame_saved_regs. (supply_gregset): Discard unnecessary 'zerobuf': just send NULL to supply_register. Provide 4-byte offset to compensate for diff between size of the prgreg_t elements on a 64-bit host and size of the registers for a 32-bit target. Fill all inaccessible regs with zero so they won't keep being requested again and again. (fill_gregset): Handle 32/64 size difference between registers and prgreg_t. Handle as many new 64-bit regs as possible. (supply_fpregset, fill_fpregset): Attempt to handle 64-bit world. (sparc_push_arguments): Rename to sparc32_push_arguments. Copy arguments into registers as well as onto stack, so that the CALL_DUMMY (code pushed onto the target stack) is not required. (sparc_extract_return_value): Rename to sparc32_extract_return_value. (sparc_store_return_value): Use memset instead of bzero. Use write_register_gen instead of write_register_bytes. (sparclet_store_return_value): New function. (_initialize_sparc_tdep): Call register_gdbarch_init to activate the gdbarch multi-architecture system. (sp64_push_arguments): Rename to sparc64_push_arguments. Extend to store arguments in general registers as well as on stack. (sparc64_extract_return_value): Rename to sp64_extract_return_value. Use as a private function, to be called by the new external function sparc64_extract_return_value. (sparclet_extract_return_value): New function. (sparc32_stack_align, sparc64_stack_align, sparc32_register_name, sparc64_register_name, sparc_print_extra_frame_info, sparclite_register_name, sparclet_register_name, sparc_push_return_address, sparc64_use_struct_convention, sparc32_store_struct_return, sparc64_store_struct_return, sparc32_register_virtual_type, sparc64_register_virtual_type, sparc32_register_size, sparc64_register_size, sparc32_register_byte, sparc64_register_byte, sparc_gdbarch_skip_prologue, sparc_convert_to_virtual, sparc_convert_to_raw, sparc_frame_init_saved_regs, sparc_frame_address, sparc_gdbarch_fix_call_dummy, sparc_coerce_float_to_double, sparc_call_dummy_address, sparc_y_regnum, sparc_reg_struct_has_addr, sparc_intreg_size, sparc_return_value_on_stack): New functions supporting multi-arch. (sparc_gdbarch_init): New function; initialize multi-arch. (struct gdbarch_tdep): Define, use for private multi-arch data. * config/sparc/tm-sparc.h: Move definitions around, enclose with #ifdef GDB_MULTI_ARCH tests, provide some multi-arch alternate definitions. Add enums for register names, to help debugging gdb. This header file must work for non-multi-arch and for multi-arch. * config/sparc/tm-sp64.h: Add GDB_MULTI_ARCH configuration. Also add AT_ENTRY_POINT definitions for CALL_DUMMY, for non-multi-arch case. Define GDB_MULTI_ARCH. * config/sparc/tm-sparclet.h: Add GDB_MULTI_ARCH configuration. Do not define GDB_MULTI_ARCH (bfd does not correctly identify target). * config/sparc/tm-sparclite.h: Ditto. * config/sparc/tm-sun4sol2.h: Define GDB_MULTI_ARCH. * sparclet-rom.c (sparclet_regnames): Initialize explicitly, to avoid using deprecated REGISTER_NAMES macro. * Makefile.in: Let sparc-tdep.c depend on arch-utils.h.
2000-05-10* ppc-opc.c (powerpc_opcodes): Make the predicted-branch opcodesGeoffrey Keating2-363/+368
also available in common mode when powerpc syntax is being used.
2000-05-102000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder10-130/+171
* gdbarch.sh: Add FP0_REGNUM to list of multi-arched register numbers. * gdbarch.c, gdbarch.h: Regenerate. * core-regset.c: Change FP0_REGNUM to a runtime test. * procfs.c: Ditto. * sun3-nat.c: Ditto. * sparc-tdep.c: Ditto. * i386mach-nat.c: Remove unnecessary ifdef for FP0_REGNUM. * ptx4-nat.c: Ditto. * sol-thread.c (sol_thread_create_inferior): only add the thread to the thread list if it is not already in there. (prototypes for thread_db func ptrs): pretty up formatting.
2000-05-09 * gdb.texinfo: Proofreading changes from Brian Youmans.Eli Zaretskii2-8/+21
2000-05-09Unwind info bug fixes from David Mosberger.Jim Wilson2-7/+13
* config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed frame size in units of 16 bytes, as required per SW Conventions manual. (output_unw_records): Output info-block header as a dword to get byte-order right.
2000-05-09Fix some nits shown up by objcopy.Alan Modra2-16/+40
2000-05-08* merge from internal treeFrank Ch. Eigler2-4/+20
2000-04-14 Gary Thomas <gthomas@redhat.com> * v850.igen: Define 'br *' as illegal since this is the only way to provide a breakpoint on some v850 family processors.
2000-05-082000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-50/+63
* sol-thread.c (sol_thread_create_inferior): only add the thread to the thread list if it is not already in there. (prototypes for thread_db func ptrs): pretty up formatting.
2000-05-082000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-1/+6
* gdb.base/interrupt.exp: Make "pass" message say "send" rather than "send_gdb" (for consistancy).
2000-05-08 * djunpack.bat: Change the Sed script to replace @V@ in fnchange.lstEli Zaretskii1-1/+1
with the version name.
2000-05-08 * djunpack.bat: Change the Sed script to replace @V@ in fnchange.lstEli Zaretskii4-181/+194
with the version name. * config/djgpp/djconfig.sh: Use more warning switches. * config/djgpp/fnchange.lst: Replace the leading gdb-0222 with the @V@ placebo.
2000-05-08(print_insn_tic54x): Declare.Alan Modra2-0/+5
2000-05-08Michael Sokolov's 68000 patches + assorted compiler warning fixes.Alan Modra3-47/+71
2000-05-08Fix breakage from 2000-03-31 bfd/srec.c change.Alan Modra2-2/+6
2000-05-08Fix coredump discovered running m68k testsuite.Alan Modra2-1/+5
2000-05-08Kill compiler warnings with ATTRIBUTE_UNUSED.Alan Modra2-5/+11
2000-05-08* trad-core.c (trad_unix_core_file_p): ReturnAlan Modra2-1/+4
bfd_error_wrong_format rather than bfd_error_file_truncated.
2000-05-08DataDirectory virtual address is relative. Fix to suit.Alan Modra2-102/+98
2000-05-08(setup_section): Add const and gettext calls for err.Alan Modra2-7/+11
2000-05-08Move some of the MIPS n32 ABI configuration options into the mipsAndrew Cagney3-55/+140
multi-arch vector.
2000-05-07* procfs.c (PROCFS_TRACE): Delete definition.Andrew Cagney3-2/+7
* proc-utils.h (PROCFS_NOTE, PROC_PRETTYFPRINT_STATUS): Always define.
2000-05-07Typo correction, again from Brian Youmans.Eli Zaretskii1-5/+4
2000-05-07 * gdbmi.texinfo: Lots of typos and grammar fixes from BrianEli Zaretskii2-32/+39
Youmans <3diff@flib.gnu.ai.mit.edu>.
2000-05-06Support for tic54x target.Timothy Wall10-0/+1311
2000-05-06 * xcoff.h: Rename to xcoff-target.hClinton Popetz7-11/+20
* Makefile.am: Change all instances of xcoff.h to xcoff-target.h * coff-rs6000.c: Ditto. * coff64-rs6000.c: Ditto. * coff-pmac.c: Ditto. * Makefile.in: Regenerate.
2000-05-06bfd:Clinton Popetz4-6/+16
* coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Change U802TOC64MAGIC to U803XTOCMAGIC. include: * coff/rs6k64.h (U802TOC64MAGIC): Change to U803XTOCMAGIC.
2000-05-052000-04-28 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-0/+7
* gdb.base/break.exp: When compiled with -O2 optimization, gdb may not stop at the first line of main, due to code motion.
2000-05-052000-05-05 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder4-113/+145
* procfs.c: Cleanup of procfs tracing. Move defines and prototypes to proc-utils.h * proc-utils.h: Define tracing macros. Declare trace functions. * proc-api.c: Make procfs tracing a runtime option. (prepare_to_trace): New function, abstracted out of several places. Open a trace file if one is required. (ioctl_with_trace, write_with_trace, open_with_trace, close_with_trace, wait_with_trace, lseek_with_trace): Report errno if an error occurs in a system call. (write_with_trace): Make 2nd arg void *, to agree with write.
2000-05-052000-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2-3/+10
* elfread.c (elf_symtab_read): The calculation of 'offset' must be done for each symbol, not just once. The index used must be the index of the section where 'sym' resides, not .text.
2000-05-052000-05-05 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder3-17/+27
* procfs.c (many functions): change int cmd; to long cmd; Solaris /proc API calls this parameter a long, and requires it for 64-bit hosts (where sizeof(long) != sizeof(int)). UnixWare calls it an int, but on existing UnixWare hosts, int and long are the same size. So long it must be. If a future UnixWare version has problems with this, we'll have to use autoconf. * proc-api.c (write_with_trace): use long instead of int.
2000-05-052000-05-03 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-49/+74
* solib.c (elf_locate_base, info_sharedlibrary_command): Look at the bfd to determine if it is elf32 or elf64, rather than using an ifdef. This makes it runtime teststable and multi-arch.
2000-05-052000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder4-3/+30
* elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1. * bfd-in.h: Prototype bfd_elf_get_arch_size. * bfd-in2.h: Prototype bfd_elf_get_arch_size.
2000-05-04* i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're notMark Kettenis2-0/+12
already defined.
2000-05-04* infrun.c (handle_inferior_event): Add missing call to keep_goingMark Kettenis2-0/+8
and missing return when handling an ordinary signal from the inferior.
2000-05-04Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni25-248/+365
* objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS, SECT_OFF_RODATA): Define as functions of OBJFILE. Add sect_index_text, sect_index_data, sect_index_rodata, sect_index_bss to objfile structure. * gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS, SECT_OFF_RODATA): Remove. * objfiles.c (allocate_objfile): Initialize sect_index_{text,data,bss,rodata} to -1, for error detection. * symfile.c (default_symfile_offsets): Initialize sect_index_{text,data,bss,rodata} from bfd information. * xcoffread.c (xcoff_symfile_offsets): Ditto. * somread.c (som_symfile_offsets): Initialize sect_index_{text,data,bss,rodata}. * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c, mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h, remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c, stabsread.c, symfile.c, xcoffread.c: Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the current objfile. * xcoffread.c: Add new field objfile to find_targ_sec_arg.
2000-05-04Remove more defunct macros.Andrew Cagney2-3/+2
2000-05-04Fix thinko in 2000-05-02 change.Alan Modra2-1/+5
2000-05-04Cleanups. Zap unused macros.Andrew Cagney4-18/+10
2000-05-042000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>H.J. Lu3-5/+33
* elflink.h (elf_link_add_object_symbols): Reset dynindx for hidden and internal symbols. (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with visibility. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not assign a PLT or GOT entry to symbols with hidden and internal visibility.
2000-05-04Just mention current year in printed copyright message.Alan Modra2-2/+6
2000-05-03* ppc-opc.c (VA, VB, VC, VD, VS, SIMM, UIMM, SHB): New macros, forJ.T. Conklin3-4/+247
vector unit operands. (VX, VX_MASK, VXA, VXA_MASK, VXR, VXR_MASK): New macros, for vector unit instruction formats. (PPCVEC): New macro, mask for vector instructions. (powerpc_operands): Add table entries for above operand types. (powerpc_opcodes): Add table entries for vector instructions. * ppc-dis.c (print_insn_big_powerpc): Add PPC_OPCODE_ALTIVEC to mask. (print_insn_little_powerpc): Likewise. (print_insn_powerpc): Prepend 'v' when printing vector registers.
2000-05-03* config/tc-ppc.c (pre_defined_registers): Add entries for vectorJ.T. Conklin2-1/+78
unit registers. (md_parse_option): Recognize -m7400.
2000-05-03* ppc.h (PPC_OPCODE_ALTIVEC): New opcode flag for vector unit.J.T. Conklin2-0/+13
(PPC_OPERAND_VR): New operand flag for vector registers.
2000-05-03Insert missing entryDaniel Berlin1-0/+4
2000-05-03 * config/atof-ieee.c (gen_to_words): When adding carry back in,Ian Lance Taylor2-2/+9
don't permit lp to become less than the words array.
2000-05-03* infrun.c (handle_inferior_event): When doing a "next", andMark Kettenis2-1/+23
stepping out of a signal handler into its calling trampoline ignore the value of step_frame_address. (step_over_function): Only modify step_resume_breakpoint->frame if the value of step_frame_address is non-zero.
2000-05-03Fix little endian relocsNick Clifton2-25/+24
2000-05-032000-05-03 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-3/+12
* monitor.c (monitor_fetch_register): MAX_REGISTER_RAW_SIZE is not static in the MULTI_ARCH world, so don't use it in a static array declaration.
2000-05-03Tue May 2 13:17:21 2000 Elena Zannoni (ezannoni@makita.cygnus.com)Elena Zannoni2-30/+57
* symtab.c (in_prologue): From Jim Blandy. Rewrite, more intelligently, making sure we use the information from the symbol tables fully.