aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-07-09 Add non_stop global.Pedro Alves3-0/+62
* inferior.h (non_stop): Declare. * infrun.c (non_stop, non_stop_1): New. (set_non_stop, show_non_stop): New. (_initialize_infrun): Add "set/show non-stop" command.
2008-07-09 Adjust fork/vfork/exec to pass ptids around.Pedro Alves10-42/+75
* target.h (struct target_waitstatus): Store related_pid as a ptid. (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Take a ptid_t. * breakpoint.h (struct breakpoint): Change forked_inferior_pid type to ptid. * breakpoint.c (print_it_typical, bpstat_check_location) (print_one_breakpoint_location, set_raw_breakpoint_without_location) (create_fork_vfork_event_catchpoint): Adjust. * infrun.c (fork_event): Change parent_pid and child_pid types to ptid. (follow_exec, inferior_has_forked, inferior_has_vforked) (inferior_has_execd): Take a ptid_t and don't trim it. * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid. * linux-nat.c (linux_child_follow_fork): Adjust. * inf-ptrace.c (inf_ptrace_wait): Adjust. * inf-ttrace.c (inf_ttrace_wait): Adjust. * win32-nat.c (get_win32_debug_event): Don't set related_pid.
2008-07-09 Add "executing" property to threads.Pedro Alves16-58/+199
* inferior.h (target_executing): Delete. * gdbthread.h (struct thread_info): Add executing_ field. (set_executing, is_executing): New. * thread.c (main_thread_executing): New. (init_thread_list): Clear it and also main_thread_running. (is_running): Return false if target has no execution. (any_running, is_executing, set_executing): New. * top.c: Include "gdbthread.h". (target_executing): Delete. (execute_command): Replace target_executing check by any_running. * event-top.c: Include "gdbthread.h". (display_gdb_prompt, command_handler): Replace target_executing by is_running. * inf-loop.c: Include "gdbthread.h". Don't mark as not executing here. Replace target_executing by is_running. * infrun.c (handle_inferior_event): Mark all threads as not-executing. * linux-nat.c (linux_nat_resume): Don't mark thread as executing here. * stack.c (get_selected_block): Return null if inferior is executing. * target.c (target_resume): Mark resumed ptid as executing. * breakpoint.c (until_break_command): Replace target_executing check by is_executing. * remote.c (remote_async_resume): Don't mark inferior as executing here. * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing by any_running. * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute) (mi_execute_async_cli_command): Replace target_executing by is_running. * frame.c (get_current_frame): Error out if the current thread is executing. (has_stack_frames): New. (get_selected_frame, deprecated_safe_get_selected_frame): Check has_stack_frames. * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on $(gdbthread_h).
2008-07-09gdb/Pedro Alves4-7/+16
2008-07-09 Pedro Alves <pedro@codesourcery.com> * symfile.c (load_command): Reopen the exec file and reread symbols before anything else. gdb/testsuite/ 2008-07-09 Pedro Alves <pedro@codesourcery.com> * gdb.base/chng-syms.exp: Don't expect "No symbol ...".
2008-07-09 * remote-sim.c: Include gdbthread.h.Pedro Alves3-4/+66
(remote_sim_ptid): New global. (gdbsim_create_inferior): Silently add the main task to GDB's thread list. (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main task from GDB's thread list. (gdbsim_resume): Adjust to use remote_sim_ptid. (gdbsim_thread_alive, gdbsim_pid_to_str): New. (init_gdbsim_ops): Register gdbsim_thread_alive and gdbsim_pid_to_str. (_initialize_remote_sim): Initialize remote_sim_ptid. * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
2008-07-09 * monitor (monitor_ptid): New global.Pedro Alves4-4/+89
(monitor_open): Silently add the main task to GDB's thread list. (monitor_close, monitor_mourn_inferior): Silently delete the main task from GDB's thread list. (monitor_thread_alive, monitor_pid_to_str): New. (init_base_monitor_ops): Register monitor_thread_alive and monitor_pid_to_str. (_initialize_remote_monitors): Initialize monitor_ptid. * gdbthread.h (delete_thread_silent): Declare. * thread.c (delete_thread): Rename to ... (delete_thread_1): ... this. Add "silent" parameter. If silent, don't do exit notifications. (delete_thread, delete_thread_silent): New, as wrappers to delete_thread_1.
2008-07-09 * gdb.base/fullname.exp: Restore pwd if compiling failed.Pedro Alves2-0/+5
2008-07-09*** empty log message ***gdbadmin1-1/+1
2008-07-08 * breakpoint.c (update_global_location_list): Add booleanPedro Alves2-37/+68
"should_insert" argument. Only insert locations if caller told it too. (update_global_location_list_nothrow): Add boolean "should_insert" argument. Pass it to update_global_location_list. (insert_breakpoints, create_longjmp_breakpoint) (create_overlay_event_breakpoint, enable_overlay_breakpoints) (create_thread_event_breakpoint, create_solib_event_breakpoint) (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint) (enable_watchpoints_after_interactive_call_stop) (set_momentary_breakpoint, create_breakpoints) (break_command_really, watch_command_1) (create_ada_exception_breakpoint, update_breakpoint_locations) (do_enable_breakpoint, enable_command): Pass true to update_global_location_list. (bpstat_stop_status, disable_overlay_breakpoints) (disable_watchpoints_before_interactive_call_start) (delete_breakpoint, disable_breakpoint, disable_command): Pass false to update_global_location_list. (update_breakpoints_after_exec): Don't temporarily disable always-inserted mode.
2008-07-08 * breakpoint.c (mark_breakpoints_out): Make public.Pedro Alves5-7/+42
(update_breakpoints_after_exec): Don't call mark_breakpoints_out here. Update comment. * breakpoint.h (mark_breakpoints_out): Declare. * linux-nat.c (linux_handle_extended_wait): On TARGET_WAITKIND_EXECD, call mark_breakpoints_out. * inf-ttrace.c (inf_ttrace_wait): Likewise.
2008-07-08 * infrun.c (follow_exec): Reset shared libraries before adding thePedro Alves2-5/+14
main exec file.
2008-07-08*** empty log message ***gdbadmin1-1/+1
2008-07-07 * server.c (handle_v_attach): Inhibit reporting dll changes.Pedro Alves2-0/+9
2008-07-07gdb/Jan Kratochvil5-1/+86
* breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL. gdb/testsuite/ * gdb.base/value-double-free.exp, gdb.base/value-double-free.c: New.
2008-07-07 * i386-dicos-tdep.c: Include "inferior.h".Pedro Alves3-1/+27
(i386_dicos_frame_align): New. (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call dummy location ON_STACK. * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
2008-07-07 * gstdint.h: New file.Joel Brobecker2-0/+37
2008-07-07(GDB/MI Target Manipulation): Fix last change.Andreas Schwab2-76/+80
2008-07-07*** empty log message ***gdbadmin1-1/+1
2008-07-06 * gdb.texinfo (GDB/MI Target Manipulation): AddVladimir Prus2-2/+13
example of -target-attach.
2008-07-06*** empty log message ***gdbadmin1-1/+1
2008-07-05 * mi/mi-interp.c (mi_on_resume): Don't try to reportVladimir Prus2-0/+11
resumed thread it the thread list is empty.
2008-07-05Add missed changelog entry.Daniel Jacobowitz2-0/+30
2008-07-05*** empty log message ***gdbadmin1-1/+1
2008-07-04 * cli/cli-decode.c (add_setshow_optional_filename_cmd): SetPierre Muller3-1/+16
completer for set to filename_completer. NEWS: Mention it.
2008-07-04 Implement -target-attach.Vladimir Prus2-1/+6
* mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
2008-07-04*** empty log message ***gdbadmin1-1/+1
2008-07-032008-06-21 Hui Zhu <teawater@gmail.com>Michael Snyder2-1/+5
* target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
2008-07-03 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.Pedro Alves9-33/+59
* config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete. * target.h (struct target_ops): Add to_attach_no_wait member. (target_attach_no_wait): New. * target.c (update_current_target): Inherit to_attach_no_wait. * infcmd.c: Replace ATTACH_NO_WAIT compile time check by target_attach_no_wait runtime check. * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops. * win32-nat.c (init_win32_ops): Set to_attach_no_wait in win32_ops.
2008-07-03 * i386-tdep.c (i386_displaced_step_fixup): Condition log printingPedro Alves2-2/+8
on debug_displaced being set.
2008-07-03*** empty log message ***gdbadmin1-1/+1
2008-07-02*** empty log message ***gdbadmin1-1/+1
2008-07-01*** empty log message ***gdbadmin1-1/+1
2008-06-30 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frameDaniel Jacobowitz2-3/+13
directly instead of get_frame_id.
2008-06-30 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.Luis Machado2-3/+118
(deal_with_atomic_sequence): Update BC masks. (rs6000_gdbarch_init): Init displaced stepping infra-structure. Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
2008-06-30 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame'sDaniel Jacobowitz2-9/+7
register, not the previous frame's.
2008-06-30 * source.c (select_source_symtab): Make sure we skip namespaceLuis Machado2-4/+12
symtabs when showing cpp source code.
2008-06-30 * MAINTAINERS (Authorized committers): Fix my email address.Hans-Peter Nilsson2-1/+5
2008-06-30*** empty log message ***gdbadmin1-1/+1
2008-06-29 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,Vladimir Prus4-75/+21
-target-download and -target-select via CLI, so that the quoting rules are the same as they were (unfortunately) in all prior gdb releases. * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until) (mi_cmd_target_download, mi_cmd_target_select): Remove. * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until) (mi_cmd_target_download, mi_cmd_target_select): Remove. (mi_cmd_execute): Set current_token even for commands routed via CLI.
2008-06-29*** empty log message ***gdbadmin1-1/+1
2008-06-28 * alphafbsd-tdep.c: Update for unwinder changes.Ulrich Weigand29-1208/+934
* alpha-linux-tdep.c: Likewise. * alphanbsd-tdep.c: Likewise. * alphaobsd-tdep.c: Likewise. * avr-tdep.c: Likewise. * cris-tdep.c: Likewise. * frv-linux-tdep.c: Likewise. * frv-tdep.c: Likewise. * h8300-tdep.c: Likewise. * hppa-linux-tdep.c: Likewise. * iq2000-tdep.c: Likewise. * m32c-tdep.c: Likewise. * m32r-linux-tdep.c: Likewise. * m32r-tdep.c: Likewise. * m68hc11-tdep.c: Likewise. * mep-tdep.c: Likewise. * mn10300-tdep.c: Likewise. * mt-tdep.c: Likewise. * score-tdep.c: Likewise. * sh64-tdep.c: Likewise. * sh-tdep.c: Likewise. * sparc64fbsd-tdep.c: Likewise. * sparc64nbsd-tdep.c: Likewise. * sparc64obsd-tdep.c: Likewise. * v850-tdep.c: Likewise. * vaxobsd-tdep.c: Likewise. * vax-tdep.c: Likewise. * xstormy16-tdep.c: Likewise.
2008-06-28 * mi/mi-main.c (enum captured_mi_execute_command_actions)Vladimir Prus2-37/+14
(captured_mi_execute_command_args): Remove. (captured_mi_execute_command): Cast the closure to mi_parse pointer, not to captured_mi_execute_command_args, and don't set the action field thereof. (mi_execute_command): Pass struct mi_parse, not captured_mi_execute_command_args to captured_mi_execute_command. (mi_execute_command): Remove (dead) code for suppressing printing prompt.
2008-06-28 * lib/mi-support.exp (mi_send_resuming_command_raw): RevertVladimir Prus2-1/+14
previous commit. Add a comment.
2008-06-28gdb/Pedro Alves5-58/+210
2008-06-28 Pedro Alves <pedro@codesourcery.com> * linux-nat.c (enum sigchld_state): New. (linux_nat_async_events_state): Renamed from linux_nat_async_events_enabled. (linux_nat_event_pipe_push, my_waitpid): Adjust. (sigchld_default_action): New. (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events unconditionally. (linux_nat_create_inferior): Set events state to sigchld_default state. (linux_nat_resume): Adjust. (linux_nat_wait): Call linux_nat_async_events unconditionally. (sigchld_handler): Adjust. (linux_nat_async_mask): Don't set SIGCHLD actions here. (get_pending_events): Adjust. (linux_nat_async_events): Rewrite to handle enum sigchld_state instead of a boolean. (linux_nat_async): Adjust. (_initialize_linux_nat): Capture default SIGCHLD action into sigchld_default_action. gdb/testsuite/ 2008-06-28 Pedro Alves <pedro@codesourcery.com> * gdb.base/sigchld.c, gdb.base/sigchld.exp: New test.
2008-06-28 * lib/mi-support.exp (mi_send_resuming_command_raw): Report pass.Vladimir Prus2-0/+5
2008-06-28Revert accidental commitVladimir Prus1-1/+1
2008-06-28 * breakpoint.c (moribund_locations): New.Vladimir Prus6-19/+131
(bpstat_stop_status): Process moribund locations. (update_global_location_list): Add removed locations to moribund_locations. (breakpoint_retire_moribund): New. * breakpoint.h (struct bp_location): New field events_till_retirement. (breakpoint_retire_moribund): Declare. * thread.c (thread_count): New. * infrun.c (handle_inferior_event): Call breakpoint_retire_moribund. * gdbthread.h (thread_count): Declare.
2008-06-28*** empty log message ***gdbadmin1-1/+1
2008-06-27 * dfp.c (decimal_convert): Call match_endianness before and afterJoseph Myers2-2/+12
conversion.
2008-06-27 * remote.c (remote_insert_breakpoint): Ensure that if Z0Jonathan Larmour2-4/+13
unsupported and we fall back to memory_insert_breakpoint, we use the unmodified requested address.