aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-05-09Correct and expand handling of `movm' instruction, and registerJim Blandy3-35/+101
saves in general. * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM, MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions. (enum movm_register_bits): New enum. * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the bits, not hex literals. Handle the `other', `exreg0', and `exother' bits. Correct handling of `exreg1': it saves r4, r5, r6, and r7, not r2, r3, r4, and r5. (saved_regs_size): New function. (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead of computing the same thing inline, incorrectly.
2001-05-09* mn10300-tdep.c (mn10300_gdbarch_init): We do have aJim Blandy2-1/+5
dummy_breakpoint_offset; it's zero.
2001-05-09* mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specificJim Blandy3-28/+40
stuff out into mn10300_pop_frame_regular, and use generic_pop_current_frame. This lets us share code, and also makes this function's prototype match that expected by gdbarch. Make this function static. (mn10300_pop_frame_regular): New function. (mn10300_gdbarch_init): Register mn10300_pop_frame as the gdbarch's pop_frame method. * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition. (mn10300_pop_frame): Delete declaration.
2001-05-09* mn10300-tdep.c (mn10300_saved_pc_after_call,Jim Blandy2-13/+24
mn10300_extract_return_value, mn10300_extract_struct_value_address, mn10300_store_return_value, mn10300_use_struct_convention, mn10300_breakpoint_from_pc, mn10300_frame_chain, mn10300_skip_prologue, mn10300_push_arguments, mn10300_push_return_address, mn10300_store_struct_return, mn10300_frame_saved_pc, mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs): Make these functions static; they should only be visible to the outside world as gdbarch methods.
2001-05-09* config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): DeleteJim Blandy2-2/+3
unused declaration.
2001-05-09* mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methodsJim Blandy2-18/+27
in some rational order.
2001-05-09* mn10300-tdep.c (mn10300_gdbarch_init): Rather than usingJim Blandy2-1/+4
generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
2001-05-09Use gdbarch for most target parameters for the MN10300, ratherJim Blandy3-105/+84
than the tm-*.h file. * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN, SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC, EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS, STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY, CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS, TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY, REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER): Delete definitions. We register gdbarch methods for these now. (struct frame_info, struct type, struct value): Delete forward declarations of these types; they're no longer necessary, since we don't have function declarations here any more. * mn10300-tdep.c: #include "arch-utils.h", to get declarations for some default gdbarch methods. (mn10300_store_struct_return): Return void, as expected by gdbarch. (mn10300_init_extra_frame_info): Take initial `fromleaf' argument, as expected by gdbarch. (mn10300_frame_init_saved_regs): Provide dummy definition for this, as required by gdbarch. (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected by gdbarch. Register gdbarch methods or values for all the stuff removed from tm-10300.h, listed above.
2001-05-09Replace ui_out_list_{begin,end}() with ui_out_{begin,end}().Andrew Cagney6-39/+144
2001-05-09Use a stack of structures (instead of a simple array) to keep track ofAndrew Cagney3-45/+104
the top list.
2001-05-082001-05-08 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+6
* language.c (longest_local_hex_string_custom): Strlen test is inverted -- reverse the sense of the test.
2001-05-08 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment toAndreas Schwab2-10/+12
fx_pcrel_adjust explicitly sign extend when reading it.
2001-05-08 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd isIan Lance Taylor2-2/+13
NULL or is not COFF. (coff_i386_rtype_to_howto): Don't dump core if output section owner is not COFF.
2001-05-08Remove extraneous character in first line.Ian Lance Taylor1-1/+1
2001-05-08merge from gccDJ Delorie6-19/+48
2001-05-08More fallout from 2001-03-30 changes.Alan Modra2-63/+7
* config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var from md_relax_table, and combine some switch cases.
2001-05-08* config/i386/tm-i386v.h (struct frame_info, structMark Kettenis2-7/+7
frame_saved_regs): Remove declarations. (i386_frame_num_args): Remove prototype.
2001-05-08Check Mode not Bank in order to determine rocesor mode.Nick Clifton2-1/+7
2001-05-07 * lib/gdb.exp (gdbtk_initialize_display): New proc which willKeith Seitz2-18/+210
set up the display for testing. (gdbtk_start): Convert all paths to paths that tcl will like. Export target information to environment. (_gdbtk_xvfb_init): New proc to start Xvfb if available and necessary. (_gdbtk_xvfb_exit): New proc to kill Xvfb if necessary. (to_tcl_path): New proc to convert a given pathname into a path acceptible as an argument to a tcl command. (_gdbtk_export_target_info): New proc to export target info into the environment for gdbtk testing. (gdbtk_done): New proc to signal end-of-test.
2001-05-07Drop self as mn10300 maintainer.Andrew Cagney2-1/+6
2001-05-07Zap some bogus #ifndef _WIN32 - hangover from WinGDBAndrew Cagney2-8/+5
2001-05-07* cgen asm/disasmFrank Ch. Eigler3-5/+21
[opcodes/ChangeLog] 2001-05-07 Frank Ch. Eigler <fche@redhat.com> * cgen-dis.in (default_print_insn): Tolerate min<base instructions even at end of a section. * cgen-ibld.in (extract_normal): Tolerate min!=base!=max instructions by ignoring precariously-unpacked insn_value in favor of raw buffer. [cgen/ChangeLog] 2001-05-07 Frank Ch. Eigler <fche@redhat.com> * iformat.scm (compute-insn-base-mask-length): Rewrite to tolerate various-base-length instruction sets.
2001-05-07merge from gccDJ Delorie4-1/+49
2001-05-07ChangeLog cleanup: move all references to gdbtk stuff to gdb.gdbtk/ChangeLog ↵Keith Seitz1-70/+1
(which has been merged with gdb.gdbtk/ChangeLog-gdbtk).
2001-05-07 * disassemble.c (disassembler_usage): Remove unused attribute.Alan Modra2-1/+5
2001-05-07 * ldgram.y: Fix typo.Alan Modra2-3/+7
2001-05-07 * external.h: Fix typo.Alan Modra3-38/+112
* mips.h: Add/Extend many comments with reference to the MIPS ELF64 spec v. 2.4, available at e.g. ftp://oss.sgi.com/pub/linux/mips/doc/ABI/ELF64.ps. (EF_MIPS_UCODE): Define. (EF_MIPS_OPTIONS_FIRST): Define. (EF_MIPS_ARCH_ASE): Define. (EF_MIPS_ARCH_ASE_MDMX): Define. (EF_MIPS_ARCH_ASE_M16): Define. (SHF_MIPS_ADDR): Renamed SHF_MIPS_ADDR32. (SHF_MIPS_STRING): Renamed SHF_MIPS_ADDR64. (SHF_MIPS_NODUPES): Define. (ELF64_MIPS_R_SSYM): New MIPS ELF 64 relocation info access macro. (ELF64_MIPS_R_TYPE3): Likewise. (ELF64_MIPS_R_TYPE2): Likewise. (ELF64_MIPS_R_TYPE): Likewise. (OHW_R10KLDL): Define.
2001-05-07 * readelf.c (process_unwind): Remove const specifier.Alan Modra2-1/+5
2001-05-07 * ecoff.c (bfd_debug_section): Fix initialization.Alan Modra6-17/+29
* elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it is always a positive integer. Cast away sign mismatch. * elf32-mips.c: Fix misleading comment and typo. (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use correct data type. * elflink.c: Fix typo. (_bfd_elf_create_dynamic_sections): Remove superfluous initialization. * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2001-05-07*** empty log message ***Jim Blandy1-0/+4
2001-05-07* mn10300.igen: Doc fixes.Jim Blandy1-6/+6
2001-05-07* restore.c: Make the code of caller0 correspond to its comment.Jim Blandy2-8/+12
2001-05-06Consolidate save_inferior_ptid/restore_inferior_ptid implementation toKevin Buettner12-239/+64
one source file.
2001-05-06* config/tc-mn10300.c (md_assemble): Subtract operand->shiftAlexandre Oliva2-7/+6
from offset in non-pcrel operands too.
2001-05-06Implement attach/detach for multi-threaded programs on Linux.Mark Kettenis3-50/+172
* thread-db.c (keep_thread_db): Adjust comment. (deactivate_target): Removed. (thread_db_new_objfile): Don't call deactivate_target. Implement guts of deactivate_target inline instead. (attach_thread): Call ATTACH_LWP unconditionally if defined. (thread_db_attach): New function. (thread_db_detach): Don't call deactivate_target. Do necessary cleanup inline instead. Set inferior_ptid to LWP corresponding to the current user-level thread. (thread_db_kill): Set inferior_ptid to LWP corresponding to the current user-level thread. (thread_db_create_inferior): Deactivate target vector if KEEP_THREAD_DB is zero. (thread_db_mourn_inferior): Don't call deactivate_target. Do necessary cleanup inline instead. (init_thread_db_ops): Initialize to_attach field to thread_db_attach. * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype. (stop_wait_callback): Add prototype. (init_lwp_list): Add comment about when to re-initialize the LWP list. (lin_lwp_attach_lwp): Only call ptrace for cloned processes. Avoid adding publicates to the LWP list. Only mark an LWP as signalled if it doesn't correspond to a cloned process. (lin_lwp_attach): Add initial process to the LWP list. Make sure it's stopped and fake a SIGSTOP. (detach_callback): New function. (lin_lwp_detach): Implement. (lin_lwp_create_inferior): Don't re-initialize LWP list here. Call child_ops.to_create_inferior directly instead of via target_beneath local. (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior directly instead of via target_beneath local.
2001-05-06Do not insert more than MAX_MEM_FOR_RS_ALIGN_CODE bytes.Nick Clifton3-13/+25
2001-05-06 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basenameEli Zaretskii2-22/+15
instead of non-portable search for `/'. Use FILENAME_CMP instead of STREQ, to account for case-insensitive filesystems. (top-level): #include "filenames.h".
2001-05-06* breakpoint.c (check_duplicates): Use the breakpoint's type, notJim Blandy3-13/+38
its address, to decide whether it's a watchpoint or not. Zero is a valid code address. (update_breakpoints_after_exec): Admonishing comments. * breakpoint.h (struct breakpoint): Doc fixes.
2001-05-06* breakpoint.c (check_duplicates): Take a breakpoint object as anJim Blandy2-15/+22
argument, rather than an address and section. All callers changed.
2001-05-04 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.Richard Henderson2-3/+7
2001-05-042001-05-03 Michael Snyder <msnyder@redhat.com>Michael Snyder2-4/+26
* config/sid.exp (gdb_target_sid): Check for error messages. On error or timeout, don't make expect exit (which will terminate all subsequent tests); instead just make gdb exit. (gdb_load): Check for error messages. On error or timeout, return a negative value.
2001-05-042001-01-26 Felix Lee <flee@redhat.com>Michael Snyder2-11/+41
* sid.exp (sid_exit): Pass host, not target, to remote_close. 2001-01-25 matthew green <mrg@redhat.com> * config/sid.exp (sid_start): Call `remote_push_conn' after firing up sid. (sid_exit): Call `remote_pop_conn' after GDB is gone. 2001-01-25 matthew green <mrg@redhat.com> * config/sid.exp (sid_start): Use `remote_spawn' instead of `spawn.' Deprecate $sid_spawn_id. (sid_exit): Remove code necessary only for `spawn.' 2001-01-25 matthew green <mrg@redhat.com> * config/sid.exp (sid_start): Handle sim,protocol of `sid.'
2001-05-04* typo fixFrank Ch. Eigler1-1/+1
2001-05-04* m32r disasm bug fixFrank Ch. Eigler5-14/+58
2001-05-04 Frank Ch. Eigler <fche@redhat.com> * m32r-dis.c, -asm.c, -ibld.c: Regenerated with disassembler fixes. 2001-05-04 Frank Ch. Eigler <fche@redhat.com> * cgen-dis.in (print_insn): Remove call to read_insn. Instead, assume incoming buffer already has the base insn loaded. Handle case of smaller-than-base instructions for variable-length case.
2001-05-04Assorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.Alan Modra8-23/+57
2001-05-04Set EF_ARM_HASENTRY if the start address is set.Nick Clifton2-0/+17
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner132-2052/+2659
2001-05-03* configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: DisableAlexandre Oliva2-3/+8
libgcj.
2001-05-03Compute value of _bfd_target_vector_entries based on the size ofNick Clifton2-1/+6
_bfd_target_vector and not bfd_target_vector.
2001-05-03 * rdi-share/devsw.c: Include <time.h> for struct tmJonathan Larmour2-0/+5