1 2003-08-04 David Carlton <carlton@kealia.com>
3 * mi-main.c (mi_error_last_message): Add "%s" second argument to
6 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
8 * mi-out.c (mi_ui_out_impl): Add NULL for redirect member.
10 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
12 * mi-cmds.c (mi_cmds): Add "-target-disconnect".
14 2003-06-11 David Carlton <carlton@bactrian.org>
16 * mi-cmd-stack.c: Include dictionary.h.
17 (list_args_or_locals): Update use of ALL_BLOCK_SYMBOLS.
19 2003-06-11 Andrew Cagney <cagney@redhat.com>
21 * mi-main.c (get_register): Replace REGISTER_CONVERTIBLE with
22 DEPRECATED_REGISTER_CONVERTIBLE.
24 2003-06-08 Andrew Cagney <cagney@redhat.com>
26 * mi-parse.c (_initialize_mi_parse): Delete function.
27 * mi-main.c: Include "mi-main.h".
28 * mi-interp.c (_initialize_mi_interp): Add declaration.
29 * mi-cmd-stack.c: Include "stack.h".
30 (select_frame_command_wrapper): Delete extern declaration.
31 (mi_cmd_stack_select_frame): Replace select_frame_command_wrapper
32 with select_frame_command.
34 2003-05-16 Andrew Cagney <cagney@redhat.com>
36 * mi-main.c (mi_setup_architecture_data):
38 2003-05-12 Elena Zannoni <ezannoni@redhat.com>
40 * mi-mi-cmd-stack.c (list_args_or_locals): Rename VAR_NAMESPACE to
43 2003-05-11 Andrew Cagney <cagney@redhat.com>
45 * mi-symbol-cmds.c: Rename "mi-cmd-symbol.c", avoid 8.3 problem.
47 2003-05-08 Andrew Cagney <cagney@redhat.com>
49 * mi-main.c (register_changed_p): Use MAX_REGISTER_SIZE instead of
50 MAX_REGISTER_RAW_SIZE.
52 2003-05-08 Andrew Cagney <cagney@redhat.com>
54 * mi-main.c (get_register): Use MAX_REGISTER_SIZE.
56 2003-05-05 Andrew Cagney <cagney@redhat.com>
58 * mi-main.c (mi_cmd_data_write_register_values): Replace
59 REGISTER_SIZE with DEPRECATED_REGISTER_SIZE.
61 2003-05-03 J. Brobecker <brobecker@gnat.com>
63 From Thierry Schneider <tpschneider1@yahoo.com>:
64 * mi-cmds.h (mi_cmd_symbol_list_lines): Add declaration.
65 * mi-cmds.c (mi_cmds): Add entry for new MI command.
66 * mi-cmd-symbol.c (mi_cmd_symbol_list_lines): New source file
67 for all symbol-related commands.
69 2003-04-02 Bob Rossi <bob_rossi@cox.net>
71 * mi-cmd-file.c: New file to implement mi file commands.
72 * mi-getopt.c (mi_valid_noargs): Added mi_valid_noargs to verify
73 if a set of parameters passed to an MI function has no arguments
74 * mi-getopt.h (mi_valid_noargs): Declare.
75 * mi-cmds.c (mi_cmds): Added -file-list-exec-source-file command.
76 * mi-cmds.h (mi_cmd_file_list_exec_source_file): Declare.
78 2003-03-27 Andrew Cagney <cagney@redhat.com>
80 * gdbmi.texinfo: Delete file. Contents moved to
83 2003-03-12 Andrew Cagney <cagney@redhat.com>
85 * mi-main.c (get_register): Use frame_register instead of
88 2003-03-08 Andrew Cagney <cagney@redhat.com>
90 * mi-out.c: Update copyright.
91 (mi_out_data): Define typedef. Use instead of ui_out_data.
93 2003-03-01 Andrew Cagney <cagney@redhat.com>
95 * mi-main.c (get_register): Use register_type instead of
96 REGISTER_VIRTUAL_TYPE.
98 2003-02-25 David Carlton <carlton@math.stanford.edu>
100 * mi-cmd-stack.c: Replace all instances of SYMBOL_NAME with
101 DEPRECATED_SYMBOL_NAME. Update copyright.
103 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
105 * mi-cmd-stack.c (list_args_or_locals): Handle LOC_COMPUTED and
108 2003-02-19 David Carlton <carlton@math.stanford.edu>
110 * mi-cmd-stack.c: #include "block.h"
112 2003-02-09 Andrew Cagney <ac131313@redhat.com>
114 * mi-interp.c (mi_remove_notify_hooks): Convert function
117 2003-02-06 Andrew Cagney <ac131313@redhat.com>
119 * mi-cmd-env.c: Include "gdb_stat.h" instead of <sys/stat.h>.
121 2003-02-04 Jim Ingham <jingham@apple.com>
122 Keith Seitz <keiths@redhat.com>
123 Elena Zannoni <ezannoni@redhat.com>
124 Andrew Cagney <ac131313@redhat.com>
126 * mi-main.h: New file.
127 * mi-interp.c: New file.
128 * mi-main.c: Include "interps.h".
129 (mi_error_message): Make global.
130 (mi_input): Delete static function, moved to "mi-interp.c".
131 (mi_execute_command, mi_execute_command_wrapper): Ditto.
132 (mi_command_loop, mi1_command_loop, mi2_command_loop): Ditto.
133 (mi_load_progress): Make non-static.
134 (mi_error_last_message): New function.
135 (captured_mi_execute_command): If the interpreter changed, don't
137 (mi_load_progress): Use current_interp_named_p.
138 (mi_init_ui): Delete function.
139 (_initialize_mi_main): Don't install the mi interpreter, handled
141 (mi_exec_async_cli_cmd_continuation): Make static.
142 * mi-console.h (mi_console_file_new): Add `quote' parameter.
143 * mi-console.c (struct mi_console_file): Add `quote'.
144 (mi_console_file_new): Add `quote' parameter. Initialize `quote'.
145 (mi_console_raw_packet): Only quote the output when `quote'.
146 * mi-cmds.h (mi_cmd_interpreter_exec): Declare.
147 (mi_error_message, mi_error_last_message): Declare.
148 (mi_execute_command): Declare.
149 * mi-cmds.c: Add `interpreter-exec' command.
151 2003-02-04 Andrew Cagney <ac131313@redhat.com>
153 From Keith Seitz <keiths@redhat.com>:
154 * gdbmi.texinfo (GDB/MI Miscellaneous Commands): Document the
155 interpreter-exec command.
157 2003-02-02 Andrew Cagney <ac131313@redhat.com>
159 From 2002-11-10 Jason Molenda (jason-cl@molenda.com):
160 * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is
161 now a list; still a tuple when in mi1.
162 * gdbmi.texinfo: Update var-list-children example.
164 2003-01-13 Andrew Cagney <ac131313@redhat.com>
166 * mi-cmd-env.c: Update copyright.
168 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
170 * mi-main.c (mi_cmd_exec_return): Use print_stack_frame instead of
171 show_and_print_stack_frame.
173 2003-01-09 Andrew Cagney <ac131313@redhat.com>
175 * mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>.
176 Move all includes to after "defs.h".
178 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
180 * mi-cmds.c (-environment-directory) Change to use mi_cmd_env_dir,
181 (-environment-cd): Change to use mi_cmd_env_cd,.
182 (-environment-pwd): Change to use mi_cmd_env_pwd.
183 (-environment-path): Change to use mi_cmd_env_path.
184 * mi-cmds.h (mi_cmd_env_cd, mi_cmd_env_dir): New prototypes.
185 (mi_cmd_env_path, mi_cmd_env_pwd): Ditto.
186 * mi-cmd-env.c: New file. Part of fix for PR gdb/741.
187 * gdbmi.texinfo (environment-cd): Update output and example.
188 (environment-pwd): Ditto.
189 (environment-dir): Update output, description, and examples.
190 (environment-path): Ditto.
192 2002-11-29 Andrew Cagney <ac131313@redhat.com>
194 * mi/mi-cmd-stack.c, mi/mi-main.c: Update to use
195 deprecated_selected_frame.
197 2002-11-13 Andrew Cagney <ac131313@redhat.com>
199 * mi-main.c (mi_cmd_data_write_register_values): Use
200 deprecated_write_register_bytes instead of write_register_bytes.
202 2002-11-11 Jeff Johnston <jjohnstn@redhat.com>
204 * gdbmi.texinfo (-var-assign): Add comments about interaction
205 with -var-update and add an example. Part of fix for gdb/702.
207 2002-11-08 Jeff Johnston <jjohnstn@redhat.com>
209 * mi-main.c (mi_command_loop): Initialize raw_stdout and gdb_stdout
210 only if mi version is <= 1.
211 (mi_init_ui): Initialize raw_stdout and gdb_stdout if mi version
212 is > 1 so startup message is treated as console output. This is
213 part of fix for PR gdb/604.
215 2002-11-06 Jeff Johnston <jjohnstn@redhat.com>
217 * mi-cmd-var.c (mi_cmd_var_create): Change the function used to
218 parse the frame addr from parse_and_eval_address() to
219 string_to_core_addr(). This is a fix for PR gdb/494.
221 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
223 * mi-cmd-var.c: Change all remaining occurrences of ui_out_tuple_begin
224 to make_cleanup_ui_out_tuple_begin_end. Change all remaining
225 occurrences of ui_out_list_begin to make_cleanup_ui_out_list_begin_end.
226 Use do_cleanups instead of ui_out_list_end or ui_out_tuple_end. This
227 is a fix for PR gdb/680.
228 * mi-cmd-stack.c: Ditto.
231 2002-10-22 Keith Seitz <keiths@redhat.com>
233 * mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERROR
234 when we really did catch an error(). If we got GDB_RC_FAIL, return
235 MI_CMD_ERROR instead.
237 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
239 * gdbmi.texinfo: Fix examples that show frames to remove
240 extraneous blank in level field. Part of fix for PR gdb/192.
242 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
244 * mi-cmd-var.c (mi_cmd_var_update): Fix for PR gdb/672. For m2,
245 output list begin and end for "changelist" rather than tuple begin/end.
246 (varobj_update_one): For m2, add tuple begin and end for varobj
249 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
251 * mi-main.c (mi_cmd_exec_return): Don't use
252 return_command_wrapper, use return_command instead.
253 (mi_cmd_exec_interrupt): Don't use
254 interrupt_target_command_wrapper, use interrupt_target_command
256 (return_command_wrapper, interrupt_target_command_wrapper):
260 2002-10-01 Andrew Cagney <ac131313@redhat.com>
262 * mi-main.c (mi2_command_loop): New function.
263 (mi0_command_loop): Delete function.
264 (_initialize_mi_main): Recognize, and default to, "mi2". Do not
266 * mi-out.c (mi_table_begin): Remove mi0 code.
267 (mi_table_body, mi_table_end): Ditto.
268 (mi_table_header, mi_open, mi_close): Ditto.
270 2002-09-29 Andrew Cagney <ac131313@redhat.com>
272 * mi-out.c (mi_version): New function.
273 * mi-out.h (mi_version): Declare.
275 2002-09-27 Andrew Cagney <ac131313@redhat.com>
277 From 2002-07-12 Mo DeJong <supermo@bayarea.net>
278 * gdbmi.texinfo (var-evaluate-expression): Note that
279 var-list-children must be invoked before child variable
280 values can be evaluated.
282 2002-09-26 Elena Zannoni <ezannoni@redhat.com>
284 * mi-cmd-disas.c (dump_insns): Add text only output for CLI.
285 (do_mixed_source_and_assembly): Ditto.
287 2002-09-11 Keith Seitz <keiths@redhat.com>
289 * mi-main.c (mi_cmd_data_list_register_names): Use cleanups
290 for the uiout list. Do the cleanups when returning an error.
291 (mi_cmd_data_list_changed_registers): Ditto.
292 (mi_cmd_data_list_register_values): Use cleanups for the uiout list
293 and tuples. Do the cleanups when returning errors.
295 2002-07-29 Andrew Cagney <ac131313@redhat.com>
297 * mi-cmd-var.c: Include "gdb_string.h".
298 * mi-cmd-disas.c: Ditto.
300 2002-06-17 Keith Seitz <keiths@redhat.com>
302 * gdbmi.texinfo: Update command examples with real MI behavior.
304 2002-05-20 Keith Seitz <keiths@redhat.com>
306 * mi-main.c (captured_mi_execute_command): Add uiout parameter.
307 "data" is now a structure which is used to pass data to/from this
308 function to mi_execute_command.
309 Modify function to comply with requirements from catch_exceptions.
310 Store real return result and command's return result in data.
311 (mi_execute_command): Use catch_exceptions.
312 Use enum to handle actions to be performed instead of overloading
313 catch_errors return result and the mi return result.
315 2002-04-14 Andrew Cagney <ac131313@redhat.com>
317 * mi-main.c (mi_cmd_exec_return):
319 2002-04-09 Andrew Cagney <ac131313@redhat.com>
321 * mi-main.c (register_changed_p): Use frame_register_read instead
322 of read_relative_register_raw_bytes.
323 (get_register): Delete out-of-date comment.
325 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
327 * mi-cmd-disas.c: Run through indent.
329 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
331 * mi-cmd-disas.c (dump_insns): New function.
332 (do_mixed_source_and_assembly): New function.
333 (do_assembly_only): New function.
334 (do_disassembly): New function.
335 (mi_cmd_disassemble): Rewrite using smaller, more modular
338 2002-04-05 Jim Blandy <jimb@redhat.com>
340 * mi-cmd-stack.c (list_args_or_locals): Pass new arg to
341 get_frame_block. (See entry in gdb/ChangeLog.)
343 2002-04-05 Elena Zannoni <ezannoni@redhat.com>
345 * mi-cmd-disas.c (mi_cmd_disassemble): Use TARGET_PRINT_INSN
346 instead of tm_print_insn.
347 Update copyright year.
349 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
351 * mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function
352 markers in the line table.
354 2002-03-15 Andrew Cagney <ac131313@redhat.com>
356 * mi-main.c (XMALLOC): Delete macro.
357 * mi-out.c (XMALLOC): Ditto.
358 * mi-parse.c (XMALLOC): Ditto.
359 * mi-console.c (XMALLOC): Ditto.
360 * mi-cmd-var.c (XMALLOC): Ditto.
361 * mi-cmd-break.c (XMALLOC): Ditto.
363 * mi/mi-cmd-var.c, mi/mi-console.c, mi/mi-out.c: Update copyright
364 * mi/mi-parse.c: Ditto.
366 2002-02-24 Andrew Cagney <ac131313@redhat.com>
369 * gdbmi.texinfo: Fix grammar and typos.
372 2002-02-03 Jim Blandy <jimb@redhat.com>
374 * mi-cmd-stack.c (list_args_or_locals): Move declaration of
375 print_me inside the loop body, so it gets re-initialized every
376 iteration. The cases for the different symbol kinds leave
377 print_me unchanged if they don't want the symbol printed.
379 2002-01-22 Andrew Cagney <ac131313@redhat.com>
381 * gdbmi.texinfo: Remove makeinfo 3.12 hacks.
383 2002-01-21 Andrew Cagney <ac131313@redhat.com>
385 * mi-cmd-stack.c: Remove #else clause of #ifdef UI_OUT.
386 * mi-cmd-break.c: Ditto.
389 2001-12-30 Eli Zaretskii <eliz@is.elta.co.il>
391 * gdbmi.texinfo: Fix the application of GFDL in the Copyright notice.
393 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
395 * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.
397 2001-09-18 Andrew Cagney <ac131313@redhat.com>
399 * mi-main.c (mi_cmd_thread_select): Pass uiout to
401 (mi_cmd_thread_list_ids): Pass uiout to gdb_list_thread_ids.
403 * mi-cmd-break.c (breakpoint_notify): Pass uiout to
404 gdb_breakpoint_query.
406 2001-08-17 Keith Seitz <keiths@redhat.com>
408 * mi-cmd-var.c (varobj_update_one): Update call to
409 varobj_update to reflect recent api change.
411 2001-07-26 Andrew Cagney <ac131313@redhat.com>
413 * mi-main.c: Include "gdb.h".
414 * mi-cmd-break.c: Include "gdb.h".
416 2001-07-12 Andrew Cagney <ac131313@redhat.com>
418 * mi-main.c (mi_execute_command): Flush output after ``(gdb)''
419 prompt. Bug reported by David Whedon.
420 (mi_execute_async_cli_command): Ditto.
421 (mi_exec_async_cli_cmd_continuation): Ditto.
422 (mi_command_loop): Ditto.
424 2001-07-10 Mark Kettenis <kettenis@gnu.org>
426 * mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
427 created `struct ui_out_data'.
429 2001-07-09 Kevin Buettner <kevinb@redhat.com>
431 * mi-main.c (register_changed_p, get_register): Use alloca()
432 to allocate space previously allocated via gcc's
433 variable-length array extension.
434 (mi_cmd_data_write_register_values, mi_cmd_data_write_memory):
435 Change type of ``buffer'' to ``void *''. Don't cast return value
436 from xmalloc(). Add a cleanup to free the xmalloc'd buffer.
438 2001-07-07 Andrew Cagney <ac131313@redhat.com>
440 * mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
441 with `struct value *'.
443 2001-07-08 Kevin Buettner <kevinb@redhat.com>
445 * mi-out.c (mi_table_header, mi_field_int, mi_field_skip)
446 (mi_field_string) Make function declarators match earlier
449 2001-07-04 Andrew Cagney <ac131313@redhat.com>
451 * mi-out.c (mi_ui_out_impl): Initialize is_mi_like_p to one.
453 2001-06-27 Andrew Cagney <ac131313@redhat.com>
455 * mi-out.c (mi_table_begin): Include nr_cols and nr_rows in mi1
457 * mi-out.c (mi_table_begin): Only suppress output when mi0. Change
458 the header to a list.
459 (mi_table_body): For mi1, close the header list and open a table
461 (mi_table_end): For mi1, close the body list.
462 (mi_table_header): For mi1, output a tuple containing all the
464 (mi_open, mi_close): Reverse logic of mi_version test.
465 * gdbmi.texinfo (GDB/MI Breakpoint Table Commands): Update.
467 2001-06-26 Andrew Cagney <ac131313@redhat.com>
469 * gdbmi.texinfo (GDB/MI Output Syntax): Delete reference to query
472 2001-06-26 Andrew Cagney <ac131313@redhat.com>
474 * mi-cmd-stack.c (list_args_or_locals): Output a list of "args" or
476 * gdbmi.texinfo (stack-list-locals, stack-list-arguments)
477 (exec-interrupt, target-select, thread-select): Update
480 2001-06-26 Andrew Cagney <ac131313@redhat.com>
482 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Output a list of
484 (mi_cmd_stack_list_args): Ditto for "stack-args".
485 * gdbmi.texinfo (stack-list-frames, stack-list-arguments): Update
487 (GDB/MI Stack Manipulation Commands): Fix section title. Was
488 Stack Manipulation Commands in GDB/MI.
490 2001-06-25 Andrew Cagney <ac131313@redhat.com>
492 * gdbmi.texinfo: Update output examples that contain stop reason
493 output, change the args=.... to a list.
494 (exec-return): Ditto.
496 2001-06-25 Andrew Cagney <ac131313@redhat.com>
498 * mi-main.c (mi_cmd_data_read_memory): Output the memory contents
499 - memory and data - as a list.
500 * gdbmi.texinfo (data-read-memory): Update documentation.
502 2001-06-25 Andrew Cagney <ac131313@redhat.com>
504 * mi-main.c (mi_cmd_data_list_register_values): Output a list of
506 * gdbmi.texinfo (data-list-register-values): Update documentation.
508 2001-06-25 Andrew Cagney <ac131313@redhat.com>
510 * mi-main.c (mi_cmd_data_list_register_names): Output a list of
512 (mi_cmd_data_list_register_names): Include the pseudo registers.
513 (mi_cmd_data_list_register_names): Don't leave holes in the list,
514 output "" for NULL registers.
515 * gdbmi.texinfo (data-list-register-names): Update documentation.
517 2001-06-23 Andrew Cagney <ac131313@redhat.com>
519 * mi-main.c (mi_cmd_data_list_changed_registers): Output a list of
521 * gdbmi.texinfo (data-list-changed-registers): Update
524 2001-06-23 Andrew Cagney <ac131313@redhat.com>
526 * gdbmi.texinfo (data-disassemble): Update documentation of
527 output. Produces a list of instructions and a list of source
530 2001-06-22 Andrew Cagney <ac131313@redhat.com>
532 * mi-cmd-disas.c (mi_cmd_disassemble): For "-data-disassemble",
533 output a list instead of a tupple.
535 2001-06-21 Andrew Cagney <ac131313@redhat.com>
537 * mi-out.c (struct ui_out_data): Replace field first_header with
539 (mi_begin, mi_end): Check suppress_header.
540 (mi_field_int, mi_field_skip): Ditto.
541 (mi_field_string, mi_field_fmt): Ditto.
542 (mi_table_begin): When nr_rows is zero, set suppress_header else,
543 output the start of the header.
544 (mi_table_body): Clear suppress header.
546 2001-06-21 Andrew Cagney <ac131313@redhat.com>
548 * mi-out.c (mi_open): For lists, when mi_version > 0, use ``[''.
549 (mi_close): Ditto for ``]''.
551 2001-06-20 Andrew Cagney <ac131313@redhat.com>
553 * mi-out.c (mi_table_header): Add parameter ``col_name''.
555 2001-06-18 Andrew Cagney <ac131313@redhat.com>
557 * mi-out.c: Include "gdb_assert.h".
558 (mi_table_begin): Add parameter ``nr_rows''.
560 2001-06-18 Andrew Cagney <ac131313@redhat.com>
562 * mi-main.c: Use strncmp as the "mi" test. Allow "mi", "mi0" and
564 (mi_command_loop): Add parameter mi_version, pass to mi_out_new.
565 (mi1_command_loop, mi0_command_loop): New functions.
566 (_initialize_mi_main): Recognize "mi", "mi0" and "mi1".
567 * mi-out.c (mi_out_new): Add parameter mi_version.
568 (struct ui_out_data): Add field mi_version.
569 * mi-out.h (mi_out_new): Update.
571 2001-06-07 Andrew Cagney <ac131313@redhat.com>
573 * gdbmi.texinfo (GDB/MI Output Syntax): Add tuples and lists to
575 (GDB/MI Draft Changes to Output Syntax): Delete section.
577 Mon Jun 11 17:22:25 2001 Andrew Cagney <cagney@b1.cygnus.com>
579 * mi-out.c: Fix typo. s/supress/suppress/.
581 2001-06-09 Andrew Cagney <ac131313@redhat.com>
583 * mi-out.c (mi_table_end, mi_table_begin, mi_begin, mi_end): Move
584 supress_field_separator updates from here.
585 (mi_open, mi_close): To here.
586 (mi_open): Add parameter name. Output a field_separator.
587 (mi_table_begin): Update.
588 (mi_table_header): Update.
591 2001-06-09 Andrew Cagney <ac131313@redhat.com>
593 * mi-out.c (mi_table_begin): Make char* parameters constant.
594 (mi_table_header): Ditto.
595 (mi_field_int): Ditto.
596 (mi_field_skip): Ditto.
597 (mi_field_string): Ditto.
598 (mi_field_fmt): Ditto.
602 2001-05-12 Andrew Cagney <ac131313@redhat.com>
604 * mi-out.c (mi_close, mi_open): Output ``[]'' when a list.
606 Fri May 11 13:55:07 2001 Andrew Cagney <cagney@b1.cygnus.com>
608 * mi-cmd-var.c: Replace ui_out_list_begin, ui_out_list_end and
609 make_cleanup_ui_out_list_end with ui_out_tupple_begin,
610 ui_out_tupple_end and make_cleanup_ui_out_tupple_begin_end.
611 * mi-cmd-stack.c: Ditto.
612 * mi-cmd-disas.c: Ditto.
615 2001-05-10 Andrew Cagney <ac131313@redhat.com>
617 * mi-out.c (mi_open, mi_close): Replace list_open and list_close.
618 (mi_table_begin): Update.
619 (mi_table_header): Update.
621 (mi_table_body): Update.
622 (mi_table_end): Update.
625 Thu May 10 16:28:13 2001 Andrew Cagney <cagney@b1.cygnus.com>
627 * mi-main.c (mi_execute_async_cli_command): Always initialize
630 2001-05-08 Andrew Cagney <ac131313@redhat.com>
632 * mi-out.c (mi_begin, mi_end): Replace mi_list_begin and
634 (mi_ui_out_impl): Update.
636 2001-03-28 Andrew Cagney <ac131313@redhat.com>
638 * mi-main.c (mi_cmd_data_read_memory): Use xcalloc.
640 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
642 * gdbmi.texinfo: Update copyright. Change Permissions to GFDL.
644 2001-03-20 Andrew Cagney <ac131313@redhat.com>
646 * mi-cmd-disas.c (mi_cmd_disassemble): Initialize ``file_string''
647 and ``line_num''. Consolidate declaration of argument variables.
649 2001-03-19 Andrew Cagney <ac131313@redhat.com>
651 * mi-out.h: Remove #ifdef __STDC__.
653 2001-03-08 Andrew Cagney <ac131313@redhat.com>
655 * mi-main.c (mi_cmd_data_list_register_names): Use NUM_REGS, not
657 (mi_cmd_data_list_changed_registers): Ditto.
658 (mi_cmd_data_list_register_values): Ditto.
659 (mi_cmd_data_write_register_values): Ditto.
661 2001-03-06 Kevin Buettner <kevinb@redhat.com>
663 * gdbmi.texinfo, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
664 mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
665 mi-getopt.h, mi-out.c, mi-out.h, mi-parse.c, mi-parse.h:
666 Update/correct copyright notices.
668 Wed Feb 7 19:50:37 2001 Andrew Cagney <cagney@redhat.com>
670 * mi-getopt.c: Add __FILE__ and __LINE__ parameter to calls to
672 * mi-console.c: Ditto.
674 * mi-cmd-break.c: Ditto.
676 2001-01-27 Fernando Nasser <fnasser@redhat.com>
678 From Momchil Velikov <velco@fadata.bg>
679 * mi-cmd-disas.c (gdb_dis_asm_read_memory): Add missing memory
680 attributes argument in the call to `xfer_memory'.
682 2000-12-14 Kevin Buettner <kevinb@redhat.com>
684 * mi-cmd-disas.c, mi-cmd-var.c, mi-console.c, mi-main.c,
685 mi-parse.c: Replace occurrences of free() with xfree().
687 Fri Nov 17 16:07:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
689 * mi-main.c: Replace asprintf with xasprintf.
690 * mi-cmd-var.c (mi_cmd_var_create): Ditto.
692 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
694 * gdbmi.texinfo (GDB/MI Variable Objects): Dimensions of
695 multitable changed to "@columnfractions .4 .6". Suggested by
696 Dmitry Sivachenko <dima@Chg.RU>.
698 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
700 * gdbmi.texinfo: Change flathead -> @sc{gdb/mi}.
701 Fix typos and markup mistakes (from Dmitry S.
702 Sivachenko <dima@Chg.RU>).
704 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
706 * gdbmi.texinfo: Change GDB -> @value{GDBN}, and
707 (gdb) -> (@value{GDBP}). Fix a few typos and some markup. From
708 Dmitry S. Sivachenko <dima@Chg.RU>.
710 Tue May 16 14:13:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
712 * mi-main.c (mi_cmd_execute): Use free_current_contents.
713 (free_and_reset): Delete.
715 Mon May 15 16:17:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
717 * mi-main.c (mi_cmd_data_assign, mi_cmd_data_evaluate_expression),
718 mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete): Delete
719 make_cleanup_func casts. Not needed.
721 2000-05-07 Eli Zaretskii <eliz@is.elta.co.il>
723 * gdbmi.texinfo: Lots of typos and grammar fixes from Brian
724 Youmans <3diff@flib.gnu.ai.mit.edu>.
726 Wed Apr 26 18:35:19 2000 Andrew Cagney <cagney@b1.cygnus.com>
728 * gdbmi.texinfo (GDB/MI Output Syntax v2.0): Convert Draft 2.0
729 Output Syntax into a new section. Cross reference.
730 (menu): Fix tipo. GDB/MI Compatibility with CLI.
732 2000-04-23 Eli Zaretskii <eliz@is.elta.co.il>
734 * gdbmi.texinfo: Lots of changes, to include this document as part
737 2000-03-13 James Ingham <jingham@leda.cygnus.com>
739 * mi-cmd-var.c (mi_cmd_var_create): Add special frame cookie "@"
740 to indicate an "USE_CURRENT_FRAME" variable.
741 (varobj_update_one): Add "in_scope" and "type_changed" to the
744 2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
746 * mi-cmds.h: Export mi_cmd_data_write_register_values.
748 * mi-cmds.c (mi_cmds): Implement data-write-register-values with
749 mi_cmd_data_write_register_values.
751 * mi-main.c (mi_cmd_data_write_register_values): New
752 function. Write a value into a register.
754 2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
756 * gdbmi.texinfo: Update data-disassemble documentation.
758 2000-03-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
760 * mi-cmd-disas.c (mi_cmd_disassemble): Use
761 ui_out_field_core_addr() instead of print_address_numeric(), to
762 maintain consistency throughout MI.
764 Wed Feb 23 17:09:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
766 * mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
767 mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
768 mi-getopt.h, mi-main.c, mi-out.c, mi-out.h, mi-parse.c,
769 mi-parse.h: Update copyright information.
771 Wed Feb 23 13:31:16 2000 Andrew Cagney <cagney@b1.cygnus.com>
773 * mi-cmd-disas.c (gdb_dis_asm_read_memory): Change LEN to unsigned
774 long. Match ../include/dis-asm.h change.
776 Wed Feb 23 10:30:55 2000 Andrew Cagney <cagney@b1.cygnus.com>
778 * gdbmi.texinfo: Update copyright - FSF. Update version
781 mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
782 mi-cmds.h, mi-main.c, mi-parse.c, mi-parse.h: Re-format using GNU
785 2000-02-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
787 * mi-main.c: Add include of gdbcore.h for write_memory()
790 2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
792 * mi-cmd-disas.c (mi_cmd_disassemble): Change syntax of
793 command. Now use options.
794 Instead of printing the symbolic address of instructions via
795 print_address_symbolic(), use build_address_symbolic() and format
797 (gdb_do_disassmble): Delete.
799 2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
801 * mi-cmd-disas.c (mi_cmd_disassemble):
803 2000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
805 * mi-main.c (mi_cmd_data_write_memory): New function. Write a
806 value into target memory.
808 * mi-cmds.h (mi_cmd_data_write_memory): Export.
810 * mi-cmds.c (mi_cmds): Hook up data-write-memory to
811 mi_cmd_data_write_memory().
813 2000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
815 * mi-main.c (mi_cmd_target_download): Correct error message to
816 report right function name.
817 (mi_cmd_target_select): Add doing exec cleanups at end.
818 (mi_cmd_data_read_memory): Correct typo.
819 (mi_cmd_execute): Do not simply free last_async_command, but reset
821 (free_and_reset): New function, free the argument and set it to
823 (mi_cmd_target_select_continuation): Delete prototype.
825 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
827 * mi-cmd-disas.c, mi-cmds.h, mi-console.c, mi-console.h,
828 mi-main.c, mi-out.c, mi-out.h: Update to reflect rename of
829 gdb-file / GDB_FILE to ui-file / ``struct ui_file''.
831 Mon Jan 31 18:33:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
833 * mi-main.c (mi_command_loop): Delete reference to
834 fputs_unfiltered_hook.
836 2000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
838 * mi-cmds.c (mi_cmds): Update entries for
839 mi_cmd_data_list_register_names,
840 mi_cmd_data_list_changed_registers,
841 mi_cmd_data_list_register_values.
843 * mi-cmds.h (mi_cmd_data_list_register_names,
844 mi_cmd_data_list_changed_registers,
845 mi_cmd_data_list_register_values): Update to mi_cmd_argv_ftype.
847 * mi-main.c (mi_cmd_data_list_register_names,
848 mi_cmd_data_list_changed_registers,
849 mi_cmd_data_list_register_values): Update to use argc, argv
852 2000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
854 * mi-main.c (mi_cmd_data_read_memory): Correct the computation of
857 2000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
859 * mi-cmd-var.c (mi_cmd_var_create): Test for NULL type.
860 (mi_cmd_var_set_format, mi_cmd_var_show_format,
861 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
862 mi_cmd_var_info_type, mi_cmd_var_info_expression,
863 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
864 mi_cmd_var_assign, mi_cmd_var_update): Prevent possibility of memory
867 2000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
869 * mi-out.c (mi_field_string): Test for NULL string pointer.
871 2000-01-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
873 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Call
874 print_frmae_info() with the correct arguments.
876 * mi-main.c (mi_cmd_exec_return): Call
877 show_and_print_stack_frame() with LOC_AND_ADDRESS, so it does the
878 right thing. Update Copyright.
880 2000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
882 * mi-main.c: Move disassemble commands from here.
884 * mi-cmd-disas.c: To here. New file.
886 2000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
888 * mi-cmd-stack.c: Remove include of mi-out.h.
890 * mi-main.c (mi_cmd_disassemble): Update function to use argc/argv
897 2000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
899 * gdbmi.texinfo: Update stack commands descriptions.
900 Add thread commands descriptions and examples.
902 * mi-main.c (mi_cmd_thread_list_ids): Fix typo.
904 2000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
906 * mi-main.c (mi_cmd_thread_list_ids): New function, print a list
907 of currently known threads ids, and the total number of threads.
908 (mi_cmd_thread_select): New function. Switch current thread.
910 * mi-cmds.c (mi_cmds): Implement thread-list-ids by
911 mi_cmd_thread_list_ids, and thread-select by mi_cmd_thread_select.
913 * mi-cmds.h (mi_cmd_thread_select, mi_cmd_thread_list_ids): Export.
915 2000-01-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
917 * mi-main.c: Move stack commands from here.
919 * mi-cmd-stack.c: To here. New file.
921 2000-01-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
923 * mi-main.c (list_args_or_locals): Add a new paramter, the frame
924 for which to display args or locals. Don't use selected_frame
925 anymore, use the new parameter instead. Return void instead of
926 mi_cmd_result, let callers do so.
927 (mi_cmd_stack_list_args): Change interface. Now accept low and
928 high frame numbers to display args for a range of frames. Without
929 these two, display args for the whole stack.
930 (mi_cmd_stack_list_locals): Adapt to new interface for
933 2000-01-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
935 * mi-main.c (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
936 mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
937 mi_cmd_stack_select_frame): Change to use argv type of parameters.
939 * mi-cmds.c (mi_cmds): Change stack-info-depth,
940 stack-list-arguments, stack-list-frames, stack-list-locals,
941 stack-select-frame to use argv parameters.
943 * mi-cmds.h (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
944 mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
945 mi_cmd_stack_select_frame): Update definitions.
947 Tue Jan 4 12:38:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
949 * mi-main.c (mi_command_loop): Force the MI interface to use seven
951 * gdbmi.texinfo: Make it clear that a quoted C string is seven
954 Thu Dec 30 14:15:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
956 * mi-getopt.c (mi_getopt): Rewrite. Allow long options.
957 * mi-getopt.h (struct mi_opt): Declare.
960 * mi-main.c (mi_cmd_data_read_memory), mi-cmd-break.c
961 (mi_cmd_break_insert, mi_cmd_break_watch): Update.
963 Wed Dec 29 23:38:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
965 * mi-cmd-break.c (mi_cmd_break_insert): Add support for -c
966 <condition>, -i <ignore-count> and -p <thread>.
967 (breakpoint_notify): New function.
968 (mi_cmd_break_insert): Wrap GDB call with callback hooks so that
969 MI is notified when ever a breakpoint is created.
971 * gdbmi.texinfo: Update.
973 Fri Dec 24 11:23:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
975 * mi-main.c (gdb_do_disassemble): Strip out more useless #ifdef
978 1999-12-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
980 * mi-main.c (gdb_do_disassemble): Fix output. Lines that have no
981 assembly instructions must still be outputted, to keep the source
982 line numbering correct.
983 Remove #ifdef UI_OUT's, they are useless.
985 1999-12-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
987 * mi-main.c (gdb_do_disassemble): Don't print a new list in mixed
988 mode, every time. Just do it when we actually encounter a new
991 1999-12-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
993 * mi-cmd-var.c (mi_cmd_var_list_children): Add test for C++ pseudo
994 variable objects (private, public, protected) as these do not have
995 a type and the -var-list-children operation was dumping core.
997 Fri Dec 17 20:23:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
999 * gdbmi.texinfo: Document recommended syntax for options.
1001 * mi-main.c (mi_cmd_data_read_memory): Add support for ``-o
1003 * gdbmi.texinfo: Document.
1005 Wed Dec 15 17:43:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
1007 * mi-getopt.h (mi_getopt): Change optarg to a char pointer. Check
1009 * mi-cmd-break.c (mi_cmd_break_insert): Update.
1011 * mi-main.c (mi_cmd_data_read_memory): Add fields "next-row-addr",
1012 "prev-row-addr", "next-page-addr", "prev-page-addr" and a per row
1014 * gdbmi.texinfo: Update.
1016 Wed Dec 15 01:05:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
1018 * mi-cmds.h (mi_cmd_result): Add MI_CMD_CAUGHT_ERROR for when the
1021 * mi-main.c (captured_mi_execute_command): When
1022 MI_CMD_CAUGHT_ERROR return 0 rethrowing the eror.
1024 1999-12-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1026 * mi-cmd-break.c (mi_cmd_break_insert): Remove unused var.
1028 * mi-cmd-var.c (mi_cmd_var_update): Remove unused variables.
1030 Mon Dec 13 18:43:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1032 * mi-parse.c (mi_parse): Quote the command when printing it.
1033 (mi_parse_argv): Fix handling of quoted strings. Was not
1035 (mi_parse_argv): Make static.
1037 Mon Dec 13 18:30:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1039 * mi-cmds.h (mi_cmd_break_insert, mi_cmd_break_watch): Change type
1040 to mi_cmd_argv_ftype.
1041 * mi-cmds.c (mi_cmds): Update.
1042 * mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Change
1043 to new style of arguments with argc and argv. Parse arguments
1046 * mi-cmd-break.c (mi_cmd_break_insert): Wrap body in #ifdef UI_OUT
1047 to avoid non-ui compile problems.
1049 Mon Dec 13 15:08:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1051 * mi-getopt.h, mi-getopt.c: New files. Similar to getopt but with
1052 well defined semantics.
1054 Mon Dec 13 14:22:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
1056 * mi-main.c (mi_cmd_break_insert, mi_cmd_break_watch, enum
1057 wp_type, enum bp_type): Move from here.
1058 * mi-cmd-break.c: To here. New file.
1059 (mi_cmd_break_insert, mi_cmd_break_insert, mi_cmd_break_watch):
1060 Use error to report problems.
1062 1999-12-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1064 * gdbmi.texinfo: Update description of exec-interrupt.
1066 * mi-main.c (mi_cmd_exec_interrupt): If the program is not
1067 executing, don't try to interrupt it, but error out instead. Make
1068 sure previous_async_command is not null before duplicating it into
1071 * gdbmi.texinfo: Add examples for data-evaluate-expression.
1073 1999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1075 * mi-cmd-var.c (mi_cmd_var_assign, mi_cmd_var_create,
1076 mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
1077 mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
1078 mi_cmd_var_info_type, mi_cmd_var_list_children,
1079 mi_cmd_var_set_format, mi_cmd_var_show_attributes,
1080 mi_cmd_var_show_format, mi_cmd_var_update): Change to use new
1081 style of arguments with argc and argv.
1083 (which_var): Delete.
1085 * mi-cmds.c (mi_cmds): Update entries for mi_cmd_var_assign,
1086 mi_cmd_var_create, mi_cmd_var_delete,
1087 mi_cmd_var_evaluate_expression, mi_cmd_var_info_expression,
1088 mi_cmd_var_info_num_children, mi_cmd_var_info_type,
1089 mi_cmd_var_list_children, mi_cmd_var_set_format,
1090 mi_cmd_var_show_attributes, mi_cmd_var_show_format,
1093 * mi-cmds.h (mi_cmd_var_assign, mi_cmd_var_create,
1094 mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
1095 mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
1096 mi_cmd_var_info_type, mi_cmd_var_list_children,
1097 mi_cmd_var_set_format, mi_cmd_var_show_attributes,
1098 mi_cmd_var_show_format, mi_cmd_var_update): Update declarations.
1100 1999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1102 * gdbmi.texinfo: Comment out -data-assign command. * mi-main.c
1103 (mi_cmd_data_assign): Do not use, comment out. * mi-cmds.h
1104 (mi_cmd_data_assign): Remove. * mi-cmds.c: Remove -data-assign
1105 command from MI interface.
1107 1999-12-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1109 * mi-parse.c (mi_parse): Add '\n' at end of error messages, so
1110 that prompt comes out on new line.
1112 * gdbmi.texinfo: Update disassembly command output.
1114 1999-12-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1116 * mi-main.c (gdb_do_disassemble): Update output for UI_OUT case.
1118 1999-12-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1120 * gdbmi.texinfo: Update exec-until output, including the reason
1123 Thu Dec 2 17:17:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1125 * mi-cmds.c: Include <string.h> for memset.
1127 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1129 * mi-main.c (mi_cmd_exec_return): ifdef the references to
1130 return_command_wrapper().
1132 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1134 * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_interrupt,
1135 mi_cmd_target_select, mi_execute_async_cli_command,
1136 mi_exec_async_cli_cmd_continuation, mi_load_progress): Don't print
1137 last_async_command if it is NULL.
1138 (mi_cmd_exec_return):
1140 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1142 * mi-main.c (mi_cmd_exec_return): Reimplement using
1143 return_command() instead of mi_execute_async_cli_command().
1145 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1147 * mi-cmds.h: Export mi_cmd_data_assign and
1148 mi_cmd_data_evaluate_expression.
1150 * mi-cmds.c (mi_cmds): Hook data-assign to mi_cmd_data_assign and
1151 data-evaluate-expression to mi_cmd_data_evaluate_expression.
1153 * mi-main.c (mi_cmd_data_assign): New function. Implement
1154 data-assign command.
1155 (mi_cmd_data_evaluate_expression): New function. Implement
1156 data-evaluate-expression command.
1158 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1160 * gdbmi.texinfo: Fix some texinfo formatting errors.
1162 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1164 * gdbmi.texinfo: Update data-list-register-values description.
1166 * mi-cmds.h: Export mi_cmd_data_list_register_values.
1168 * mi-cmds.c (mi_cmds): Hook data-list-register-values to
1169 mi_cmd_data_list_register_values.
1171 * mi-main.c (mi_cmd_data_list_register_values): New
1172 function. Implements the -data-list-register-values command.
1173 (get_register): New function. Output the contents of a given
1176 Wed Dec 1 20:27:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1178 * mi-main.c (mi_execute_async_cli_command): Append missing "\n"
1179 for synchronous stopped message.
1181 1999-11-30 James Ingham <jingham@leda.cygnus.com>
1183 * gdbmi.texinfo: Fix obvious typo in @end statement.
1185 Wed Dec 1 12:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
1187 * mi-cmd-var.c: Include "value.h".
1188 * mi-console.c: Include <string.h>.
1190 Wed Dec 1 00:21:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1192 * mi-main.c (captured_mi_execute_command): For a CLI command, pass
1193 "%s" to mi_execute_cli_command to stop core dumps.
1194 (captured_mi_execute_command): Echo CLI commands on gdb_stdlog.
1196 Wed Dec 1 00:10:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1198 * gdbmi.texinfo: Explain NR-BYTES and ADDR.
1200 Tue Nov 30 23:31:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1202 * mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete,
1203 mi_cmd_var_set_format, mi_cmd_var_show_format,
1204 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
1205 mi_cmd_var_info_type, mi_cmd_var_info_expression,
1206 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
1207 mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one, next_arg,
1208 which_var): New file. Move varobj commands to here from
1211 * mi-console.h, mi-console.c (mi_console_file_new,
1212 mi_console_file_delete, mi_console_file_fputs,
1213 mi_console_raw_packet, mi_console_file_flush): New files. Move
1214 mi_console_file to here from mi-main.c.
1216 Tue Nov 30 19:37:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1218 * mi-main.c (captured_mi_execute_command): Use fputstr_unfiltered
1219 when printing error messages.
1220 (mi_cmd_execute): Ditto.
1222 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1224 * gdbmi.texinfo: Describe -data-list-changed-registers,
1225 -data-list-register-names. Add examples for
1226 -exec-next-instruction, exec-step-instruction, -exec-run,
1227 -exec-until. Format examples for -data-read-memory.
1228 update example for -target-download.
1230 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1232 * gdbmi.texinfo: Remove mentioning of inaccurate watchpoint hit
1235 Mon Nov 29 19:28:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
1237 * mi-main.c (mi_execute_async_cli_command): Return ``enum
1238 mi_cmd_cmd_result''. mi_cmd_exec_run, mi_cmd_exec_next,
1239 mi_cmd_exec_step, mi_cmd_exec_step_instruction,
1240 mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return,
1241 mi_cmd_exec_continue): Update call.
1242 (mi_execute_async_cli_command): When target is synchronous, fake
1243 asynchronous behavour (ulgh). Allows tests to be run on built-in
1244 simulator and native targets.
1246 Mon Nov 29 15:15:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
1248 * mi-cmds.h (mi_cmd_gdb_exit), mi-cmds.c (mi_cmds), mi-main.c
1249 (mi_cmd_gdb_exit): Change function signature to mi_cmd_argv_ftype.
1251 1999-11-28 Andew Cagney <cagney@rat-in-a-hat.cygnus.com>
1253 * mi-parse.c: Include <ctype.h> and <string.h>
1255 1999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1257 * gdbmi.texinfo: Added watchpoint command descriptions and
1260 * mi-main.c (mi_load_progress): Add parameter for total sent so far.
1263 Fri Nov 26 10:17:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
1265 * gdbmi.texinfo (section Output Syntax): For lists, the <string>
1266 part of a <result> is optional. Clarify syntax.
1267 (appendix Proposed v2.0 Output Syntax): New section. Provide
1268 record of discussion of possible changes to syntax.
1270 Wed Nov 24 19:41:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
1272 * mi-main.c (mi_cmd_data_read_memory): Simplify. Fix coredump
1273 when arguments were bad.
1274 (mi_cmd_execute): Change parameter to ``struct mi_parse''. Handle
1275 case of argv_func as well as args_func.
1276 (captured_mi_execute_command): Update.
1278 * mi-cmds.c (struct mi_cmd): Add field for mi_cmd_argv_ftype.
1279 (mi_cmds): Update mi_cmd_data_read_memory.
1282 * mi-cmds.h (mi_cmd_args_ftype): Rename mi_cmd_ftype. Make all
1283 functions of type this type.
1284 (mi_cmd_argv_ftype): Declare.
1285 (mi_cmd_data_read_memory): Change type to mi_cmd_argv_fytpe.
1286 (struct mi_cmd): Move declaration to here from mi-cmds.c.
1287 (mi_lookup): Return a pointer to ``struct mi_cmd''.
1289 Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1291 * mi-parse.c (mi_parse): Initialize TOKEN when a CLI command.
1293 * gdbmi.texinfo: Allow a <token> before a CLI command.
1295 * mi-parse.h (struct mi_parse): Declare.
1296 (mi_parse): Change to return a ``struct mi_parse''.
1297 (enum mi_command_type): Delete PARSE_ERROR.
1299 * mi-main.c (struct mi_execute_command_context): Delete.
1300 (captured_mi_execute_command): Update
1301 (mi_execute_command): Update. Check for mi_parse returning NULL.
1303 Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
1305 * mi-parse.h: Remove const, from cmd parameter. Causes cascading
1308 Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1310 * mi-parse.c (mi_parse): New function. Move parse code to here.
1311 * mi-main.c (parse): From here. Delete.
1313 Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
1315 * mi-parse.c, mi-parse.h: New files. Implement mi_parse_env.
1317 Wed Nov 24 11:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1319 * mi-out.c (mi_field_string): Make string parameter constant.
1321 1999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1323 * mi-cmds.h (mi_cmd_target_download): Export.
1325 * mi-cmds.c (mi_cmds): Add mi_cmd_target_download.
1327 * mi-main.c: Include <sys/time.h>.
1328 (mi_cmd_target_download): New function, implement the
1329 target-download command.
1330 (mi_load_progress): New function. Called via the
1331 show_load_progress hook. Prints updates every 0.5 secs.
1332 (mi_command_loop): Initialize the show_load_progress hook.
1334 1999-11-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1336 * mi-main.c (mi_cmd_exec_until): New function. Implement until
1338 (mi_cmd_exec_step_instruction): New function. Implement stepi
1340 (mi_cmd_exec_next_instruction): New function. Implement nexti
1343 * mi-cmds.c (mi_cmds): Add mi_cmd_exec_step_instruction,
1344 mi_cmd_exec_next_instruction, mi_cmd_exec_until.
1346 * mi-cmds.h (mi_cmd_exec_step_instruction,
1347 mi_cmd_exec_next_instruction, mi_cmd_exec_until): Export.
1349 Tue Nov 23 00:30:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1351 * mi/gdbmi.texinfo: Document -data-read-memory.
1353 * mi-main.c (mi_cmd_data_read_memory): Fix off-by-one check of
1355 (mi_cmd_data_read_memory): Label the output table with "memory".
1357 Thu Nov 18 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1359 * mi-main.c (mi_cmd_exec_interrupt, mi_cmd_break_insert,
1360 mi_cmd_break_watch, mi_cmd_disassemble, mi_cmd_execute): Replace
1361 strdup with xstrdup.
1363 Thu Nov 18 20:50:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
1365 * mi-main.c (mi_cmd_data_read_memory): New function. Implement
1368 * mi-cmds.h, mi-cmds.c: Add mi_cmd_data_read_memory.
1369 * mi-cmds.c (mi_cmds): Ditto.
1371 1999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1373 * mi-cmds.h (mi_cmd_break_watch): Export.
1375 * mi-cmds.c (mi_cmds): Hook up break-watch to function
1378 * mi-main.c (wp_type): New enumeration for the possible types of
1380 (mi_cmd_break_watch): New function, implements the break-watch
1383 1999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1385 * mi-main.c (mi_cmd_break_insert): Handle case in which the command is
1386 just a -break-insert w/o args.
1388 Fri Nov 12 00:01:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1390 * mi-out.c (mi_field_string): Always quote the string.
1392 1999-11-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1394 * mi-cmds.h(mi_cmd_data_list_changed_registers,
1395 mi_cmd_data_list_register_names): Export.
1397 * mi-cmds.c (mi_cmds): Hook up data-list-changed-registers to
1398 mi_cmd_data_list_changed_registers and data-list-register-names to
1399 mi_cmd_data_list_register_names.
1401 * mi-main.c (mi_cmd_data_list_changed_registers): New function,
1402 implements the data-list-changed-registers command.
1403 (mi_cmd_data_list_register_names): New function, implements the
1404 data-list-register-names command.
1405 (register_changed_p): New function. Decide whether the register
1406 contents have changed.
1407 (setup_architecture_data): New function. Initialize registers
1409 (_initialize_mi_main): Call setup_architecture_data(), and
1410 register_gdbarch_swap().
1412 Wed Nov 10 18:35:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
1414 * mi-main.c (mi_execute_command): Correctly quote error messages.
1416 Wed Nov 10 11:05:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
1418 * mi/gdbmi.texinfo: Delete <stream-output>. Replaced by
1421 * mi-main.c (mi_console_raw_packet): Always quote console output.
1423 Tue Nov 9 17:53:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1425 * mi-main.c (mi_console_file_new), mi-out.c (mi_out_new): Replace
1426 the tui_file with a mem_file. Ya!
1428 * mi-out.c (do_write): New function, wrapper to gdb_file_write.
1429 (mi_out_put): Pass do_write to gdb_file_put.
1431 * mi-main.c (mi_console_file_flush): Rewrite. Use
1432 mi_console_raw_packet to send data to the console.
1433 (mi_console_raw_packet): New function. Correctly
1434 create quoted C string packets.
1436 1999-11-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1438 * mi-cmds.c (mi_cmds): Break-insert is now implemented by
1439 mi_cmd_break_insert.
1440 * mi-cmds.h (mi_cmd_break_insert): Export.
1441 * mi-main.c (bp_type): New enumeration.
1442 (mi_cmd_break_insert): New function. Implements all flavors of
1443 breakpoint insertion.
1445 Mon Nov 8 17:49:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
1447 * mi-main.c (mi_console_file_flush): Replace gdb_file_get_strbuf
1448 with tui_file_get_strbuf.
1450 Fri Nov 5 17:06:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1452 * mi-main.c (mi_console_file_delete, mi_console_file_fputs,
1453 mi_console_file_flush): Call internal_error instead of error.
1455 Thu Nov 4 19:53:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1457 * mi-main.c (captured_mi_execute_command): New function.
1458 (mi_execute_command): Rewrite. Replace SET_TOP_LEVEL() with call
1459 to captured_mi_execute_command via catch_errors.
1461 Thu Nov 4 20:33:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1463 * mi-main.c (clean): Delete.
1464 (mi_command_loop): Delete extern declaration of
1467 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1469 * mi-main.c (mi_cmd_stack_select_frame): Conditionalize the body
1470 on UI_OUT, because select_frame_command_wrapper is only defined if
1472 (mi_cmd_exec_interrupt): Conditionalize the body on UI_OUT,
1473 because interrupt_target_command_wrapper is only defined if UI_OUT is.
1475 * mi-cmds.c (mi_cmds): Implement command exec-interrupt by
1476 mi_cmd_exec_interrupt.
1478 * mi-main.c (mi_cmd_exec_interrupt): New function. Implements
1479 exec-interrupt command.
1480 (mi_cmd_execute): If the target is running save execution command
1481 token in previous_async_command. If the command is not 'interrupt'
1482 and the target is running, reject it.
1483 (clean): New function. Free the arg and reset it to NULL.
1485 * mi-cmds.h (mi_cmd_exec_interrupt):Export.
1487 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1489 * mi-cmds.c (mi_cmds): Implement command stack-select-frame by
1490 mi_cmd_stack_select_frame.
1492 * mi-main.c (mi_cmd_stack_select_frame): New function. Implements
1493 stack-select-frame command.
1495 * mi-cmds.h (mi_cmd_select_frame):Export.
1497 1999-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1499 * mi-cmds.c (mi_cmds): Implement commands stack-list-locals and
1500 stack-list-arguments by mi_cmd_stack_list_locals and
1501 mi_cmd_stack_list_args.
1503 * mi-main.c (mi_cmd_stack_list_locals): New function. Implements
1504 stack-list-locals command.
1505 (mi_cmd_stack_list_args): New function. Implements
1506 stack-list-arguments command.
1507 (list_args_or_locals): New function. Do all the work for the
1508 listing of locals or arguments.
1510 * mi-cmds.h (mi_cmd_stack_list_args,mi_cmd_stack_list_locals) :
1513 1999-10-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1515 * mi-cmds.c (mi_cmds): Add new command stack-info-depth.
1517 * mi-main.c (mi_cmd_stack_info_depth): New function. Implements
1518 the stack-info-depth command.
1519 * mi-cmds.h (mi_cmd_stack_info_depth): Export.
1522 1999-10-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1524 * mi-main.c (mi_execute_command): Handle MI_CMD_ERROR case
1525 properly, for command that return error code and don't set
1528 * mi-cmds.c (mi_cmds): Hook stack-list-frames command to
1529 mi_cmd_stack_list_frames function.
1530 * mi-cmds.h (mi_cmd_stack_list_frames): Export.
1532 * mi-main.c (mi_execute_command): Deal with a return code of
1533 MI_CMD_ERROR from the execution of mi commands.
1534 (mi_error_message): Static string variable, to contain the error
1535 message from mi commands.
1536 (mi_cmd_stack_list_frames): New function. Prints a backtrace.
1538 1999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1540 * mi-main.c (mi_cmd_disassemble): Handle the new command line
1541 parameter that specifies the number of disassembly lines to be
1543 (gdb_do_disassemble): Add new parameter. Count the number of lines
1544 that have been displayed, and stop when limit is reached.
1546 Wed Oct 13 18:04:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
1548 * mi-main.c (mi_command_loop): Don't initialize ``flush_hook''.
1550 1999-10-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1552 * mi/gdbmi.texinfo: More reformatting of the grammars.
1554 1999-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1556 * mi/gdbmi.texinfo: More TeX formatting.
1558 1999-10-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1560 * mi/gdbmi.texinfo: First pass completed. All commands should have
1562 Escape '@' output special char.
1565 1999-10-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1567 * mi/gdbmi.texinfo: Filled in part of file command section, and
1570 1999-10-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1572 * mi/gdbmi.texinfo: Filled in some sections about execution
1575 Tue Oct 5 15:27:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1577 * mi-cmds.h: Sort table
1579 (MI_TABLE_SIZE): Increase to 251.
1581 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1583 * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete): Add missing
1586 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1588 * mi-main.c (next_arg): Returns lenght as well.
1589 (which_var, mi_cmd_var_create, mi_cmd_var_delete,
1590 mi_cmd_var_set_format, mi_cmd_var_update): Do not modify the input
1591 string, use allocated storage instead.
1592 (mi_cmd_var_assign): Adjust call to next_arg() to include new
1595 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1597 * mi-main.c (mi_execute_command): Fix handling of errors.
1599 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1601 * mi-out.c (mi_out_new): Call tui_sfileopen() instead of
1602 deprecated gdb_file_init_astream().
1603 * mi-main.c (mi_console_file_new): Ditto.
1605 Mon Oct 4 15:17:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1607 * mi-cmds.h: Sort function declarations.
1608 (mi_lookup): Add extern.
1610 * mi-cmds.c (mi_lookup): Delete dead code.
1611 (build_table): Call internal_error instead of error.
1612 (build_table): Send trace output to gdb_stdlog.
1614 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1616 * mi-main.c (mi_execute_async_cli_command): Don't do the cleanups
1617 if target_executing is null.
1619 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1621 * mi-main.c (async_p): Change var name to event_loop_p.
1623 Mon Sep 27 15:11:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1625 * mi-main.c (mi_execute_async_cli_command, mi_execute_command):
1626 Replace target_has_async with function target_can_async_p.
1628 Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1630 * mi-main.c (mi_cmd_target_select_continuation): Delete function.
1631 (mi_cmd_target_select): Simplify. target-connect is guarenteed to
1634 Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1636 * mi-cmds.h (mi_cmd_ftype): Replace mi_impl_ftype.
1637 (enum mi_cmd_result): Define.
1638 * mi-cmds.c (struct mi_cmd): Update.
1639 (mi_lookup): Update.
1640 * mi-main.c (mi_cmd_execute): Update.
1642 * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_run, mi_cmd_exec_next,
1643 mi_cmd_exec_step, mi_cmd_target_select, mi_cmd_exec_continue,
1644 mi_cmd_exec_return, mi_cmd_exec_finish, mi_cmd_disassemble,
1645 mi_cmd_var_create, mi_cmd_var_delete, mi_cmd_var_set_format,
1646 mi_cmd_var_show_format, mi_cmd_var_info_num_children,
1647 mi_cmd_var_list_children, mi_cmd_var_info_type,
1648 mi_cmd_var_info_expression, mi_cmd_var_show_attributes,
1649 mi_cmd_var_evaluate_expression, mi_cmd_var_update): Update.
1652 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
1654 * mi-main.c (mi_cmd_var_create): Use paddr() to format address
1657 1999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1659 * mi-main.c (mi_cmd_var_create): Test for varobjdebug before
1660 printing trace and send it to gdb_stdlog.
1662 Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1664 * Makefile.in (mi-out.o): Add dependency list.
1665 * mi-out.c: Include "mi-out.h".
1667 1999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1669 * mi-main.c (_initialize_mi_main): Events on stadin are now
1670 handled by stdin_event_handler.
1672 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1674 * mi-cmds.c (mi_cmds): Add var-* commands.
1676 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1678 * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete,
1679 mi_cmd_var_set_format, mi_cmd_var_show_format,
1680 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
1681 mi_cmd_var_info_type, mi_cmd_var_info_expression,
1682 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
1683 mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one,
1684 which_var, next_arg): New functions. Implement the -var-*
1686 * mi-cmds.h: Add prototypes for the above.
1688 1999-09-14 Fernando Nasser <fnasser@totem.to.cygnus.com>
1690 * mi-cmds.c (mi_cmds): Add detach command.
1692 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1694 * mi-cmds.c (lookup_table): Fix typo.
1696 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1698 * mi-cmds.c (mi_cmds): Fix typo and missing command.
1700 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1702 * mi-main.c: Properly align function prototypes.
1703 (mi_cmd_target_select): Proper check for NULL value.
1705 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1707 * mi-main.c (mi_execute_async_cli_command): Fix for native targets
1708 that do not have async yet.
1710 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1712 * mi-main.c (mi_cmd_disassemble): Remove unused var.
1713 (gdb_do_disassemble): Ditto.
1715 1999-08-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1717 * mi-main.c: Replace all the occurrences of 'asynch' in variable
1718 or function names with 'async' to make it consistent with the rest
1721 Mon Aug 30 18:16:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1723 * mi-main.c: #include <ctype.h> for isspace().
1725 1999-08-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1727 * mi-main.c (gdb_do_disassemble): This function returns void, not
1730 1999-08-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1732 * mi-main.c (mi_cmd_disassemble): Don't use atoi() on the high
1733 address string, just treat it same as address low.
1734 (gdb_do_disassemble): Parse high_address string before seeing if
1737 1999-08-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1739 * mi-main.c (mi_cmd_disassemble): New function to produce
1740 disassembly output for mi.
1741 (gdb_dis_asm_read_memory): New function. Read the disassembly from
1742 the executable file, instead of target memory.
1743 (compare_lines): New function. Compare order of disassembly lines.
1744 (gdb_do_disassemble): New function. Do the real job of getting the
1747 * mi-cmds.c (mi_cmds): Do data-disassemble mi command via the
1748 mi_cmd_disassemble function.
1750 * mi-cmds.h: Export new function mi_cmd_disassemble.
1752 Wed Aug 25 15:58:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1754 * mi-main.c (mi_command_loop): Remove references to ui-hooks.
1756 1999-08-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1758 * mi-main.c (mi_execute_asynch_cli_command): Fix the incorrect
1759 usage of strcat(): allocate enough space for the string.
1761 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1763 From Christopher Faylor <cgf@cygnus.com>
1764 * mi-main.c (mi_execute_command): Make sure we flush all the
1765 output after each command.
1767 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1769 * mi-main.c (_initialize_mi_main): Remove casting in call to
1772 Sun Aug 8 17:20:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1774 * mi-main.c (mi_cmd_target_select, mi_execute_asynch_cli_command):
1775 Replace call to fatal with call to internal_error.
1777 1999-07-26 Fernando Nasser <fnasser@totem.to.cygnus.com>
1779 * mi-main.c (mi_cmd_execute): Add return code.
1780 (mi_execute_command): Make appropriate changes when calling the
1781 function mentioned above.
1782 (mi_cmd_gdb_exit, mi_cmd_target_select,
1783 mi_cmd_target_select_continuation, mi_execute_command,
1784 mi_exec_asynch_cli_cmd, mi_exec_asynch_cli_cmd_continuation):
1785 Print token, prefix, class and output (if any) in one single group
1787 (mi_execute_command, mi_cmd_execute): Fix error prefix.
1788 (mi_cmd_execute): Use exec cleanup for token.
1789 * mi-out.c (mi_out_rewind): New function.
1790 * mi-out.h: Prototype for the above.
1792 1999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1794 * mi-main.c (mi_cmd_gdb_exit): Use buffer for exit message.
1795 (mi_cmd_execute): Route error messages to correct file.
1796 (mi_execute_asynch_cli_command): Insert line feed after running
1799 1999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1801 * mi-out.h (mi_out_buffered): Add extern declaration.
1802 * mi-out.c (mi_out_buffered): New function. Insert a string at the
1803 current buffer position.
1804 * mi-main.c (mi_cmd_target_select, mi_execute_command,
1805 mi_cmd_execute, mi_execute_asynch_cli_command): Use the above
1806 function instead of printing to raw_stdout.
1807 (mi_cmd_target_select, mi_cmd_target_select_continuation,
1808 mi_execute_command, mi_cmd_execute, mi_execute_cli_command,
1809 mi_exec_asynch_cli_cmd_continuation): Fix handling of token and
1811 (mi_execute_cli_command): Remove parameter no longer needed.
1813 1999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1815 * mi-main.c (mi_cmd_target_select_continuation): Print the numeric
1816 token when we are connected.
1817 (mi_execute_command): Don't print the token now, do it later.
1818 (mi_execute_cli_command): Add a new parameter for the numeric
1819 token. Print the token, the prefix and the class after the
1820 command has executed, not before.
1821 (mi_execute_asynch_cli_command): Don't print an extra blank line.
1823 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1825 * mi-main.c (mi_gdb_exit): Add \n at the end.
1827 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1829 * mi-main.c (mi_cmd_execute): New function. Dispatch a mi operation.
1830 (mi_execute_command): Use the above.
1832 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1834 * mi-main.c: Fix identation.
1836 1999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1838 * mi-main.c: Include target.h and inferior.h.
1839 (mi_cmd_target_select): New function to execute the target-select
1841 (mi_cmd_target_select_continuation): New function. Continuation
1842 for the target-select operation.
1843 (mi_execute_command): In case of an MI command which requires
1844 asynchronous execution, do not try to display the result now. If
1845 the execution has to look synchronous don't display the "(gdb)"
1847 (mi_execute_asynch_cli_command): Invoke real asynchronous
1848 commands, set up exec_cleanups, and continuations.
1849 (mi_exec_asynch_cli_cmd_continuation): New function. Continuation
1850 for all the MI execution commands except 'target-select'.
1851 (mi_execute_command): Handle null commands by exiting gdb, instead
1854 * mi-cmds.c (mi_cmds): Hook up -target-select operation to new mi
1857 * mi-cmds.h (mi_cmd_target_select): Add extern declaration.
1859 Thu Jul 15 10:31:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1861 * mi-main.c (struct mi_console_file): Add field ``prefix''.
1862 (mi_console_file_new): Add argument prefix. Initialize prefix
1864 (mi_console_file_flush): Use ``prefix'' instead of "~" as the
1866 (mi_command_loop): Update stream output prefixes. gdb_stdout ==
1867 "~", gdb_stderr / gdb_stdlog == "&", gdb_stdtarg == "@".
1869 1999-07-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
1871 * mi-main.c (ui_out_data): New field first_header. Fix output when
1872 no breakpoints are found.
1873 (mi_table_begin, mi_table_body, mi_table_header): Test for
1875 (mi_table_end): Test for supress_field_separator.
1876 (mi_message): Remove messages from MI output.
1878 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
1880 * mi-cmds.c (mi_cmds[]): Delete gdb-cli operation.
1881 * mi-main.c (parse): Remove ifdefs for cli commands parsing.
1882 (mi-execute-command): Ditto.
1884 Mon Jun 28 13:06:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1886 * mi-out.h: New file.
1887 (mi_out_new, mi_out_put): Move mi specific delcarations to here.
1888 * ui-out.h: From here.
1890 * mi-main.c: Include "mi-out.h".
1892 1999-06-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
1894 * top.c (print_gdb_version): Add the word HEADLESS when output
1895 follows headless format.
1896 (print_command_lines): Fix typo.
1898 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1900 * event-loop.h: Export input_fd.
1901 * mi-main.c (mi_command_loop): Use the event loop if running
1903 (mi_execute_command_wrapper): New function.
1904 (_initialize_mi-main): Set things up for running asynchronously.
1906 1999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
1908 * mi-cmds.c (mi_lookup): Deleted.
1909 (lookup_table): New function. Replaces old mi_lookup() for local
1911 (mi_lookup): New function. External interface for command table
1913 (build_table): New definition.
1914 (mi_cmds[]): Add several command implementations and the gdb-cli
1916 (mi_cmd_execute): Deleted.
1917 * mi-cmds.h: Add type definition for command implementation
1918 function pointers, add declaration for new implementation
1919 functions and a declaration for mi_lookup().
1920 * mi-main.c (mi_execute_asynch_cli_command): New
1921 function. Captures code that was repeated for all asynch
1923 (mi_cmd_exec_*): Use the above new function.
1924 (mi_gdb_cmd_exit): Fix the output, printing something appropriate.
1925 (mi_cmd_exec_finish): New operation implementation function.
1926 (mi_cmd_exec_return): Ditto.
1927 (parse): Prepare to remove cli commands.
1928 (mi_execute_command): Fix the output and change the way mi-cmds is
1931 1999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
1933 * mi-out.c (mi_table_begin): Add missing field separator call.
1935 Thu Jun 17 21:05:40 1999 Fernando Nasser <fnasser@tofu.to.cygnus.com>
1937 * breakpoint.c (breakpoint_1): Remove space in breakpoint table
1939 (mention): Use ui_out for last new line (forgotten).
1941 1999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1943 * mi-main.c (mi_console_file_flush): Prevent prefix printing when
1944 buffer empty; change prefix to '~'.
1945 (mi_cmd_exec_*): Prefix normal output with '^' instead of
1946 ','; remove unwanted new lines before "stopped".
1948 1999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1950 * mi-cmds.c (struct mi_cmds): Updated entries for -exec-continue
1951 and exec-next operations.
1952 (mi_cmd_execute): New text for error messages.
1953 * mi-cmds.h: Add declaration for mi_cmd_exec_next and
1954 mi_cmd_exec_continue.
1955 * mi-main.c (mi_cmd_exec_next): New function. Implements exec-next
1957 (mi_cmd_exec_continue): New function. Implements exec-continue
1959 (mi_execute_comand): Add missing space to prompt.
1960 (mi_cmd_exec_run): Ditto.
1961 (mi_cmd_exec_step): Ditto.
1962 * mi-out.c (mi_out_new): Add flags argument to ui_out_new call.
1963 (ui_list_end): Reset supress_field_separator flag.
1965 Sat Jun 12 11:49:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
1967 * mi-cmds.h. mi-cmds.c (exec step): Command implemented by
1968 mi_cmd_exec_step instead of cli call.
1969 * mi-main.c (mi_cmd_exec_step): New function.
1971 * mi-cmds.h. mi-cmds.c (exec run): Command implemented by
1972 mi_cmd_exec_run instead of cli call.
1973 * mi-main.c (mi_cmd_exec_run): New function.
1975 * mi-cmds.h. mi-cmds.c (gdb exit): Command implemented by
1976 mi_cmd_gdb_exit instead of quit_force.
1977 * mi-main.c (mi_cmd_gdb_exit): New function.
1979 Sat Jun 12 11:33:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
1981 * mi-main.c (mi_command_loop): Pass mi_input to
1982 simplified_command_loop.
1983 (mi_input): New function. Calls gdb_readline with no prompt.
1985 Sat Jun 12 11:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1987 * mi-main.c (mi_console_file_fputs): Re-implement. Use a buffer
1988 to accumulate output.
1990 * mi-main.c (struct mi_console_file): Add a buffer.
1991 (mi_console_file_new): Create a buffer.
1992 (mi_console_file_flush): New function.
1994 Sat Jun 12 10:59:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1996 * mi-cmds.h (raw_stdout): Declare. Will be moved later.
1997 * mi-cmds.c (mi_cmd_execute): Send error messages to RAW stdout.
1998 (mi_cmds): Sort by class.
2000 * mi-main.c (raw_stdout): Make global.
2001 * mi-main.c: Remove #ifdef UI_OUT. File assumes UI_OUT is
2003 * mi-main.c: Include "gdb_string.h".
2004 (mi_out_put): Delete declaration.
2006 1999-06-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
2008 * mi-main.c: Add pre-processor test for UI_OUT.
2009 (mi_execute_command): Add pre-processor test for UI_OUT.
2011 Fri Jun 11 23:11:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
2013 * mi-main.c (raw_stdout): New variable.
2014 (mi_execute_command): Write mi-out direct to raw_stdout.
2015 (mi_command_loop): Create raw_stdout. Attach gdb_stdout to the
2017 (mi_console_file_fputs, mi_console_file_delete,
2018 mi_console_file_new): New functions.
2019 (struct mi_console_file): Declare.
2021 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2023 * mi-main.c (mi_execute_command): Call mi_out_put to display the
2025 * mi-out.c (mi_out_put): New function.
2026 * ui-out.h (mi_out_put): Add declare. Will move later.
2027 * Makefile.in (mi-cmds.o, mi-main.o): Add dependency on ui-out.h.
2029 * mi-out.c (mi_field_string, mi_field_fmt, mi_message, mi_flush,
2030 out_field_fmt, list_open, list_close): Replace gdb_stdout with
2032 (field_separator, list_open, list_close): Add uiout parameter.
2033 (mi_table_begin, mi_table_body, mi_table_end, mi_list_begin,
2034 mi_list_end, mi_field_string, mi_field_fmt, out_field_fmt,
2035 out_field_fmt): Update.
2037 * mi-out.c (mi_out_new): Initialize supress_field_separator.
2038 (supress_field_separator): Move into mi-out local data object.
2039 (mi_table_begin, mi_list_begin, field_separator): Update.
2041 Fri Jun 11 16:08:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2043 * mi-out.c (mi_out_new): New function, replace init_mi_out.
2044 * mi-main.c (mi_command_loop): Call mi_out_new().
2046 * ui-out.h (mi_out_new): Add declaration. Will move later.
2047 (mi_ui_out_impl): Delete.
2049 Wed Jun 9 16:42:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
2051 * mi-main.c: Include "ui-hooks.h".
2052 (mi_init_ui, mi_command_loop): New functions.
2053 (_initialize_mi_main): Install ``mi'' as the interpreter when
2056 Mon Jun 7 18:43:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
2058 From Fernando Nasser <fnasser@totem.to.cygnus.com>
2059 * mi-cmds.c (build_table): Clean up error message.
2060 * mi-cmds.c (mi_cmd_execute), mi-main.c (mi_execute_command): Only
2061 print debug information when mi_debug_p.
2062 * mi-cmds.h (mi_debug_p), mi-main.c: Global, control debug messages.
2064 Thu Jun 3 00:44:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
2066 From Fernando Nasser <fnasser@totem.to.cygnus.com>:
2067 * mi-cmds.c: Add CLI definitions for "exec-arguments",
2068 "exec-next", "gdb-exit", "break-list", "break-info", "exec-step"
2069 and "stack-list-frames" to mi_cmds.
2070 (struct mi_command): Add ``from_tty'' argument to func.
2071 * mi-cmds.h (quit_force): Declare.
2073 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
2075 * mi-out.c (mi_table_end): Remove unwanted "\n".
2077 Thu May 27 14:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2079 * top.c: Include "ui-hooks.h".
2080 (call_interp_loop): Tempoary. Pass mi_execute_command to
2081 simplified_command_loop. Initialize gdb_stdout & gdb_stderr to
2082 stdio gdb_file streams. Force all hooks to null.
2084 * mi-cmds.h, mi-main.c, mi-cmds.c: New files.
2085 * Makefile.in (SFILES): Add mi-main.c, mi-cmds.c
2086 (COMMON_OBS): Add mi-main.o, mi-cmds.o.
2087 (mi_cmds_h): Define.
2089 Wed May 26 12:39:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
2091 * top.c (call_interp_loop): Hack. Add extern declaration for
2094 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
2096 * mi-out.c: New table syntax.
2098 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
2100 mi-out.c (_initialize_mi_out): Add external declaration.
2102 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2104 * mi-out.c (mi_table_begin): Added missing parameter.
2106 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2108 * mi-out.c: Changed table markers and added table id.
2110 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2112 * mi-out.c: New file. Implements low-level ui-out primitives for
2113 CLI-based interaction.
2120 version-control: never