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