2003-02-05 Jim Ingham <jingham@apple.com>
[deliverable/binutils-gdb.git] / gdb / mi / ChangeLog
index b66c3735e50afe8741e9144879cc801263cb0c41..e79398c15a758025c908c5bcfccf9df21a35aa09 100644 (file)
@@ -1,3 +1,463 @@
+2003-02-04  Jim Ingham <jingham@apple.com>
+           Keith Seitz  <keiths@redhat.com>
+            Elena Zannoni  <ezannoni@redhat.com>
+            Andrew Cagney  <ac131313@redhat.com>
+       
+       * mi-main.h: New file.
+       * mi-interp.c: New file.
+       * mi-main.c: Include "interps.h".
+       (mi_error_message): Make global.
+       (mi_input): Delete static function, moved to "mi-interp.c".
+       (mi_execute_command, mi_execute_command_wrapper): Ditto.
+       (mi_command_loop, mi1_command_loop, mi2_command_loop): Ditto.
+       (mi_load_progress): Make non-static.
+       (mi_error_last_message): New function.
+       (captured_mi_execute_command): If the interpreter changed, don't
+       print anything.
+       (mi_load_progress): Use current_interp_named_p.
+       (mi_init_ui): Delete function.
+       (_initialize_mi_main): Don't install the mi interpreter, handled
+       by "mi-interp.c".
+       (mi_exec_async_cli_cmd_continuation): Make static.
+       * mi-console.h (mi_console_file_new): Add `quote' parameter.
+       * mi-console.c (struct mi_console_file): Add `quote'.
+       (mi_console_file_new): Add `quote' parameter.  Initialize `quote'.
+       (mi_console_raw_packet): Only quote the output when `quote'.
+       * mi-cmds.h (mi_cmd_interpreter_exec): Declare.
+       (mi_error_message, mi_error_last_message): Declare.
+       (mi_execute_command): Declare.
+       * mi-cmds.c: Add `interpreter-exec' command.
+
+2003-02-04  Andrew Cagney  <ac131313@redhat.com>
+
+       From Keith Seitz <keiths@redhat.com>:
+       * gdbmi.texinfo (GDB/MI Miscellaneous Commands): Document the
+       interpreter-exec command.
+
+2003-02-02  Andrew Cagney  <ac131313@redhat.com>
+
+       From 2002-11-10 Jason Molenda (jason-cl@molenda.com):
+        * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is
+        now a list; still a tuple when in mi1.
+        * gdbmi.texinfo: Update var-list-children example.
+
+2003-01-13  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-cmd-env.c: Update copyright.
+
+2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
+
+       * mi-main.c (mi_cmd_exec_return): Use print_stack_frame instead of
+       show_and_print_stack_frame.
+
+2003-01-09  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>.
+       Move all includes to after "defs.h".
+
+2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * mi-cmds.c (-environment-directory) Change to use mi_cmd_env_dir,
+       (-environment-cd): Change to use mi_cmd_env_cd,.
+       (-environment-pwd): Change to use mi_cmd_env_pwd.
+       (-environment-path): Change to use mi_cmd_env_path.
+       * mi-cmds.h (mi_cmd_env_cd, mi_cmd_env_dir): New prototypes.
+       (mi_cmd_env_path, mi_cmd_env_pwd): Ditto.
+       * mi-cmd-env.c: New file.  Part of fix for PR gdb/741.
+       * gdbmi.texinfo (environment-cd): Update output and example.
+       (environment-pwd): Ditto.
+       (environment-dir): Update output, description, and examples.
+       (environment-path): Ditto.
+
+2002-11-29  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi/mi-cmd-stack.c, mi/mi-main.c: Update to use
+       deprecated_selected_frame.
+
+2002-11-13  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_cmd_data_write_register_values): Use
+       deprecated_write_register_bytes instead of write_register_bytes.
+
+2002-11-11  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * gdbmi.texinfo (-var-assign): Add comments about interaction
+       with -var-update and add an example.  Part of fix for gdb/702.
+
+2002-11-08  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * mi-main.c (mi_command_loop): Initialize raw_stdout and gdb_stdout 
+       only if mi version is <= 1.
+       (mi_init_ui): Initialize raw_stdout and gdb_stdout if mi version 
+       is > 1 so startup message is treated as console output.  This is 
+       part of fix for PR gdb/604.
+
+2002-11-06  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * mi-cmd-var.c (mi_cmd_var_create): Change the function used to 
+       parse the frame addr from parse_and_eval_address() to 
+       string_to_core_addr().  This is a fix for PR gdb/494.
+
+2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * mi-cmd-var.c: Change all remaining occurrences of ui_out_tuple_begin 
+       to make_cleanup_ui_out_tuple_begin_end.  Change all remaining 
+       occurrences of ui_out_list_begin to make_cleanup_ui_out_list_begin_end.
+       Use do_cleanups instead of ui_out_list_end or ui_out_tuple_end.  This 
+       is a fix for PR gdb/680.
+       * mi-cmd-stack.c: Ditto.
+       * mi-main.c: Ditto.
+
+2002-10-22  Keith Seitz  <keiths@redhat.com>
+
+       * mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERROR
+       when we really did catch an error(). If we got GDB_RC_FAIL, return
+       MI_CMD_ERROR instead.
+
+2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * gdbmi.texinfo: Fix examples that show frames to remove
+       extraneous blank in level field.  Part of fix for PR gdb/192.
+        
+2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
+        
+       * mi-cmd-var.c (mi_cmd_var_update): Fix for PR gdb/672.  For m2, 
+       output list begin and end for "changelist" rather than tuple begin/end.
+       (varobj_update_one): For m2, add tuple begin and end for varobj 
+       update output.
+
+2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
+
+       * mi-main.c (mi_cmd_exec_return): Don't use
+       return_command_wrapper, use return_command instead.
+       (mi_cmd_exec_interrupt): Don't use
+       interrupt_target_command_wrapper, use interrupt_target_command
+       instead.
+       (return_command_wrapper, interrupt_target_command_wrapper):
+       Delete.
+       Include frame.h.
+
+2002-10-01  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi2_command_loop): New function.
+       (mi0_command_loop): Delete function.
+       (_initialize_mi_main): Recognize, and default to, "mi2".  Do not
+       recognize "mi0".
+       * mi-out.c (mi_table_begin): Remove mi0 code.
+       (mi_table_body, mi_table_end): Ditto.
+       (mi_table_header, mi_open, mi_close): Ditto.
+
+2002-09-29  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-out.c (mi_version): New function.
+       * mi-out.h (mi_version): Declare.
+
+2002-09-27  Andrew Cagney  <ac131313@redhat.com>
+
+       From 2002-07-12 Mo DeJong <supermo@bayarea.net>
+       * gdbmi.texinfo (var-evaluate-expression): Note that
+       var-list-children must be invoked before child variable
+       values can be evaluated.
+
+2002-09-26  Elena Zannoni  <ezannoni@redhat.com>
+
+        * mi-cmd-disas.c (dump_insns): Add text only output for CLI.
+        (do_mixed_source_and_assembly): Ditto.
+
+2002-09-11  Keith Seitz  <keiths@redhat.com>
+
+       * mi-main.c (mi_cmd_data_list_register_names): Use cleanups
+       for the uiout list. Do the cleanups when returning an error.
+       (mi_cmd_data_list_changed_registers): Ditto.
+       (mi_cmd_data_list_register_values): Use cleanups for the uiout list
+       and tuples. Do the cleanups when returning errors.
+
+2002-07-29  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-cmd-var.c: Include "gdb_string.h".
+       * mi-cmd-disas.c: Ditto.
+
+2002-06-17  Keith Seitz  <keiths@redhat.com>
+
+       * gdbmi.texinfo: Update command examples with real MI behavior.
+
+2002-05-20  Keith Seitz  <keiths@redhat.com>
+
+       * mi-main.c (captured_mi_execute_command): Add uiout parameter.
+       "data" is now a structure which is used to pass data to/from this
+       function to mi_execute_command.
+       Modify function to comply with requirements from catch_exceptions.
+       Store real return result and command's return result in data.
+       (mi_execute_command): Use catch_exceptions.
+       Use enum to handle actions to be performed instead of overloading
+       catch_errors return result and the mi return result.
+
+2002-04-14  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_cmd_exec_return): 
+
+2002-04-09  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (register_changed_p): Use frame_register_read instead
+       of read_relative_register_raw_bytes.
+       (get_register): Delete out-of-date comment.
+
+2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
+
+        * mi-cmd-disas.c: Run through indent.
+
+2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
+
+        * mi-cmd-disas.c (dump_insns): New function.
+        (do_mixed_source_and_assembly): New function.
+        (do_assembly_only): New function.
+        (do_disassembly): New function.
+        (mi_cmd_disassemble): Rewrite using smaller, more modular
+        functions.
+
+2002-04-05  Jim Blandy  <jimb@redhat.com>
+
+       * mi-cmd-stack.c (list_args_or_locals): Pass new arg to
+       get_frame_block.  (See entry in gdb/ChangeLog.)
+
+2002-04-05  Elena Zannoni  <ezannoni@redhat.com>
+
+       * mi-cmd-disas.c (mi_cmd_disassemble): Use TARGET_PRINT_INSN
+       instead of tm_print_insn.
+       Update copyright year.
+
+2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
+
+       * mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function
+       markers in the line table.
+
+2002-03-15  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (XMALLOC): Delete macro.
+       * mi-out.c (XMALLOC): Ditto.
+       * mi-parse.c (XMALLOC): Ditto.
+       * mi-console.c (XMALLOC): Ditto.
+       * mi-cmd-var.c (XMALLOC): Ditto.
+       * mi-cmd-break.c (XMALLOC): Ditto.
+       
+       * mi/mi-cmd-var.c, mi/mi-console.c, mi/mi-out.c: Update copyright
+       * mi/mi-parse.c: Ditto.
+
+2002-02-24  Andrew Cagney  <ac131313@redhat.com>
+
+       From wiz at danbala:
+       * gdbmi.texinfo: Fix grammar and typos.
+       Fix PR gdb/287.
+
+2002-02-03  Jim Blandy  <jimb@redhat.com>
+
+       * mi-cmd-stack.c (list_args_or_locals): Move declaration of
+       print_me inside the loop body, so it gets re-initialized every
+       iteration.  The cases for the different symbol kinds leave
+       print_me unchanged if they don't want the symbol printed.
+
+2002-01-22  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbmi.texinfo: Remove makeinfo 3.12 hacks.
+
+2002-01-21  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-cmd-stack.c: Remove #else clause of #ifdef UI_OUT.
+       * mi-cmd-break.c: Ditto.
+       * mi-main.c: Ditto.
+
+2001-12-30  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * gdbmi.texinfo: Fix the application of GFDL in the Copyright notice.
+
+2001-10-12  Daniel Jacobowitz  <drow@mvista.com>
+
+       * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.
+
+2001-09-18  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_cmd_thread_select): Pass uiout to
+       gdb_thread_select.
+       (mi_cmd_thread_list_ids): Pass uiout to gdb_list_thread_ids.
+
+       * mi-cmd-break.c (breakpoint_notify): Pass uiout to
+       gdb_breakpoint_query.
+
+2001-08-17  Keith Seitz  <keiths@redhat.com>
+
+       * mi-cmd-var.c (varobj_update_one): Update call to
+       varobj_update to reflect recent api change.
+
+2001-07-26  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c: Include "gdb.h".
+       * mi-cmd-break.c: Include "gdb.h".
+
+2001-07-12  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_execute_command): Flush output after ``(gdb)''
+       prompt.  Bug reported by David Whedon.
+       (mi_execute_async_cli_command): Ditto.
+       (mi_exec_async_cli_cmd_continuation): Ditto.
+       (mi_command_loop): Ditto.
+
+2001-07-10  Mark Kettenis  <kettenis@gnu.org>
+
+       * mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
+       created `struct ui_out_data'.
+
+2001-07-09  Kevin Buettner  <kevinb@redhat.com>
+
+       * mi-main.c (register_changed_p, get_register): Use alloca()
+       to allocate space previously allocated via gcc's
+       variable-length array extension.
+       (mi_cmd_data_write_register_values, mi_cmd_data_write_memory):
+       Change type of ``buffer'' to ``void *''.  Don't cast return value
+       from xmalloc().  Add a cleanup to free the xmalloc'd buffer.
+
+2001-07-07  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
+       with `struct value *'.
+
+2001-07-08  Kevin Buettner  <kevinb@redhat.com>
+
+       * mi-out.c (mi_table_header, mi_field_int, mi_field_skip)
+       (mi_field_string) Make function declarators match earlier
+       declarations.
+
+2001-07-04  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-out.c (mi_ui_out_impl): Initialize is_mi_like_p to one.
+
+2001-06-27  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-out.c (mi_table_begin): Include nr_cols and nr_rows in mi1
+       table output.
+       * mi-out.c (mi_table_begin): Only suppress output when mi0. Change
+       the header to a list.
+       (mi_table_body): For mi1, close the header list and open a table
+       body list.
+       (mi_table_end): For mi1, close the body list.
+       (mi_table_header): For mi1, output a tuple containing all the
+       header information.
+       (mi_open, mi_close): Reverse logic of mi_version test.
+       * gdbmi.texinfo (GDB/MI Breakpoint Table Commands): Update.
+
+2001-06-26  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbmi.texinfo (GDB/MI Output Syntax): Delete reference to query
+       packet.
+
+2001-06-26  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-cmd-stack.c (list_args_or_locals): Output a list of "args" or
+       "locals" entries.
+       * gdbmi.texinfo (stack-list-locals, stack-list-arguments)
+       (exec-interrupt, target-select, thread-select): Update
+       documentation.
+
+2001-06-26  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-cmd-stack.c (mi_cmd_stack_list_frames): Output a list of
+       "stack" entries.
+       (mi_cmd_stack_list_args): Ditto for "stack-args".
+       * gdbmi.texinfo (stack-list-frames, stack-list-arguments): Update
+       documentation.
+       (GDB/MI Stack Manipulation Commands): Fix section title.  Was
+       Stack Manipulation Commands in GDB/MI.
+
+2001-06-25  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbmi.texinfo: Update output examples that contain stop reason
+       output, change the args=.... to a list.
+       (exec-return): Ditto.
+
+2001-06-25  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_cmd_data_read_memory): Output the memory contents
+       - memory and data - as a list.
+       * gdbmi.texinfo (data-read-memory): Update documentation.
+
+2001-06-25  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_cmd_data_list_register_values): Output a list of
+       register values.
+       * gdbmi.texinfo (data-list-register-values): Update documentation.
+
+2001-06-25  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_cmd_data_list_register_names): Output a list of
+       register names.
+       (mi_cmd_data_list_register_names): Include the pseudo registers.
+       (mi_cmd_data_list_register_names): Don't leave holes in the list,
+       output "" for NULL registers.
+       * gdbmi.texinfo (data-list-register-names): Update documentation.
+
+2001-06-23  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c (mi_cmd_data_list_changed_registers): Output a list of
+       register numbers.
+       * gdbmi.texinfo (data-list-changed-registers): Update
+       documentation.
+       
+2001-06-23  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbmi.texinfo (data-disassemble): Update documentation of
+       output.  Produces a list of instructions and a list of source
+       lines.
+
+2001-06-22  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-cmd-disas.c (mi_cmd_disassemble): For "-data-disassemble",
+       output a list instead of a tupple.
+
+2001-06-21  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-out.c (struct ui_out_data): Replace field first_header with
+       suppress_output.
+       (mi_begin, mi_end): Check suppress_header.
+       (mi_field_int, mi_field_skip): Ditto.
+       (mi_field_string, mi_field_fmt): Ditto.
+       (mi_table_begin): When nr_rows is zero, set suppress_header else,
+       output the start of the header.
+       (mi_table_body): Clear suppress header.
+
+2001-06-21  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-out.c (mi_open): For lists, when mi_version > 0, use ``[''.
+       (mi_close): Ditto for ``]''.
+
+2001-06-20  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-out.c (mi_table_header): Add parameter ``col_name''.
+
+2001-06-18  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-out.c: Include "gdb_assert.h".
+       (mi_table_begin): Add parameter ``nr_rows''.
+
+2001-06-18  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-main.c: Use strncmp as the "mi" test.  Allow "mi", "mi0" and
+       "mi1".
+       (mi_command_loop): Add parameter mi_version, pass to mi_out_new.
+       (mi1_command_loop, mi0_command_loop): New functions.
+       (_initialize_mi_main): Recognize "mi", "mi0" and "mi1".
+       * mi-out.c (mi_out_new): Add parameter mi_version.
+       (struct ui_out_data): Add field mi_version.
+       * mi-out.h (mi_out_new): Update.
+
+2001-06-07  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbmi.texinfo (GDB/MI Output Syntax): Add tuples and lists to
+       syntax.
+       (GDB/MI Draft Changes to Output Syntax): Delete section.
+       
+Mon Jun 11 17:22:25 2001  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * mi-out.c: Fix typo. s/supress/suppress/.
+
 2001-06-09  Andrew Cagney  <ac131313@redhat.com>
 
        * mi-out.c (mi_table_end, mi_table_begin, mi_begin, mi_end): Move
@@ -5,7 +465,7 @@
        (mi_open, mi_close): To here.
        (mi_open): Add parameter name. Output a field_separator.
        (mi_table_begin): Update.
-       (mi_table_header): 
+       (mi_table_header): Update.
        (mi_begin): Update.
 
 2001-06-09  Andrew Cagney  <ac131313@redhat.com>
This page took 0.03222 seconds and 4 git commands to generate.