aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
AgeCommit message (Collapse)AuthorFilesLines
2000-09-22 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,Peter Schauer1-3/+5
OLD_CANNOT_FETCH_REGISTER): New definitions for accessible registers when accessing the registers via the U area. (fetch_register, store_register): Use them. (cannot_fetch_register, cannot_store_register): New functions, all registers should be accessible if we have GETREGS support. * config/i386/nm-linux.h: Use cannot_fetch/store_register for CANNOT_FETCH/STORE_REGISTER definitions.
2000-09-18Enable Mark Kettenis' linux thread support for Linux/PPC.Kevin Buettner2-20/+15
2000-09-07* config/i386/nbsd.mt (TDEPFILES): Add i386nbsd-tdep.o.J.T. Conklin1-1/+1
* i386nbsd-nat.c (i386nbsd_use_struct_convention): Moved from here. * i386nbsd-tdep.c (i386nbsd_use_struct_convention): To here. * i386nbsd-tdep.c: New file.
2000-09-06Remove stray debugging statement and move prototypes so arm-linux-tdep.cScott Bambrough2-8/+7
compiles without warnings. 2000-09-06 Scott Bambrough <scottb@netwinder.org> * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Removed debug print statement. Removed arm_pc_is_thumb prototype. * config/arm/tm-arm.h (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Move prototypes here from tm-embed.h. * config/arm/tm-embed.h (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Remove prototypes. Moved to tm-arm.h.
2000-09-06Add support for backtracing through signal handlers on Linux/ARM. Also,Kevin Buettner1-0/+22
make prologue scanning code somewhat less naive about optimized code on GNU/Linux/ARM.
2000-09-04* config/i386/nm-linux.h: Include <signal.h>.Mark Kettenis1-0/+2
2000-09-03* config/i386/nm-linux.h (PREPARE_TO_PROCEED, ATTCH_LWP,Mark Kettenis2-5/+19
GET_THREAD_SIGNALS): New defines. * config/i386/linux.mh (NATDEPFILES): Remove lin-thread.o and linux-threads.o. Add proc-service.o, thread-db.o and lin-lwp.o. * proc-service.c: New file. * thread-db.c: New file. * lin-lwp.c: New file.
2000-08-27* win32-nat.c (dll_symbol_command): Tack a .dll on the end of a suppliedChristopher Faylor2-3/+3
argument if it is missing an extension. * corelow.c: Define O_BINARY if it isn't defined. (core_open): Open core file in binary mode. * config/i386/tm-cygwin.h (child_clear_solibs): Rename from child_clear_solib. * config/i386/cygwin.mh: Add dependency from corelow.o. * win32-nat.c (register_loaded_dll): New function. Add dll to the list of currently loaded dlls. (handle_load_dll): Use register_loaded_dll. (child_solib_add): Distinguish between active process and core targets. (solib_symbols_add): Load symbols from loaded dll. (core_dll_symbols_add): New function. Load symbols from dll referenced in core. (core_section_load_dll_symbols): New function. (dll_code_sections_add): New function. (map_single_dll_code_section): New function. (fetch_elf_core_registers): New function. (_initialize_core_win32): New function.
2000-08-252000-08-24 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller1-0/+1
* Makefile.in: add rules to compile and link pascal specific files. * config/djgpp/fnchange.lst: add substitution for p-exp.tab.c.
2000-08-12Add formatted register info.Andrew Cagney1-0/+6
Convert more of mn10300 to multi-arch. Fix mips vs mn10300
2000-08-11Enable multi-arch for the mn10300.Andrew Cagney1-5/+4
2000-08-10Adapt support for SSE registers in Linux/x86 for Linux 2.4.Mark Kettenis2-3/+4
* i386-linux-nat.c: Various doc fixes. Include "i387-nat.h". (GETFPXREGS_SUPPLIES): Renamed from GETXFPREGS_SUPPLIES. (have_ptrace_getfpxregs): Renamed from have_ptrace_getxfpregs. (convert_to_gregset): Removed. Moved logic to ... (fill_gregset): ... here. Simplified function. (fetch_regs): Use perror_with_name for error reporting. (store_regs): Add `regno' parameter. Use perror_with_name for error reporting. Call fill_gregset instead of convert_to_gregset. (FPREG_ADDR): Remove. (supply_fpregset): Implement by calling i387_supply_fsave. (convert_to_fpregset): Remove. (fill_fpregset): Implement by calling i387_fill_fsave. (fetch_fpregs): Use perror_with_name fro error reporting. (store_fpregs) Add `regno' parameter. Use perror_with_name fro error reporting. Call fill_fpregset instead of convert_to_fpregset. (supply_xfpregset, convert_to_xfpregset): Removed. (supply_fpxregset, fill_fpxregset): New functions. (fetch_fpxregs): Renamed from fetch_xfpregs. Use perror_with_name for error reporting. Call supply_fpxregset instead of supply_xfpregset. (store_xfpregs): Removed. (store_fpxregs): New function. (fetch_inferior_registers): Adjust for xfp -> fpx change. Tweak message in call to internal_error. (store_inferior_registers): Adjust for xfp ->fpx change. Pass REGNO to store_regs, store_fpregs and store_fpxregs. (fetch_core_registers): Adjust for xfp -> fpx change. * acconfig.h (HAVE_PTRACE_GETFPXREGS): Renamed from HAVE_PTRACE_GETXFPREGS. * config.in: Regenerated. * configure.in: Replace check for PTRACE_GETXFPREGS with check for PTRACE_GETFPXREGS. Remove comment about Cygnus SSE extensions. * configure: Regenerated. * config/i386/linux.mh (NATDEPFILES): Add i387-nat.o. * config/i386/tm-linux.h: Base definition of HAVE_SSE_REGS on HAVE_PTRACE_GETFPXREGS instead of HAVE_PTRACE_GETXFPREGS.
2000-08-06* win32-nat.c: Perform various gcc warning cleanups.Christopher Faylor2-1/+2
(safe_symbol_file_add_cleanup): Reset stdout to saved stdout, not stderr. (dll_symbol_command): Pass OBJF_USERLOADED to safe_symbol_file_add. (get_child_debug_event): Always reset last_sig. Always reset inferior pid appropriately. (do_initial_child_stuff): New function. Called when attaching or starting a new inferior process. (child_attach): Use do_initial_child_stuff. (child_create_inferior): Ditto. * config/i386/cygwin.mh (NAT_FILE): Set to modern location. * config/i386/tm-cygwin.h: Define ATTACH_NO_WAIT.
2000-08-04Multi-arch EXTRA_STACK_ALIGNMENT_NEEDED (nee NO_EXTRA_ALIGNMENT_NEEDED).Andrew Cagney1-1/+1
2000-08-02Thu Jul 27 17:38:35 2000 Andrew Cagney <cagney@b1.cygnus.com>Andrew Cagney1-2/+0
* configure.in (targetfile): Ignore TM_FILE, don't just issue warning. (tm_h, xm_h, nm_h, GDB_TM_FILE, GDB_XM_FILE, GDB_NM_FILE): Define. * acconfig.h (GDB_XM_FILE, GDB_TM_FILE, GDB_NM_FILE): Add. * config/nm-empty.h: Delete. * defs.h (xm.h, nm.h, tm.h): Only include when GDB_XM_FILE, GDB_NM_FILE or GDB_TM_FILE defined. * Makefile.in (defs_h): Replace tm.h, xm.h and nm.h with tm_h, xm_h and nm_h macro that are defined by configure. (tm_h, xm_h, tm_h): New. * configure, config.in: Regenerate * TODO: Update.
2000-08-02Multi-arch REGISTER_SIM_REGNO. Update d10v.Andrew Cagney1-4/+1
2000-07-31Make GNU/Linux/PPC work again.Kevin Buettner15-52/+16
2000-07-31 * config/djgpp/fnchange.lst: Add file mappings as per last weeklyEli Zaretskii1-0/+202
snapshot.
2000-07-27From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:Andrew Cagney1-0/+6
* configure.tgt: Recognize the 68hc11. * m68hc11-tdep.c: New file for 68hc11 target. * config/m68hc11/m68hc11.mt: New file for 68hc11 port. * configure.tgt: When 68hc11, set gdb_multi_arch.
2000-07-272000-07-26 Jimmy Guo <guo@cup.hp.com>Michael Snyder3-0/+0
* config/convex/tm-convex.h: Remove stray control characters. * config/m68k/tm-altos.h: Ditto. * config/tahoe/tm-tahoe.h: Ditto.
2000-07-262000-07-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-12/+12
* sh-tdep.c (sh_sh4_register_name, sh_sh4_register_byte, sh_sh4_register_raw_size, sh_sh4_register_virtual_type, sh_fetch_pseudo_register, sh_store_pseudo_register, sh_do_pseudo_register, sh_gdbarch_init): Fix names for pseudoregs, they should be numbered as drx fvy where x and y are multiples of 2 and 4 respectively. * config/sh/tm-sh.h: Fix names of pseudo regs.
2000-07-242000-07-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-1/+19
* config/sh/tm-sh.h (struct gdbarch_tdep): Add sh4 specific pseudo registers. (DO_REGISTERS_INFO): Define. * sh-tdep.c (sh_sh4_register_name): New function. (sh_generic_show_regs, sh3_show_regs, sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update signature. (sh_show_regs_command): New function. Actual function called by the 'regs' command. (sh_register_byte): Rename to... (sh_default_register_byte): ...New function. (sh_sh4_register_byte): New function. (sh_register_raw_size): Rename to... (sh_default_register_raw_size): ...New function. (sh_sh4_register_raw_size): New function. (sh_sh4_register_virtual_type): New function. (sh_sh4_build_float_register_type): New function. (sh_fetch_pseudo_register, sh_store_pseudo_register): New functions. (fv_reg_base_num, dr_reg_base_num): New functions. (do_fv_register_info, do_dr_register_info, sh_do_pseudo_register, sh_do_fp_register, sh_do_register, sh_print_register, sh_do_registers_info): New functions. (sh_gdbarch_init): Initialize sh4 pseudo registers to -1. Update architecture specific parts. (_initialize_sh_tdep): Use sh_show_regs_command for 'regs' command.
2000-07-212000-07-21 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-3/+4
* config/i386/tm-i386.h: treat PC and FP as unsigned. (SAVED_PC_AFTER_CALL): Use read_memory_unsigned_integer. (FRAME_SAVED_PC): Ditto. (FRAME_CHAIN): Ditto.
2000-07-192000-07-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2-272/+56
Multiarch the sh target. * sh-tdep.c: (sh_generic_reg_names, sh_reg_names,sh3_reg_names, sh3e_reg_names, sh_dsp_reg_names, sh3_dsp_reg_names, sh_processor_type_table): Remove. (XMALLOC): Define. (struct frame_extra_info): Define. (sh_register_raw_size, sh_register_virtual_size, sh_register_virtual_type, sh_register_byte, sh_breakpoint_from_pc, sh_frame_saved_pc, sh_skip_prologue, sh_nofp_frame_init_saved_regs, sh_fp_frame_init_saved_regs, sh_extract_struct_value_address, sh_use_struct_convention, sh_store_struct_return, sh_push_arguments, sh_push_return_address, sh_saved_pc_after_call, sh_generic_register_name, sh_sh_register_name, sh_sh3_register_name, sh_sh3e_register_name, sh_sh_dsp_register_name, sh_sh3_dsp_register_name, sh_frame_args_address, sh_frame_locals_address, sh_coerce_float_to_double, sh_default_store_return_value, sh3e_sh4_store_return_value, sh_generic_show_regs, sh3_show_regs,sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs, sh_register_byte, sh_register_raw_size, sh_register_virtual_size, sh_sh3e_register_virtual_type, sh_default_register_virtual_type, sh_gdbarch_init): New functions. (sh_target_architecture_hook, sh_frame_find_saved_regs, sh_show_regs): Delete functions. (sh_frame_chain, sh_find_callers_reg, sh_init_extra_frame_info, sh_pop_frame, sh_extract_return_value): Update * config/sh/tm-sh.h (GDB_MULTI_ARCH): Define to 1. (struct gdbarch_tdep): Define. Remove all unnecessary defines. * remote-e7000.c ({PR,GBR,SR,MACL,VBR,MACH}_REGNUM): Define to -1, for h8300 case. (want_sh,want_nopc_sh,want_nopc_sh3): Make nomenclature consistent. (e7000_fetch_registers): Remove ifdef GDB_TARGET_IS_SH, use runtime check instead. (e7000_wait): Ditto. * sh3-rom.c (sh3_supply_register): Use gdbarch_tdep to get the SSR and SPC register numbers. (sh3_regnames, sh3e_regnames): Don't specify a size. * config/h8300/tm-h8300.h: Add comment.
2000-07-172000-07-17 matthew green <mrg@redhat.com>J.T. Conklin1-0/+3
* config/sparc/nm-nbsd.h (GDB_GREGSET_T, GDB_FPREGSET_T): Define.
2000-07-14 * ppcbug-rom.c (ppcbug_regnames[]): Make array size implicit.Nicholas Duffek2-34/+3
* rs6000-tdep.c (DEFAULT_LR_SAVE): Move to config/*/tm-*.h. (rs6000_gdbarch_init): Use generic_pc_in_call_dummy instead of rs6000_pc_in_call_dummy. * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Move here from rs6000-tdep.c. * config/powerpc/tm-ppc-eabi.h: Remove various definitions handled by multi-arched rs6000-tdep.c.
2000-07-14Fix definition of SKIP_PROLOGUE macro.Nick Clifton1-1/+1
2000-07-102000-07-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni1-4/+3
* config/sh/tm-sh.h (STORE_RETURN_VALUE): Redefine as sh_store_return_value(). * sh-tdep.c (sh_store_return_value): New function. Store the value returned by a function into the appropriate register. 2000-07-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com> * sh-tdep.c (sh_skip_prologue): Before looking at the actual instructions, try to see if the symbol table can be of help, by calling after_prologue(). If this doesn't work, call skip_prologue_hard_way(). (skip_prologue_hard_way): Renamed from sh_skip_prologue. Add some more instruction pattern matching for pushing of arguments, and manipulation of r14. (after_prologue): New function. Use symbol table info to determine the end of the prologue, if possible.
2000-07-07More mult-arch conversions: IEEE_FLOAT, SKIP_PROLOGUE,Andrew Cagney1-36/+0
SAVED_PC_AFTER_CALL, DECR_PC_AFTER_BREAK, BREAKPOINT_FROM_PC, INNER_THAN.
2000-07-07* config/i386/tm-linux.h: Add longjmp support.Mark Kettenis1-0/+17
(JB_ELEMENT_SIZE, JB_PC): New defines. (GET_LONGJMP_TARGET): Define. (get_longjmp_target): Add prototype.
2000-07-05Keep NATDEPFILES on a single line.Andrew Cagney1-2/+2
2000-06-16 * rs6000-tdep.c: Changes throughout for multi-arch 64-bitNicholas Duffek4-462/+24
support. Incorporate most of tm-rs6000.h. (find_toc_address_hook): Rename to rs6000_find_toc_address_hook. (rs6000_set_host_arch_hook): Declare. (read_memory_addr): Define. (pop_frame): Rename to rs6000_pop_frame. (rs6000_pop_frame, rs6000_fix_call_dummy, rs6000_push_arguments, rs6000_frame_saved_pc, rs6000_frame_chain): Remove non-generic dummy frame handling. (branch_dest, rs6000_pop_frame, rs6000_skip_trampoline_code, rs6000_frame_saved_pc, frame_get_saved_regs, frame_initial_stack_address, rs6000_frame_chain, rs6000_convert_from_func_ptr_addr): Call read_memory_addr instead of read_memory_integer. (branch_dest, rs6000_pop_frame, rs6000_push_arguments, rs6000_skip_trampoline_code, rs6000_frame_saved_pc, frame_get_saved_regs, frame_initial_stack_address, rs6000_frame_chain): Replace 4 with TDEP->wordsize. (skip_prologue): Recognize some 64-bit stack adjustments. (push_dummy_frame, pop_dummy_frame, set_processor, show_processor): Delete. (frame_get_saved_regs): Manipulate saved register addresses using CORE_ADDR instead of int. (rs6000_create_inferior): New function. (register_names_*[]): Change to struct reg registers_*[]. (variants[]): Assimilate into multi-arch approach. (register_names_*[], variants[]): Refer to pre-PowerPC architectures as POWER instead of RS6000. * rs6000-nat.c: Ubiquitous changes for 64-bit support. (vmap_secs, xcoff_relocate_symtab): Cast addresses to unsigned long to avoid sign-extension errors. (set_host_arch): New function. (xcoff_relocate_symtab): Try disabling usleep(36000) workaround. (rs6000_core_fns): Use new bfd_target_xcoff_flavour. (_initialize_core_rs6000): Initialize rs6000_set_host_arch_hook. * symfile.c (find_sym_fns): Remove special xcoff kludge. * xcoffread.c (secnum_to_bfd_section): Initialize args.objfile. (process_linenos): Query line struct size from coff backend instead of using compile-time constant. (enter_line_range): Likewise. (read_xcoff_symtab): Pass "XCOFF64" instead of "XCOFF" to record_debugformat() if appropriate. (process_xcoff_symbol): Access symbol addresses using SYMBOL_VALUE_ADDRESS instead of SYMBOL_VALUE. (read_symbol_lineno): Retrieve XCOFF64 symbol names from strtbl. (scan_xcoff_symtab): Likewise. Query syment struct size from coff backend instead of using compile-time constant. (xcoff_sym_fns): Set flavour to bfd_target_xcoff_flavour. * Makefile.in (INTERNAL_LDFLAGS): Add $(MH_LDFLAGS) to list of flags that this Makefile variable get set to. (From Kevin Buettner.) * config/powerpc/aix.mh (MH_LDFLAGS): Add linker flags so that the TOC doesn't overflow. (From Kevin Buettner.) * config/powerpc/tm-ppc-aix.h: Move config decisions to multi-arched rs6000-tdep.c. * config/rs6000/tm-rs6000.h: Likewise. (GDB_MULTI_ARCH): Define. (skip_trampoline_code): Rename to rs6000_skip_trampoline_code. (is_magic_function_pointer): Replace with rs6000_convert_from_func_ptr_addr. (TARGET_CREATE_INFERIOR_HOOK): Define. (find_toc_address_hook): Rename to rs6000_find_toc_address_hook. (rs6000_set_host_arch_hook): Declare. * config/rs6000/nm-rs6000.h (CHILD_XFER_MEMORY): Define.
2000-06-12ser-tcp.o moved to configure.in.Andrew Cagney1-1/+1
2000-06-12Set SER_HARDWIRE using autoconf instead of via XDEPFILES. IncludeAndrew Cagney36-36/+35
ser-tcp.o by default.
2000-06-12Multi-arch GDB_TARGET_IS_MIPS64.Andrew Cagney2-7/+1
2000-06-12* config/i386/tm-i386.h: Add forward declaration of `struct value'.Mark Kettenis1-13/+8
(FIX_CALL_DUMMY): Redefined to call i386_fix_call_dummy. (i386_fix_call_dummy): Add prototype. * i386-tdep.c (i386_fix_call_dummy): New function based on the code from the old FIX_CALL_DUMMY macro.
2000-06-092000-06-08 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser2-1/+27
* config/i386/tm-embed.h: New file. Specific for embedded targets like i386-elf, i386-coff and i386-aout. * config/i386/embed.mt (): Specify tm-embed.h instead of the System V header file.
2000-06-09Define U_REGS_OFFSET.Kevin Buettner1-0/+2
2000-06-08MIPS is always multi-arch enabled.Andrew Cagney10-72/+2
2000-06-08Delete MIPS_DEFAULT_FPU from config/mips/*.hAndrew Cagney6-10/+2
2000-06-08Use config.bfd to determine the default architecture and byte order.Andrew Cagney3-10/+2
Flush all BYTE_ORDER_DEFAULT macros from mips. Can rely on BFD's value.
2000-06-06Mips is always TARGET_BYTE_ORDER_SELECTABLE_P 1.Andrew Cagney14-25/+12
2000-06-06Delete TARGET_MONITOR_PROMPT.Andrew Cagney8-18/+7
2000-06-04Add host_pointer_to_address() and address_to_host_pointer(). AddAndrew Cagney1-0/+5
signed_pointer_to_address() etc. Rename generic_pointer_to_address() to unsigned_pointer_to_address() etc.
2000-06-04Eliminate PARAMS from function pointer declarations.Kevin Buettner1-1/+1
2000-06-04* win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is flushedChristopher Faylor1-2/+14
before deleting and restoring it. (safe_symbol_file_add): Ensure that gdb_stderr is flushed before reassigning it. (handle_load_dll): Split into two functions so that WFI can handle shared library events. (child_solib_loaded_library_pathname): New function. (child_clear_solibs): New function. Clears shared library list. (child_solib_add): New function. Adds shared library symbols. (dll_symbol_command): New function. Handles "dll-symbol" command. (info_dll_command): New function. Handles info "sharedlibrary" command. (handle_exceptions): Eliminate 'ignore_trap' argument. (get_child_debug_event): Eliminate two arguments. Return "pid" when appropriate. Break out on most events to allow WFI to handle stuff. (child_wait): Accomodate get_child_debug_event changes. (child_attach): Clear thread list and list of loaded dlls. (child_create_inferior): Clear list of loaded dlls. Use wait_for_inferior in a loop to look for first "trap". (child_resume): Avoid accessing a possibly-freed thread pointer. (_initialize_inftarg): Add "dll-symbols", "sharedlibrary", and "info dll", and "info sharedlibrary" commands. * config/i386/tm-cygwin.h: Add some shared library (aka DLL) hooks.
2000-06-02* configure.tgt: Add pattern for i[3456]86-*-netbsdelf*.J.T. Conklin3-2/+35
* config/i386/nbsdelf.mt: New file. * config/i386/tm-nbsdelf.h: New file. * config/i386/tm-nbsd.h: change include of tm-nbsd.h to the more explicit config/tm-nbsd.h.
2000-06-01* config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define.Mark Kettenis1-0/+3
2000-06-01* configure.host: Add patterns for i[3456]86-*-netbsdaout*J.T. Conklin4-2/+47
and i[3456]86-*-netbsdelf*. * config/i386/nm-nbsdelf.h: New file. * config/i386/nbsdelf.mh: New file. * config/i386/nm-nbsd.h: change include of nm-nbsd.h to the more explicit config/nm-nbsd.h. * config/i386/tm-nbsd.h: change include of tm-i386bsd.h to tm-i386.h. (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Define. -------------------------------------------------------------------
2000-05-31Add support for FreeBSD/Alpha.Mark Kettenis5-0/+108
* alphabsd-nat.c, config/alpha/fbsd.mh, config/alpha/fbsd.mt, config/alpha/nm-fbsd.h, config/alpha/tm-fbsd.h, config/alpha/xm-fbsd.h: New files.