Use observers to report stop events in MI.
[binutils-gdb.git] / gdb / ChangeLog
index 475d952349b18aa388a123e3d397fb6b189d9169..f18c6c98c3323a44e66156264433090447c93e45 100644 (file)
@@ -1,3 +1,57 @@
+2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Use observers to report stop events in MI.
+        * mi/mi-interp.c (mi_on_normal_stop): New.
+        (mi_interpreter_init): Register mi_on_normal_stop.
+        (mi_interpreter_exec_continuation): Remove.
+        (mi_cmd_interpreter_exec): Don't register the above.
+        * mi/mi-main.c (captured_mi_execute_command): Don't care
+        about sync_execution.
+        (mi_execute_async_cli_command): Don't install continuation.  Don't
+        print *stopped.
+        (mi_exec_async_cli_cmd_continuation): Remove.
+
+2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Suppress normal stop observer when it's problematic.
+        * inferior.h (suppress_normal_stop_observer): New.
+        * infcall.c (call_function_by_hand): Disable stop events when
+        doing function calls.
+        * infmcd.c (suppress_normal_stop_observer): New.
+        (finish_command_continuation): Call normal_stop observer
+        explicitly.
+        (finish_command): Disable stop events inside proceed.
+        * infrun.c (normal_stop): Don't call normal stop observer if
+        suppressed of if multi-step is in progress.
+
+2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Remove stale code.
+        * infrun.c (finish_command): Don't pass cleanup
+        to continuation.
+        (finish_command_continuation): Don't grab cleanup from
+        the passed data, as we don't use, and cannot, use it anyway.
+
+2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Introduce common cleanup for restoring integers.
+        * defs.h (make_cleanup_restore_integer): New declaration.
+        (struct cleanup): New field free_arg.
+        (make_my_cleanup_2): New.
+        * utils.c (restore_integer_closure, restore_integer)
+        (make_cleanup_restore_integer): New.
+        (make_my_cleanup): Initialize the free_arg field and
+        renamed to make_my_cleanup_2.
+        (do_my_cleanups): Call free_arg.
+        (discard_cleanups): Call free_arg.
+        * breakpoint.c (restore_always_inserted_mode): Remove.
+        (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
+
+2008-06-09  Doug Evans  <dje@google.com>
+
+       * remote.c (remote_wait): Include beginning of malformed packet
+       in error output.
+
 2008-06-09  Tom Tromey  <tromey@redhat.com>
 
        * completer.c (complete_line): Don't special-case