aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-05-11*** empty log message ***gdbadmin1-1/+1
2007-05-11daily updateAlan Modra1-1/+1
2007-05-10 * server.h (check_remote_input_interrupt_request): New function.Pedro Alves4-11/+86
* remote_utils.c (INVALID_DESCRIPTOR): New define. (remote_desc): Initialize with INVALID_DESCRIPTOR. (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. (check_remote_input_interrupt_request): New function. * server.h (check_remote_input_interrupt_request): Declare. * win32-low.(winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent): New typedefs. (get_child_debug_event): Lower Win32 debug event polling from 1 sec to 250 ms. (win32_wait): Check for remote interrupt request with check_remote_input_interrupt_request. (win32_request_interrupt): New function. (win32_target_op): Set request_interrupt to win32_request_interrupt.
2007-05-10 * win32-low.c (debug_registers_changed,Pedro Alves5-227/+272
debug_registers_used, CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. (thread_rec): Get context using the low target. (child_add_thread): Call thread_added on the low target, which does the same thing. (regptr): Delete. (do_initial_child_stuff): Remove debug registers references. Set context using the low target. Resume threads after setting the contexts. (child_continue): Remove dead variable. Remove debug registers references. (child_fetch_inferior_registers): Go through the low target. (do_child_store_inferior_registers): Remove. (child_store_inferior_registers): Go through the low target. (win32_resume): Remove debug registers references. Set context using the low target. (handle_exception): Change return type to void. Don't record context here. Set status to TARGET_WAITKIND_SPURIOUS on a first chance exception. (get_child_debug_event): Change return type to void. Remove goto loop. Always return after waiting for debug event. (win32_wait): Convert to switch statement. Handle spurious events. * win32-i386-low.c (debug_registers_changed, debug_registers_used): New. (initial_stuff): Rename to ... (i386_initial_stuff): ... this. Clear debug registers state variables. (store_debug_registers): Delete. (i386_get_thread_context): New. (load_debug_registers): Delete. (i386_set_thread_context): New. (i386_thread_added): New. (single_step): Rename to ... (i386_single_step): ... this. (do_fetch_inferior_registers): Rename to ... (i386_fetch_inferior_register): ... this. (i386_store_inferior_register): New. (the_low_target): Adapt to new interface. * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. (arm_get_thread_context): New. (arm_set_thread_context): New. (regptr): New. (do_fetch_inferior_registers): Rename to ... (arm_fetch_inferior_register): ... this. (arm_store_inferior_register): New. (arm_wince_breakpoint): Reimplement as unsigned long. (arm_wince_breakpoint_len): Define. (the_low_target): Adapt to new interface. * win32-low.h (target_ops): Remove regmap, store_debug_registers and load_debug_registers. Add get_thread_context, set_thread_context, thread_added and store_inferior_register. Rename fetch_inferior_registers to fetch_inferior_register. (regptr): Remove declaration.
2007-05-10 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.Ulrich Weigand10-127/+86
(inf_ptrace_fetch_register): Add register_u_offset callback parameters GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value. (inf_ptrace_store_register): Likewise. (inf_ptrace_trad_target): Adapt register_u_offset parameter list. * inf-ptrace.h (inf_ptrace_trad_target): Likewise. * vax-nat.c (vax_register_u_offset): Adapt parameter list. * linux-nat.c (linux_trad_target): Adapt parameter list. * linux-nat.h (linux_trad_target): Likewise. * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters. * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove. (mips_linux_cannot_store_register): Likewise. (mips_linux_register_addr): Add GDBARCH and STORE_P parameters. Return (CORE_ADDR) -1 for registers that cannot be fetched or stored via ptrace. Use GDBARCH instead of current_gdbarch. (mips64_linux_register_addr): Likewise. (mips_linux_register_u_offset): Adapt parameter list. Pass GDBARCH and STORE_P on to mips{64}_linux_register_addr. * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h. * config/mips/nm-linux.h: Delete file.
2007-05-10 * linux-low.c (linux_detach): Change return type to int. Return 0.Pedro Alves3-2/+9
* spu-low.c (spu_detach): Likewise.
2007-05-10 * remote.c (remote_detach): Error out if remote can't detach.Pedro Alves2-1/+9
2007-05-10Reindent last entry using emacs' re-fill text.Pedro Alves1-2/+3
2007-05-10 * target.h (target_ops): Change return type of detach to int.Pedro Alves6-29/+120
Add join. (join_inferior): New. * server.c (main): Don't skip detach support on mingw32. If the inferior doesn't support detaching return error. Call join_inferior instead of using waitpid. * linux-low.c (linux_join): New. (linux_target_op): Add linux_join. * spu-low.c (spu_join): New. (spu_target_ops): Add spu_join. * win32-low.c (win32_detach): Adapt to new interface. Reopen current_process_handle before detaching. Issue a child resume before detaching. (win32_join): New. (win32_target_op): Add win32_join.
2007-05-10 * win32-low.c (win32-attach): Fix return value.Pedro Alves3-18/+21
* target.h (target_ops): Describe ATTACH return values.
2007-05-10 * win32-low.c (GETPROCADDRESS): Define.Pedro Alves2-26/+38
(winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. (winapi_DebugSetProcessKillOnExit): Likewise. (win32_create_inferior): Force usage of ansi CreateProcessA. (win32_attach): Use GETPROCADDRESS. (win32_detach): Likewise.
2007-05-102007-05-10 Luis Machado <luisgpm@br.ibm.com>Ulrich Weigand2-3/+15
* rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch instruction's opcode in the "opcode" variable and declares new variable "closing_insn".
2007-05-10 * win32-low.c (win32_wait): Don't use WSTOPSIG.Pedro Alves2-6/+5
2007-05-102007-05-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-27/+57
* i386-opc.h (ShortForm): Redefined. (Jump): Likewise. (JumpDword): Likewise. (JumpByte): Likewise. (JumpInterSegment): Likewise. (FloatMF): Likewise. (FloatR): Likewise. (FloatD): Likewise. (Size16): Likewise. (Size32): Likewise. (Size64): Likewise. (IgnoreSize): Likewise. (DefaultSize): Likewise. (No_bSuf): Likewise. (No_wSuf): Likewise. (No_lSuf): Likewise. (No_sSuf): Likewise. (No_qSuf): Likewise. (No_xSuf): Likewise. (FWait): Likewise. (IsString): Likewise. (regKludge): Likewise. (IsPrefix): Likewise. (ImmExt): Likewise. (NoRex64): Likewise. (Rex64): Likewise. (Ugh): Likewise.
2007-05-10bfd/Richard Sandiford5-32/+48
* elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries for R_ARM_ABS12 relocs. (elf32_arm_finish_dynamic_symbol): Fix the loop that creates non-shared VxWorks PLT entries. ld/testsuite/ * ld-arm/vxworks1-lib.dd: Expect "push" instead of stmdb and "pop" instead of ldmia. Don't require specific symbolic addresses for in-text addresses. Expect data to be rendered as .words rather than disassembled. * ld-arm/vxworks1.dd: Likewise.
2007-05-10 PR 4454Alan Modra2-2/+36
* elf-eh-frame.c (struct cie): Make "personality" a bfd_vma. (_bfd_elf_discard_section_eh_frame): Handle local syms on personality relocation.
2007-05-10bfd/Richard Sandiford5-1/+30
* elf.c (assign_file_positions_for_load_sections): Use p_memsz rather than p_filesz to calculate the LMA of the end of a segment. ld/testsuite/ * ld-elf/multibss1.d, ld-elf/multibss1.s: New test.
2007-05-10* cli/cli-setshow.c (do_setshow_command): Remove trailingMaciej W. Rozycki2-0/+13
whitespace when setting a var_filename.
2007-05-10 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyrelocJakub Jelinek2-0/+9
processing if symbol is defined in the executable.
2007-05-10* elf32-frv.c (_frvfdpic_check_discarded_relocs): New.Alexandre Oliva2-0/+125
(frvfdpic_elf_discard_info): New. (elf_backend_discard_info): Define for FDPIC.
2007-05-10*** empty log message ***gdbadmin1-1/+1
2007-05-10daily updateAlan Modra1-1/+1
2007-05-09 * main.c (captured_main): Recognize -tui option and print an errorBob Wilson2-2/+12
message when the TUI is not configured.
2007-05-09 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don'tAndreas Schwab2-10/+6
set removed members. (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2007-05-09 bfd/Mark Shinwell2-1/+15
* elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't attempt to scan if the bfd doesn't correspond to an ELF image. (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
2007-05-09 * gdbarch.sh (deprecated_store_struct_return): Remove.Ulrich Weigand5-82/+7
* gdbarch.c, gdbarch.h: Regenerate. * frv-tdep.c (frv_store_struct_return): Remove. (frv_gdbarch_init): Do not install it.
2007-05-09*** empty log message ***gdbadmin1-1/+1
2007-05-09daily updateAlan Modra1-1/+1
2007-05-08ChangeLog:Ulrich Weigand6-17/+10
* config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define. * config/mips/nm-irix5.h (USE_PROC_FS): Do not define. * config/nm-linux.h (USE_PROC_FS): Do not undefine. doc/ChangeLog: * gdbint.texinfo (Native Conditionals): Remove USE_PROC_FS.
2007-05-08 * spu-linux-nat.c: Include "gdb_stdint.h".Ulrich Weigand3-15/+38
(fetch_ppc_register): Use uint64_t instead of unsigned long long. (fetch_ppc_memory_1, store_ppc_memory_1): Likewise. (fetch_ppc_memory, store_ppc_memory): Fix coding style. (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf. (spu_child_wait): Mark up string for translation.
2007-05-082007-05-08 Paul Gilliam <pgilliam@us.ibm.com>Ulrich Weigand2-1/+106
Luis Machado <luisgpm@br.ibm.com> * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION, STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK, BC_INSTRUCTION): Define. (deal_with_atomic_sequence): New function. (rs6000_software_single_step): Call deal_with_atomic_sequence. (rs6000_gdbarch_init): Install deal_with_atomic_sequence as gdbarch_software_single_step routine.
2007-05-08 binutils/testsuite/Mark Shinwell2-1/+6
* binutils-all/strip-3.d: Strip .ARM.attributes and .reginfo sections.
2007-05-08* elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocsAlexandre Oliva2-47/+69
for which _bfd_elf_section_offset returns -1.
2007-05-08 * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.Alan Modra2-5/+11
(mark_functions_via_relocs): Likewise.
2007-05-08merge from gccDJ Delorie4-0/+68
2007-05-08*** empty log message ***gdbadmin1-1/+1
2007-05-08daily updateAlan Modra1-1/+1
2007-05-07 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,Ulrich Weigand2-20/+30
store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory, parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open, spu_symbol_file_add_from_memory, spu_child_post_startup_inferior, spu_child_post_attach, spu_fetch_inferior_registers, spu_store_inferior_registers, spu_xfer_partial): Store PPE-side memory addresses as ULONGEST, not CORE_ADDR.
2007-05-072007-05-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+8
* i386-dis.c (threebyte_0x38_uses_DATA_prefix): Correct entries for some SSE4 instructions. (threebyte_0x3a_uses_DATA_prefix): Likewise.
2007-05-07 * gdbarch.sh: Add skip_permanent_breakpoint callback.Ulrich Weigand9-62/+84
* gdbarch.h, gdbarch.c: Regenerate. * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition. (resume): Call gdbarch_skip_permanent_breakpoint instead of SKIP_PERMANENT_BREAKPOINT. Inline default case. * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static. Add REGCACHE argument. Use it instead of read/write_register. (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint. * config/pa/tm-hppah.h: Delete file. * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h. * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
2007-05-07 * ld.h (args_type, ld_config_type): Reorder fields.Alan Modra3-106/+51
* ldmain.c (main): Don't initialise a bunch of vars we know are zero already.
2007-05-07 * elflink.c (bfd_elf_final_link): Correct reloc handling forAlan Modra2-5/+19
elf_backend_count_relocs. (bfd_elf_discard_info): Print an error if we can't read syms.
2007-05-07 * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL onAlan Modra2-52/+14
invalid reloc code. (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions. (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't define.
2007-05-07 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.Daniel Jacobowitz9-3/+83
* NEWS: Mention improved C++ thunk support. * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline. * cp-abi.c (cplus_skip_trampoline): New. * cp-abi.h (cplus_skip_trampoline): New prototype. (struct cp_abi_ops): Add skip_trampoline member. * gnu-v3-abi.c (gnuv3_skip_trampoline): New. (init_gnuv3_ops): Set skip_trampoline. * gdb.cp/virtfunc.exp (proc do_tests): Test stepping through a thunk.
2007-05-07 * rs6000-tdep.c (struct frame_extra_info): Delete.Daniel Jacobowitz2-13/+4
2007-05-07 * gdb.fortran/complex.exp, gdb.fortran/complex.f: New files.Daniel Jacobowitz3-0/+75
2007-05-07 * elf.c (assign_file_positions_for_load_sections): Don't checkAlan Modra2-3/+8
core segment.
2007-05-07 * linux-thread-db.c: Update some FIXME comments.Daniel Jacobowitz2-34/+9
(thread_db_xfer_partial): Delete. (init_thread_db_ops): Do not set to_xfer_partial.
2007-05-07 * inftarg.c, infptrace.c: Remove files.Ulrich Weigand7-1221/+19
* Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c (inftarg.o, infptrace.o): Remove rules. * gdbcore.h (register_addr): Remove prototype. * inferior.h (kill_inferior, store_inferior_registers, fetch_inferior_registers, attach, detach, ptrace_wait, child_resume, call_ptrace, pre_fork_inferior): Remove prototypes. * target.h (child_xfer_memory, child_pid_to_exec_file, child_core_file_to_sym_file, child_post_attach, child_post_startup_inferior, child_acknowledge_created_inferior, child_insert_fork_catchpoint, child_remove_fork_catchpoint, child_insert_vfork_catchpoint, child_remove_vfork_catchpoint, child_insert_exec_catchpoint, child_remove_exec_catchpoint, child_follow_fork, child_reported_exec_events_per_exec_call, child_has_exited, child_thread_alive): Remove prototypes.
2007-05-07 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.Ulrich Weigand5-8/+23
(sparc_store_inferior_registers): Likewise. * sparc-nat.c (fetch_inferior_registers): Rename to ... (sparc_fetch_inferior_registers): ... this. (store_inferior_registers): Rename to ... (sparc_store_inferior_registers): ... this. (sparc_target): Update callback names. * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.