aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2009-05-15 * fix my email addressPierre Muller1-8/+8
2009-05-15*** empty log message ***gdbadmin1-1/+1
2009-05-142009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov5-64/+84
* breakpoint.h: Add breakpoint_re_set_objfile prototype. * breakpoint.c (create_overlay_event_breakpoint): Renamed from create_overlay_event_breakpoint_1, old create_overlay_event_breakpoint deleted. (breakpoint_re_set_objfile): Don't rescan all objfiles unnecessarily. (breakpoint_re_set): New function. * symfile.c (new_symfile_objfile): Call breakpoint_re_set_objfile instead of breakpoint_re_set. * objfiles.c (objfile_relocate): Likewise.
2009-05-14(GDB/MI General Design): Break up into four nodes.Nick Roberts1-0/+10
2009-05-14*** empty log message ***Nick Roberts1-0/+4
2009-05-14 * gdbarch.sh: Add comment documenting the target_gdbarch global.Joel Brobecker2-0/+17
gdbarch.h does NOT need to be regenerated as the corresponding change has already been made in a previous commit.
2009-05-14 Remove all i386 debug register low level macros in config nm files.Pierre Muller20-330/+288
(I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR): Remove. (I386_DR_LOW_GET_STATUS, I386_DR_LOW_SET_CONTROL): Remove. (I386_USE_GENERIC_WATCHPOIINTS): Remove. * i386-nat.h: New file (adapted from config/i386/nm-i386.h). (struct i386_dr_low_type): New type. (i386_dr_low): New global variable. * i386-nat.c (TARGET_HAS_DR_LEN_8): Update macro. (i386_insert_aligned_watchpoint): Replace i386 dr low macros by i386_dr_low struct variable fields. (i386_remove_aligned_watchpoint): Likewise. (i386_stopped_data_address): Likewise. (i386_stopped_by_hwbp): Likewise. (show_debug_regs_command_added): New static variable. (add_show_debug_regs_command): New static function. (i386_use_watchpoints): Call add_show_debug_regs_command if not done. (i386_set_debug_register_length): New function. (_initialize_i386_nat): Delete. * amd64-linux-nat.c: Include "i386-nat.h". (amd64_linux_dr_set_control): Change to static. (amd64_linux_dr_get_status): Change to static. (amd64_linux_dr_set_addr,amd64_linux_dr_reset_addr): Likewise. (_initialize_amd64_linux_nat): Set i386_dr_low variable fields. * go32-nat.c: Include "i386-nat.h". (go32_set_addr): Change to static. (go32_set_dr7): Change to static. Change arg type to unisgned long. (go32_get_dr6): Change to static. Change return type to unisnged long. (init_go32_ops): Set i386_dr_low variable fields. * i386-linux-nat.c: Include "i386-nat.h". (i386_linux_dr_set_control, i386_linux_dr_get_status): Change to static. (i386_linux_dr_set_addr, i386_linux_dr_reset_addr): Idem. (_initialize_i386_linux_nat): Set i386_dr_low variable fields. * i386bsd-nat.h: Declare functions used for i386_dr_low fields in i386fbsd-nat.c. * i386fbsd-nat.c: Include "i386-nat.h". (_initialize_i386fbsd_nat): Set i386_dr_low variable fields. * windows-nat.c: Include "i386-nat.h". (cygwin_set_dr, cygwin_get_dr6, cygwin_set_dr7): Add prototypes. Change to static. (cygwin_get_dr6): Change return type to unisnged long. (cygwin_set_dr7): Change arg type to unisgned long. (init_windows_ops): Set i386_dr_low function fields. * amd64-windows-nat.c (_initialize_amd64_windows_nat): Call i386_set_debug_register_length. * i386-windows-nat.c (_initialize_i386_windows_nat): Likewise. * config/i386/nm-cygwin.h: Remove all I386_* macros. * config/i386/nm-cygwin64.h: Likewise. * config/i386/nm-fbsd.h: Likewise. * config/i386/nm-linux.h: Likewise. * config/i386/nm-i386.h: Remove completely. * config/i386/nm-go32.h: Remove completely. * config/i386/nm-linux64.h: Remove completely. * config/i386/go32.mh (NAT_FILE): Remove entry. * config/i386/linux64.h (NAT_FILE): Change to config/nm-linux.h.
2009-05-14* MAINTAINERS: Add Jon Beniston to write after approval list.Jon Beniston2-0/+5
2009-05-14*** empty log message ***gdbadmin1-1/+1
2009-05-13 * linux-x86-low.c: Don't include assert.h.Doug Evans2-3/+9
(x86_siginfo_fixup): Use fatal, not assert. (x86_arch_setup): Fix comment.
2009-05-132009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-65/+107
* objc-lang.c (objc_objfile_data): New variable. (find_methods): Skip objfiles without Obj-C methods. (_initialize_objc_lang): New function.
2009-05-13(linux_test_for_tracefork): Back out turd from previous check-in.Doug Evans1-2/+0
2009-05-13 * c-lang.c (print_wchar): Remove unnecessary cast.Joel Brobecker2-1/+5
2009-05-13*** empty log message ***gdbadmin1-1/+1
2009-05-12* MAINTAINERS: Remove self as m32c target maintainer.Jim Blandy2-1/+4
2009-05-12 Biarch support for i386/amd64 gdbserver.Doug Evans8-407/+790
* Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. Add linux-x86-low.c. (linux-i386-low.o, linux-x86-64-low.o): Delete. (linux-x86-low.o): Add. * linux-x86-64-low.c: Delete. * linux-i386-low.c: Delete. * linux-x86-low.c: New file. * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with linux-x86-low.o. (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with linux-x86-low.o. (x86_64-linux srv_regobj): Add reg-i386-linux.o. * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. (linux_child_pid_to_exec_file): New function. (elf_64_header_p, elf_64_file_p): New functions. (siginfo_fixup): New function. (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to give target a chance to convert layout. * linux-low.h (linux_target_ops): New member siginfo_fixup. (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
2009-05-12gdb/Pedro Alves8-36/+53
2009-05-12 Pedro Alves <pedro@codesourcery.com> * cli/cli-decode.c (deprecated_add_set_cmd): Delete. * command.h (deprecated_add_set_cmd): Delete declaration. * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with 'set debug gnu-nat' and 'show debug gnu-nat'. * i386-nat.c (_initialize_i386_nat): Replace 'maint show-debug-registers' with 'maint set show-debug-registers' and 'maint show show-debug-registers'. * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint show-debug-registers' with 'maint set show-debug-registers' and 'maint show show-debug-registers'. gdb/doc/ 2009-05-12 Pedro Alves <pedro@codesourcery.com> * gdb.texinfo: Document 'set/show debug gnu-nat'. Replace 'maint show-debug-regs' docs by 'maint set show-debug-regs' and 'maint show show-debug-regs' docs.
2009-05-12 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t beforeJoel Brobecker2-1/+8
pushing it on the output obstack.
2009-05-12*** empty log message ***gdbadmin1-1/+1
2009-05-11 * gdb.mi/nsintrall.c (main): Fix off-by-one error.Doug Evans4-3/+9
* gdb.threads/pending-step.c (main): Fix off-by-one error. * gdb.threads/schedlock.c (main): Fix off-by-one error.
2009-05-11gdb/Jan Kratochvil5-0/+129
Fix internal error on breaking at a multi-locations caller source line. * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break' command with no parameters. gdb/testsuite/ * gdb.cp/expand-sals.exp, gdb.cp/expand-sals.cc: New.
2009-05-11 * linux-nat.c (enum sigchld_state): Delete.Pedro Alves2-659/+351
(linux_nat_async_events_state): Delete. (struct waitpid_result): Delete. (waitpid_queue): Delete. (queued_waitpid_1): Delete. (async_file_flush): New. (queued_waitpid, push_waitpid): Delete. (async_file_mark): New. (drain_queued_events): Delete. (my_waitpid): Remove locally queued events handling. (linux_test_for_tracefork): Upjust. (linux_child_follow_fork): Ditto. (sync_sigchld_action): Delete. (blocked_mask): Reinstate. (async_sigchld_action): Rename to... (sigchld_action): ... this. (block_child_signals): New. (restore_child_signals_mask): New. (lin_lwp_attach_lwp): Adjust. (linux_nat_create_inferior): Ditto. (linux_nat_attach): Also use lp->status in async mode. (get_pending_status): Don't use queued_waitpid. (linux_nat_detach): Don't drain locally queued events. (linux_nat_resume): Allow pending wait statuses stored lp->status in async mode. If returning early due to a pending event, re-register the event source. (stop_wait_callback): Allow pending wait statuses stored lp->status in async mode. (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete. (linux_nat_wait): Rename to ... (linux_nat_wait_1): ... this. Allow pending wait statuses stored lp->status in async mode. Always add WNOHANG to the waitpid options in async mode. (linux_nat_wait): New. (kill_callback): Don't drain locally queued events. (sigchld_handler): Rewrite. (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to refer to "set target-async". (linux_nat_async_mask): If in non-stop, and re-enabling async mode, re-register the target event source in the event loop. (linux_nat_event_pipe_pop, linux_nat_event_pipe_push) (get_pending_events, async_sigchld_handler) (linux_nat_async_events): Delete. (handle_target_event): New. (linux_nat_async_file_handler): Delete. (linux_async_pipe): New. (linux_nat_async): Only re-register in the event loop if not registered yet. Always notify the event-loop once if enabling the event source. (linux_nat_stop_lwp): Rewrite to handle pending events stored in lp->status, not in the locally queued event list. (linux_nat_stop): Don't mask out async event handling. (linux_nat_setup_async): Delete. (_initialize_linux_nat): Adjust. (lin_thread_get_thread_signals): blocked_mask is global again. Adjust.
2009-05-11 Unify target macros.Pierre Muller9-26/+57
* target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ... (target_stoppped_by_watchpoint): New macro. (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ... (target_have_steppable_watchpoint): New macro. (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ... (target_have_continuable_watchpoint): New macro. (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ... (target_can_use_hardware_watchpoint): New macro. (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ... (target_region_ok_for_hw_watchpoint): New macro. * breakpoint.c (update_watchpoint): Use new macros. (bpstat_alloc): Likewise. (create_breakpoint): Likewise. (watch_command_1): Likewise. (can_use_hardware_watchpoint): Likewise. (do_enable_breakpoint): Likewise. * infrun.c (handle_inferior_event): Adapt to new macros. * mips-tdep.c (mips_gdbarch_init): Update comments. * procfs.c (procfs_set_watchpoint): Update comment. (procfs_insert_watchpoint): Adapt to new macros. * remote-m32r-sdi.c (m32r_stop): * remote-mips.c (mips_remove_breakpoint): * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros. (debug_to_stopped_by_watchpoint): Likewise.
2009-05-11*** empty log message ***gdbadmin1-1/+1
2009-05-10 * src/gdb/target.h: Remove all tests for already definedPierre Muller2-16/+6
macros. All macros defined here should not be set in config headers anymore.
2009-05-10*** empty log message ***gdbadmin1-1/+1
2009-05-09 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.Sergio Durigan Junior2-9/+281
(have_ptrace_getsetfpregs): Likewise. fetch_all_gp_regs): New function. (fetch_gp_regs): New function. (fetch_all_fp_regs): Likewise. (fetch_fp_regs): New function. (fetch_ppc_registers): Using the new methods to fetch general- purpose and floating-pointer registers. (store_all_gp_regs): New function. (store_gp_regs): Likewise. (store_all_fp_regs): New function. (store_fp_regs): Likewise. (store_ppc_registers): Using the new methods to store general- purpose and floating-pointer registers.
2009-05-09*** empty log message ***gdbadmin1-1/+1
2009-05-08 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.Doug Evans2-2/+4
2009-05-08 * gdb.texinfo (Process Record and Replay): Add description ofEli Zaretskii2-5/+22
reverse execution.
2009-05-082009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>Sergio Durigan Junior2-0/+5
* MAINTAINERS (Write After Approval): Add self.
2009-05-08*** empty log message ***gdbadmin1-1/+1
2009-05-07 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.Doug Evans2-0/+9
(regsets_store_inferior_registers): Ditto.
2009-05-07 * gdbint.texinfo (Adding support for debugging core files): New node.Joel Brobecker2-58/+17
(Native Debugging): Remove the ``Native core file Support'' section.
2009-05-07 * gdbarch.h (target_gdbarch): Add comment documenting this global.Joel Brobecker2-2/+17
2009-05-07*** empty log message ***gdbadmin1-1/+1
2009-05-06Fix typo.Joel Brobecker1-1/+1
2009-05-06 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present overJoel Brobecker3-47/+61
system iconv. * configure: Regenerate.
2009-05-06 * utils.c: Add include of gdb_usleep.h.Joel Brobecker2-0/+28
(defaulted_query): Detect false EOF conditions that happen on terminals opened with the O_NONBLOCK flag when there is nothing to read.
2009-05-06Fix braino.Pedro Alves1-1/+1
2009-05-06 PR server/10048Pedro Alves3-13/+30
* linux-low.c (must_set_ptrace_flags): Delete. (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead of the global. (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set `lwp->must_set_ptrace_flags' instead. (linux_wait_for_event_1): If ptrace options here. (linux_wait_1): ... not here.
2009-05-06 * inferior.c (add_inferior): Move observer_notify_new_inferiorPedro Alves2-2/+8
call to ... (add_inferior_silent): ... here.
2009-05-06 * procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)Pedro Alves5-76/+81
(procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New functions. (procfs_stopped_by_watchpoint): Made static, ptid argument removed. (_initialize_procfs): Register new watchpoint related target functions. * config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT) (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT) (HAVE_CONTINUABLE_WATCHPOINT): Delete. (target_insert_watchpoint, target_remove_watchpoint): Delete. (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete declarations. * config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT) (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete. (target_insert_watchpoint, target_remove_watchpoint): Delete. (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete declarations. * config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT) (HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete. (target_insert_watchpoint, target_remove_watchpoint): Delete. (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete declarations.
2009-05-06Fix the date error.Hui Zhu1-2/+2
2009-05-06* i386-tdep.c (i386_process_record): Change bzero to memset.Hui Zhu2-2/+6
2009-05-06* NEWS: Add item for process record and replay.Hui Zhu2-0/+11
2009-05-062009-05-05 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-1/+5
* xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
2009-05-06*** empty log message ***gdbadmin1-1/+1
2009-05-052009-05-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+9
* NEWS: Add item for reverse debugging commands.
2009-05-05 * inferior.h (read_pc, write_pc): Remove.Ulrich Weigand24-88/+144
* regcache.c (read_pc, write_pc): Remove. * infrun.c (displaced_step_fixup): Use regcache_read_pc instead of read_pc. (handle_inferior_event): Use regcache_read_pc instead of read_pc when determining value of stop_pc. Replace subsequent uses of read_pc by inspecting already-retrieved stop_pc value. (keep_going): Use regcache_read_pc instead of read_pc. * breakpoint.c (watchpoint_check): Use current frame architecture and PC instead of current_gdbarch and read_pc (). * tracepoint.c (set_traceframe_context): Replace PC argument with FRAME argument. (trace_start_command, finish_tfind_command): Update calls. (finish_tfind_command): Compare frame IDs to identify transitions between frames. (trace_find_pc_command): Use regcache_read_pc instead of read_pc. * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead of gdbarch. Use regcache_read_pc and regcache_write_pc instead of read_pc and write_pc. (store_register): Make regcache argument non-const. Update call to exec_one_dummy_insn. * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc. * infcmd.c (post_create_inferior): Likewise. * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise. * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise. * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise. * linux-fork.c (fork_load_infrun_state): Likewise. * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise. * record.c (record_wait): Likewise. * procfs.c (procfs_wait): Likewise. * remote-mips.c (common_open, mips_wait): Likewise. * remote-m32r-sdi.c (m32r_resume): Likewise. * symfile.c (generic_load): Use regcache_write_pc instead of write_pc. * monitor.c (monitor_create_inferior, monitor_load): Likewise. * m32r-rom.c (m32r_load, m32r_upload_command): Likewise. * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise. * remote-mips.c (mips_create_inferior, mips_load): Likewise. * solib-darwin.c: Include "regcache.h". * solib-pa64.c: Include "regcache.h". * solib-svr4.c: Include "regcache.h.". * symfile.c: Do not mention read_pc or write_pc in comments. * dink32-rom.c: Likewise. * m32r-rom.c: Likewise. * mips-tdep.c: Likewise.