2000-03-01 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / gdb / mi / ChangeLog-mi
CommitLineData
ab91fdd5
AC
1Wed Feb 23 17:09:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
4 mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
5 mi-getopt.h, mi-main.c, mi-out.c, mi-out.h, mi-parse.c,
6 mi-parse.h: Update copyright information.
7
ff844c8d
AC
8Wed Feb 23 13:31:16 2000 Andrew Cagney <cagney@b1.cygnus.com>
9
10 * mi-cmd-disas.c (gdb_dis_asm_read_memory): Change LEN to unsigned
11 long. Match ../include/dis-asm.h change.
12
fb40c209
AC
13Wed Feb 23 10:30:55 2000 Andrew Cagney <cagney@b1.cygnus.com>
14
15 * gdbmi.texinfo: Update copyright - FSF. Update version
16 information.
17
18 mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
19 mi-cmds.h, mi-main.c, mi-parse.c, mi-parse.h: Re-format using GNU
20 indent.
21
222000-02-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
23
24 * mi-main.c: Add include of gdbcore.h for write_memory()
25 prototype.
26
272000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
28
29 * mi-cmd-disas.c (mi_cmd_disassemble): Change syntax of
30 command. Now use options.
31 Instead of printing the symbolic address of instructions via
32 print_address_symbolic(), use build_address_symbolic() and format
33 properly for output.
34 (gdb_do_disassmble): Delete.
35
362000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
37
38 * mi-cmd-disas.c (mi_cmd_disassemble):
39
402000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
41
42 * mi-main.c (mi_cmd_data_write_memory): New function. Write a
43 value into target memory.
44
45 * mi-cmds.h (mi_cmd_data_write_memory): Export.
46
47 * mi-cmds.c (mi_cmds): Hook up data-write-memory to
48 mi_cmd_data_write_memory().
49
502000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
51
52 * mi-main.c (mi_cmd_target_download): Correct error message to
53 report right function name.
54 (mi_cmd_target_select): Add doing exec cleanups at end.
55 (mi_cmd_data_read_memory): Correct typo.
56 (mi_cmd_execute): Do not simply free last_async_command, but reset
57 it to NULL as well.
58 (free_and_reset): New function, free the argument and set it to
59 NULL.
60 (mi_cmd_target_select_continuation): Delete prototype.
61
62Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
63
64 * mi-cmd-disas.c, mi-cmds.h, mi-console.c, mi-console.h,
65 mi-main.c, mi-out.c, mi-out.h: Update to reflect rename of
66 gdb-file / GDB_FILE to ui-file / ``struct ui_file''.
67
68Mon Jan 31 18:33:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
69
70 * mi-main.c (mi_command_loop): Delete reference to
71 fputs_unfiltered_hook.
72
732000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
74
75 * mi-cmds.c (mi_cmds): Update entries for
76 mi_cmd_data_list_register_names,
77 mi_cmd_data_list_changed_registers,
78 mi_cmd_data_list_register_values.
79
80 * mi-cmds.h (mi_cmd_data_list_register_names,
81 mi_cmd_data_list_changed_registers,
82 mi_cmd_data_list_register_values): Update to mi_cmd_argv_ftype.
83
84 * mi-main.c (mi_cmd_data_list_register_names,
85 mi_cmd_data_list_changed_registers,
86 mi_cmd_data_list_register_values): Update to use argc, argv
87 parameters.
88
892000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
90
91 * mi-main.c (mi_cmd_data_read_memory): Correct the computation of
92 next-row.
93
942000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
95
96 * mi-cmd-var.c (mi_cmd_var_create): Test for NULL type.
97 (mi_cmd_var_set_format, mi_cmd_var_show_format,
98 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
99 mi_cmd_var_info_type, mi_cmd_var_info_expression,
100 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
101 mi_cmd_var_assign, mi_cmd_var_update): Prevent possibility of memory
102 leak on error.
103
1042000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
105
106 * mi-out.c (mi_field_string): Test for NULL string pointer.
107
1082000-01-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
109
110 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Call
111 print_frmae_info() with the correct arguments.
112
113 * mi-main.c (mi_cmd_exec_return): Call
114 show_and_print_stack_frame() with LOC_AND_ADDRESS, so it does the
115 right thing. Update Copyright.
116
1172000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
118
119 * mi-main.c: Move disassemble commands from here.
120
121 * mi-cmd-disas.c: To here. New file.
122
1232000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
124
125 * mi-cmd-stack.c: Remove include of mi-out.h.
126
127 * mi-main.c (mi_cmd_disassemble): Update function to use argc/argv
128 interface.
129
130 * mi-cmds.h: Ditto.
131
132 * mi-cmds.c: Ditto.
133
1342000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
135
136 * gdbmi.texinfo: Update stack commands descriptions.
137 Add thread commands descriptions and examples.
138
139 * mi-main.c (mi_cmd_thread_list_ids): Fix typo.
140
1412000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
142
143 * mi-main.c (mi_cmd_thread_list_ids): New function, print a list
144 of currently known threads ids, and the total number of threads.
145 (mi_cmd_thread_select): New function. Switch current thread.
146
147 * mi-cmds.c (mi_cmds): Implement thread-list-ids by
148 mi_cmd_thread_list_ids, and thread-select by mi_cmd_thread_select.
149
150 * mi-cmds.h (mi_cmd_thread_select, mi_cmd_thread_list_ids): Export.
151
1522000-01-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
153
154 * mi-main.c: Move stack commands from here.
155
156 * mi-cmd-stack.c: To here. New file.
157
1582000-01-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
159
160 * mi-main.c (list_args_or_locals): Add a new paramter, the frame
161 for which to display args or locals. Don't use selected_frame
162 anymore, use the new parameter instead. Return void instead of
163 mi_cmd_result, let callers do so.
164 (mi_cmd_stack_list_args): Change interface. Now accept low and
165 high frame numbers to display args for a range of frames. Without
166 these two, display args for the whole stack.
167 (mi_cmd_stack_list_locals): Adapt to new interface for
168 list_args_or_locals.
169
1702000-01-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
171
172 * mi-main.c (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
173 mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
174 mi_cmd_stack_select_frame): Change to use argv type of parameters.
175
176 * mi-cmds.c (mi_cmds): Change stack-info-depth,
177 stack-list-arguments, stack-list-frames, stack-list-locals,
178 stack-select-frame to use argv parameters.
179
180 * mi-cmds.h (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
181 mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
182 mi_cmd_stack_select_frame): Update definitions.
183
184Tue Jan 4 12:38:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
185
186 * mi-main.c (mi_command_loop): Force the MI interface to use seven
187 bit strings.
188 * gdbmi.texinfo: Make it clear that a quoted C string is seven
189 bit.
190
191Thu Dec 30 14:15:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
192
193 * mi-getopt.c (mi_getopt): Rewrite. Allow long options.
194 * mi-getopt.h (struct mi_opt): Declare.
195 (mi_getopt): Update.
196
197 * mi-main.c (mi_cmd_data_read_memory), mi-cmd-break.c
198 (mi_cmd_break_insert, mi_cmd_break_watch): Update.
199
200Wed Dec 29 23:38:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
201
202 * mi-cmd-break.c (mi_cmd_break_insert): Add support for -c
203 <condition>, -i <ignore-count> and -p <thread>.
204 (breakpoint_notify): New function.
205 (mi_cmd_break_insert): Wrap GDB call with callback hooks so that
206 MI is notified when ever a breakpoint is created.
207
208 * gdbmi.texinfo: Update.
209
210Fri Dec 24 11:23:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
211
212 * mi-main.c (gdb_do_disassemble): Strip out more useless #ifdef
213 UI_OUTs.
214
2151999-12-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
216
217 * mi-main.c (gdb_do_disassemble): Fix output. Lines that have no
218 assembly instructions must still be outputted, to keep the source
219 line numbering correct.
220 Remove #ifdef UI_OUT's, they are useless.
221
2221999-12-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
223
224 * mi-main.c (gdb_do_disassemble): Don't print a new list in mixed
225 mode, every time. Just do it when we actually encounter a new
226 source line.
227
2281999-12-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
229
230 * mi-cmd-var.c (mi_cmd_var_list_children): Add test for C++ pseudo
231 variable objects (private, public, protected) as these do not have
232 a type and the -var-list-children operation was dumping core.
233
234Fri Dec 17 20:23:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
235
236 * gdbmi.texinfo: Document recommended syntax for options.
237
238 * mi-main.c (mi_cmd_data_read_memory): Add support for ``-o
239 <offset>''.
240 * gdbmi.texinfo: Document.
241
242Wed Dec 15 17:43:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
243
244 * mi-getopt.h (mi_getopt): Change optarg to a char pointer. Check
245 optind.
246 * mi-cmd-break.c (mi_cmd_break_insert): Update.
247
248 * mi-main.c (mi_cmd_data_read_memory): Add fields "next-row-addr",
249 "prev-row-addr", "next-page-addr", "prev-page-addr" and a per row
250 "addr".
251 * gdbmi.texinfo: Update.
252
253Wed Dec 15 01:05:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
254
255 * mi-cmds.h (mi_cmd_result): Add MI_CMD_CAUGHT_ERROR for when the
256 error is caught.
257
258 * mi-main.c (captured_mi_execute_command): When
259 MI_CMD_CAUGHT_ERROR return 0 rethrowing the eror.
260
2611999-12-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
262
263 * mi-cmd-break.c (mi_cmd_break_insert): Remove unused var.
264
265 * mi-cmd-var.c (mi_cmd_var_update): Remove unused variables.
266
267Mon Dec 13 18:43:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
268
269 * mi-parse.c (mi_parse): Quote the command when printing it.
270 (mi_parse_argv): Fix handling of quoted strings. Was not
271 de-quoting them.
272 (mi_parse_argv): Make static.
273
274Mon Dec 13 18:30:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
275
276 * mi-cmds.h (mi_cmd_break_insert, mi_cmd_break_watch): Change type
277 to mi_cmd_argv_ftype.
278 * mi-cmds.c (mi_cmds): Update.
279 * mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Change
280 to new style of arguments with argc and argv. Parse arguments
281 using mi_getopt.
282
283 * mi-cmd-break.c (mi_cmd_break_insert): Wrap body in #ifdef UI_OUT
284 to avoid non-ui compile problems.
285
286Mon Dec 13 15:08:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
287
288 * mi-getopt.h, mi-getopt.c: New files. Similar to getopt but with
289 well defined semantics.
290
291Mon Dec 13 14:22:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
292
293 * mi-main.c (mi_cmd_break_insert, mi_cmd_break_watch, enum
294 wp_type, enum bp_type): Move from here.
295 * mi-cmd-break.c: To here. New file.
296 (mi_cmd_break_insert, mi_cmd_break_insert, mi_cmd_break_watch):
297 Use error to report problems.
298
2991999-12-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
300
301 * gdbmi.texinfo: Update description of exec-interrupt.
302
303 * mi-main.c (mi_cmd_exec_interrupt): If the program is not
304 executing, don't try to interrupt it, but error out instead. Make
305 sure previous_async_command is not null before duplicating it into
306 last_async_command.
307
308 * gdbmi.texinfo: Add examples for data-evaluate-expression.
309
3101999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
311
312 * mi-cmd-var.c (mi_cmd_var_assign, mi_cmd_var_create,
313 mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
314 mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
315 mi_cmd_var_info_type, mi_cmd_var_list_children,
316 mi_cmd_var_set_format, mi_cmd_var_show_attributes,
317 mi_cmd_var_show_format, mi_cmd_var_update): Change to use new
318 style of arguments with argc and argv.
319 (next_arg): Delete.
320 (which_var): Delete.
321
322 * mi-cmds.c (mi_cmds): Update entries for mi_cmd_var_assign,
323 mi_cmd_var_create, mi_cmd_var_delete,
324 mi_cmd_var_evaluate_expression, mi_cmd_var_info_expression,
325 mi_cmd_var_info_num_children, mi_cmd_var_info_type,
326 mi_cmd_var_list_children, mi_cmd_var_set_format,
327 mi_cmd_var_show_attributes, mi_cmd_var_show_format,
328 mi_cmd_var_update.
329
330 * mi-cmds.h (mi_cmd_var_assign, mi_cmd_var_create,
331 mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
332 mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
333 mi_cmd_var_info_type, mi_cmd_var_list_children,
334 mi_cmd_var_set_format, mi_cmd_var_show_attributes,
335 mi_cmd_var_show_format, mi_cmd_var_update): Update declarations.
336
3371999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
338
339 * gdbmi.texinfo: Comment out -data-assign command. * mi-main.c
340 (mi_cmd_data_assign): Do not use, comment out. * mi-cmds.h
341 (mi_cmd_data_assign): Remove. * mi-cmds.c: Remove -data-assign
342 command from MI interface.
343
3441999-12-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
345
346 * mi-parse.c (mi_parse): Add '\n' at end of error messages, so
347 that prompt comes out on new line.
348
349 * gdbmi.texinfo: Update disassembly command output.
350
3511999-12-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
352
353 * mi-main.c (gdb_do_disassemble): Update output for UI_OUT case.
354
3551999-12-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
356
357 * gdbmi.texinfo: Update exec-until output, including the reason
358 for stopping.
359
360Thu Dec 2 17:17:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
361
362 * mi-cmds.c: Include <string.h> for memset.
363
3641999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
365
366 * mi-main.c (mi_cmd_exec_return): ifdef the references to
367 return_command_wrapper().
368
3691999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
370
371 * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_interrupt,
372 mi_cmd_target_select, mi_execute_async_cli_command,
373 mi_exec_async_cli_cmd_continuation, mi_load_progress): Don't print
374 last_async_command if it is NULL.
375 (mi_cmd_exec_return):
376
3771999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
378
379 * mi-main.c (mi_cmd_exec_return): Reimplement using
380 return_command() instead of mi_execute_async_cli_command().
381
3821999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
383
384 * mi-cmds.h: Export mi_cmd_data_assign and
385 mi_cmd_data_evaluate_expression.
386
387 * mi-cmds.c (mi_cmds): Hook data-assign to mi_cmd_data_assign and
388 data-evaluate-expression to mi_cmd_data_evaluate_expression.
389
390 * mi-main.c (mi_cmd_data_assign): New function. Implement
391 data-assign command.
392 (mi_cmd_data_evaluate_expression): New function. Implement
393 data-evaluate-expression command.
394
3951999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
396
397 * gdbmi.texinfo: Fix some texinfo formatting errors.
398
3991999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
400
401 * gdbmi.texinfo: Update data-list-register-values description.
402
403 * mi-cmds.h: Export mi_cmd_data_list_register_values.
404
405 * mi-cmds.c (mi_cmds): Hook data-list-register-values to
406 mi_cmd_data_list_register_values.
407
408 * mi-main.c (mi_cmd_data_list_register_values): New
409 function. Implements the -data-list-register-values command.
410 (get_register): New function. Output the contents of a given
411 register.
412
413Wed Dec 1 20:27:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
414
415 * mi-main.c (mi_execute_async_cli_command): Append missing "\n"
416 for synchronous stopped message.
417
4181999-11-30 James Ingham <jingham@leda.cygnus.com>
419
420 * gdbmi.texinfo: Fix obvious typo in @end statement.
421
422Wed Dec 1 12:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
423
424 * mi-cmd-var.c: Include "value.h".
425 * mi-console.c: Include <string.h>.
426
427Wed Dec 1 00:21:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
428
429 * mi-main.c (captured_mi_execute_command): For a CLI command, pass
430 "%s" to mi_execute_cli_command to stop core dumps.
431 (captured_mi_execute_command): Echo CLI commands on gdb_stdlog.
432
433Wed Dec 1 00:10:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
434
435 * gdbmi.texinfo: Explain NR-BYTES and ADDR.
436
437Tue Nov 30 23:31:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
438
439 * mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete,
440 mi_cmd_var_set_format, mi_cmd_var_show_format,
441 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
442 mi_cmd_var_info_type, mi_cmd_var_info_expression,
443 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
444 mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one, next_arg,
445 which_var): New file. Move varobj commands to here from
446 mi-main.c.
447
448 * mi-console.h, mi-console.c (mi_console_file_new,
449 mi_console_file_delete, mi_console_file_fputs,
450 mi_console_raw_packet, mi_console_file_flush): New files. Move
451 mi_console_file to here from mi-main.c.
452
453Tue Nov 30 19:37:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
454
455 * mi-main.c (captured_mi_execute_command): Use fputstr_unfiltered
456 when printing error messages.
457 (mi_cmd_execute): Ditto.
458
4591999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
460
461 * gdbmi.texinfo: Describe -data-list-changed-registers,
462 -data-list-register-names. Add examples for
463 -exec-next-instruction, exec-step-instruction, -exec-run,
464 -exec-until. Format examples for -data-read-memory.
465 update example for -target-download.
466
4671999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
468
469 * gdbmi.texinfo: Remove mentioning of inaccurate watchpoint hit
470 count.
471
472Mon Nov 29 19:28:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
473
474 * mi-main.c (mi_execute_async_cli_command): Return ``enum
475 mi_cmd_cmd_result''. mi_cmd_exec_run, mi_cmd_exec_next,
476 mi_cmd_exec_step, mi_cmd_exec_step_instruction,
477 mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return,
478 mi_cmd_exec_continue): Update call.
479 (mi_execute_async_cli_command): When target is synchronous, fake
480 asynchronous behavour (ulgh). Allows tests to be run on built-in
481 simulator and native targets.
482
483Mon Nov 29 15:15:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
484
485 * mi-cmds.h (mi_cmd_gdb_exit), mi-cmds.c (mi_cmds), mi-main.c
486 (mi_cmd_gdb_exit): Change function signature to mi_cmd_argv_ftype.
487
4881999-11-28 Andew Cagney <cagney@rat-in-a-hat.cygnus.com>
489
490 * mi-parse.c: Include <ctype.h> and <string.h>
491
4921999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
493
494 * gdbmi.texinfo: Added watchpoint command descriptions and
495 examples.
496
497 * mi-main.c (mi_load_progress): Add parameter for total sent so far.
498 Print it as well.
499
500Fri Nov 26 10:17:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
501
502 * gdbmi.texinfo (section Output Syntax): For lists, the <string>
503 part of a <result> is optional. Clarify syntax.
504 (appendix Proposed v2.0 Output Syntax): New section. Provide
505 record of discussion of possible changes to syntax.
506
507Wed Nov 24 19:41:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
508
509 * mi-main.c (mi_cmd_data_read_memory): Simplify. Fix coredump
510 when arguments were bad.
511 (mi_cmd_execute): Change parameter to ``struct mi_parse''. Handle
512 case of argv_func as well as args_func.
513 (captured_mi_execute_command): Update.
514
515 * mi-cmds.c (struct mi_cmd): Add field for mi_cmd_argv_ftype.
516 (mi_cmds): Update mi_cmd_data_read_memory.
517 (mi_lookup): Return
518
519 * mi-cmds.h (mi_cmd_args_ftype): Rename mi_cmd_ftype. Make all
520 functions of type this type.
521 (mi_cmd_argv_ftype): Declare.
522 (mi_cmd_data_read_memory): Change type to mi_cmd_argv_fytpe.
523 (struct mi_cmd): Move declaration to here from mi-cmds.c.
524 (mi_lookup): Return a pointer to ``struct mi_cmd''.
525
526Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
527
528 * mi-parse.c (mi_parse): Initialize TOKEN when a CLI command.
529
530 * gdbmi.texinfo: Allow a <token> before a CLI command.
531
532 * mi-parse.h (struct mi_parse): Declare.
533 (mi_parse): Change to return a ``struct mi_parse''.
534 (enum mi_command_type): Delete PARSE_ERROR.
535
536 * mi-main.c (struct mi_execute_command_context): Delete.
537 (captured_mi_execute_command): Update
538 (mi_execute_command): Update. Check for mi_parse returning NULL.
539
540Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
541
542 * mi-parse.h: Remove const, from cmd parameter. Causes cascading
543 warnings.
544
545Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
546
547 * mi-parse.c (mi_parse): New function. Move parse code to here.
548 * mi-main.c (parse): From here. Delete.
549
550Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
551
552 * mi-parse.c, mi-parse.h: New files. Implement mi_parse_env.
553
554Wed Nov 24 11:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
555
556 * mi-out.c (mi_field_string): Make string parameter constant.
557
5581999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
559
560 * mi-cmds.h (mi_cmd_target_download): Export.
561
562 * mi-cmds.c (mi_cmds): Add mi_cmd_target_download.
563
564 * mi-main.c: Include <sys/time.h>.
565 (mi_cmd_target_download): New function, implement the
566 target-download command.
567 (mi_load_progress): New function. Called via the
568 show_load_progress hook. Prints updates every 0.5 secs.
569 (mi_command_loop): Initialize the show_load_progress hook.
570
5711999-11-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
572
573 * mi-main.c (mi_cmd_exec_until): New function. Implement until
574 command.
575 (mi_cmd_exec_step_instruction): New function. Implement stepi
576 command.
577 (mi_cmd_exec_next_instruction): New function. Implement nexti
578 command.
579
580 * mi-cmds.c (mi_cmds): Add mi_cmd_exec_step_instruction,
581 mi_cmd_exec_next_instruction, mi_cmd_exec_until.
582
583 * mi-cmds.h (mi_cmd_exec_step_instruction,
584 mi_cmd_exec_next_instruction, mi_cmd_exec_until): Export.
585
586Tue Nov 23 00:30:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
587
588 * mi/gdbmi.texinfo: Document -data-read-memory.
589
590 * mi-main.c (mi_cmd_data_read_memory): Fix off-by-one check of
591 argc.
592 (mi_cmd_data_read_memory): Label the output table with "memory".
593
594Thu Nov 18 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
595
596 * mi-main.c (mi_cmd_exec_interrupt, mi_cmd_break_insert,
597 mi_cmd_break_watch, mi_cmd_disassemble, mi_cmd_execute): Replace
598 strdup with xstrdup.
599
600Thu Nov 18 20:50:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
601
602 * mi-main.c (mi_cmd_data_read_memory): New function. Implement
603 data-read-memory.
604
605 * mi-cmds.h, mi-cmds.c: Add mi_cmd_data_read_memory.
606 * mi-cmds.c (mi_cmds): Ditto.
607
6081999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
609
610 * mi-cmds.h (mi_cmd_break_watch): Export.
611
612 * mi-cmds.c (mi_cmds): Hook up break-watch to function
613 mi_cmd_break_watch.
614
615 * mi-main.c (wp_type): New enumeration for the possible types of
616 watchpoints.
617 (mi_cmd_break_watch): New function, implements the break-watch
618 command.
619
6201999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
621
622 * mi-main.c (mi_cmd_break_insert): Handle case in which the command is
623 just a -break-insert w/o args.
624
625Fri Nov 12 00:01:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
626
627 * mi-out.c (mi_field_string): Always quote the string.
628
6291999-11-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
630
631 * mi-cmds.h(mi_cmd_data_list_changed_registers,
632 mi_cmd_data_list_register_names): Export.
633
634 * mi-cmds.c (mi_cmds): Hook up data-list-changed-registers to
635 mi_cmd_data_list_changed_registers and data-list-register-names to
636 mi_cmd_data_list_register_names.
637
638 * mi-main.c (mi_cmd_data_list_changed_registers): New function,
639 implements the data-list-changed-registers command.
640 (mi_cmd_data_list_register_names): New function, implements the
641 data-list-register-names command.
642 (register_changed_p): New function. Decide whether the register
643 contents have changed.
644 (setup_architecture_data): New function. Initialize registers
645 memory.
646 (_initialize_mi_main): Call setup_architecture_data(), and
647 register_gdbarch_swap().
648
649Wed Nov 10 18:35:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
650
651 * mi-main.c (mi_execute_command): Correctly quote error messages.
652
653Wed Nov 10 11:05:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
654
655 * mi/gdbmi.texinfo: Delete <stream-output>. Replaced by
656 <c-string>.
657
658 * mi-main.c (mi_console_raw_packet): Always quote console output.
659
660Tue Nov 9 17:53:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
661
662 * mi-main.c (mi_console_file_new), mi-out.c (mi_out_new): Replace
663 the tui_file with a mem_file. Ya!
664
665 * mi-out.c (do_write): New function, wrapper to gdb_file_write.
666 (mi_out_put): Pass do_write to gdb_file_put.
667
668 * mi-main.c (mi_console_file_flush): Rewrite. Use
669 mi_console_raw_packet to send data to the console.
670 (mi_console_raw_packet): New function. Correctly
671 create quoted C string packets.
672
6731999-11-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
674
675 * mi-cmds.c (mi_cmds): Break-insert is now implemented by
676 mi_cmd_break_insert.
677 * mi-cmds.h (mi_cmd_break_insert): Export.
678 * mi-main.c (bp_type): New enumeration.
679 (mi_cmd_break_insert): New function. Implements all flavors of
680 breakpoint insertion.
681
682Mon Nov 8 17:49:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
683
684 * mi-main.c (mi_console_file_flush): Replace gdb_file_get_strbuf
685 with tui_file_get_strbuf.
686
687Fri Nov 5 17:06:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
688
689 * mi-main.c (mi_console_file_delete, mi_console_file_fputs,
690 mi_console_file_flush): Call internal_error instead of error.
691
692Thu Nov 4 19:53:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
693
694 * mi-main.c (captured_mi_execute_command): New function.
695 (mi_execute_command): Rewrite. Replace SET_TOP_LEVEL() with call
696 to captured_mi_execute_command via catch_errors.
697
698Thu Nov 4 20:33:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
699
700 * mi-main.c (clean): Delete.
701 (mi_command_loop): Delete extern declaration of
702 mi_execute_command.
703
7041999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
705
706 * mi-main.c (mi_cmd_stack_select_frame): Conditionalize the body
707 on UI_OUT, because select_frame_command_wrapper is only defined if
708 UI_OUT is.
709 (mi_cmd_exec_interrupt): Conditionalize the body on UI_OUT,
710 because interrupt_target_command_wrapper is only defined if UI_OUT is.
711
712 * mi-cmds.c (mi_cmds): Implement command exec-interrupt by
713 mi_cmd_exec_interrupt.
714
715 * mi-main.c (mi_cmd_exec_interrupt): New function. Implements
716 exec-interrupt command.
717 (mi_cmd_execute): If the target is running save execution command
718 token in previous_async_command. If the command is not 'interrupt'
719 and the target is running, reject it.
720 (clean): New function. Free the arg and reset it to NULL.
721
722 * mi-cmds.h (mi_cmd_exec_interrupt):Export.
723
7241999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
725
726 * mi-cmds.c (mi_cmds): Implement command stack-select-frame by
727 mi_cmd_stack_select_frame.
728
729 * mi-main.c (mi_cmd_stack_select_frame): New function. Implements
730 stack-select-frame command.
731
732 * mi-cmds.h (mi_cmd_select_frame):Export.
733
7341999-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
735
736 * mi-cmds.c (mi_cmds): Implement commands stack-list-locals and
737 stack-list-arguments by mi_cmd_stack_list_locals and
738 mi_cmd_stack_list_args.
739
740 * mi-main.c (mi_cmd_stack_list_locals): New function. Implements
741 stack-list-locals command.
742 (mi_cmd_stack_list_args): New function. Implements
743 stack-list-arguments command.
744 (list_args_or_locals): New function. Do all the work for the
745 listing of locals or arguments.
746
747 * mi-cmds.h (mi_cmd_stack_list_args,mi_cmd_stack_list_locals) :
748 Export.
749
7501999-10-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
751
752 * mi-cmds.c (mi_cmds): Add new command stack-info-depth.
753
754 * mi-main.c (mi_cmd_stack_info_depth): New function. Implements
755 the stack-info-depth command.
756 * mi-cmds.h (mi_cmd_stack_info_depth): Export.
757
758
7591999-10-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
760
761 * mi-main.c (mi_execute_command): Handle MI_CMD_ERROR case
762 properly, for command that return error code and don't set
763 mi_error_message.
764
765 * mi-cmds.c (mi_cmds): Hook stack-list-frames command to
766 mi_cmd_stack_list_frames function.
767 * mi-cmds.h (mi_cmd_stack_list_frames): Export.
768
769 * mi-main.c (mi_execute_command): Deal with a return code of
770 MI_CMD_ERROR from the execution of mi commands.
771 (mi_error_message): Static string variable, to contain the error
772 message from mi commands.
773 (mi_cmd_stack_list_frames): New function. Prints a backtrace.
774
7751999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
776
777 * mi-main.c (mi_cmd_disassemble): Handle the new command line
778 parameter that specifies the number of disassembly lines to be
779 displayed.
780 (gdb_do_disassemble): Add new parameter. Count the number of lines
781 that have been displayed, and stop when limit is reached.
782
783Wed Oct 13 18:04:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
784
785 * mi-main.c (mi_command_loop): Don't initialize ``flush_hook''.
786
7871999-10-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
788
789 * mi/gdbmi.texinfo: More reformatting of the grammars.
790
7911999-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
792
793 * mi/gdbmi.texinfo: More TeX formatting.
794
7951999-10-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
796
797 * mi/gdbmi.texinfo: First pass completed. All commands should have
798 some comments/info.
799 Escape '@' output special char.
800 Reformat for TeX.
801
8021999-10-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
803
804 * mi/gdbmi.texinfo: Filled in part of file command section, and
805 stack section.
806
8071999-10-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
808
809 * mi/gdbmi.texinfo: Filled in some sections about execution
810 commands.
811
812Tue Oct 5 15:27:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
813
814 * mi-cmds.h: Sort table
815 * mi-cmds.c: Ditto.
816 (MI_TABLE_SIZE): Increase to 251.
817
8181999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
819
820 * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete): Add missing
821 cleanups.
822
8231999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
824
825 * mi-main.c (next_arg): Returns lenght as well.
826 (which_var, mi_cmd_var_create, mi_cmd_var_delete,
827 mi_cmd_var_set_format, mi_cmd_var_update): Do not modify the input
828 string, use allocated storage instead.
829 (mi_cmd_var_assign): Adjust call to next_arg() to include new
830 argument.
831
8321999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
833
834 * mi-main.c (mi_execute_command): Fix handling of errors.
835
8361999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
837
838 * mi-out.c (mi_out_new): Call tui_sfileopen() instead of
839 deprecated gdb_file_init_astream().
840 * mi-main.c (mi_console_file_new): Ditto.
841
842Mon Oct 4 15:17:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
843
844 * mi-cmds.h: Sort function declarations.
845 (mi_lookup): Add extern.
846
847 * mi-cmds.c (mi_lookup): Delete dead code.
848 (build_table): Call internal_error instead of error.
849 (build_table): Send trace output to gdb_stdlog.
850
8511999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
852
853 * mi-main.c (mi_execute_async_cli_command): Don't do the cleanups
854 if target_executing is null.
855
8561999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
857
858 * mi-main.c (async_p): Change var name to event_loop_p.
859
860Mon Sep 27 15:11:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
861
862 * mi-main.c (mi_execute_async_cli_command, mi_execute_command):
863 Replace target_has_async with function target_can_async_p.
864
865Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
866
867 * mi-main.c (mi_cmd_target_select_continuation): Delete function.
868 (mi_cmd_target_select): Simplify. target-connect is guarenteed to
869 be synchronous.
870
871Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
872
873 * mi-cmds.h (mi_cmd_ftype): Replace mi_impl_ftype.
874 (enum mi_cmd_result): Define.
875 * mi-cmds.c (struct mi_cmd): Update.
876 (mi_lookup): Update.
877 * mi-main.c (mi_cmd_execute): Update.
878
879 * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_run, mi_cmd_exec_next,
880 mi_cmd_exec_step, mi_cmd_target_select, mi_cmd_exec_continue,
881 mi_cmd_exec_return, mi_cmd_exec_finish, mi_cmd_disassemble,
882 mi_cmd_var_create, mi_cmd_var_delete, mi_cmd_var_set_format,
883 mi_cmd_var_show_format, mi_cmd_var_info_num_children,
884 mi_cmd_var_list_children, mi_cmd_var_info_type,
885 mi_cmd_var_info_expression, mi_cmd_var_show_attributes,
886 mi_cmd_var_evaluate_expression, mi_cmd_var_update): Update.
887 Return MI_CMD_DONE.
888
8891999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
890
891 * mi-main.c (mi_cmd_var_create): Use paddr() to format address
892 on trace output.
893
8941999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
895
896 * mi-main.c (mi_cmd_var_create): Test for varobjdebug before
897 printing trace and send it to gdb_stdlog.
898
899Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
900
901 * Makefile.in (mi-out.o): Add dependency list.
902 * mi-out.c: Include "mi-out.h".
903
9041999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
905
906 * mi-main.c (_initialize_mi_main): Events on stadin are now
907 handled by stdin_event_handler.
908
9091999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
910
911 * mi-cmds.c (mi_cmds): Add var-* commands.
912
9131999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
914
915 * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete,
916 mi_cmd_var_set_format, mi_cmd_var_show_format,
917 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
918 mi_cmd_var_info_type, mi_cmd_var_info_expression,
919 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
920 mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one,
921 which_var, next_arg): New functions. Implement the -var-*
922 commands.
923 * mi-cmds.h: Add prototypes for the above.
924
9251999-09-14 Fernando Nasser <fnasser@totem.to.cygnus.com>
926
927 * mi-cmds.c (mi_cmds): Add detach command.
928
9291999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
930
931 * mi-cmds.c (lookup_table): Fix typo.
932
9331999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
934
935 * mi-cmds.c (mi_cmds): Fix typo and missing command.
936
9371999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
938
939 * mi-main.c: Properly align function prototypes.
940 (mi_cmd_target_select): Proper check for NULL value.
941
9421999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
943
944 * mi-main.c (mi_execute_async_cli_command): Fix for native targets
945 that do not have async yet.
946
9471999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
948
949 * mi-main.c (mi_cmd_disassemble): Remove unused var.
950 (gdb_do_disassemble): Ditto.
951
9521999-08-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
953
954 * mi-main.c: Replace all the occurrences of 'asynch' in variable
955 or function names with 'async' to make it consistent with the rest
956 of gdb.
957
958Mon Aug 30 18:16:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
959
960 * mi-main.c: #include <ctype.h> for isspace().
961
9621999-08-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
963
964 * mi-main.c (gdb_do_disassemble): This function returns void, not
965 int.
966
9671999-08-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
968
969 * mi-main.c (mi_cmd_disassemble): Don't use atoi() on the high
970 address string, just treat it same as address low.
971 (gdb_do_disassemble): Parse high_address string before seeing if
972 it is zero.
973
9741999-08-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
975
976 * mi-main.c (mi_cmd_disassemble): New function to produce
977 disassembly output for mi.
978 (gdb_dis_asm_read_memory): New function. Read the disassembly from
979 the executable file, instead of target memory.
980 (compare_lines): New function. Compare order of disassembly lines.
981 (gdb_do_disassemble): New function. Do the real job of getting the
982 assembly code out.
983
984 * mi-cmds.c (mi_cmds): Do data-disassemble mi command via the
985 mi_cmd_disassemble function.
986
987 * mi-cmds.h: Export new function mi_cmd_disassemble.
988
989Wed Aug 25 15:58:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
990
991 * mi-main.c (mi_command_loop): Remove references to ui-hooks.
992
9931999-08-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
994
995 * mi-main.c (mi_execute_asynch_cli_command): Fix the incorrect
996 usage of strcat(): allocate enough space for the string.
997
9981999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
999
1000 From Christopher Faylor <cgf@cygnus.com>
1001 * mi-main.c (mi_execute_command): Make sure we flush all the
1002 output after each command.
1003
10041999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1005
1006 * mi-main.c (_initialize_mi_main): Remove casting in call to
1007 add_file_handler.
1008
1009Sun Aug 8 17:20:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1010
1011 * mi-main.c (mi_cmd_target_select, mi_execute_asynch_cli_command):
1012 Replace call to fatal with call to internal_error.
1013
10141999-07-26 Fernando Nasser <fnasser@totem.to.cygnus.com>
1015
1016 * mi-main.c (mi_cmd_execute): Add return code.
1017 (mi_execute_command): Make appropriate changes when calling the
1018 function mentioned above.
1019 (mi_cmd_gdb_exit, mi_cmd_target_select,
1020 mi_cmd_target_select_continuation, mi_execute_command,
1021 mi_exec_asynch_cli_cmd, mi_exec_asynch_cli_cmd_continuation):
1022 Print token, prefix, class and output (if any) in one single group
1023 of statements.
1024 (mi_execute_command, mi_cmd_execute): Fix error prefix.
1025 (mi_cmd_execute): Use exec cleanup for token.
1026 * mi-out.c (mi_out_rewind): New function.
1027 * mi-out.h: Prototype for the above.
1028
10291999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1030
1031 * mi-main.c (mi_cmd_gdb_exit): Use buffer for exit message.
1032 (mi_cmd_execute): Route error messages to correct file.
1033 (mi_execute_asynch_cli_command): Insert line feed after running
1034 message.
1035
10361999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1037
1038 * mi-out.h (mi_out_buffered): Add extern declaration.
1039 * mi-out.c (mi_out_buffered): New function. Insert a string at the
1040 current buffer position.
1041 * mi-main.c (mi_cmd_target_select, mi_execute_command,
1042 mi_cmd_execute, mi_execute_asynch_cli_command): Use the above
1043 function instead of printing to raw_stdout.
1044 (mi_cmd_target_select, mi_cmd_target_select_continuation,
1045 mi_execute_command, mi_cmd_execute, mi_execute_cli_command,
1046 mi_exec_asynch_cli_cmd_continuation): Fix handling of token and
1047 prefix.
1048 (mi_execute_cli_command): Remove parameter no longer needed.
1049
10501999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1051
1052 * mi-main.c (mi_cmd_target_select_continuation): Print the numeric
1053 token when we are connected.
1054 (mi_execute_command): Don't print the token now, do it later.
1055 (mi_execute_cli_command): Add a new parameter for the numeric
1056 token. Print the token, the prefix and the class after the
1057 command has executed, not before.
1058 (mi_execute_asynch_cli_command): Don't print an extra blank line.
1059
10601999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1061
1062 * mi-main.c (mi_gdb_exit): Add \n at the end.
1063
10641999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1065
1066 * mi-main.c (mi_cmd_execute): New function. Dispatch a mi operation.
1067 (mi_execute_command): Use the above.
1068
10691999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1070
1071 * mi-main.c: Fix identation.
1072
10731999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1074
1075 * mi-main.c: Include target.h and inferior.h.
1076 (mi_cmd_target_select): New function to execute the target-select
1077 mi operation.
1078 (mi_cmd_target_select_continuation): New function. Continuation
1079 for the target-select operation.
1080 (mi_execute_command): In case of an MI command which requires
1081 asynchronous execution, do not try to display the result now. If
1082 the execution has to look synchronous don't display the "(gdb)"
1083 prompt.
1084 (mi_execute_asynch_cli_command): Invoke real asynchronous
1085 commands, set up exec_cleanups, and continuations.
1086 (mi_exec_asynch_cli_cmd_continuation): New function. Continuation
1087 for all the MI execution commands except 'target-select'.
1088 (mi_execute_command): Handle null commands by exiting gdb, instead
1089 of core dumping.
1090
1091 * mi-cmds.c (mi_cmds): Hook up -target-select operation to new mi
1092 function.
1093
1094 * mi-cmds.h (mi_cmd_target_select): Add extern declaration.
1095
1096Thu Jul 15 10:31:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1097
1098 * mi-main.c (struct mi_console_file): Add field ``prefix''.
1099 (mi_console_file_new): Add argument prefix. Initialize prefix
1100 field.
1101 (mi_console_file_flush): Use ``prefix'' instead of "~" as the
1102 prefix string.
1103 (mi_command_loop): Update stream output prefixes. gdb_stdout ==
1104 "~", gdb_stderr / gdb_stdlog == "&", gdb_stdtarg == "@".
1105
11061999-07-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
1107
1108 * mi-main.c (ui_out_data): New field first_header. Fix output when
1109 no breakpoints are found.
1110 (mi_table_begin, mi_table_body, mi_table_header): Test for
1111 first_header.
1112 (mi_table_end): Test for supress_field_separator.
1113 (mi_message): Remove messages from MI output.
1114
11151999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
1116
1117 * mi-cmds.c (mi_cmds[]): Delete gdb-cli operation.
1118 * mi-main.c (parse): Remove ifdefs for cli commands parsing.
1119 (mi-execute-command): Ditto.
1120
1121Mon Jun 28 13:06:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1122
1123 * mi-out.h: New file.
1124 (mi_out_new, mi_out_put): Move mi specific delcarations to here.
1125 * ui-out.h: From here.
1126
1127 * mi-main.c: Include "mi-out.h".
1128
11291999-06-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
1130
1131 * top.c (print_gdb_version): Add the word HEADLESS when output
1132 follows headless format.
1133 (print_command_lines): Fix typo.
1134
11351999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1136
1137 * event-loop.h: Export input_fd.
1138 * mi-main.c (mi_command_loop): Use the event loop if running
1139 asynchronously.
1140 (mi_execute_command_wrapper): New function.
1141 (_initialize_mi-main): Set things up for running asynchronously.
1142
11431999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
1144
1145 * mi-cmds.c (mi_lookup): Deleted.
1146 (lookup_table): New function. Replaces old mi_lookup() for local
1147 use.
1148 (mi_lookup): New function. External interface for command table
1149 searchs.
1150 (build_table): New definition.
1151 (mi_cmds[]): Add several command implementations and the gdb-cli
1152 special operation.
1153 (mi_cmd_execute): Deleted.
1154 * mi-cmds.h: Add type definition for command implementation
1155 function pointers, add declaration for new implementation
1156 functions and a declaration for mi_lookup().
1157 * mi-main.c (mi_execute_asynch_cli_command): New
1158 function. Captures code that was repeated for all asynch
1159 operations.
1160 (mi_cmd_exec_*): Use the above new function.
1161 (mi_gdb_cmd_exit): Fix the output, printing something appropriate.
1162 (mi_cmd_exec_finish): New operation implementation function.
1163 (mi_cmd_exec_return): Ditto.
1164 (parse): Prepare to remove cli commands.
1165 (mi_execute_command): Fix the output and change the way mi-cmds is
1166 used.
1167
11681999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
1169
1170 * mi-out.c (mi_table_begin): Add missing field separator call.
1171
1172Thu Jun 17 21:05:40 1999 Fernando Nasser <fnasser@tofu.to.cygnus.com>
1173
1174 * breakpoint.c (breakpoint_1): Remove space in breakpoint table
1175 id.
1176 (mention): Use ui_out for last new line (forgotten).
1177
11781999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1179
1180 * mi-main.c (mi_console_file_flush): Prevent prefix printing when
1181 buffer empty; change prefix to '~'.
1182 (mi_cmd_exec_*): Prefix normal output with '^' instead of
1183 ','; remove unwanted new lines before "stopped".
1184
11851999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1186
1187 * mi-cmds.c (struct mi_cmds): Updated entries for -exec-continue
1188 and exec-next operations.
1189 (mi_cmd_execute): New text for error messages.
1190 * mi-cmds.h: Add declaration for mi_cmd_exec_next and
1191 mi_cmd_exec_continue.
1192 * mi-main.c (mi_cmd_exec_next): New function. Implements exec-next
1193 operation.
1194 (mi_cmd_exec_continue): New function. Implements exec-continue
1195 operation.
1196 (mi_execute_comand): Add missing space to prompt.
1197 (mi_cmd_exec_run): Ditto.
1198 (mi_cmd_exec_step): Ditto.
1199 * mi-out.c (mi_out_new): Add flags argument to ui_out_new call.
1200 (ui_list_end): Reset supress_field_separator flag.
1201
1202Sat Jun 12 11:49:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
1203
1204 * mi-cmds.h. mi-cmds.c (exec step): Command implemented by
1205 mi_cmd_exec_step instead of cli call.
1206 * mi-main.c (mi_cmd_exec_step): New function.
1207
1208 * mi-cmds.h. mi-cmds.c (exec run): Command implemented by
1209 mi_cmd_exec_run instead of cli call.
1210 * mi-main.c (mi_cmd_exec_run): New function.
1211
1212 * mi-cmds.h. mi-cmds.c (gdb exit): Command implemented by
1213 mi_cmd_gdb_exit instead of quit_force.
1214 * mi-main.c (mi_cmd_gdb_exit): New function.
1215
1216Sat Jun 12 11:33:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
1217
1218 * mi-main.c (mi_command_loop): Pass mi_input to
1219 simplified_command_loop.
1220 (mi_input): New function. Calls gdb_readline with no prompt.
1221
1222Sat Jun 12 11:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1223
1224 * mi-main.c (mi_console_file_fputs): Re-implement. Use a buffer
1225 to accumulate output.
1226
1227 * mi-main.c (struct mi_console_file): Add a buffer.
1228 (mi_console_file_new): Create a buffer.
1229 (mi_console_file_flush): New function.
1230
1231Sat Jun 12 10:59:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1232
1233 * mi-cmds.h (raw_stdout): Declare. Will be moved later.
1234 * mi-cmds.c (mi_cmd_execute): Send error messages to RAW stdout.
1235 (mi_cmds): Sort by class.
1236
1237 * mi-main.c (raw_stdout): Make global.
1238 * mi-main.c: Remove #ifdef UI_OUT. File assumes UI_OUT is
1239 present.
1240 * mi-main.c: Include "gdb_string.h".
1241 (mi_out_put): Delete declaration.
1242
12431999-06-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
1244
1245 * mi-main.c: Add pre-processor test for UI_OUT.
1246 (mi_execute_command): Add pre-processor test for UI_OUT.
1247
1248Fri Jun 11 23:11:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
1249
1250 * mi-main.c (raw_stdout): New variable.
1251 (mi_execute_command): Write mi-out direct to raw_stdout.
1252 (mi_command_loop): Create raw_stdout. Attach gdb_stdout to the
1253 console.
1254 (mi_console_file_fputs, mi_console_file_delete,
1255 mi_console_file_new): New functions.
1256 (struct mi_console_file): Declare.
1257
1258Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1259
1260 * mi-main.c (mi_execute_command): Call mi_out_put to display the
1261 result.
1262 * mi-out.c (mi_out_put): New function.
1263 * ui-out.h (mi_out_put): Add declare. Will move later.
1264 * Makefile.in (mi-cmds.o, mi-main.o): Add dependency on ui-out.h.
1265
1266 * mi-out.c (mi_field_string, mi_field_fmt, mi_message, mi_flush,
1267 out_field_fmt, list_open, list_close): Replace gdb_stdout with
1268 data->buffer.
1269 (field_separator, list_open, list_close): Add uiout parameter.
1270 (mi_table_begin, mi_table_body, mi_table_end, mi_list_begin,
1271 mi_list_end, mi_field_string, mi_field_fmt, out_field_fmt,
1272 out_field_fmt): Update.
1273
1274 * mi-out.c (mi_out_new): Initialize supress_field_separator.
1275 (supress_field_separator): Move into mi-out local data object.
1276 (mi_table_begin, mi_list_begin, field_separator): Update.
1277
1278Fri Jun 11 16:08:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1279
1280 * mi-out.c (mi_out_new): New function, replace init_mi_out.
1281 * mi-main.c (mi_command_loop): Call mi_out_new().
1282
1283 * ui-out.h (mi_out_new): Add declaration. Will move later.
1284 (mi_ui_out_impl): Delete.
1285
1286Wed Jun 9 16:42:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
1287
1288 * mi-main.c: Include "ui-hooks.h".
1289 (mi_init_ui, mi_command_loop): New functions.
1290 (_initialize_mi_main): Install ``mi'' as the interpreter when
1291 selected.
1292
1293Mon Jun 7 18:43:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1294
1295 From Fernando Nasser <fnasser@totem.to.cygnus.com>
1296 * mi-cmds.c (build_table): Clean up error message.
1297 * mi-cmds.c (mi_cmd_execute), mi-main.c (mi_execute_command): Only
1298 print debug information when mi_debug_p.
1299 * mi-cmds.h (mi_debug_p), mi-main.c: Global, control debug messages.
1300
1301Thu Jun 3 00:44:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1302
1303 From Fernando Nasser <fnasser@totem.to.cygnus.com>:
1304 * mi-cmds.c: Add CLI definitions for "exec-arguments",
1305 "exec-next", "gdb-exit", "break-list", "break-info", "exec-step"
1306 and "stack-list-frames" to mi_cmds.
1307 (struct mi_command): Add ``from_tty'' argument to func.
1308 * mi-cmds.h (quit_force): Declare.
1309
13101999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
1311
1312 * mi-out.c (mi_table_end): Remove unwanted "\n".
1313
1314Thu May 27 14:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1315
1316 * top.c: Include "ui-hooks.h".
1317 (call_interp_loop): Tempoary. Pass mi_execute_command to
1318 simplified_command_loop. Initialize gdb_stdout & gdb_stderr to
1319 stdio gdb_file streams. Force all hooks to null.
1320
1321 * mi-cmds.h, mi-main.c, mi-cmds.c: New files.
1322 * Makefile.in (SFILES): Add mi-main.c, mi-cmds.c
1323 (COMMON_OBS): Add mi-main.o, mi-cmds.o.
1324 (mi_cmds_h): Define.
1325
1326Wed May 26 12:39:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
1327
1328 * top.c (call_interp_loop): Hack. Add extern declaration for
1329 mi_ui_out_impl.
1330
13311999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
1332
1333 * mi-out.c: New table syntax.
1334
1335Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
1336
1337 mi-out.c (_initialize_mi_out): Add external declaration.
1338
13391999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1340
1341 * mi-out.c (mi_table_begin): Added missing parameter.
1342
13431999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1344
1345 * mi-out.c: Changed table markers and added table id.
1346
13471999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1348
1349 * mi-out.c: New file. Implements low-level ui-out primitives for
1350 CLI-based interaction.
1351
1352\f
1353Local Variables:
1354mode: change-log
1355left-margin: 8
1356fill-column: 74
1357version-control: never
1358End:
This page took 0.073806 seconds and 4 git commands to generate.