1 2001-07-09 Kevin Buettner <kevinb@redhat.com>
3 * mi-main.c (register_changed_p, get_register): Use alloca()
4 to allocate space previously allocated via gcc's
5 variable-length array extension.
6 (mi_cmd_data_write_register_values, mi_cmd_data_write_memory):
7 Change type of ``buffer'' to ``void *''. Don't cast return value
8 from xmalloc(). Add a cleanup to free the xmalloc'd buffer.
10 2001-07-07 Andrew Cagney <ac131313@redhat.com>
12 * mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
13 with `struct value *'.
15 2001-07-08 Kevin Buettner <kevinb@redhat.com>
17 * mi-out.c (mi_table_header, mi_field_int, mi_field_skip)
18 (mi_field_string) Make function declarators match earlier
21 2001-07-04 Andrew Cagney <ac131313@redhat.com>
23 * mi-out.c (mi_ui_out_impl): Initialize is_mi_like_p to one.
25 2001-06-27 Andrew Cagney <ac131313@redhat.com>
27 * mi-out.c (mi_table_begin): Include nr_cols and nr_rows in mi1
29 * mi-out.c (mi_table_begin): Only suppress output when mi0. Change
31 (mi_table_body): For mi1, close the header list and open a table
33 (mi_table_end): For mi1, close the body list.
34 (mi_table_header): For mi1, output a tuple containing all the
36 (mi_open, mi_close): Reverse logic of mi_version test.
37 * gdbmi.texinfo (GDB/MI Breakpoint Table Commands): Update.
39 2001-06-26 Andrew Cagney <ac131313@redhat.com>
41 * gdbmi.texinfo (GDB/MI Output Syntax): Delete reference to query
44 2001-06-26 Andrew Cagney <ac131313@redhat.com>
46 * mi-cmd-stack.c (list_args_or_locals): Output a list of "args" or
48 * gdbmi.texinfo (stack-list-locals, stack-list-arguments)
49 (exec-interrupt, target-select, thread-select): Update
52 2001-06-26 Andrew Cagney <ac131313@redhat.com>
54 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Output a list of
56 (mi_cmd_stack_list_args): Ditto for "stack-args".
57 * gdbmi.texinfo (stack-list-frames, stack-list-arguments): Update
59 (GDB/MI Stack Manipulation Commands): Fix section title. Was
60 Stack Manipulation Commands in GDB/MI.
62 2001-06-25 Andrew Cagney <ac131313@redhat.com>
64 * gdbmi.texinfo: Update output examples that contain stop reason
65 output, change the args=.... to a list.
68 2001-06-25 Andrew Cagney <ac131313@redhat.com>
70 * mi-main.c (mi_cmd_data_read_memory): Output the memory contents
71 - memory and data - as a list.
72 * gdbmi.texinfo (data-read-memory): Update documentation.
74 2001-06-25 Andrew Cagney <ac131313@redhat.com>
76 * mi-main.c (mi_cmd_data_list_register_values): Output a list of
78 * gdbmi.texinfo (data-list-register-values): Update documentation.
80 2001-06-25 Andrew Cagney <ac131313@redhat.com>
82 * mi-main.c (mi_cmd_data_list_register_names): Output a list of
84 (mi_cmd_data_list_register_names): Include the pseudo registers.
85 (mi_cmd_data_list_register_names): Don't leave holes in the list,
86 output "" for NULL registers.
87 * gdbmi.texinfo (data-list-register-names): Update documentation.
89 2001-06-23 Andrew Cagney <ac131313@redhat.com>
91 * mi-main.c (mi_cmd_data_list_changed_registers): Output a list of
93 * gdbmi.texinfo (data-list-changed-registers): Update
96 2001-06-23 Andrew Cagney <ac131313@redhat.com>
98 * gdbmi.texinfo (data-disassemble): Update documentation of
99 output. Produces a list of instructions and a list of source
102 2001-06-22 Andrew Cagney <ac131313@redhat.com>
104 * mi-cmd-disas.c (mi_cmd_disassemble): For "-data-disassemble",
105 output a list instead of a tupple.
107 2001-06-21 Andrew Cagney <ac131313@redhat.com>
109 * mi-out.c (struct ui_out_data): Replace field first_header with
111 (mi_begin, mi_end): Check suppress_header.
112 (mi_field_int, mi_field_skip): Ditto.
113 (mi_field_string, mi_field_fmt): Ditto.
114 (mi_table_begin): When nr_rows is zero, set suppress_header else,
115 output the start of the header.
116 (mi_table_body): Clear suppress header.
118 2001-06-21 Andrew Cagney <ac131313@redhat.com>
120 * mi-out.c (mi_open): For lists, when mi_version > 0, use ``[''.
121 (mi_close): Ditto for ``]''.
123 2001-06-20 Andrew Cagney <ac131313@redhat.com>
125 * mi-out.c (mi_table_header): Add parameter ``col_name''.
127 2001-06-18 Andrew Cagney <ac131313@redhat.com>
129 * mi-out.c: Include "gdb_assert.h".
130 (mi_table_begin): Add parameter ``nr_rows''.
132 2001-06-18 Andrew Cagney <ac131313@redhat.com>
134 * mi-main.c: Use strncmp as the "mi" test. Allow "mi", "mi0" and
136 (mi_command_loop): Add parameter mi_version, pass to mi_out_new.
137 (mi1_command_loop, mi0_command_loop): New functions.
138 (_initialize_mi_main): Recognize "mi", "mi0" and "mi1".
139 * mi-out.c (mi_out_new): Add parameter mi_version.
140 (struct ui_out_data): Add field mi_version.
141 * mi-out.h (mi_out_new): Update.
143 2001-06-07 Andrew Cagney <ac131313@redhat.com>
145 * gdbmi.texinfo (GDB/MI Output Syntax): Add tuples and lists to
147 (GDB/MI Draft Changes to Output Syntax): Delete section.
149 Mon Jun 11 17:22:25 2001 Andrew Cagney <cagney@b1.cygnus.com>
151 * mi-out.c: Fix typo. s/supress/suppress/.
153 2001-06-09 Andrew Cagney <ac131313@redhat.com>
155 * mi-out.c (mi_table_end, mi_table_begin, mi_begin, mi_end): Move
156 supress_field_separator updates from here.
157 (mi_open, mi_close): To here.
158 (mi_open): Add parameter name. Output a field_separator.
159 (mi_table_begin): Update.
160 (mi_table_header): Update.
163 2001-06-09 Andrew Cagney <ac131313@redhat.com>
165 * mi-out.c (mi_table_begin): Make char* parameters constant.
166 (mi_table_header): Ditto.
167 (mi_field_int): Ditto.
168 (mi_field_skip): Ditto.
169 (mi_field_string): Ditto.
170 (mi_field_fmt): Ditto.
174 2001-05-12 Andrew Cagney <ac131313@redhat.com>
176 * mi-out.c (mi_close, mi_open): Output ``[]'' when a list.
178 Fri May 11 13:55:07 2001 Andrew Cagney <cagney@b1.cygnus.com>
180 * mi-cmd-var.c: Replace ui_out_list_begin, ui_out_list_end and
181 make_cleanup_ui_out_list_end with ui_out_tupple_begin,
182 ui_out_tupple_end and make_cleanup_ui_out_tupple_begin_end.
183 * mi-cmd-stack.c: Ditto.
184 * mi-cmd-disas.c: Ditto.
187 2001-05-10 Andrew Cagney <ac131313@redhat.com>
189 * mi-out.c (mi_open, mi_close): Replace list_open and list_close.
190 (mi_table_begin): Update.
191 (mi_table_header): Update.
193 (mi_table_body): Update.
194 (mi_table_end): Update.
197 Thu May 10 16:28:13 2001 Andrew Cagney <cagney@b1.cygnus.com>
199 * mi-main.c (mi_execute_async_cli_command): Always initialize
202 2001-05-08 Andrew Cagney <ac131313@redhat.com>
204 * mi-out.c (mi_begin, mi_end): Replace mi_list_begin and
206 (mi_ui_out_impl): Update.
208 2001-03-28 Andrew Cagney <ac131313@redhat.com>
210 * mi-main.c (mi_cmd_data_read_memory): Use xcalloc.
212 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
214 * gdbmi.texinfo: Update copyright. Change Permissions to GFDL.
216 2001-03-20 Andrew Cagney <ac131313@redhat.com>
218 * mi-cmd-disas.c (mi_cmd_disassemble): Initialize ``file_string''
219 and ``line_num''. Consolidate declaration of argument variables.
221 2001-03-19 Andrew Cagney <ac131313@redhat.com>
223 * mi-out.h: Remove #ifdef __STDC__.
225 2001-03-08 Andrew Cagney <ac131313@redhat.com>
227 * mi-main.c (mi_cmd_data_list_register_names): Use NUM_REGS, not
229 (mi_cmd_data_list_changed_registers): Ditto.
230 (mi_cmd_data_list_register_values): Ditto.
231 (mi_cmd_data_write_register_values): Ditto.
233 2001-03-06 Kevin Buettner <kevinb@redhat.com>
235 * gdbmi.texinfo, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
236 mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
237 mi-getopt.h, mi-out.c, mi-out.h, mi-parse.c, mi-parse.h:
238 Update/correct copyright notices.
240 Wed Feb 7 19:50:37 2001 Andrew Cagney <cagney@redhat.com>
242 * mi-getopt.c: Add __FILE__ and __LINE__ parameter to calls to
244 * mi-console.c: Ditto.
246 * mi-cmd-break.c: Ditto.
248 2001-01-27 Fernando Nasser <fnasser@redhat.com>
250 From Momchil Velikov <velco@fadata.bg>
251 * mi-cmd-disas.c (gdb_dis_asm_read_memory): Add missing memory
252 attributes argument in the call to `xfer_memory'.
254 2000-12-14 Kevin Buettner <kevinb@redhat.com>
256 * mi-cmd-disas.c, mi-cmd-var.c, mi-console.c, mi-main.c,
257 mi-parse.c: Replace occurrences of free() with xfree().
259 Fri Nov 17 16:07:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
261 * mi-main.c: Replace asprintf with xasprintf.
262 * mi-cmd-var.c (mi_cmd_var_create): Ditto.
264 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
266 * gdbmi.texinfo (GDB/MI Variable Objects): Dimensions of
267 multitable changed to "@columnfractions .4 .6". Suggested by
268 Dmitry Sivachenko <dima@Chg.RU>.
270 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
272 * gdbmi.texinfo: Change flathead -> @sc{gdb/mi}.
273 Fix typos and markup mistakes (from Dmitry S.
274 Sivachenko <dima@Chg.RU>).
276 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
278 * gdbmi.texinfo: Change GDB -> @value{GDBN}, and
279 (gdb) -> (@value{GDBP}). Fix a few typos and some markup. From
280 Dmitry S. Sivachenko <dima@Chg.RU>.
282 Tue May 16 14:13:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
284 * mi-main.c (mi_cmd_execute): Use free_current_contents.
285 (free_and_reset): Delete.
287 Mon May 15 16:17:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
289 * mi-main.c (mi_cmd_data_assign, mi_cmd_data_evaluate_expression),
290 mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete): Delete
291 make_cleanup_func casts. Not needed.
293 2000-05-07 Eli Zaretskii <eliz@is.elta.co.il>
295 * gdbmi.texinfo: Lots of typos and grammar fixes from Brian
296 Youmans <3diff@flib.gnu.ai.mit.edu>.
298 Wed Apr 26 18:35:19 2000 Andrew Cagney <cagney@b1.cygnus.com>
300 * gdbmi.texinfo (GDB/MI Output Syntax v2.0): Convert Draft 2.0
301 Output Syntax into a new section. Cross reference.
302 (menu): Fix tipo. GDB/MI Compatibility with CLI.
304 2000-04-23 Eli Zaretskii <eliz@is.elta.co.il>
306 * gdbmi.texinfo: Lots of changes, to include this document as part
309 2000-03-13 James Ingham <jingham@leda.cygnus.com>
311 * mi-cmd-var.c (mi_cmd_var_create): Add special frame cookie "@"
312 to indicate an "USE_CURRENT_FRAME" variable.
313 (varobj_update_one): Add "in_scope" and "type_changed" to the
316 2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
318 * mi-cmds.h: Export mi_cmd_data_write_register_values.
320 * mi-cmds.c (mi_cmds): Implement data-write-register-values with
321 mi_cmd_data_write_register_values.
323 * mi-main.c (mi_cmd_data_write_register_values): New
324 function. Write a value into a register.
326 2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
328 * gdbmi.texinfo: Update data-disassemble documentation.
330 2000-03-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
332 * mi-cmd-disas.c (mi_cmd_disassemble): Use
333 ui_out_field_core_addr() instead of print_address_numeric(), to
334 maintain consistency throughout MI.
336 Wed Feb 23 17:09:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
338 * mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
339 mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
340 mi-getopt.h, mi-main.c, mi-out.c, mi-out.h, mi-parse.c,
341 mi-parse.h: Update copyright information.
343 Wed Feb 23 13:31:16 2000 Andrew Cagney <cagney@b1.cygnus.com>
345 * mi-cmd-disas.c (gdb_dis_asm_read_memory): Change LEN to unsigned
346 long. Match ../include/dis-asm.h change.
348 Wed Feb 23 10:30:55 2000 Andrew Cagney <cagney@b1.cygnus.com>
350 * gdbmi.texinfo: Update copyright - FSF. Update version
353 mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
354 mi-cmds.h, mi-main.c, mi-parse.c, mi-parse.h: Re-format using GNU
357 2000-02-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
359 * mi-main.c: Add include of gdbcore.h for write_memory()
362 2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
364 * mi-cmd-disas.c (mi_cmd_disassemble): Change syntax of
365 command. Now use options.
366 Instead of printing the symbolic address of instructions via
367 print_address_symbolic(), use build_address_symbolic() and format
369 (gdb_do_disassmble): Delete.
371 2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
373 * mi-cmd-disas.c (mi_cmd_disassemble):
375 2000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
377 * mi-main.c (mi_cmd_data_write_memory): New function. Write a
378 value into target memory.
380 * mi-cmds.h (mi_cmd_data_write_memory): Export.
382 * mi-cmds.c (mi_cmds): Hook up data-write-memory to
383 mi_cmd_data_write_memory().
385 2000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
387 * mi-main.c (mi_cmd_target_download): Correct error message to
388 report right function name.
389 (mi_cmd_target_select): Add doing exec cleanups at end.
390 (mi_cmd_data_read_memory): Correct typo.
391 (mi_cmd_execute): Do not simply free last_async_command, but reset
393 (free_and_reset): New function, free the argument and set it to
395 (mi_cmd_target_select_continuation): Delete prototype.
397 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
399 * mi-cmd-disas.c, mi-cmds.h, mi-console.c, mi-console.h,
400 mi-main.c, mi-out.c, mi-out.h: Update to reflect rename of
401 gdb-file / GDB_FILE to ui-file / ``struct ui_file''.
403 Mon Jan 31 18:33:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
405 * mi-main.c (mi_command_loop): Delete reference to
406 fputs_unfiltered_hook.
408 2000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
410 * mi-cmds.c (mi_cmds): Update entries for
411 mi_cmd_data_list_register_names,
412 mi_cmd_data_list_changed_registers,
413 mi_cmd_data_list_register_values.
415 * mi-cmds.h (mi_cmd_data_list_register_names,
416 mi_cmd_data_list_changed_registers,
417 mi_cmd_data_list_register_values): Update to mi_cmd_argv_ftype.
419 * mi-main.c (mi_cmd_data_list_register_names,
420 mi_cmd_data_list_changed_registers,
421 mi_cmd_data_list_register_values): Update to use argc, argv
424 2000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
426 * mi-main.c (mi_cmd_data_read_memory): Correct the computation of
429 2000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
431 * mi-cmd-var.c (mi_cmd_var_create): Test for NULL type.
432 (mi_cmd_var_set_format, mi_cmd_var_show_format,
433 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
434 mi_cmd_var_info_type, mi_cmd_var_info_expression,
435 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
436 mi_cmd_var_assign, mi_cmd_var_update): Prevent possibility of memory
439 2000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
441 * mi-out.c (mi_field_string): Test for NULL string pointer.
443 2000-01-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
445 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Call
446 print_frmae_info() with the correct arguments.
448 * mi-main.c (mi_cmd_exec_return): Call
449 show_and_print_stack_frame() with LOC_AND_ADDRESS, so it does the
450 right thing. Update Copyright.
452 2000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
454 * mi-main.c: Move disassemble commands from here.
456 * mi-cmd-disas.c: To here. New file.
458 2000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
460 * mi-cmd-stack.c: Remove include of mi-out.h.
462 * mi-main.c (mi_cmd_disassemble): Update function to use argc/argv
469 2000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
471 * gdbmi.texinfo: Update stack commands descriptions.
472 Add thread commands descriptions and examples.
474 * mi-main.c (mi_cmd_thread_list_ids): Fix typo.
476 2000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
478 * mi-main.c (mi_cmd_thread_list_ids): New function, print a list
479 of currently known threads ids, and the total number of threads.
480 (mi_cmd_thread_select): New function. Switch current thread.
482 * mi-cmds.c (mi_cmds): Implement thread-list-ids by
483 mi_cmd_thread_list_ids, and thread-select by mi_cmd_thread_select.
485 * mi-cmds.h (mi_cmd_thread_select, mi_cmd_thread_list_ids): Export.
487 2000-01-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
489 * mi-main.c: Move stack commands from here.
491 * mi-cmd-stack.c: To here. New file.
493 2000-01-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
495 * mi-main.c (list_args_or_locals): Add a new paramter, the frame
496 for which to display args or locals. Don't use selected_frame
497 anymore, use the new parameter instead. Return void instead of
498 mi_cmd_result, let callers do so.
499 (mi_cmd_stack_list_args): Change interface. Now accept low and
500 high frame numbers to display args for a range of frames. Without
501 these two, display args for the whole stack.
502 (mi_cmd_stack_list_locals): Adapt to new interface for
505 2000-01-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
507 * mi-main.c (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
508 mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
509 mi_cmd_stack_select_frame): Change to use argv type of parameters.
511 * mi-cmds.c (mi_cmds): Change stack-info-depth,
512 stack-list-arguments, stack-list-frames, stack-list-locals,
513 stack-select-frame to use argv parameters.
515 * mi-cmds.h (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
516 mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
517 mi_cmd_stack_select_frame): Update definitions.
519 Tue Jan 4 12:38:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
521 * mi-main.c (mi_command_loop): Force the MI interface to use seven
523 * gdbmi.texinfo: Make it clear that a quoted C string is seven
526 Thu Dec 30 14:15:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
528 * mi-getopt.c (mi_getopt): Rewrite. Allow long options.
529 * mi-getopt.h (struct mi_opt): Declare.
532 * mi-main.c (mi_cmd_data_read_memory), mi-cmd-break.c
533 (mi_cmd_break_insert, mi_cmd_break_watch): Update.
535 Wed Dec 29 23:38:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
537 * mi-cmd-break.c (mi_cmd_break_insert): Add support for -c
538 <condition>, -i <ignore-count> and -p <thread>.
539 (breakpoint_notify): New function.
540 (mi_cmd_break_insert): Wrap GDB call with callback hooks so that
541 MI is notified when ever a breakpoint is created.
543 * gdbmi.texinfo: Update.
545 Fri Dec 24 11:23:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
547 * mi-main.c (gdb_do_disassemble): Strip out more useless #ifdef
550 1999-12-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
552 * mi-main.c (gdb_do_disassemble): Fix output. Lines that have no
553 assembly instructions must still be outputted, to keep the source
554 line numbering correct.
555 Remove #ifdef UI_OUT's, they are useless.
557 1999-12-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
559 * mi-main.c (gdb_do_disassemble): Don't print a new list in mixed
560 mode, every time. Just do it when we actually encounter a new
563 1999-12-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
565 * mi-cmd-var.c (mi_cmd_var_list_children): Add test for C++ pseudo
566 variable objects (private, public, protected) as these do not have
567 a type and the -var-list-children operation was dumping core.
569 Fri Dec 17 20:23:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
571 * gdbmi.texinfo: Document recommended syntax for options.
573 * mi-main.c (mi_cmd_data_read_memory): Add support for ``-o
575 * gdbmi.texinfo: Document.
577 Wed Dec 15 17:43:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
579 * mi-getopt.h (mi_getopt): Change optarg to a char pointer. Check
581 * mi-cmd-break.c (mi_cmd_break_insert): Update.
583 * mi-main.c (mi_cmd_data_read_memory): Add fields "next-row-addr",
584 "prev-row-addr", "next-page-addr", "prev-page-addr" and a per row
586 * gdbmi.texinfo: Update.
588 Wed Dec 15 01:05:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
590 * mi-cmds.h (mi_cmd_result): Add MI_CMD_CAUGHT_ERROR for when the
593 * mi-main.c (captured_mi_execute_command): When
594 MI_CMD_CAUGHT_ERROR return 0 rethrowing the eror.
596 1999-12-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
598 * mi-cmd-break.c (mi_cmd_break_insert): Remove unused var.
600 * mi-cmd-var.c (mi_cmd_var_update): Remove unused variables.
602 Mon Dec 13 18:43:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
604 * mi-parse.c (mi_parse): Quote the command when printing it.
605 (mi_parse_argv): Fix handling of quoted strings. Was not
607 (mi_parse_argv): Make static.
609 Mon Dec 13 18:30:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
611 * mi-cmds.h (mi_cmd_break_insert, mi_cmd_break_watch): Change type
612 to mi_cmd_argv_ftype.
613 * mi-cmds.c (mi_cmds): Update.
614 * mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Change
615 to new style of arguments with argc and argv. Parse arguments
618 * mi-cmd-break.c (mi_cmd_break_insert): Wrap body in #ifdef UI_OUT
619 to avoid non-ui compile problems.
621 Mon Dec 13 15:08:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
623 * mi-getopt.h, mi-getopt.c: New files. Similar to getopt but with
624 well defined semantics.
626 Mon Dec 13 14:22:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
628 * mi-main.c (mi_cmd_break_insert, mi_cmd_break_watch, enum
629 wp_type, enum bp_type): Move from here.
630 * mi-cmd-break.c: To here. New file.
631 (mi_cmd_break_insert, mi_cmd_break_insert, mi_cmd_break_watch):
632 Use error to report problems.
634 1999-12-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
636 * gdbmi.texinfo: Update description of exec-interrupt.
638 * mi-main.c (mi_cmd_exec_interrupt): If the program is not
639 executing, don't try to interrupt it, but error out instead. Make
640 sure previous_async_command is not null before duplicating it into
643 * gdbmi.texinfo: Add examples for data-evaluate-expression.
645 1999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
647 * mi-cmd-var.c (mi_cmd_var_assign, mi_cmd_var_create,
648 mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
649 mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
650 mi_cmd_var_info_type, mi_cmd_var_list_children,
651 mi_cmd_var_set_format, mi_cmd_var_show_attributes,
652 mi_cmd_var_show_format, mi_cmd_var_update): Change to use new
653 style of arguments with argc and argv.
657 * mi-cmds.c (mi_cmds): Update entries for mi_cmd_var_assign,
658 mi_cmd_var_create, mi_cmd_var_delete,
659 mi_cmd_var_evaluate_expression, mi_cmd_var_info_expression,
660 mi_cmd_var_info_num_children, mi_cmd_var_info_type,
661 mi_cmd_var_list_children, mi_cmd_var_set_format,
662 mi_cmd_var_show_attributes, mi_cmd_var_show_format,
665 * mi-cmds.h (mi_cmd_var_assign, mi_cmd_var_create,
666 mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
667 mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
668 mi_cmd_var_info_type, mi_cmd_var_list_children,
669 mi_cmd_var_set_format, mi_cmd_var_show_attributes,
670 mi_cmd_var_show_format, mi_cmd_var_update): Update declarations.
672 1999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
674 * gdbmi.texinfo: Comment out -data-assign command. * mi-main.c
675 (mi_cmd_data_assign): Do not use, comment out. * mi-cmds.h
676 (mi_cmd_data_assign): Remove. * mi-cmds.c: Remove -data-assign
677 command from MI interface.
679 1999-12-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
681 * mi-parse.c (mi_parse): Add '\n' at end of error messages, so
682 that prompt comes out on new line.
684 * gdbmi.texinfo: Update disassembly command output.
686 1999-12-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
688 * mi-main.c (gdb_do_disassemble): Update output for UI_OUT case.
690 1999-12-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
692 * gdbmi.texinfo: Update exec-until output, including the reason
695 Thu Dec 2 17:17:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
697 * mi-cmds.c: Include <string.h> for memset.
699 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
701 * mi-main.c (mi_cmd_exec_return): ifdef the references to
702 return_command_wrapper().
704 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
706 * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_interrupt,
707 mi_cmd_target_select, mi_execute_async_cli_command,
708 mi_exec_async_cli_cmd_continuation, mi_load_progress): Don't print
709 last_async_command if it is NULL.
710 (mi_cmd_exec_return):
712 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
714 * mi-main.c (mi_cmd_exec_return): Reimplement using
715 return_command() instead of mi_execute_async_cli_command().
717 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
719 * mi-cmds.h: Export mi_cmd_data_assign and
720 mi_cmd_data_evaluate_expression.
722 * mi-cmds.c (mi_cmds): Hook data-assign to mi_cmd_data_assign and
723 data-evaluate-expression to mi_cmd_data_evaluate_expression.
725 * mi-main.c (mi_cmd_data_assign): New function. Implement
727 (mi_cmd_data_evaluate_expression): New function. Implement
728 data-evaluate-expression command.
730 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
732 * gdbmi.texinfo: Fix some texinfo formatting errors.
734 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
736 * gdbmi.texinfo: Update data-list-register-values description.
738 * mi-cmds.h: Export mi_cmd_data_list_register_values.
740 * mi-cmds.c (mi_cmds): Hook data-list-register-values to
741 mi_cmd_data_list_register_values.
743 * mi-main.c (mi_cmd_data_list_register_values): New
744 function. Implements the -data-list-register-values command.
745 (get_register): New function. Output the contents of a given
748 Wed Dec 1 20:27:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
750 * mi-main.c (mi_execute_async_cli_command): Append missing "\n"
751 for synchronous stopped message.
753 1999-11-30 James Ingham <jingham@leda.cygnus.com>
755 * gdbmi.texinfo: Fix obvious typo in @end statement.
757 Wed Dec 1 12:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
759 * mi-cmd-var.c: Include "value.h".
760 * mi-console.c: Include <string.h>.
762 Wed Dec 1 00:21:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
764 * mi-main.c (captured_mi_execute_command): For a CLI command, pass
765 "%s" to mi_execute_cli_command to stop core dumps.
766 (captured_mi_execute_command): Echo CLI commands on gdb_stdlog.
768 Wed Dec 1 00:10:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
770 * gdbmi.texinfo: Explain NR-BYTES and ADDR.
772 Tue Nov 30 23:31:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
774 * mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete,
775 mi_cmd_var_set_format, mi_cmd_var_show_format,
776 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
777 mi_cmd_var_info_type, mi_cmd_var_info_expression,
778 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
779 mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one, next_arg,
780 which_var): New file. Move varobj commands to here from
783 * mi-console.h, mi-console.c (mi_console_file_new,
784 mi_console_file_delete, mi_console_file_fputs,
785 mi_console_raw_packet, mi_console_file_flush): New files. Move
786 mi_console_file to here from mi-main.c.
788 Tue Nov 30 19:37:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
790 * mi-main.c (captured_mi_execute_command): Use fputstr_unfiltered
791 when printing error messages.
792 (mi_cmd_execute): Ditto.
794 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
796 * gdbmi.texinfo: Describe -data-list-changed-registers,
797 -data-list-register-names. Add examples for
798 -exec-next-instruction, exec-step-instruction, -exec-run,
799 -exec-until. Format examples for -data-read-memory.
800 update example for -target-download.
802 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
804 * gdbmi.texinfo: Remove mentioning of inaccurate watchpoint hit
807 Mon Nov 29 19:28:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
809 * mi-main.c (mi_execute_async_cli_command): Return ``enum
810 mi_cmd_cmd_result''. mi_cmd_exec_run, mi_cmd_exec_next,
811 mi_cmd_exec_step, mi_cmd_exec_step_instruction,
812 mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return,
813 mi_cmd_exec_continue): Update call.
814 (mi_execute_async_cli_command): When target is synchronous, fake
815 asynchronous behavour (ulgh). Allows tests to be run on built-in
816 simulator and native targets.
818 Mon Nov 29 15:15:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
820 * mi-cmds.h (mi_cmd_gdb_exit), mi-cmds.c (mi_cmds), mi-main.c
821 (mi_cmd_gdb_exit): Change function signature to mi_cmd_argv_ftype.
823 1999-11-28 Andew Cagney <cagney@rat-in-a-hat.cygnus.com>
825 * mi-parse.c: Include <ctype.h> and <string.h>
827 1999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
829 * gdbmi.texinfo: Added watchpoint command descriptions and
832 * mi-main.c (mi_load_progress): Add parameter for total sent so far.
835 Fri Nov 26 10:17:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
837 * gdbmi.texinfo (section Output Syntax): For lists, the <string>
838 part of a <result> is optional. Clarify syntax.
839 (appendix Proposed v2.0 Output Syntax): New section. Provide
840 record of discussion of possible changes to syntax.
842 Wed Nov 24 19:41:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
844 * mi-main.c (mi_cmd_data_read_memory): Simplify. Fix coredump
845 when arguments were bad.
846 (mi_cmd_execute): Change parameter to ``struct mi_parse''. Handle
847 case of argv_func as well as args_func.
848 (captured_mi_execute_command): Update.
850 * mi-cmds.c (struct mi_cmd): Add field for mi_cmd_argv_ftype.
851 (mi_cmds): Update mi_cmd_data_read_memory.
854 * mi-cmds.h (mi_cmd_args_ftype): Rename mi_cmd_ftype. Make all
855 functions of type this type.
856 (mi_cmd_argv_ftype): Declare.
857 (mi_cmd_data_read_memory): Change type to mi_cmd_argv_fytpe.
858 (struct mi_cmd): Move declaration to here from mi-cmds.c.
859 (mi_lookup): Return a pointer to ``struct mi_cmd''.
861 Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
863 * mi-parse.c (mi_parse): Initialize TOKEN when a CLI command.
865 * gdbmi.texinfo: Allow a <token> before a CLI command.
867 * mi-parse.h (struct mi_parse): Declare.
868 (mi_parse): Change to return a ``struct mi_parse''.
869 (enum mi_command_type): Delete PARSE_ERROR.
871 * mi-main.c (struct mi_execute_command_context): Delete.
872 (captured_mi_execute_command): Update
873 (mi_execute_command): Update. Check for mi_parse returning NULL.
875 Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
877 * mi-parse.h: Remove const, from cmd parameter. Causes cascading
880 Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
882 * mi-parse.c (mi_parse): New function. Move parse code to here.
883 * mi-main.c (parse): From here. Delete.
885 Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
887 * mi-parse.c, mi-parse.h: New files. Implement mi_parse_env.
889 Wed Nov 24 11:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
891 * mi-out.c (mi_field_string): Make string parameter constant.
893 1999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
895 * mi-cmds.h (mi_cmd_target_download): Export.
897 * mi-cmds.c (mi_cmds): Add mi_cmd_target_download.
899 * mi-main.c: Include <sys/time.h>.
900 (mi_cmd_target_download): New function, implement the
901 target-download command.
902 (mi_load_progress): New function. Called via the
903 show_load_progress hook. Prints updates every 0.5 secs.
904 (mi_command_loop): Initialize the show_load_progress hook.
906 1999-11-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
908 * mi-main.c (mi_cmd_exec_until): New function. Implement until
910 (mi_cmd_exec_step_instruction): New function. Implement stepi
912 (mi_cmd_exec_next_instruction): New function. Implement nexti
915 * mi-cmds.c (mi_cmds): Add mi_cmd_exec_step_instruction,
916 mi_cmd_exec_next_instruction, mi_cmd_exec_until.
918 * mi-cmds.h (mi_cmd_exec_step_instruction,
919 mi_cmd_exec_next_instruction, mi_cmd_exec_until): Export.
921 Tue Nov 23 00:30:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
923 * mi/gdbmi.texinfo: Document -data-read-memory.
925 * mi-main.c (mi_cmd_data_read_memory): Fix off-by-one check of
927 (mi_cmd_data_read_memory): Label the output table with "memory".
929 Thu Nov 18 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
931 * mi-main.c (mi_cmd_exec_interrupt, mi_cmd_break_insert,
932 mi_cmd_break_watch, mi_cmd_disassemble, mi_cmd_execute): Replace
935 Thu Nov 18 20:50:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
937 * mi-main.c (mi_cmd_data_read_memory): New function. Implement
940 * mi-cmds.h, mi-cmds.c: Add mi_cmd_data_read_memory.
941 * mi-cmds.c (mi_cmds): Ditto.
943 1999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
945 * mi-cmds.h (mi_cmd_break_watch): Export.
947 * mi-cmds.c (mi_cmds): Hook up break-watch to function
950 * mi-main.c (wp_type): New enumeration for the possible types of
952 (mi_cmd_break_watch): New function, implements the break-watch
955 1999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
957 * mi-main.c (mi_cmd_break_insert): Handle case in which the command is
958 just a -break-insert w/o args.
960 Fri Nov 12 00:01:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
962 * mi-out.c (mi_field_string): Always quote the string.
964 1999-11-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
966 * mi-cmds.h(mi_cmd_data_list_changed_registers,
967 mi_cmd_data_list_register_names): Export.
969 * mi-cmds.c (mi_cmds): Hook up data-list-changed-registers to
970 mi_cmd_data_list_changed_registers and data-list-register-names to
971 mi_cmd_data_list_register_names.
973 * mi-main.c (mi_cmd_data_list_changed_registers): New function,
974 implements the data-list-changed-registers command.
975 (mi_cmd_data_list_register_names): New function, implements the
976 data-list-register-names command.
977 (register_changed_p): New function. Decide whether the register
978 contents have changed.
979 (setup_architecture_data): New function. Initialize registers
981 (_initialize_mi_main): Call setup_architecture_data(), and
982 register_gdbarch_swap().
984 Wed Nov 10 18:35:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
986 * mi-main.c (mi_execute_command): Correctly quote error messages.
988 Wed Nov 10 11:05:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
990 * mi/gdbmi.texinfo: Delete <stream-output>. Replaced by
993 * mi-main.c (mi_console_raw_packet): Always quote console output.
995 Tue Nov 9 17:53:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
997 * mi-main.c (mi_console_file_new), mi-out.c (mi_out_new): Replace
998 the tui_file with a mem_file. Ya!
1000 * mi-out.c (do_write): New function, wrapper to gdb_file_write.
1001 (mi_out_put): Pass do_write to gdb_file_put.
1003 * mi-main.c (mi_console_file_flush): Rewrite. Use
1004 mi_console_raw_packet to send data to the console.
1005 (mi_console_raw_packet): New function. Correctly
1006 create quoted C string packets.
1008 1999-11-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1010 * mi-cmds.c (mi_cmds): Break-insert is now implemented by
1011 mi_cmd_break_insert.
1012 * mi-cmds.h (mi_cmd_break_insert): Export.
1013 * mi-main.c (bp_type): New enumeration.
1014 (mi_cmd_break_insert): New function. Implements all flavors of
1015 breakpoint insertion.
1017 Mon Nov 8 17:49:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
1019 * mi-main.c (mi_console_file_flush): Replace gdb_file_get_strbuf
1020 with tui_file_get_strbuf.
1022 Fri Nov 5 17:06:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1024 * mi-main.c (mi_console_file_delete, mi_console_file_fputs,
1025 mi_console_file_flush): Call internal_error instead of error.
1027 Thu Nov 4 19:53:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1029 * mi-main.c (captured_mi_execute_command): New function.
1030 (mi_execute_command): Rewrite. Replace SET_TOP_LEVEL() with call
1031 to captured_mi_execute_command via catch_errors.
1033 Thu Nov 4 20:33:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1035 * mi-main.c (clean): Delete.
1036 (mi_command_loop): Delete extern declaration of
1039 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1041 * mi-main.c (mi_cmd_stack_select_frame): Conditionalize the body
1042 on UI_OUT, because select_frame_command_wrapper is only defined if
1044 (mi_cmd_exec_interrupt): Conditionalize the body on UI_OUT,
1045 because interrupt_target_command_wrapper is only defined if UI_OUT is.
1047 * mi-cmds.c (mi_cmds): Implement command exec-interrupt by
1048 mi_cmd_exec_interrupt.
1050 * mi-main.c (mi_cmd_exec_interrupt): New function. Implements
1051 exec-interrupt command.
1052 (mi_cmd_execute): If the target is running save execution command
1053 token in previous_async_command. If the command is not 'interrupt'
1054 and the target is running, reject it.
1055 (clean): New function. Free the arg and reset it to NULL.
1057 * mi-cmds.h (mi_cmd_exec_interrupt):Export.
1059 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1061 * mi-cmds.c (mi_cmds): Implement command stack-select-frame by
1062 mi_cmd_stack_select_frame.
1064 * mi-main.c (mi_cmd_stack_select_frame): New function. Implements
1065 stack-select-frame command.
1067 * mi-cmds.h (mi_cmd_select_frame):Export.
1069 1999-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1071 * mi-cmds.c (mi_cmds): Implement commands stack-list-locals and
1072 stack-list-arguments by mi_cmd_stack_list_locals and
1073 mi_cmd_stack_list_args.
1075 * mi-main.c (mi_cmd_stack_list_locals): New function. Implements
1076 stack-list-locals command.
1077 (mi_cmd_stack_list_args): New function. Implements
1078 stack-list-arguments command.
1079 (list_args_or_locals): New function. Do all the work for the
1080 listing of locals or arguments.
1082 * mi-cmds.h (mi_cmd_stack_list_args,mi_cmd_stack_list_locals) :
1085 1999-10-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1087 * mi-cmds.c (mi_cmds): Add new command stack-info-depth.
1089 * mi-main.c (mi_cmd_stack_info_depth): New function. Implements
1090 the stack-info-depth command.
1091 * mi-cmds.h (mi_cmd_stack_info_depth): Export.
1094 1999-10-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1096 * mi-main.c (mi_execute_command): Handle MI_CMD_ERROR case
1097 properly, for command that return error code and don't set
1100 * mi-cmds.c (mi_cmds): Hook stack-list-frames command to
1101 mi_cmd_stack_list_frames function.
1102 * mi-cmds.h (mi_cmd_stack_list_frames): Export.
1104 * mi-main.c (mi_execute_command): Deal with a return code of
1105 MI_CMD_ERROR from the execution of mi commands.
1106 (mi_error_message): Static string variable, to contain the error
1107 message from mi commands.
1108 (mi_cmd_stack_list_frames): New function. Prints a backtrace.
1110 1999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1112 * mi-main.c (mi_cmd_disassemble): Handle the new command line
1113 parameter that specifies the number of disassembly lines to be
1115 (gdb_do_disassemble): Add new parameter. Count the number of lines
1116 that have been displayed, and stop when limit is reached.
1118 Wed Oct 13 18:04:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
1120 * mi-main.c (mi_command_loop): Don't initialize ``flush_hook''.
1122 1999-10-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1124 * mi/gdbmi.texinfo: More reformatting of the grammars.
1126 1999-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1128 * mi/gdbmi.texinfo: More TeX formatting.
1130 1999-10-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1132 * mi/gdbmi.texinfo: First pass completed. All commands should have
1134 Escape '@' output special char.
1137 1999-10-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1139 * mi/gdbmi.texinfo: Filled in part of file command section, and
1142 1999-10-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1144 * mi/gdbmi.texinfo: Filled in some sections about execution
1147 Tue Oct 5 15:27:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1149 * mi-cmds.h: Sort table
1151 (MI_TABLE_SIZE): Increase to 251.
1153 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1155 * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete): Add missing
1158 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1160 * mi-main.c (next_arg): Returns lenght as well.
1161 (which_var, mi_cmd_var_create, mi_cmd_var_delete,
1162 mi_cmd_var_set_format, mi_cmd_var_update): Do not modify the input
1163 string, use allocated storage instead.
1164 (mi_cmd_var_assign): Adjust call to next_arg() to include new
1167 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1169 * mi-main.c (mi_execute_command): Fix handling of errors.
1171 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1173 * mi-out.c (mi_out_new): Call tui_sfileopen() instead of
1174 deprecated gdb_file_init_astream().
1175 * mi-main.c (mi_console_file_new): Ditto.
1177 Mon Oct 4 15:17:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1179 * mi-cmds.h: Sort function declarations.
1180 (mi_lookup): Add extern.
1182 * mi-cmds.c (mi_lookup): Delete dead code.
1183 (build_table): Call internal_error instead of error.
1184 (build_table): Send trace output to gdb_stdlog.
1186 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1188 * mi-main.c (mi_execute_async_cli_command): Don't do the cleanups
1189 if target_executing is null.
1191 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1193 * mi-main.c (async_p): Change var name to event_loop_p.
1195 Mon Sep 27 15:11:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1197 * mi-main.c (mi_execute_async_cli_command, mi_execute_command):
1198 Replace target_has_async with function target_can_async_p.
1200 Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1202 * mi-main.c (mi_cmd_target_select_continuation): Delete function.
1203 (mi_cmd_target_select): Simplify. target-connect is guarenteed to
1206 Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1208 * mi-cmds.h (mi_cmd_ftype): Replace mi_impl_ftype.
1209 (enum mi_cmd_result): Define.
1210 * mi-cmds.c (struct mi_cmd): Update.
1211 (mi_lookup): Update.
1212 * mi-main.c (mi_cmd_execute): Update.
1214 * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_run, mi_cmd_exec_next,
1215 mi_cmd_exec_step, mi_cmd_target_select, mi_cmd_exec_continue,
1216 mi_cmd_exec_return, mi_cmd_exec_finish, mi_cmd_disassemble,
1217 mi_cmd_var_create, mi_cmd_var_delete, mi_cmd_var_set_format,
1218 mi_cmd_var_show_format, mi_cmd_var_info_num_children,
1219 mi_cmd_var_list_children, mi_cmd_var_info_type,
1220 mi_cmd_var_info_expression, mi_cmd_var_show_attributes,
1221 mi_cmd_var_evaluate_expression, mi_cmd_var_update): Update.
1224 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
1226 * mi-main.c (mi_cmd_var_create): Use paddr() to format address
1229 1999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1231 * mi-main.c (mi_cmd_var_create): Test for varobjdebug before
1232 printing trace and send it to gdb_stdlog.
1234 Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1236 * Makefile.in (mi-out.o): Add dependency list.
1237 * mi-out.c: Include "mi-out.h".
1239 1999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1241 * mi-main.c (_initialize_mi_main): Events on stadin are now
1242 handled by stdin_event_handler.
1244 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1246 * mi-cmds.c (mi_cmds): Add var-* commands.
1248 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1250 * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete,
1251 mi_cmd_var_set_format, mi_cmd_var_show_format,
1252 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
1253 mi_cmd_var_info_type, mi_cmd_var_info_expression,
1254 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
1255 mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one,
1256 which_var, next_arg): New functions. Implement the -var-*
1258 * mi-cmds.h: Add prototypes for the above.
1260 1999-09-14 Fernando Nasser <fnasser@totem.to.cygnus.com>
1262 * mi-cmds.c (mi_cmds): Add detach command.
1264 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1266 * mi-cmds.c (lookup_table): Fix typo.
1268 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1270 * mi-cmds.c (mi_cmds): Fix typo and missing command.
1272 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1274 * mi-main.c: Properly align function prototypes.
1275 (mi_cmd_target_select): Proper check for NULL value.
1277 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1279 * mi-main.c (mi_execute_async_cli_command): Fix for native targets
1280 that do not have async yet.
1282 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1284 * mi-main.c (mi_cmd_disassemble): Remove unused var.
1285 (gdb_do_disassemble): Ditto.
1287 1999-08-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1289 * mi-main.c: Replace all the occurrences of 'asynch' in variable
1290 or function names with 'async' to make it consistent with the rest
1293 Mon Aug 30 18:16:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1295 * mi-main.c: #include <ctype.h> for isspace().
1297 1999-08-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1299 * mi-main.c (gdb_do_disassemble): This function returns void, not
1302 1999-08-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1304 * mi-main.c (mi_cmd_disassemble): Don't use atoi() on the high
1305 address string, just treat it same as address low.
1306 (gdb_do_disassemble): Parse high_address string before seeing if
1309 1999-08-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1311 * mi-main.c (mi_cmd_disassemble): New function to produce
1312 disassembly output for mi.
1313 (gdb_dis_asm_read_memory): New function. Read the disassembly from
1314 the executable file, instead of target memory.
1315 (compare_lines): New function. Compare order of disassembly lines.
1316 (gdb_do_disassemble): New function. Do the real job of getting the
1319 * mi-cmds.c (mi_cmds): Do data-disassemble mi command via the
1320 mi_cmd_disassemble function.
1322 * mi-cmds.h: Export new function mi_cmd_disassemble.
1324 Wed Aug 25 15:58:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1326 * mi-main.c (mi_command_loop): Remove references to ui-hooks.
1328 1999-08-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1330 * mi-main.c (mi_execute_asynch_cli_command): Fix the incorrect
1331 usage of strcat(): allocate enough space for the string.
1333 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1335 From Christopher Faylor <cgf@cygnus.com>
1336 * mi-main.c (mi_execute_command): Make sure we flush all the
1337 output after each command.
1339 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1341 * mi-main.c (_initialize_mi_main): Remove casting in call to
1344 Sun Aug 8 17:20:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1346 * mi-main.c (mi_cmd_target_select, mi_execute_asynch_cli_command):
1347 Replace call to fatal with call to internal_error.
1349 1999-07-26 Fernando Nasser <fnasser@totem.to.cygnus.com>
1351 * mi-main.c (mi_cmd_execute): Add return code.
1352 (mi_execute_command): Make appropriate changes when calling the
1353 function mentioned above.
1354 (mi_cmd_gdb_exit, mi_cmd_target_select,
1355 mi_cmd_target_select_continuation, mi_execute_command,
1356 mi_exec_asynch_cli_cmd, mi_exec_asynch_cli_cmd_continuation):
1357 Print token, prefix, class and output (if any) in one single group
1359 (mi_execute_command, mi_cmd_execute): Fix error prefix.
1360 (mi_cmd_execute): Use exec cleanup for token.
1361 * mi-out.c (mi_out_rewind): New function.
1362 * mi-out.h: Prototype for the above.
1364 1999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1366 * mi-main.c (mi_cmd_gdb_exit): Use buffer for exit message.
1367 (mi_cmd_execute): Route error messages to correct file.
1368 (mi_execute_asynch_cli_command): Insert line feed after running
1371 1999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1373 * mi-out.h (mi_out_buffered): Add extern declaration.
1374 * mi-out.c (mi_out_buffered): New function. Insert a string at the
1375 current buffer position.
1376 * mi-main.c (mi_cmd_target_select, mi_execute_command,
1377 mi_cmd_execute, mi_execute_asynch_cli_command): Use the above
1378 function instead of printing to raw_stdout.
1379 (mi_cmd_target_select, mi_cmd_target_select_continuation,
1380 mi_execute_command, mi_cmd_execute, mi_execute_cli_command,
1381 mi_exec_asynch_cli_cmd_continuation): Fix handling of token and
1383 (mi_execute_cli_command): Remove parameter no longer needed.
1385 1999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1387 * mi-main.c (mi_cmd_target_select_continuation): Print the numeric
1388 token when we are connected.
1389 (mi_execute_command): Don't print the token now, do it later.
1390 (mi_execute_cli_command): Add a new parameter for the numeric
1391 token. Print the token, the prefix and the class after the
1392 command has executed, not before.
1393 (mi_execute_asynch_cli_command): Don't print an extra blank line.
1395 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1397 * mi-main.c (mi_gdb_exit): Add \n at the end.
1399 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1401 * mi-main.c (mi_cmd_execute): New function. Dispatch a mi operation.
1402 (mi_execute_command): Use the above.
1404 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1406 * mi-main.c: Fix identation.
1408 1999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1410 * mi-main.c: Include target.h and inferior.h.
1411 (mi_cmd_target_select): New function to execute the target-select
1413 (mi_cmd_target_select_continuation): New function. Continuation
1414 for the target-select operation.
1415 (mi_execute_command): In case of an MI command which requires
1416 asynchronous execution, do not try to display the result now. If
1417 the execution has to look synchronous don't display the "(gdb)"
1419 (mi_execute_asynch_cli_command): Invoke real asynchronous
1420 commands, set up exec_cleanups, and continuations.
1421 (mi_exec_asynch_cli_cmd_continuation): New function. Continuation
1422 for all the MI execution commands except 'target-select'.
1423 (mi_execute_command): Handle null commands by exiting gdb, instead
1426 * mi-cmds.c (mi_cmds): Hook up -target-select operation to new mi
1429 * mi-cmds.h (mi_cmd_target_select): Add extern declaration.
1431 Thu Jul 15 10:31:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1433 * mi-main.c (struct mi_console_file): Add field ``prefix''.
1434 (mi_console_file_new): Add argument prefix. Initialize prefix
1436 (mi_console_file_flush): Use ``prefix'' instead of "~" as the
1438 (mi_command_loop): Update stream output prefixes. gdb_stdout ==
1439 "~", gdb_stderr / gdb_stdlog == "&", gdb_stdtarg == "@".
1441 1999-07-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
1443 * mi-main.c (ui_out_data): New field first_header. Fix output when
1444 no breakpoints are found.
1445 (mi_table_begin, mi_table_body, mi_table_header): Test for
1447 (mi_table_end): Test for supress_field_separator.
1448 (mi_message): Remove messages from MI output.
1450 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
1452 * mi-cmds.c (mi_cmds[]): Delete gdb-cli operation.
1453 * mi-main.c (parse): Remove ifdefs for cli commands parsing.
1454 (mi-execute-command): Ditto.
1456 Mon Jun 28 13:06:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1458 * mi-out.h: New file.
1459 (mi_out_new, mi_out_put): Move mi specific delcarations to here.
1460 * ui-out.h: From here.
1462 * mi-main.c: Include "mi-out.h".
1464 1999-06-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
1466 * top.c (print_gdb_version): Add the word HEADLESS when output
1467 follows headless format.
1468 (print_command_lines): Fix typo.
1470 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1472 * event-loop.h: Export input_fd.
1473 * mi-main.c (mi_command_loop): Use the event loop if running
1475 (mi_execute_command_wrapper): New function.
1476 (_initialize_mi-main): Set things up for running asynchronously.
1478 1999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
1480 * mi-cmds.c (mi_lookup): Deleted.
1481 (lookup_table): New function. Replaces old mi_lookup() for local
1483 (mi_lookup): New function. External interface for command table
1485 (build_table): New definition.
1486 (mi_cmds[]): Add several command implementations and the gdb-cli
1488 (mi_cmd_execute): Deleted.
1489 * mi-cmds.h: Add type definition for command implementation
1490 function pointers, add declaration for new implementation
1491 functions and a declaration for mi_lookup().
1492 * mi-main.c (mi_execute_asynch_cli_command): New
1493 function. Captures code that was repeated for all asynch
1495 (mi_cmd_exec_*): Use the above new function.
1496 (mi_gdb_cmd_exit): Fix the output, printing something appropriate.
1497 (mi_cmd_exec_finish): New operation implementation function.
1498 (mi_cmd_exec_return): Ditto.
1499 (parse): Prepare to remove cli commands.
1500 (mi_execute_command): Fix the output and change the way mi-cmds is
1503 1999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
1505 * mi-out.c (mi_table_begin): Add missing field separator call.
1507 Thu Jun 17 21:05:40 1999 Fernando Nasser <fnasser@tofu.to.cygnus.com>
1509 * breakpoint.c (breakpoint_1): Remove space in breakpoint table
1511 (mention): Use ui_out for last new line (forgotten).
1513 1999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1515 * mi-main.c (mi_console_file_flush): Prevent prefix printing when
1516 buffer empty; change prefix to '~'.
1517 (mi_cmd_exec_*): Prefix normal output with '^' instead of
1518 ','; remove unwanted new lines before "stopped".
1520 1999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1522 * mi-cmds.c (struct mi_cmds): Updated entries for -exec-continue
1523 and exec-next operations.
1524 (mi_cmd_execute): New text for error messages.
1525 * mi-cmds.h: Add declaration for mi_cmd_exec_next and
1526 mi_cmd_exec_continue.
1527 * mi-main.c (mi_cmd_exec_next): New function. Implements exec-next
1529 (mi_cmd_exec_continue): New function. Implements exec-continue
1531 (mi_execute_comand): Add missing space to prompt.
1532 (mi_cmd_exec_run): Ditto.
1533 (mi_cmd_exec_step): Ditto.
1534 * mi-out.c (mi_out_new): Add flags argument to ui_out_new call.
1535 (ui_list_end): Reset supress_field_separator flag.
1537 Sat Jun 12 11:49:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
1539 * mi-cmds.h. mi-cmds.c (exec step): Command implemented by
1540 mi_cmd_exec_step instead of cli call.
1541 * mi-main.c (mi_cmd_exec_step): New function.
1543 * mi-cmds.h. mi-cmds.c (exec run): Command implemented by
1544 mi_cmd_exec_run instead of cli call.
1545 * mi-main.c (mi_cmd_exec_run): New function.
1547 * mi-cmds.h. mi-cmds.c (gdb exit): Command implemented by
1548 mi_cmd_gdb_exit instead of quit_force.
1549 * mi-main.c (mi_cmd_gdb_exit): New function.
1551 Sat Jun 12 11:33:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
1553 * mi-main.c (mi_command_loop): Pass mi_input to
1554 simplified_command_loop.
1555 (mi_input): New function. Calls gdb_readline with no prompt.
1557 Sat Jun 12 11:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1559 * mi-main.c (mi_console_file_fputs): Re-implement. Use a buffer
1560 to accumulate output.
1562 * mi-main.c (struct mi_console_file): Add a buffer.
1563 (mi_console_file_new): Create a buffer.
1564 (mi_console_file_flush): New function.
1566 Sat Jun 12 10:59:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1568 * mi-cmds.h (raw_stdout): Declare. Will be moved later.
1569 * mi-cmds.c (mi_cmd_execute): Send error messages to RAW stdout.
1570 (mi_cmds): Sort by class.
1572 * mi-main.c (raw_stdout): Make global.
1573 * mi-main.c: Remove #ifdef UI_OUT. File assumes UI_OUT is
1575 * mi-main.c: Include "gdb_string.h".
1576 (mi_out_put): Delete declaration.
1578 1999-06-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
1580 * mi-main.c: Add pre-processor test for UI_OUT.
1581 (mi_execute_command): Add pre-processor test for UI_OUT.
1583 Fri Jun 11 23:11:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
1585 * mi-main.c (raw_stdout): New variable.
1586 (mi_execute_command): Write mi-out direct to raw_stdout.
1587 (mi_command_loop): Create raw_stdout. Attach gdb_stdout to the
1589 (mi_console_file_fputs, mi_console_file_delete,
1590 mi_console_file_new): New functions.
1591 (struct mi_console_file): Declare.
1593 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1595 * mi-main.c (mi_execute_command): Call mi_out_put to display the
1597 * mi-out.c (mi_out_put): New function.
1598 * ui-out.h (mi_out_put): Add declare. Will move later.
1599 * Makefile.in (mi-cmds.o, mi-main.o): Add dependency on ui-out.h.
1601 * mi-out.c (mi_field_string, mi_field_fmt, mi_message, mi_flush,
1602 out_field_fmt, list_open, list_close): Replace gdb_stdout with
1604 (field_separator, list_open, list_close): Add uiout parameter.
1605 (mi_table_begin, mi_table_body, mi_table_end, mi_list_begin,
1606 mi_list_end, mi_field_string, mi_field_fmt, out_field_fmt,
1607 out_field_fmt): Update.
1609 * mi-out.c (mi_out_new): Initialize supress_field_separator.
1610 (supress_field_separator): Move into mi-out local data object.
1611 (mi_table_begin, mi_list_begin, field_separator): Update.
1613 Fri Jun 11 16:08:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1615 * mi-out.c (mi_out_new): New function, replace init_mi_out.
1616 * mi-main.c (mi_command_loop): Call mi_out_new().
1618 * ui-out.h (mi_out_new): Add declaration. Will move later.
1619 (mi_ui_out_impl): Delete.
1621 Wed Jun 9 16:42:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
1623 * mi-main.c: Include "ui-hooks.h".
1624 (mi_init_ui, mi_command_loop): New functions.
1625 (_initialize_mi_main): Install ``mi'' as the interpreter when
1628 Mon Jun 7 18:43:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1630 From Fernando Nasser <fnasser@totem.to.cygnus.com>
1631 * mi-cmds.c (build_table): Clean up error message.
1632 * mi-cmds.c (mi_cmd_execute), mi-main.c (mi_execute_command): Only
1633 print debug information when mi_debug_p.
1634 * mi-cmds.h (mi_debug_p), mi-main.c: Global, control debug messages.
1636 Thu Jun 3 00:44:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1638 From Fernando Nasser <fnasser@totem.to.cygnus.com>:
1639 * mi-cmds.c: Add CLI definitions for "exec-arguments",
1640 "exec-next", "gdb-exit", "break-list", "break-info", "exec-step"
1641 and "stack-list-frames" to mi_cmds.
1642 (struct mi_command): Add ``from_tty'' argument to func.
1643 * mi-cmds.h (quit_force): Declare.
1645 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
1647 * mi-out.c (mi_table_end): Remove unwanted "\n".
1649 Thu May 27 14:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1651 * top.c: Include "ui-hooks.h".
1652 (call_interp_loop): Tempoary. Pass mi_execute_command to
1653 simplified_command_loop. Initialize gdb_stdout & gdb_stderr to
1654 stdio gdb_file streams. Force all hooks to null.
1656 * mi-cmds.h, mi-main.c, mi-cmds.c: New files.
1657 * Makefile.in (SFILES): Add mi-main.c, mi-cmds.c
1658 (COMMON_OBS): Add mi-main.o, mi-cmds.o.
1659 (mi_cmds_h): Define.
1661 Wed May 26 12:39:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
1663 * top.c (call_interp_loop): Hack. Add extern declaration for
1666 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
1668 * mi-out.c: New table syntax.
1670 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
1672 mi-out.c (_initialize_mi_out): Add external declaration.
1674 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1676 * mi-out.c (mi_table_begin): Added missing parameter.
1678 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1680 * mi-out.c: Changed table markers and added table id.
1682 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1684 * mi-out.c: New file. Implements low-level ui-out primitives for
1685 CLI-based interaction.
1692 version-control: never