aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-06-15 * Makefile.in (linux-nat.o): Add rule.Daniel Jacobowitz14-9/+212
* linux-nat.c: New file. * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define. (CHILD_INSERT_VFORK_CATCHPOINT): Define. (CHILD_INSERT_EXEC_CATCHPOINT): Define. * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o. * config/arm/linux.mh (NATDEPFILES): Likewise. * config/i386/linux.mh (NATDEPFILES): Likewise. * config/i386/x86-64linux.mh (NATDEPFILES): Likewise. * config/ia64/linux.mh (NATDEPFILES): Likewise. * config/m68k/linux.mh (NATDEPFILES): Likewise. * config/mips/linux.mh (NATDEPFILES): Likewise. * config/powerpc/linux.mh (NATDEPFILES): Likewise. * config/s390/s390.mh (NATDEPFILES): Likewise. * config/sparc/linux.mh (NATDEPFILES): Likewise.
2003-06-15* gdb.base/attach.exp: Use -1 for the ID of a nonexistent processMark Kettenis2-2/+8
on *-*-*bsd* instead of *-*-freebsd*.
2003-06-15* i387-tdep.c: Reorder includes, fix some whitespace issues andMark Kettenis2-9/+15
replace out-of-date comment.
2003-06-152003-06-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-2/+7
* rdi-share/host.h (Fail): Change to a varargs function. * remote-rdi.c (Fail): Update.
2003-06-15* i386-tdep.c (i386_next_regnum): Fix bounds checking.Mark Kettenis2-23/+54
(i386_convert_register_p, i386_register_to_value, i386_register_from_value): Handle types longer than 8 bytes.
2003-06-15* i386-tdep.c (i386_register_to_value, i386_value_to_register):Mark Kettenis5-55/+115
Move floating-point code to new function in i387-tdep.c. * i387-tdep.c (i387_register_to_value, i387_value_to_register): New functions containing code moved here from i386-tdep.c. * i387-tdep.h: Add opaque declaration for `struct type'. (i387_register_to_value, i387_value_to_register): New prototypes. * x86-64-tdep.c (x86_64_convert_register_p): New function. (x86_64_init_abi): Set convert_register_p, register_to_value and value_to_register here.
2003-06-152003-06-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-13/+33
* config.guess: Update to 2003-06-12 version. * config.sub: Update to 2003-06-13 version.
2003-06-152003-06-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney9-119/+32
* mips-tdep.c (mips_register_to_value): Make static. (mips_value_to_register): Make static. * i386-tdep.c (i386_fetch_pointer_argument): Make static. * ia64-tdep.c (ia64_register_raw_size): Make static. (ia64_register_virtual_size): Make static. (ia64_register_byte): Make static. * i387-tdep.c: Include "i387-tdep.h". (print_387_control_word): Delete function. (print_387_status_word): Delete function. (print_387_status_bits): Delete function. (print_387_control_bits): Delete function. * Makefile.in (i387-tdep.o): Update dependencies. * rdi-share/host.h (Fail): Declare. * remote-rdi.c (Fail): Update to match declaration.
2003-06-15daily updateAlan Modra1-1/+1
2003-06-15*** empty log message ***gdbadmin1-1/+1
2003-06-142003-06-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney9-1434/+17
* config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o". * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o". * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o". * config/djgpp/fnchange.lst: Delete "remote-array.c". * README: Delete reference to remote-array. * Makefile.in (ALLDEPFILES): Remove "remote-array.c". (remote-array.o): Delete target. * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o". * remote-array.c: Delete file.
2003-06-142003-06-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney13-378/+397
Mark Kettenis <kettenis@gnu.org> * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter. (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer parameter with "frame". * gdbarch.h, gdbarch.c: Re-generate. * frame.h (put_frame_register): Declare. * frame.c (put_frame_register): New function. * arch-utils.c (legacy_convert_register_p): Add "type" parameter. (legacy_register_to_value): Rewrite, use "frame" to get the register value. (legacy_value_to_register): Rewrite, use "frame" to find the register's location before storing. * arch-utils.h (legacy_convert_register_p): Update. (legacy_register_to_value, legacy_value_to_register): Update. * findvar.c (value_from_register): Rewrite, eliminate use of REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass "frame" to REGISTER_TO_VALUE. * valops.c (value_assign): Move the CONVERT_REGISTER code to the lval_reg_frame_relative + lval_register branch of the switch. Do not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register. * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM, I386_EDI_REGNUM): New defines. (i386_next_regnum, i386_convert_register_p, i386_register_to_value, i386_value_to_register): New functions. (i386_register_convertible, i386_register_convert_to_virtual, i386_convert_to_raw): Remove functions. (i386_gdbarch_init): Set convert_register_p, register_to_value and value_to_register instead of register_convertible, register_convert_to_virtual and register_convert_to_raw. * mips-tdep.c (mips_convert_register_p): New function. (mips_value_to_register): Replace mips_register_convert_from_type. (mips_register_to_value): Replace mips_register_convert_to_type. (mips_gdbarch_init): Set conver_register_p, value_to_register and register_to_value. * alpha-tdep.c (alpha_convert_register_p): Update. (alpha_value_to_register): Update, store the register. (alpha_register_to_value): Update, fetch the register.
2003-06-142003-06-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-49/+104
* gdb.base/store.exp: Test longest and doublest. Test all parameters. Weaken return statement match. * gdb.base/store.c: Add longest and doublest - aka long long and long double functions. Put all parameters into local register variables. Use negative values.
2003-06-14* avr-tdep.c (avr_remote_translate_xfer_address): Delete function.Theodore A. Roth2-39/+13
(avr_gdbarch_init): Remove avr_call_dummy_words variable. Don't set deprecated_call_dummy_words. Remove commented out set_gdbarch_believe_pcc_promotion() call. Don't set remote_translate_xfer_address. (avr_io_reg_read_command): Remove commented out debug printf. Wrap a long line.
2003-06-14* avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run whichTheodore A. Roth2-1/+6
causes gdb to seg fault.
2003-06-142003-06-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-63/+113
* gdb.base/fileio.c: Include <errno.h>, and <sys/wait.h>. Gag -Wformat errors. Add lost line. Use WEXITSTATUS to get system exit status. * gdb.base/fileio.exp: Disable target when nointerrupts and noinferiorio, instead of limiting it to remote. Use remote_exec instead of system.
2003-06-14 * sparc-nat.c (fetch_inferior_registers): CorrectDaniel Jacobowitz2-1/+6
a reference to "registers".
2003-06-14 * Makefile.in (exc_request_U_h): DefineDaniel Jacobowitz3-1/+19
(exc_request_S_h): Likewise. (msg_reply_S_h): Likewise. (msg_U_h): Likewise. (notify_S_h): Likewise. (process_reply_S_h): Likewise. (gnu-nat.o): Depend on gdb_obstack_h * gnu-nat.c: Include "gdb_obstack.h".
2003-06-142003-06-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-8/+15
* config.guess: Update to 2003-06-12 version. * config.sub: Update to 2003-06-13 version.
2003-06-14*** empty log message ***gdbadmin1-1/+1
2003-06-14daily updateAlan Modra1-1/+1
2003-06-132003-06-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-793/+794
* gdbarch.sh: Document what PUSH_DUMMY_CALL replaces. * gdbarch.h, gdbarch.c: Re-generate.
2003-06-132003-06-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-237/+257
* gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify when deprecated REGISTER macros can be deleted. * gdbarch.h, gdbarch.c: Re-generate.
2003-06-13* solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPCJim Blandy2-0/+16
Linux entry point symbols for _dl_debug_state, too.
2003-06-132003-06-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney8-39/+69
* infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is available, do not use the FP register, and always save the TOS. * dummy-frame.c (dummy_frame_this_id): Do not assert SAVE_DUMMY_FRAME_TOS. * i386-tdep.c (i386_save_dummy_frame_tos): Delete function. (i386_gdbarch_init): Do not set save_dummy_frame_tos. (i386_push_dummy_call): Add 8 to the returned SP. * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS. * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp. (d10v_gdbarch_init): Do not set save_dummy_frame_tos. * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function. (x86_64_push_dummy_call): Return "sp + 16". (x86_64_init_abi): Do not set save_dummy_frame_tos. * alpha-tdep.c (alpha_gdbarch_init): Do not set save_dummy_frame_tos.
2003-06-13Fix typo in ChangeLog.Jim Blandy1-1/+1
2003-06-13* frv-tdep.c (frv_use_struct_convention): Delete staticJim Blandy2-1/+5
declaration for function deleted in my change of 2003-06-12.
2003-06-132003-06-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-15/+23
* gdbint.texinfo (Target Architecture Definition): Deprecate REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT, and BIG_REMOTE_BREAKPOINT. Cross reference BREAKPOINT_FROM_PC.
2003-06-13* avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.Theodore A. Roth2-14/+10
(avr_pointer_to_address): Shift code addrs left 1 bit. (avr_convert_from_func_ptr_addr): Delete function since operation is better handled by avr_address_to_pointer and avr_pointer_to_address. (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2003-06-13From Kelley Cook <kelleycook@wideopenwest.com>:Mark Kettenis7-61/+89
* configure.host: Accept i[34567]86 variants. * configure.tgt: Likewise. * nlm/configure.in: Likewise. * nlm/configure: Regenerated.
2003-06-13* gas/arm/arm.exp: Pass -mfpu=fpa option to the FPA instruction test.Richard Earnshaw2-1/+5
2003-06-13* arm-tdep.c (solib-svr4.h): Dont' include it.Richard Earnshaw1-2/+2
(arm_linux_svr4_fetch_link_map_offsets): Move to ... * arm-linux-tdep.c: ... here. Make static. (arm_linux_init_abi): Register it. (solib-svr4.h): Include it. * Makefile.in: Update dependencies. * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete. (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2003-06-13* tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.Richard Earnshaw2-0/+27
(FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF, FPU_ARCH_FPA for AOUT. (md_begin): Don't try to guess the floating point architecture from the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
2003-06-13Missed include update in previous commit.Richard Earnshaw1-1/+0
2003-06-13* arm-tdep.c (solib-svr4.h): Dont' include it.Richard Earnshaw4-47/+58
(arm_linux_svr4_fetch_link_map_offsets): Move to ... * arm-linux-tdep.c: ... here. Make static. (arm_linux_init_abi): Register it. (solib-svr4.h): Include it. * Makefile.in: Update dependencies. * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete. (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2003-06-13Add i386-netbsd-gnu target.Nick Clifton7-171/+187
2003-06-13(GNU_ABI_TAG_NETBSD): New tag.Nick Clifton2-0/+7
(GNU_ABI_TAG_FREEBSD): New tag.
2003-06-13 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM toCorinna Vinschen2-117/+160
indicate registers used for return values. (struct frame_extra_info): Drop args_pointer and locals_pointer. (h8300_examine_prologue): Remove initializing dropped frame_extra_info members. (h8300_init_extra_frame_info): Ditto. (h8300_frame_locals_address): Removed. (h8300_frame_args_address): Removed. (h8300_extract_return_value): Use new regcache structure. Only care for 16 bit CPUs. (h8300h_extract_return_value): Same function for 32 bit CPUs. (h8300_store_return_value): Use new regcache structure. Only care for 16 bit CPUs. (h8300h_store_return_value): Same function for 32 bit CPUs. (h8300_store_struct_return): Removed. (h8300_extract_struct_value_address): Use new regcache structure. (h8300h_extract_struct_value_address): Removed. (h8300_push_dummy_code): New function. (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls. Remove call_dummy_words. Call set_gdbarch_extract_return_value and set_gdbarch_store_return_value architecture dependent. Call set_gdbarch_push_dummy_code and set_gdbarch_extract_struct_value_address. Remove calls to set_gdbarch_frame_args_address, set_gdbarch_frame_locals_address, set_gdbarch_deprecated_store_struct_return, set_gdbarch_deprecated_extract_return_value, set_gdbarch_deprecated_extract_struct_value_address, set_gdbarch_deprecated_call_dummy_words and set_gdbarch_deprecated_sizeof_call_dummy_words.
2003-06-13 * h8300-tdep.c (h8300_register_byte): Remove.Corinna Vinschen2-29/+18
(h8300h_register_byte): Remove. (h8300_register_virtual_type): Remove. Substitute by... (h8300_register_type): New function. (h8300_extract_struct_value_address): Drop usage of h8300_register_byte. (h8300h_extract_struct_value_address): Ditto. (h8300_gdbarch_init): Drop calls to set_gdbarch_deprecated_register_byte and set_gdbarch_deprecated_register_virtual_type. Add call to set_gdbarch_register_type.
2003-06-132003-06-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney25-340/+363
* gdbarch.sh: Update comments on registers, re-order. (deprecated_register_byte): Rename register_byte. (deprecated_register_raw_size): Rename register_raw_size. (deprecated_register_virtual_size): Rename register_virtual_size. (deprecated_register_virtual_type): Rename register_virtual_type. * gdbarch.h, gdbarch.c: Re-generate. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * vax-tdep.c (vax_gdbarch_init): Update. * v850-tdep.c (v850_gdbarch_init): Update. * sparc-tdep.c (sparc_gdbarch_init): Update. * sh-tdep.c (sh_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * ns32k-tdep.c: Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mips-tdep.c (mips_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * m68k-tdep.c (m68k_gdbarch_init): Update. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. * ia64-tdep.c (ia64_gdbarch_init): Update. * hppa-tdep.c (hppa_gdbarch_init): Update. * h8300-tdep.c (h8300_gdbarch_init): Update. * frv-tdep.c (frv_gdbarch_init): Update. * cris-tdep.c (cris_gdbarch_init): Update. * avr-tdep.c (avr_gdbarch_init): Update. * alpha-tdep.c (alpha_gdbarch_init): Update. * arm-tdep.c (arm_gdbarch_init): Update.
2003-06-132003-06-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-2/+6
* mips-tdep.c (mips_gdbarch_init): Replace remaining instances of mips_o32_use_struct_convention with always_use_struct_convention.
2003-06-13merge from gccDJ Delorie5-62/+105
2003-06-132003-06-12 David Carlton <carlton@kealia.com>David Carlton2-0/+15
* cp-namespace.c (cp_set_block_scope): Comment out processing_has_namespace_info branch.
2003-06-13Recognize and skip 64-bit PowerPC Linux linkage functions.Jim Blandy2-4/+274
* ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct insn_pattern, insns_match_pattern, d_field, ds_field): New functions, macros, and types for working with PPC instructions. (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN, ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target, ppc64_skip_trampoline_code): New functions, variables, and macros for recognizing and skipping linkage functions. (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2003-06-13* ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-areaJim Blandy2-11/+17
register offsets for both the 32- and 64-bit interfaces.
2003-06-13*** empty log message ***gdbadmin1-1/+1
2003-06-13daily updateAlan Modra1-1/+1
2003-06-12Actually finish the job started by my change of 2003-05-29.Jim Blandy2-6/+2
* config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the other #definition of this. (ppc_linux_skip_trampoline_code): Remove declaration. * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this static. (ppc_linux_init_abi): Register it as the skip_trampoline_code method for GDBARCH.
2003-06-12* config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This isJim Blandy1-0/+12
'long' on ppc64-*-linux*.
2003-06-12* ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQJim Blandy2-0/+8
isn't #defined, assume the register doesn't exist: act as if tdep->ppc_mq_regnum were -1.