gdb/
[binutils-gdb.git] / gdb / ChangeLog
index 6926dd075ff240aea14cf683320c50911ac7b5a5..46dc414bfb008e6f602c8c00bf11a75025da24e4 100644 (file)
@@ -1,3 +1,192 @@
+2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR breakpoints/12435
+       * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
+       next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
+       * dwarf2read.c (process_full_comp_unit): Initialize
+       amd64_prologue_line_bug.
+       * symtab.h (struct symtab): New field amd64_prologue_line_bug.
+
+2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix TUI screen corruption.
+       * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
+       batch_flag.
+
+2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * findvar.c (read_var_value): Never return NULL, throw an error
+       instead.  Update the function comment.  State symbol name in the error
+       messages.
+       * python/py-frame.c (frapy_read_var): Remove handling of NULL from
+       read_var_value.
+       * stack.c (print_frame_args): Likewise.
+       * valops.c (value_of_variable): Likewise.
+
+2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * stack.c (print_frame_args): New variable except.  Wrap
+       read_var_value and common_val_print into TRY_CATCH.
+
+2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
+       caller to value_of_this.
+       * p-exp.y: Update the value_of_this caller to value_of_this_silent.
+       Twice.
+       * valops.c (value_of_this): Remove parameter complain and variable ret.
+       Update function comment.  Never return NULL by this code.
+       (value_of_this_silent): New function.
+       * value.h (value_of_this): Remove parameter complain.
+       (value_of_this_silent): New declaration.
+
+2011-09-07  Yao Qi  <yao@codesourcery.com>
+
+       * gdbthread.h (struct thread_info): Remove fields
+       `stepping_through_solib_after_catch' and
+       `stepping_through_solib_catchpoints'.
+       * infrun.c (init_thread_stepping_state): Update.
+       (process_event_stop_test, currently_stepping): Update.
+       (currently_stepping_or_nexting_callback): Update.
+
+2011-09-07  Yao Qi  <yao@codesourcery.com>
+
+       * gdbthread.h (struct thread_info): Comment on field
+       `step_after_step_resume_breakpoint'.
+
+2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
+
+       * remote.c (remote_console_output): Reindent.
+
+2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
+
+       * frame.c (has_stack_frames): Check for currently selected
+       traceframe.
+
+2011-09-06  Pedro Alves  <pedro@codesourcery.com>
+
+       * event-top.h (MAXPROMPTS, struct prompts): Delete.
+       (set_async_annotation_level, set_async_prompt, pop_prompt)
+       (push_prompt, new_async_prompt): Delete declarations.
+       * top.h (get_prompt, set_prompt): Change prototype.
+       (get_prefix, set_prefix, get_suffix, set_suffix): Delete
+       declarations.
+       * top.c (command_loop):
+       (top_prompt): New global.
+       (get_prefix, set_prefix, get_suffix, ): Delete.
+       (get_prompt, set_prompt): Rewrite.
+       (show_new_async_prompt): Rename to ...
+       (show_prompt): ... this.
+       (init_main): Adjust.  Don't handle --annotate=2 here.
+       * event-top.c (new_async_prompt): Delete.
+       (the_prompts): Delete.
+       (more_to_come): Make static.
+       (display_gdb_prompt): Use top_level_prompt() to compute the top
+       level prompt, and don't notify the before_prompt observers
+       directly here.  Always trick readline into not trying to display
+       the prompt if sync_execution and displaying the primary prompt.
+       If displaying a local/secondary prompt, always show it, even if
+       sync_execution is set.
+       (change_annotation_level): Delete.
+       (top_level_prompt): New, based on change_annotation_level.
+       (push_prompt, pop_prompt): Delete.
+       (async_disable_stdin): No longer pushes prompt.
+       (command_line_handler): No longer pushes or pops prompt.  If more
+       input is expected, call display_gdb_prompt with an explicit empty
+       prompt.
+       (async_stop_sig): Adjust.
+       (set_async_annotation_level, set_async_prompt): Delete.
+       * python/python.c (before_prompt_hook): Adjust.
+
+2011-09-05  Pedro Alves  <pedro@codesourcery.com>
+
+       PR cli/13110
+
+       * infrun.c (fetch_inferior_event): Check if there's a selected
+       thread before checking if the selected thread is executing.
+
+2011-09-05  Pedro Alves  <pedro@codesourcery.com>
+
+       * inf-loop.c (execute_command): Don't check if the current thread
+       if running before synchronously waiting for command completion.
+       * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
+       here.
+       (normal_stop): Call async_enable_stdin here.
+       * inf-loop.c (inferior_event_handler): Don't call
+       async_enable_stdin, nor handle "set exec-done-display" here.
+
+2011-09-04  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.3.1 released.
+
+2011-09-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
+
+2011-09-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Add entry for OpenBSD/NetBSD build failure.
+
+2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
+
+2011-09-02  Matt Rice  <ratmice@gmail.com>
+
+       PR gdb/10720
+       * event-top.c (cli_command_loop): Replace readline setup with
+       direct call to display_gdb_prompt.
+       (display_gdb_prompt): Do not call observer mechanism during
+       synchronous execution.
+
+2011-09-02  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-nat.c (in_pid_list_p): New.
+       (linux_record_stopped_pid): Delete.
+       (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
+       already attached to the LWP.  Return an indication if so.
+       (linux_nat_filter_event): Adjust.
+       * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
+       returning an indication to ignore this thread.
+
+2011-09-02  Pedro Alves  <pedro@codesourcery.com>
+
+       * top.c: Include interps.h.
+       (execute_command): If the target can async, but the interpreter is
+       in sync mode, synchronously wait for the command to finish before
+       returning.
+       (execute_command_to_string): Force the interpreter to sync mode.
+       * infrun.c: Include interps.h.
+       (fetch_inferior_event): Don't restore the prompt yet if the
+       interpreter is in sync mode.
+       * interps.c (interpreter_async): New global.
+       * interps.h (interpreter_async): Declare.
+       * inf-loop.c: Include interps.h.
+       (inferior_event_handler): Don't print the language change or run
+       breakpoint commands yet if the interpreter in is sync mode.
+       * main.c (captured_command_loop): Flip the interpreter to async
+       mode.
+       * cli/cli-script.c: Include interps.h.
+       (execute_user_command, while_command, if_command): Force the
+       interpreter to sync mode.
+       * python/python.c: Include interps.h.
+       (python_command, execute_gdb_command): Force the interpreter to
+       sync mode.
+
+2011-09-02  Pedro Alves  <pedro@codesourcery.com>
+
+       * value.c (show_convenience): Catch errors thrown while printing
+       each internal variable.
+       * infrun.c (validate_siginfo_access): New function.
+       (siginfo_value_read, siginfo_value_write): Call it.
+
+2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Revert:
+       2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
+       * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
+       attribute.
+
 2011-08-29  Yao Qi  <yao@codesourcery.com>
 
        * solib-dsbt.c (bfd_lookup_symbol): Removed.