2003-11-06 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / mi / ChangeLog
CommitLineData
ce2826aa
AC
12003-10-24 Andrew Cagney <cagney@redhat.com>
2
3 * tui-out.c: Fix "fortunatly"[sic].
4
12c266ea
AC
52003-10-02 Andrew Cagney <cagney@redhat.com>
6
7 * mi-main.c: Rename REGISTER_RAW_SIZE to
8 DEPRECATED_REGISTER_RAW_SIZE.
9
f30992d4 102003-09-30 Andrew Cagney <cagney@redhat.com>
d5b5ac79 11
f30992d4
AC
12 * mi-main.c: Rename REGISTER_VIRTUAL_SIZE to
13 DEPRECATED_REGISTER_VIRTUAL_SIZE.
d5b5ac79 14
62700349
AC
152003-09-17 Andrew Cagney <cagney@redhat.com>
16
12c266ea 17 * mi-main.c: Rename REGISTER_BYTE to DEPRECATED_REGISTER_BYTE.
62700349 18
00a9a2c6
EZ
192003-09-10 Elena Zannoni <ezannoni@redhat.com>
20
21 * mi-main.c (mi_setup_architecture_data): Don't use
22 DEPRECATED_REGISTER_BYTES because some architecture don't set it
23 and its default is 0.
24
f786f615
AC
252003-08-08 Andrew Cagney <cagney@redhat.com>
26
27 * mi-main.c (captured_mi_execute_command): Add "mi2" and "mi3" to
28 interpreters that hack around CLI.
29 * mi-interp.c (mi3_command_loop): New function.
30 (mi_interpreter_resume): Check for "mi3", default to "mi2".
31
2fcf52f0
AC
322003-08-07 Andrew Cagney <cagney@redhat.com>
33
34 * mi-interp.c (_initialize_mi_interp): Register "mi2" and "mi3".
35 Make "mi" select "mi2".
36
d303380b
AC
372003-08-05 Andrew Cagney <cagney@redhat.com>
38
39 * mi-cmd-env.c (env_execute_cli_command): Use an explicit "%s %s"
40 when constructing the run command.
41 (mi_cmd_env_cd, mi_cmd_env_path, mi_cmd_env_dir): Simplify command
42 string removing the "%s".
43
b2af646b
AC
442003-08-04 Andrew Cagney <cagney@redhat.com>
45
46 * mi-cmds.h (struct mi_cli): Define.
47 (struct mi_cmd): Change type of "cli" to "struct mi_cli".
48 * mi-cmds.c (mi_cmds): Update table.
49 * mi-parse.c (mi_parse): Update.
50 * mi-main.c (mi_execute_cli_command): Add "args_p" parameter, make
51 others constant.
52 (mi_cmd_execute): Update call.
53 (captured_mi_execute_command): Ditto.
54
306d9ac5
DC
552003-08-04 David Carlton <carlton@kealia.com>
56
57 * mi-main.c (mi_error_last_message): Add "%s" second argument to
58 xasprintf call.
59
0fac0b41
DJ
602003-06-28 Daniel Jacobowitz <drow@mvista.com>
61
62 * mi-out.c (mi_ui_out_impl): Add NULL for redirect member.
63
6ad8ae5c
DJ
642003-06-17 Daniel Jacobowitz <drow@mvista.com>
65
66 * mi-cmds.c (mi_cmds): Add "-target-disconnect".
67
de4f826b
DC
682003-06-11 David Carlton <carlton@bactrian.org>
69
70 * mi-cmd-stack.c: Include dictionary.h.
71 (list_args_or_locals): Update use of ALL_BLOCK_SYMBOLS.
72
781a750d
AC
732003-06-11 Andrew Cagney <cagney@redhat.com>
74
75 * mi-main.c (get_register): Replace REGISTER_CONVERTIBLE with
76 DEPRECATED_REGISTER_CONVERTIBLE.
77
b9362cc7
AC
782003-06-08 Andrew Cagney <cagney@redhat.com>
79
80 * mi-parse.c (_initialize_mi_parse): Delete function.
81 * mi-main.c: Include "mi-main.h".
82 * mi-interp.c (_initialize_mi_interp): Add declaration.
83 * mi-cmd-stack.c: Include "stack.h".
84 (select_frame_command_wrapper): Delete extern declaration.
85 (mi_cmd_stack_select_frame): Replace select_frame_command_wrapper
86 with select_frame_command.
87
b8b527c5
AC
882003-05-16 Andrew Cagney <cagney@redhat.com>
89
90 * mi-main.c (mi_setup_architecture_data):
91
176620f1
EZ
922003-05-12 Elena Zannoni <ezannoni@redhat.com>
93
94 * mi-mi-cmd-stack.c (list_args_or_locals): Rename VAR_NAMESPACE to
95 VAR_DOMAIN.
96
30e221b4
AC
972003-05-11 Andrew Cagney <cagney@redhat.com>
98
99 * mi-symbol-cmds.c: Rename "mi-cmd-symbol.c", avoid 8.3 problem.
100
d9d9c31f
AC
1012003-05-08 Andrew Cagney <cagney@redhat.com>
102
103 * mi-main.c (register_changed_p): Use MAX_REGISTER_SIZE instead of
104 MAX_REGISTER_RAW_SIZE.
105
0c92afe8
AC
1062003-05-08 Andrew Cagney <cagney@redhat.com>
107
108 * mi-main.c (get_register): Use MAX_REGISTER_SIZE.
109
b1e29e33
AC
1102003-05-05 Andrew Cagney <cagney@redhat.com>
111
112 * mi-main.c (mi_cmd_data_write_register_values): Replace
113 REGISTER_SIZE with DEPRECATED_REGISTER_SIZE.
114
0d18235f
JB
1152003-05-03 J. Brobecker <brobecker@gnat.com>
116
117 From Thierry Schneider <tpschneider1@yahoo.com>:
118 * mi-cmds.h (mi_cmd_symbol_list_lines): Add declaration.
119 * mi-cmds.c (mi_cmds): Add entry for new MI command.
120 * mi-cmd-symbol.c (mi_cmd_symbol_list_lines): New source file
121 for all symbol-related commands.
122
4e35d5f0
BR
1232003-04-02 Bob Rossi <bob_rossi@cox.net>
124
125 * mi-cmd-file.c: New file to implement mi file commands.
126 * mi-getopt.c (mi_valid_noargs): Added mi_valid_noargs to verify
127 if a set of parameters passed to an MI function has no arguments
128 * mi-getopt.h (mi_valid_noargs): Declare.
129 * mi-cmds.c (mi_cmds): Added -file-list-exec-source-file command.
130 * mi-cmds.h (mi_cmd_file_list_exec_source_file): Declare.
131
922fbb7b
AC
1322003-03-27 Andrew Cagney <cagney@redhat.com>
133
134 * gdbmi.texinfo: Delete file. Contents moved to
135 ../doc/gdb.texinfo.
136
ac2adee5
AC
1372003-03-12 Andrew Cagney <cagney@redhat.com>
138
139 * mi-main.c (get_register): Use frame_register instead of
140 get_saved_register.
141
1248ede2
AC
1422003-03-08 Andrew Cagney <cagney@redhat.com>
143
144 * mi-out.c: Update copyright.
145 (mi_out_data): Define typedef. Use instead of ui_out_data.
146
7b83296f
AC
1472003-03-01 Andrew Cagney <cagney@redhat.com>
148
149 * mi-main.c (get_register): Use register_type instead of
150 REGISTER_VIRTUAL_TYPE.
151
22abf04a
DC
1522003-02-25 David Carlton <carlton@math.stanford.edu>
153
154 * mi-cmd-stack.c: Replace all instances of SYMBOL_NAME with
155 DEPRECATED_SYMBOL_NAME. Update copyright.
156
4cf623b6
DJ
1572003-02-21 Daniel Jacobowitz <drow@mvista.com>
158
159 * mi-cmd-stack.c (list_args_or_locals): Handle LOC_COMPUTED and
160 LOC_COMPUTED_ARG.
161
fe898f56
DC
1622003-02-19 David Carlton <carlton@math.stanford.edu>
163
164 * mi-cmd-stack.c: #include "block.h"
165
11308a41
AC
1662003-02-09 Andrew Cagney <ac131313@redhat.com>
167
168 * mi-interp.c (mi_remove_notify_hooks): Convert function
169 definition to ISO C.
170
5cb316ef
AC
1712003-02-06 Andrew Cagney <ac131313@redhat.com>
172
173 * mi-cmd-env.c: Include "gdb_stat.h" instead of <sys/stat.h>.
174
4389a95a
AC
1752003-02-04 Jim Ingham <jingham@apple.com>
176 Keith Seitz <keiths@redhat.com>
177 Elena Zannoni <ezannoni@redhat.com>
178 Andrew Cagney <ac131313@redhat.com>
179
180 * mi-main.h: New file.
181 * mi-interp.c: New file.
182 * mi-main.c: Include "interps.h".
183 (mi_error_message): Make global.
184 (mi_input): Delete static function, moved to "mi-interp.c".
185 (mi_execute_command, mi_execute_command_wrapper): Ditto.
186 (mi_command_loop, mi1_command_loop, mi2_command_loop): Ditto.
187 (mi_load_progress): Make non-static.
188 (mi_error_last_message): New function.
189 (captured_mi_execute_command): If the interpreter changed, don't
190 print anything.
191 (mi_load_progress): Use current_interp_named_p.
192 (mi_init_ui): Delete function.
193 (_initialize_mi_main): Don't install the mi interpreter, handled
194 by "mi-interp.c".
195 (mi_exec_async_cli_cmd_continuation): Make static.
196 * mi-console.h (mi_console_file_new): Add `quote' parameter.
197 * mi-console.c (struct mi_console_file): Add `quote'.
198 (mi_console_file_new): Add `quote' parameter. Initialize `quote'.
199 (mi_console_raw_packet): Only quote the output when `quote'.
200 * mi-cmds.h (mi_cmd_interpreter_exec): Declare.
201 (mi_error_message, mi_error_last_message): Declare.
202 (mi_execute_command): Declare.
203 * mi-cmds.c: Add `interpreter-exec' command.
204
eca48b00
AC
2052003-02-04 Andrew Cagney <ac131313@redhat.com>
206
207 From Keith Seitz <keiths@redhat.com>:
208 * gdbmi.texinfo (GDB/MI Miscellaneous Commands): Document the
209 interpreter-exec command.
210
e7494ffb
AC
2112003-02-02 Andrew Cagney <ac131313@redhat.com>
212
213 From 2002-11-10 Jason Molenda (jason-cl@molenda.com):
214 * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is
215 now a list; still a tuple when in mi1.
216 * gdbmi.texinfo: Update var-list-children example.
217
1bac305b
AC
2182003-01-13 Andrew Cagney <ac131313@redhat.com>
219
220 * mi-cmd-env.c: Update copyright.
221
7789c6f5
EZ
2222003-01-13 Elena Zannoni <ezannoni@redhat.com>
223
224 * mi-main.c (mi_cmd_exec_return): Use print_stack_frame instead of
225 show_and_print_stack_frame.
226
4ef3f3be
AC
2272003-01-09 Andrew Cagney <ac131313@redhat.com>
228
229 * mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>.
230 Move all includes to after "defs.h".
231
068890be
JJ
2322002-12-13 Jeff Johnston <jjohnstn@redhat.com>
233
234 * mi-cmds.c (-environment-directory) Change to use mi_cmd_env_dir,
235 (-environment-cd): Change to use mi_cmd_env_cd,.
236 (-environment-pwd): Change to use mi_cmd_env_pwd.
237 (-environment-path): Change to use mi_cmd_env_path.
238 * mi-cmds.h (mi_cmd_env_cd, mi_cmd_env_dir): New prototypes.
239 (mi_cmd_env_path, mi_cmd_env_pwd): Ditto.
240 * mi-cmd-env.c: New file. Part of fix for PR gdb/741.
241 * gdbmi.texinfo (environment-cd): Update output and example.
242 (environment-pwd): Ditto.
243 (environment-dir): Update output, description, and examples.
244 (environment-path): Ditto.
245
6e7f8b9c
AC
2462002-11-29 Andrew Cagney <ac131313@redhat.com>
247
248 * mi/mi-cmd-stack.c, mi/mi-main.c: Update to use
249 deprecated_selected_frame.
250
73937e03
AC
2512002-11-13 Andrew Cagney <ac131313@redhat.com>
252
253 * mi-main.c (mi_cmd_data_write_register_values): Use
254 deprecated_write_register_bytes instead of write_register_bytes.
255
46ae13f0
JJ
2562002-11-11 Jeff Johnston <jjohnstn@redhat.com>
257
258 * gdbmi.texinfo (-var-assign): Add comments about interaction
259 with -var-update and add an example. Part of fix for gdb/702.
260
e78c0063
JJ
2612002-11-08 Jeff Johnston <jjohnstn@redhat.com>
262
263 * mi-main.c (mi_command_loop): Initialize raw_stdout and gdb_stdout
264 only if mi version is <= 1.
265 (mi_init_ui): Initialize raw_stdout and gdb_stdout if mi version
266 is > 1 so startup message is treated as console output. This is
267 part of fix for PR gdb/604.
268
1bd34ded
JJ
2692002-11-06 Jeff Johnston <jjohnstn@redhat.com>
270
271 * mi-cmd-var.c (mi_cmd_var_create): Change the function used to
272 parse the frame addr from parse_and_eval_address() to
273 string_to_core_addr(). This is a fix for PR gdb/494.
274
6ad4a2cf
JJ
2752002-10-23 Jeff Johnston <jjohnstn@redhat.com>
276
277 * mi-cmd-var.c: Change all remaining occurrences of ui_out_tuple_begin
278 to make_cleanup_ui_out_tuple_begin_end. Change all remaining
279 occurrences of ui_out_list_begin to make_cleanup_ui_out_list_begin_end.
280 Use do_cleanups instead of ui_out_list_end or ui_out_tuple_end. This
281 is a fix for PR gdb/680.
282 * mi-cmd-stack.c: Ditto.
283 * mi-main.c: Ditto.
284
99615eb8
KS
2852002-10-22 Keith Seitz <keiths@redhat.com>
286
287 * mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERROR
288 when we really did catch an error(). If we got GDB_RC_FAIL, return
289 MI_CMD_ERROR instead.
290
9f2aab2d
JJ
2912002-10-03 Jeff Johnston <jjohnstn@redhat.com>
292
293 * gdbmi.texinfo: Fix examples that show frames to remove
294 extraneous blank in level field. Part of fix for PR gdb/192.
295
3a387118
JJ
2962002-10-03 Jeff Johnston <jjohnstn@redhat.com>
297
298 * mi-cmd-var.c (mi_cmd_var_update): Fix for PR gdb/672. For m2,
299 output list begin and end for "changelist" rather than tuple begin/end.
300 (varobj_update_one): For m2, add tuple begin and end for varobj
301 update output.
302
36dc181b
EZ
3032002-10-02 Elena Zannoni <ezannoni@redhat.com>
304
305 * mi-main.c (mi_cmd_exec_return): Don't use
306 return_command_wrapper, use return_command instead.
307 (mi_cmd_exec_interrupt): Don't use
308 interrupt_target_command_wrapper, use interrupt_target_command
309 instead.
310 (return_command_wrapper, interrupt_target_command_wrapper):
311 Delete.
312 Include frame.h.
313
da0f9dcd
AC
3142002-10-01 Andrew Cagney <ac131313@redhat.com>
315
316 * mi-main.c (mi2_command_loop): New function.
317 (mi0_command_loop): Delete function.
318 (_initialize_mi_main): Recognize, and default to, "mi2". Do not
319 recognize "mi0".
320 * mi-out.c (mi_table_begin): Remove mi0 code.
321 (mi_table_body, mi_table_end): Ditto.
322 (mi_table_header, mi_open, mi_close): Ditto.
323
c7ec4050
AC
3242002-09-29 Andrew Cagney <ac131313@redhat.com>
325
326 * mi-out.c (mi_version): New function.
327 * mi-out.h (mi_version): Declare.
328
7501537f
AC
3292002-09-27 Andrew Cagney <ac131313@redhat.com>
330
331 From 2002-07-12 Mo DeJong <supermo@bayarea.net>
332 * gdbmi.texinfo (var-evaluate-expression): Note that
333 var-list-children must be invoked before child variable
334 values can be evaluated.
335
b72b33ef
EZ
3362002-09-26 Elena Zannoni <ezannoni@redhat.com>
337
338 * mi-cmd-disas.c (dump_insns): Add text only output for CLI.
339 (do_mixed_source_and_assembly): Ditto.
340
4060713b
KS
3412002-09-11 Keith Seitz <keiths@redhat.com>
342
343 * mi-main.c (mi_cmd_data_list_register_names): Use cleanups
344 for the uiout list. Do the cleanups when returning an error.
345 (mi_cmd_data_list_changed_registers): Ditto.
346 (mi_cmd_data_list_register_values): Use cleanups for the uiout list
347 and tuples. Do the cleanups when returning errors.
348
5f8a3188
AC
3492002-07-29 Andrew Cagney <ac131313@redhat.com>
350
5f8a3188
AC
351 * mi-cmd-var.c: Include "gdb_string.h".
352 * mi-cmd-disas.c: Ditto.
353
32c95e20
KS
3542002-06-17 Keith Seitz <keiths@redhat.com>
355
356 * gdbmi.texinfo: Update command examples with real MI behavior.
357
8d34ea23
KS
3582002-05-20 Keith Seitz <keiths@redhat.com>
359
360 * mi-main.c (captured_mi_execute_command): Add uiout parameter.
361 "data" is now a structure which is used to pass data to/from this
362 function to mi_execute_command.
363 Modify function to comply with requirements from catch_exceptions.
364 Store real return result and command's return result in data.
365 (mi_execute_command): Use catch_exceptions.
366 Use enum to handle actions to be performed instead of overloading
367 catch_errors return result and the mi return result.
368
b31da25e
AC
3692002-04-14 Andrew Cagney <ac131313@redhat.com>
370
371 * mi-main.c (mi_cmd_exec_return):
372
cda5a58a
AC
3732002-04-09 Andrew Cagney <ac131313@redhat.com>
374
375 * mi-main.c (register_changed_p): Use frame_register_read instead
376 of read_relative_register_raw_bytes.
377 (get_register): Delete out-of-date comment.
378
27cdacdb
EZ
3792002-04-07 Elena Zannoni <ezannoni@redhat.com>
380
381 * mi-cmd-disas.c: Run through indent.
382
8f0eea0e
EZ
3832002-04-07 Elena Zannoni <ezannoni@redhat.com>
384
385 * mi-cmd-disas.c (dump_insns): New function.
386 (do_mixed_source_and_assembly): New function.
387 (do_assembly_only): New function.
388 (do_disassembly): New function.
389 (mi_cmd_disassemble): Rewrite using smaller, more modular
390 functions.
391
ae767bfb
JB
3922002-04-05 Jim Blandy <jimb@redhat.com>
393
394 * mi-cmd-stack.c (list_args_or_locals): Pass new arg to
395 get_frame_block. (See entry in gdb/ChangeLog.)
396
46fe1613
EZ
3972002-04-05 Elena Zannoni <ezannoni@redhat.com>
398
399 * mi-cmd-disas.c (mi_cmd_disassemble): Use TARGET_PRINT_INSN
400 instead of tm_print_insn.
401 Update copyright year.
402
b0c0ea31
DJ
4032002-04-04 Daniel Jacobowitz <drow@mvista.com>
404
405 * mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function
406 markers in the line table.
407
349c5d5f
AC
4082002-03-15 Andrew Cagney <ac131313@redhat.com>
409
410 * mi-main.c (XMALLOC): Delete macro.
411 * mi-out.c (XMALLOC): Ditto.
412 * mi-parse.c (XMALLOC): Ditto.
413 * mi-console.c (XMALLOC): Ditto.
414 * mi-cmd-var.c (XMALLOC): Ditto.
415 * mi-cmd-break.c (XMALLOC): Ditto.
416
417 * mi/mi-cmd-var.c, mi/mi-console.c, mi/mi-out.c: Update copyright
418 * mi/mi-parse.c: Ditto.
419
080fe24b
AC
4202002-02-24 Andrew Cagney <ac131313@redhat.com>
421
422 From wiz at danbala:
423 * gdbmi.texinfo: Fix grammar and typos.
424 Fix PR gdb/287.
425
39bf4652
JB
4262002-02-03 Jim Blandy <jimb@redhat.com>
427
428 * mi-cmd-stack.c (list_args_or_locals): Move declaration of
429 print_me inside the loop body, so it gets re-initialized every
430 iteration. The cases for the different symbol kinds leave
431 print_me unchanged if they don't want the symbol printed.
432
6c0e9fb3
AC
4332002-01-22 Andrew Cagney <ac131313@redhat.com>
434
435 * gdbmi.texinfo: Remove makeinfo 3.12 hacks.
436
4372002-01-21 Andrew Cagney <ac131313@redhat.com>
8926118c 438
e9afe819
AC
439 * mi-cmd-stack.c: Remove #else clause of #ifdef UI_OUT.
440 * mi-cmd-break.c: Ditto.
441 * mi-main.c: Ditto.
8926118c 442
2a6585f0
EZ
4432001-12-30 Eli Zaretskii <eliz@is.elta.co.il>
444
445 * gdbmi.texinfo: Fix the application of GFDL in the Copyright notice.
446
e88c90f2
DJ
4472001-10-12 Daniel Jacobowitz <drow@mvista.com>
448
449 * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.
450
2b65245e
AC
4512001-09-18 Andrew Cagney <ac131313@redhat.com>
452
453 * mi-main.c (mi_cmd_thread_select): Pass uiout to
454 gdb_thread_select.
455 (mi_cmd_thread_list_ids): Pass uiout to gdb_list_thread_ids.
456
457 * mi-cmd-break.c (breakpoint_notify): Pass uiout to
458 gdb_breakpoint_query.
459
4309c8f2
KS
4602001-08-17 Keith Seitz <keiths@redhat.com>
461
462 * mi-cmd-var.c (varobj_update_one): Update call to
463 varobj_update to reflect recent api change.
464
5b7f31a4
AC
4652001-07-26 Andrew Cagney <ac131313@redhat.com>
466
467 * mi-main.c: Include "gdb.h".
468 * mi-cmd-break.c: Include "gdb.h".
469
a433f9e4
AC
4702001-07-12 Andrew Cagney <ac131313@redhat.com>
471
472 * mi-main.c (mi_execute_command): Flush output after ``(gdb)''
473 prompt. Bug reported by David Whedon.
474 (mi_execute_async_cli_command): Ditto.
475 (mi_exec_async_cli_cmd_continuation): Ditto.
476 (mi_command_loop): Ditto.
477
bf702e7e
MK
4782001-07-10 Mark Kettenis <kettenis@gnu.org>
479
480 * mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
481 created `struct ui_out_data'.
482
d8bf3afa
KB
4832001-07-09 Kevin Buettner <kevinb@redhat.com>
484
485 * mi-main.c (register_changed_p, get_register): Use alloca()
486 to allocate space previously allocated via gcc's
487 variable-length array extension.
488 (mi_cmd_data_write_register_values, mi_cmd_data_write_memory):
489 Change type of ``buffer'' to ``void *''. Don't cast return value
490 from xmalloc(). Add a cleanup to free the xmalloc'd buffer.
491
96052a95
AC
4922001-07-07 Andrew Cagney <ac131313@redhat.com>
493
494 * mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
495 with `struct value *'.
496
46712191
KB
4972001-07-08 Kevin Buettner <kevinb@redhat.com>
498
499 * mi-out.c (mi_table_header, mi_field_int, mi_field_skip)
500 (mi_field_string) Make function declarators match earlier
501 declarations.
502
9dc5e2a9
AC
5032001-07-04 Andrew Cagney <ac131313@redhat.com>
504
505 * mi-out.c (mi_ui_out_impl): Initialize is_mi_like_p to one.
506
cff22675
AC
5072001-06-27 Andrew Cagney <ac131313@redhat.com>
508
509 * mi-out.c (mi_table_begin): Include nr_cols and nr_rows in mi1
510 table output.
511 * mi-out.c (mi_table_begin): Only suppress output when mi0. Change
512 the header to a list.
513 (mi_table_body): For mi1, close the header list and open a table
514 body list.
515 (mi_table_end): For mi1, close the body list.
516 (mi_table_header): For mi1, output a tuple containing all the
517 header information.
518 (mi_open, mi_close): Reverse logic of mi_version test.
519 * gdbmi.texinfo (GDB/MI Breakpoint Table Commands): Update.
520
8eb69147
AC
5212001-06-26 Andrew Cagney <ac131313@redhat.com>
522
523 * gdbmi.texinfo (GDB/MI Output Syntax): Delete reference to query
524 packet.
525
dc61bc6d
AC
5262001-06-26 Andrew Cagney <ac131313@redhat.com>
527
528 * mi-cmd-stack.c (list_args_or_locals): Output a list of "args" or
529 "locals" entries.
530 * gdbmi.texinfo (stack-list-locals, stack-list-arguments)
531 (exec-interrupt, target-select, thread-select): Update
532 documentation.
533
d5e5643b
AC
5342001-06-26 Andrew Cagney <ac131313@redhat.com>
535
536 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Output a list of
537 "stack" entries.
538 (mi_cmd_stack_list_args): Ditto for "stack-args".
539 * gdbmi.texinfo (stack-list-frames, stack-list-arguments): Update
540 documentation.
541 (GDB/MI Stack Manipulation Commands): Fix section title. Was
542 Stack Manipulation Commands in GDB/MI.
543
68c81b54
AC
5442001-06-25 Andrew Cagney <ac131313@redhat.com>
545
546 * gdbmi.texinfo: Update output examples that contain stop reason
547 output, change the args=.... to a list.
548 (exec-return): Ditto.
549
45399be4
AC
5502001-06-25 Andrew Cagney <ac131313@redhat.com>
551
552 * mi-main.c (mi_cmd_data_read_memory): Output the memory contents
553 - memory and data - as a list.
554 * gdbmi.texinfo (data-read-memory): Update documentation.
555
80f43b40
AC
5562001-06-25 Andrew Cagney <ac131313@redhat.com>
557
558 * mi-main.c (mi_cmd_data_list_register_values): Output a list of
559 register values.
560 * gdbmi.texinfo (data-list-register-values): Update documentation.
561
173d6894
AC
5622001-06-25 Andrew Cagney <ac131313@redhat.com>
563
564 * mi-main.c (mi_cmd_data_list_register_names): Output a list of
565 register names.
566 (mi_cmd_data_list_register_names): Include the pseudo registers.
567 (mi_cmd_data_list_register_names): Don't leave holes in the list,
568 output "" for NULL registers.
569 * gdbmi.texinfo (data-list-register-names): Update documentation.
570
40d5d7e9
AC
5712001-06-23 Andrew Cagney <ac131313@redhat.com>
572
573 * mi-main.c (mi_cmd_data_list_changed_registers): Output a list of
574 register numbers.
575 * gdbmi.texinfo (data-list-changed-registers): Update
576 documentation.
577
70242e8d
AC
5782001-06-23 Andrew Cagney <ac131313@redhat.com>
579
580 * gdbmi.texinfo (data-disassemble): Update documentation of
581 output. Produces a list of instructions and a list of source
582 lines.
583
5842001-06-22 Andrew Cagney <ac131313@redhat.com>
585
586 * mi-cmd-disas.c (mi_cmd_disassemble): For "-data-disassemble",
587 output a list instead of a tupple.
588
76fe6b98
AC
5892001-06-21 Andrew Cagney <ac131313@redhat.com>
590
591 * mi-out.c (struct ui_out_data): Replace field first_header with
592 suppress_output.
593 (mi_begin, mi_end): Check suppress_header.
594 (mi_field_int, mi_field_skip): Ditto.
595 (mi_field_string, mi_field_fmt): Ditto.
596 (mi_table_begin): When nr_rows is zero, set suppress_header else,
597 output the start of the header.
598 (mi_table_body): Clear suppress header.
599
a7c14aa5
AC
6002001-06-21 Andrew Cagney <ac131313@redhat.com>
601
602 * mi-out.c (mi_open): For lists, when mi_version > 0, use ``[''.
603 (mi_close): Ditto for ``]''.
604
b25959ec
AC
6052001-06-20 Andrew Cagney <ac131313@redhat.com>
606
607 * mi-out.c (mi_table_header): Add parameter ``col_name''.
608
d63f1d40
AC
6092001-06-18 Andrew Cagney <ac131313@redhat.com>
610
611 * mi-out.c: Include "gdb_assert.h".
612 (mi_table_begin): Add parameter ``nr_rows''.
613
b30bf9ee
AC
6142001-06-18 Andrew Cagney <ac131313@redhat.com>
615
616 * mi-main.c: Use strncmp as the "mi" test. Allow "mi", "mi0" and
617 "mi1".
618 (mi_command_loop): Add parameter mi_version, pass to mi_out_new.
619 (mi1_command_loop, mi0_command_loop): New functions.
620 (_initialize_mi_main): Recognize "mi", "mi0" and "mi1".
621 * mi-out.c (mi_out_new): Add parameter mi_version.
622 (struct ui_out_data): Add field mi_version.
623 * mi-out.h (mi_out_new): Update.
624
163e6d2d
AC
6252001-06-07 Andrew Cagney <ac131313@redhat.com>
626
627 * gdbmi.texinfo (GDB/MI Output Syntax): Add tuples and lists to
628 syntax.
629 (GDB/MI Draft Changes to Output Syntax): Delete section.
630
59807497
AC
631Mon Jun 11 17:22:25 2001 Andrew Cagney <cagney@b1.cygnus.com>
632
633 * mi-out.c: Fix typo. s/supress/suppress/.
634
d5e8ba62
AC
6352001-06-09 Andrew Cagney <ac131313@redhat.com>
636
637 * mi-out.c (mi_table_end, mi_table_begin, mi_begin, mi_end): Move
638 supress_field_separator updates from here.
639 (mi_open, mi_close): To here.
640 (mi_open): Add parameter name. Output a field_separator.
641 (mi_table_begin): Update.
c4264430 642 (mi_table_header): Update.
d5e8ba62
AC
643 (mi_begin): Update.
644
e2e11a41
AC
6452001-06-09 Andrew Cagney <ac131313@redhat.com>
646
5e173cfd
AC
647 * mi-out.c (mi_table_begin): Make char* parameters constant.
648 (mi_table_header): Ditto.
649 (mi_field_int): Ditto.
650 (mi_field_skip): Ditto.
651 (mi_field_string): Ditto.
652 (mi_field_fmt): Ditto.
653 (mi_text): Ditto.
654 (mi_message): Ditto.
e2e11a41 655
5a9aa5dc
AC
6562001-05-12 Andrew Cagney <ac131313@redhat.com>
657
658 * mi-out.c (mi_close, mi_open): Output ``[]'' when a list.
659
666547aa
AC
660Fri May 11 13:55:07 2001 Andrew Cagney <cagney@b1.cygnus.com>
661
662 * mi-cmd-var.c: Replace ui_out_list_begin, ui_out_list_end and
663 make_cleanup_ui_out_list_end with ui_out_tupple_begin,
664 ui_out_tupple_end and make_cleanup_ui_out_tupple_begin_end.
665 * mi-cmd-stack.c: Ditto.
666 * mi-cmd-disas.c: Ditto.
667 * mi-main.c: Ditto.
668
9a0f0643
AC
6692001-05-10 Andrew Cagney <ac131313@redhat.com>
670
671 * mi-out.c (mi_open, mi_close): Replace list_open and list_close.
672 (mi_table_begin): Update.
673 (mi_table_header): Update.
674 (mi_begin): Update.
675 (mi_table_body): Update.
676 (mi_table_end): Update.
677 (mi_end): Update.
678
6311b07d
AC
679Thu May 10 16:28:13 2001 Andrew Cagney <cagney@b1.cygnus.com>
680
681 * mi-main.c (mi_execute_async_cli_command): Always initialize
682 old_cleanups.
683
631ec795
AC
6842001-05-08 Andrew Cagney <ac131313@redhat.com>
685
686 * mi-out.c (mi_begin, mi_end): Replace mi_list_begin and
687 mi_list_end.
688 (mi_ui_out_impl): Update.
689
2e94c453
AC
6902001-03-28 Andrew Cagney <ac131313@redhat.com>
691
692 * mi-main.c (mi_cmd_data_read_memory): Use xcalloc.
693
e9c75b65
EZ
6942001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
695
696 * gdbmi.texinfo: Update copyright. Change Permissions to GFDL.
697
8e2eec62
AC
6982001-03-20 Andrew Cagney <ac131313@redhat.com>
699
700 * mi-cmd-disas.c (mi_cmd_disassemble): Initialize ``file_string''
701 and ``line_num''. Consolidate declaration of argument variables.
702
cf4eee44
AC
7032001-03-19 Andrew Cagney <ac131313@redhat.com>
704
705 * mi-out.h: Remove #ifdef __STDC__.
706
a728f042
AC
7072001-03-08 Andrew Cagney <ac131313@redhat.com>
708
709 * mi-main.c (mi_cmd_data_list_register_names): Use NUM_REGS, not
710 ARCH_NUM_REGS.
711 (mi_cmd_data_list_changed_registers): Ditto.
712 (mi_cmd_data_list_register_values): Ditto.
713 (mi_cmd_data_write_register_values): Ditto.
714
b6ba6518
KB
7152001-03-06 Kevin Buettner <kevinb@redhat.com>
716
717 * gdbmi.texinfo, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
718 mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
719 mi-getopt.h, mi-out.c, mi-out.h, mi-parse.c, mi-parse.h:
720 Update/correct copyright notices.
721
8e65ff28
AC
722Wed Feb 7 19:50:37 2001 Andrew Cagney <cagney@redhat.com>
723
724 * mi-getopt.c: Add __FILE__ and __LINE__ parameter to calls to
725 internal_error.
726 * mi-console.c: Ditto.
727 * mi-cmds.c: Ditto.
728 * mi-cmd-break.c: Ditto.
729
80ee4fd5
FN
7302001-01-27 Fernando Nasser <fnasser@redhat.com>
731
732 From Momchil Velikov <velco@fadata.bg>
733 * mi-cmd-disas.c (gdb_dis_asm_read_memory): Add missing memory
734 attributes argument in the call to `xfer_memory'.
735
46c6187f
KB
7362000-12-14 Kevin Buettner <kevinb@redhat.com>
737
e7b044d6
KB
738 * mi-cmd-disas.c, mi-cmd-var.c, mi-console.c, mi-main.c,
739 mi-parse.c: Replace occurrences of free() with xfree().
46c6187f 740
76995688
AC
741Fri Nov 17 16:07:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
742
743 * mi-main.c: Replace asprintf with xasprintf.
744 * mi-cmd-var.c (mi_cmd_var_create): Ditto.
745
96c405b3
EZ
7462000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
747
748 * gdbmi.texinfo (GDB/MI Variable Objects): Dimensions of
749 multitable changed to "@columnfractions .4 .6". Suggested by
750 Dmitry Sivachenko <dima@Chg.RU>.
751
1c85fbd9
EZ
7522000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
753
754 * gdbmi.texinfo: Change flathead -> @sc{gdb/mi}.
755 Fix typos and markup mistakes (from Dmitry S.
756 Sivachenko <dima@Chg.RU>).
757
e7997b74
EZ
7582000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
759
760 * gdbmi.texinfo: Change GDB -> @value{GDBN}, and
761 (gdb) -> (@value{GDBP}). Fix a few typos and some markup. From
762 Dmitry S. Sivachenko <dima@Chg.RU>.
763
e2f9c474
AC
764Tue May 16 14:13:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
765
766 * mi-main.c (mi_cmd_execute): Use free_current_contents.
767 (free_and_reset): Delete.
768
47cf603e
AC
769Mon May 15 16:17:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
770
771 * mi-main.c (mi_cmd_data_assign, mi_cmd_data_evaluate_expression),
772 mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete): Delete
773 make_cleanup_func casts. Not needed.
774
d68fc559
EZ
7752000-05-07 Eli Zaretskii <eliz@is.elta.co.il>
776
777 * gdbmi.texinfo: Lots of typos and grammar fixes from Brian
778 Youmans <3diff@flib.gnu.ai.mit.edu>.
779
8b0ceefc
AC
780Wed Apr 26 18:35:19 2000 Andrew Cagney <cagney@b1.cygnus.com>
781
782 * gdbmi.texinfo (GDB/MI Output Syntax v2.0): Convert Draft 2.0
783 Output Syntax into a new section. Cross reference.
784 (menu): Fix tipo. GDB/MI Compatibility with CLI.
785
7162c0ca
EZ
7862000-04-23 Eli Zaretskii <eliz@is.elta.co.il>
787
788 * gdbmi.texinfo: Lots of changes, to include this document as part
789 of the GDB manual.
790
73a93a32
JI
7912000-03-13 James Ingham <jingham@leda.cygnus.com>
792
793 * mi-cmd-var.c (mi_cmd_var_create): Add special frame cookie "@"
794 to indicate an "USE_CURRENT_FRAME" variable.
795 (varobj_update_one): Add "in_scope" and "type_changed" to the
796 result.
797
cdffbaa2
EZ
7982000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
799
24e8cecf
EZ
800 * mi-cmds.h: Export mi_cmd_data_write_register_values.
801
802 * mi-cmds.c (mi_cmds): Implement data-write-register-values with
803 mi_cmd_data_write_register_values.
804
805 * mi-main.c (mi_cmd_data_write_register_values): New
806 function. Write a value into a register.
807
8082000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
809
cdffbaa2
EZ
810 * gdbmi.texinfo: Update data-disassemble documentation.
811
30e28a0e
EZ
8122000-03-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
813
814 * mi-cmd-disas.c (mi_cmd_disassemble): Use
815 ui_out_field_core_addr() instead of print_address_numeric(), to
816 maintain consistency throughout MI.
817
ab91fdd5
AC
818Wed Feb 23 17:09:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
819
820 * mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
821 mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
822 mi-getopt.h, mi-main.c, mi-out.c, mi-out.h, mi-parse.c,
823 mi-parse.h: Update copyright information.
824
ff844c8d
AC
825Wed Feb 23 13:31:16 2000 Andrew Cagney <cagney@b1.cygnus.com>
826
827 * mi-cmd-disas.c (gdb_dis_asm_read_memory): Change LEN to unsigned
828 long. Match ../include/dis-asm.h change.
829
fb40c209
AC
830Wed Feb 23 10:30:55 2000 Andrew Cagney <cagney@b1.cygnus.com>
831
832 * gdbmi.texinfo: Update copyright - FSF. Update version
833 information.
834
835 mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
836 mi-cmds.h, mi-main.c, mi-parse.c, mi-parse.h: Re-format using GNU
837 indent.
838
8392000-02-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
840
841 * mi-main.c: Add include of gdbcore.h for write_memory()
842 prototype.
843
8442000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
845
846 * mi-cmd-disas.c (mi_cmd_disassemble): Change syntax of
847 command. Now use options.
848 Instead of printing the symbolic address of instructions via
849 print_address_symbolic(), use build_address_symbolic() and format
850 properly for output.
851 (gdb_do_disassmble): Delete.
852
8532000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
854
855 * mi-cmd-disas.c (mi_cmd_disassemble):
856
8572000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
858
859 * mi-main.c (mi_cmd_data_write_memory): New function. Write a
860 value into target memory.
861
862 * mi-cmds.h (mi_cmd_data_write_memory): Export.
863
864 * mi-cmds.c (mi_cmds): Hook up data-write-memory to
865 mi_cmd_data_write_memory().
866
8672000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
868
869 * mi-main.c (mi_cmd_target_download): Correct error message to
870 report right function name.
871 (mi_cmd_target_select): Add doing exec cleanups at end.
872 (mi_cmd_data_read_memory): Correct typo.
873 (mi_cmd_execute): Do not simply free last_async_command, but reset
874 it to NULL as well.
875 (free_and_reset): New function, free the argument and set it to
876 NULL.
877 (mi_cmd_target_select_continuation): Delete prototype.
878
879Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
880
881 * mi-cmd-disas.c, mi-cmds.h, mi-console.c, mi-console.h,
882 mi-main.c, mi-out.c, mi-out.h: Update to reflect rename of
883 gdb-file / GDB_FILE to ui-file / ``struct ui_file''.
884
885Mon Jan 31 18:33:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
886
887 * mi-main.c (mi_command_loop): Delete reference to
888 fputs_unfiltered_hook.
889
8902000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
891
892 * mi-cmds.c (mi_cmds): Update entries for
893 mi_cmd_data_list_register_names,
894 mi_cmd_data_list_changed_registers,
895 mi_cmd_data_list_register_values.
896
897 * mi-cmds.h (mi_cmd_data_list_register_names,
898 mi_cmd_data_list_changed_registers,
899 mi_cmd_data_list_register_values): Update to mi_cmd_argv_ftype.
900
901 * mi-main.c (mi_cmd_data_list_register_names,
902 mi_cmd_data_list_changed_registers,
903 mi_cmd_data_list_register_values): Update to use argc, argv
904 parameters.
905
9062000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
907
908 * mi-main.c (mi_cmd_data_read_memory): Correct the computation of
909 next-row.
910
9112000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
912
913 * mi-cmd-var.c (mi_cmd_var_create): Test for NULL type.
914 (mi_cmd_var_set_format, mi_cmd_var_show_format,
915 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
916 mi_cmd_var_info_type, mi_cmd_var_info_expression,
917 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
918 mi_cmd_var_assign, mi_cmd_var_update): Prevent possibility of memory
919 leak on error.
920
9212000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
922
923 * mi-out.c (mi_field_string): Test for NULL string pointer.
924
9252000-01-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
926
927 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Call
928 print_frmae_info() with the correct arguments.
929
930 * mi-main.c (mi_cmd_exec_return): Call
931 show_and_print_stack_frame() with LOC_AND_ADDRESS, so it does the
932 right thing. Update Copyright.
933
9342000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
935
936 * mi-main.c: Move disassemble commands from here.
937
938 * mi-cmd-disas.c: To here. New file.
939
9402000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
941
942 * mi-cmd-stack.c: Remove include of mi-out.h.
943
944 * mi-main.c (mi_cmd_disassemble): Update function to use argc/argv
945 interface.
946
947 * mi-cmds.h: Ditto.
948
949 * mi-cmds.c: Ditto.
950
9512000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
952
953 * gdbmi.texinfo: Update stack commands descriptions.
954 Add thread commands descriptions and examples.
955
956 * mi-main.c (mi_cmd_thread_list_ids): Fix typo.
957
9582000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
959
960 * mi-main.c (mi_cmd_thread_list_ids): New function, print a list
961 of currently known threads ids, and the total number of threads.
962 (mi_cmd_thread_select): New function. Switch current thread.
963
964 * mi-cmds.c (mi_cmds): Implement thread-list-ids by
965 mi_cmd_thread_list_ids, and thread-select by mi_cmd_thread_select.
966
967 * mi-cmds.h (mi_cmd_thread_select, mi_cmd_thread_list_ids): Export.
968
9692000-01-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
970
971 * mi-main.c: Move stack commands from here.
972
973 * mi-cmd-stack.c: To here. New file.
974
9752000-01-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
976
977 * mi-main.c (list_args_or_locals): Add a new paramter, the frame
978 for which to display args or locals. Don't use selected_frame
979 anymore, use the new parameter instead. Return void instead of
980 mi_cmd_result, let callers do so.
981 (mi_cmd_stack_list_args): Change interface. Now accept low and
982 high frame numbers to display args for a range of frames. Without
983 these two, display args for the whole stack.
984 (mi_cmd_stack_list_locals): Adapt to new interface for
985 list_args_or_locals.
986
9872000-01-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
988
989 * mi-main.c (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
990 mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
991 mi_cmd_stack_select_frame): Change to use argv type of parameters.
992
993 * mi-cmds.c (mi_cmds): Change stack-info-depth,
994 stack-list-arguments, stack-list-frames, stack-list-locals,
995 stack-select-frame to use argv parameters.
996
997 * mi-cmds.h (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
998 mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
999 mi_cmd_stack_select_frame): Update definitions.
1000
1001Tue Jan 4 12:38:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
1002
1003 * mi-main.c (mi_command_loop): Force the MI interface to use seven
1004 bit strings.
1005 * gdbmi.texinfo: Make it clear that a quoted C string is seven
1006 bit.
1007
1008Thu Dec 30 14:15:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1009
1010 * mi-getopt.c (mi_getopt): Rewrite. Allow long options.
1011 * mi-getopt.h (struct mi_opt): Declare.
1012 (mi_getopt): Update.
1013
1014 * mi-main.c (mi_cmd_data_read_memory), mi-cmd-break.c
1015 (mi_cmd_break_insert, mi_cmd_break_watch): Update.
1016
1017Wed Dec 29 23:38:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
1018
1019 * mi-cmd-break.c (mi_cmd_break_insert): Add support for -c
1020 <condition>, -i <ignore-count> and -p <thread>.
1021 (breakpoint_notify): New function.
1022 (mi_cmd_break_insert): Wrap GDB call with callback hooks so that
1023 MI is notified when ever a breakpoint is created.
1024
1025 * gdbmi.texinfo: Update.
1026
1027Fri Dec 24 11:23:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1028
1029 * mi-main.c (gdb_do_disassemble): Strip out more useless #ifdef
1030 UI_OUTs.
1031
10321999-12-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1033
1034 * mi-main.c (gdb_do_disassemble): Fix output. Lines that have no
1035 assembly instructions must still be outputted, to keep the source
1036 line numbering correct.
1037 Remove #ifdef UI_OUT's, they are useless.
1038
10391999-12-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1040
1041 * mi-main.c (gdb_do_disassemble): Don't print a new list in mixed
1042 mode, every time. Just do it when we actually encounter a new
1043 source line.
1044
10451999-12-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1046
1047 * mi-cmd-var.c (mi_cmd_var_list_children): Add test for C++ pseudo
1048 variable objects (private, public, protected) as these do not have
1049 a type and the -var-list-children operation was dumping core.
1050
1051Fri Dec 17 20:23:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1052
1053 * gdbmi.texinfo: Document recommended syntax for options.
1054
1055 * mi-main.c (mi_cmd_data_read_memory): Add support for ``-o
1056 <offset>''.
1057 * gdbmi.texinfo: Document.
1058
1059Wed Dec 15 17:43:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
1060
1061 * mi-getopt.h (mi_getopt): Change optarg to a char pointer. Check
1062 optind.
1063 * mi-cmd-break.c (mi_cmd_break_insert): Update.
1064
1065 * mi-main.c (mi_cmd_data_read_memory): Add fields "next-row-addr",
1066 "prev-row-addr", "next-page-addr", "prev-page-addr" and a per row
1067 "addr".
1068 * gdbmi.texinfo: Update.
1069
1070Wed Dec 15 01:05:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
1071
1072 * mi-cmds.h (mi_cmd_result): Add MI_CMD_CAUGHT_ERROR for when the
1073 error is caught.
1074
1075 * mi-main.c (captured_mi_execute_command): When
1076 MI_CMD_CAUGHT_ERROR return 0 rethrowing the eror.
1077
10781999-12-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1079
1080 * mi-cmd-break.c (mi_cmd_break_insert): Remove unused var.
1081
1082 * mi-cmd-var.c (mi_cmd_var_update): Remove unused variables.
1083
1084Mon Dec 13 18:43:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1085
1086 * mi-parse.c (mi_parse): Quote the command when printing it.
1087 (mi_parse_argv): Fix handling of quoted strings. Was not
1088 de-quoting them.
1089 (mi_parse_argv): Make static.
1090
1091Mon Dec 13 18:30:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1092
1093 * mi-cmds.h (mi_cmd_break_insert, mi_cmd_break_watch): Change type
1094 to mi_cmd_argv_ftype.
1095 * mi-cmds.c (mi_cmds): Update.
1096 * mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Change
1097 to new style of arguments with argc and argv. Parse arguments
1098 using mi_getopt.
1099
1100 * mi-cmd-break.c (mi_cmd_break_insert): Wrap body in #ifdef UI_OUT
1101 to avoid non-ui compile problems.
1102
1103Mon Dec 13 15:08:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1104
1105 * mi-getopt.h, mi-getopt.c: New files. Similar to getopt but with
1106 well defined semantics.
1107
1108Mon Dec 13 14:22:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
1109
1110 * mi-main.c (mi_cmd_break_insert, mi_cmd_break_watch, enum
1111 wp_type, enum bp_type): Move from here.
1112 * mi-cmd-break.c: To here. New file.
1113 (mi_cmd_break_insert, mi_cmd_break_insert, mi_cmd_break_watch):
1114 Use error to report problems.
1115
11161999-12-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1117
1118 * gdbmi.texinfo: Update description of exec-interrupt.
1119
1120 * mi-main.c (mi_cmd_exec_interrupt): If the program is not
1121 executing, don't try to interrupt it, but error out instead. Make
1122 sure previous_async_command is not null before duplicating it into
1123 last_async_command.
1124
1125 * gdbmi.texinfo: Add examples for data-evaluate-expression.
1126
11271999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1128
1129 * mi-cmd-var.c (mi_cmd_var_assign, mi_cmd_var_create,
1130 mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
1131 mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
1132 mi_cmd_var_info_type, mi_cmd_var_list_children,
1133 mi_cmd_var_set_format, mi_cmd_var_show_attributes,
1134 mi_cmd_var_show_format, mi_cmd_var_update): Change to use new
1135 style of arguments with argc and argv.
1136 (next_arg): Delete.
1137 (which_var): Delete.
1138
1139 * mi-cmds.c (mi_cmds): Update entries for mi_cmd_var_assign,
1140 mi_cmd_var_create, mi_cmd_var_delete,
1141 mi_cmd_var_evaluate_expression, mi_cmd_var_info_expression,
1142 mi_cmd_var_info_num_children, mi_cmd_var_info_type,
1143 mi_cmd_var_list_children, mi_cmd_var_set_format,
1144 mi_cmd_var_show_attributes, mi_cmd_var_show_format,
1145 mi_cmd_var_update.
1146
1147 * mi-cmds.h (mi_cmd_var_assign, mi_cmd_var_create,
1148 mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
1149 mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
1150 mi_cmd_var_info_type, mi_cmd_var_list_children,
1151 mi_cmd_var_set_format, mi_cmd_var_show_attributes,
1152 mi_cmd_var_show_format, mi_cmd_var_update): Update declarations.
1153
11541999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1155
1156 * gdbmi.texinfo: Comment out -data-assign command. * mi-main.c
1157 (mi_cmd_data_assign): Do not use, comment out. * mi-cmds.h
1158 (mi_cmd_data_assign): Remove. * mi-cmds.c: Remove -data-assign
1159 command from MI interface.
1160
11611999-12-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1162
1163 * mi-parse.c (mi_parse): Add '\n' at end of error messages, so
1164 that prompt comes out on new line.
1165
1166 * gdbmi.texinfo: Update disassembly command output.
1167
11681999-12-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1169
1170 * mi-main.c (gdb_do_disassemble): Update output for UI_OUT case.
1171
11721999-12-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1173
1174 * gdbmi.texinfo: Update exec-until output, including the reason
1175 for stopping.
1176
1177Thu Dec 2 17:17:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1178
1179 * mi-cmds.c: Include <string.h> for memset.
1180
11811999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1182
1183 * mi-main.c (mi_cmd_exec_return): ifdef the references to
1184 return_command_wrapper().
1185
11861999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1187
1188 * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_interrupt,
1189 mi_cmd_target_select, mi_execute_async_cli_command,
1190 mi_exec_async_cli_cmd_continuation, mi_load_progress): Don't print
1191 last_async_command if it is NULL.
1192 (mi_cmd_exec_return):
1193
11941999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1195
1196 * mi-main.c (mi_cmd_exec_return): Reimplement using
1197 return_command() instead of mi_execute_async_cli_command().
1198
11991999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1200
1201 * mi-cmds.h: Export mi_cmd_data_assign and
1202 mi_cmd_data_evaluate_expression.
1203
1204 * mi-cmds.c (mi_cmds): Hook data-assign to mi_cmd_data_assign and
1205 data-evaluate-expression to mi_cmd_data_evaluate_expression.
1206
1207 * mi-main.c (mi_cmd_data_assign): New function. Implement
1208 data-assign command.
1209 (mi_cmd_data_evaluate_expression): New function. Implement
1210 data-evaluate-expression command.
1211
12121999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1213
1214 * gdbmi.texinfo: Fix some texinfo formatting errors.
1215
12161999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1217
1218 * gdbmi.texinfo: Update data-list-register-values description.
1219
1220 * mi-cmds.h: Export mi_cmd_data_list_register_values.
1221
1222 * mi-cmds.c (mi_cmds): Hook data-list-register-values to
1223 mi_cmd_data_list_register_values.
1224
1225 * mi-main.c (mi_cmd_data_list_register_values): New
1226 function. Implements the -data-list-register-values command.
1227 (get_register): New function. Output the contents of a given
1228 register.
1229
1230Wed Dec 1 20:27:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1231
1232 * mi-main.c (mi_execute_async_cli_command): Append missing "\n"
1233 for synchronous stopped message.
1234
12351999-11-30 James Ingham <jingham@leda.cygnus.com>
1236
1237 * gdbmi.texinfo: Fix obvious typo in @end statement.
1238
1239Wed Dec 1 12:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
1240
1241 * mi-cmd-var.c: Include "value.h".
1242 * mi-console.c: Include <string.h>.
1243
1244Wed Dec 1 00:21:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1245
1246 * mi-main.c (captured_mi_execute_command): For a CLI command, pass
1247 "%s" to mi_execute_cli_command to stop core dumps.
1248 (captured_mi_execute_command): Echo CLI commands on gdb_stdlog.
1249
1250Wed Dec 1 00:10:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1251
1252 * gdbmi.texinfo: Explain NR-BYTES and ADDR.
1253
1254Tue Nov 30 23:31:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1255
1256 * mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete,
1257 mi_cmd_var_set_format, mi_cmd_var_show_format,
1258 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
1259 mi_cmd_var_info_type, mi_cmd_var_info_expression,
1260 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
1261 mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one, next_arg,
1262 which_var): New file. Move varobj commands to here from
1263 mi-main.c.
1264
1265 * mi-console.h, mi-console.c (mi_console_file_new,
1266 mi_console_file_delete, mi_console_file_fputs,
1267 mi_console_raw_packet, mi_console_file_flush): New files. Move
1268 mi_console_file to here from mi-main.c.
1269
1270Tue Nov 30 19:37:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1271
1272 * mi-main.c (captured_mi_execute_command): Use fputstr_unfiltered
1273 when printing error messages.
1274 (mi_cmd_execute): Ditto.
1275
12761999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1277
1278 * gdbmi.texinfo: Describe -data-list-changed-registers,
1279 -data-list-register-names. Add examples for
1280 -exec-next-instruction, exec-step-instruction, -exec-run,
1281 -exec-until. Format examples for -data-read-memory.
1282 update example for -target-download.
1283
12841999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1285
1286 * gdbmi.texinfo: Remove mentioning of inaccurate watchpoint hit
1287 count.
1288
1289Mon Nov 29 19:28:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
1290
1291 * mi-main.c (mi_execute_async_cli_command): Return ``enum
1292 mi_cmd_cmd_result''. mi_cmd_exec_run, mi_cmd_exec_next,
1293 mi_cmd_exec_step, mi_cmd_exec_step_instruction,
1294 mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return,
1295 mi_cmd_exec_continue): Update call.
1296 (mi_execute_async_cli_command): When target is synchronous, fake
1297 asynchronous behavour (ulgh). Allows tests to be run on built-in
1298 simulator and native targets.
1299
1300Mon Nov 29 15:15:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
1301
1302 * mi-cmds.h (mi_cmd_gdb_exit), mi-cmds.c (mi_cmds), mi-main.c
1303 (mi_cmd_gdb_exit): Change function signature to mi_cmd_argv_ftype.
1304
13051999-11-28 Andew Cagney <cagney@rat-in-a-hat.cygnus.com>
1306
1307 * mi-parse.c: Include <ctype.h> and <string.h>
1308
13091999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1310
1311 * gdbmi.texinfo: Added watchpoint command descriptions and
1312 examples.
1313
1314 * mi-main.c (mi_load_progress): Add parameter for total sent so far.
1315 Print it as well.
1316
1317Fri Nov 26 10:17:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
1318
1319 * gdbmi.texinfo (section Output Syntax): For lists, the <string>
1320 part of a <result> is optional. Clarify syntax.
1321 (appendix Proposed v2.0 Output Syntax): New section. Provide
1322 record of discussion of possible changes to syntax.
1323
1324Wed Nov 24 19:41:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
1325
1326 * mi-main.c (mi_cmd_data_read_memory): Simplify. Fix coredump
1327 when arguments were bad.
1328 (mi_cmd_execute): Change parameter to ``struct mi_parse''. Handle
1329 case of argv_func as well as args_func.
1330 (captured_mi_execute_command): Update.
1331
1332 * mi-cmds.c (struct mi_cmd): Add field for mi_cmd_argv_ftype.
1333 (mi_cmds): Update mi_cmd_data_read_memory.
1334 (mi_lookup): Return
1335
1336 * mi-cmds.h (mi_cmd_args_ftype): Rename mi_cmd_ftype. Make all
1337 functions of type this type.
1338 (mi_cmd_argv_ftype): Declare.
1339 (mi_cmd_data_read_memory): Change type to mi_cmd_argv_fytpe.
1340 (struct mi_cmd): Move declaration to here from mi-cmds.c.
1341 (mi_lookup): Return a pointer to ``struct mi_cmd''.
1342
1343Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1344
1345 * mi-parse.c (mi_parse): Initialize TOKEN when a CLI command.
1346
1347 * gdbmi.texinfo: Allow a <token> before a CLI command.
1348
1349 * mi-parse.h (struct mi_parse): Declare.
1350 (mi_parse): Change to return a ``struct mi_parse''.
1351 (enum mi_command_type): Delete PARSE_ERROR.
1352
1353 * mi-main.c (struct mi_execute_command_context): Delete.
1354 (captured_mi_execute_command): Update
1355 (mi_execute_command): Update. Check for mi_parse returning NULL.
1356
1357Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
1358
1359 * mi-parse.h: Remove const, from cmd parameter. Causes cascading
1360 warnings.
1361
1362Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1363
1364 * mi-parse.c (mi_parse): New function. Move parse code to here.
1365 * mi-main.c (parse): From here. Delete.
1366
1367Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
1368
1369 * mi-parse.c, mi-parse.h: New files. Implement mi_parse_env.
1370
1371Wed Nov 24 11:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1372
1373 * mi-out.c (mi_field_string): Make string parameter constant.
1374
13751999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1376
1377 * mi-cmds.h (mi_cmd_target_download): Export.
1378
1379 * mi-cmds.c (mi_cmds): Add mi_cmd_target_download.
1380
1381 * mi-main.c: Include <sys/time.h>.
1382 (mi_cmd_target_download): New function, implement the
1383 target-download command.
1384 (mi_load_progress): New function. Called via the
1385 show_load_progress hook. Prints updates every 0.5 secs.
1386 (mi_command_loop): Initialize the show_load_progress hook.
1387
13881999-11-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1389
1390 * mi-main.c (mi_cmd_exec_until): New function. Implement until
1391 command.
1392 (mi_cmd_exec_step_instruction): New function. Implement stepi
1393 command.
1394 (mi_cmd_exec_next_instruction): New function. Implement nexti
1395 command.
1396
1397 * mi-cmds.c (mi_cmds): Add mi_cmd_exec_step_instruction,
1398 mi_cmd_exec_next_instruction, mi_cmd_exec_until.
1399
1400 * mi-cmds.h (mi_cmd_exec_step_instruction,
1401 mi_cmd_exec_next_instruction, mi_cmd_exec_until): Export.
1402
1403Tue Nov 23 00:30:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1404
1405 * mi/gdbmi.texinfo: Document -data-read-memory.
1406
1407 * mi-main.c (mi_cmd_data_read_memory): Fix off-by-one check of
1408 argc.
1409 (mi_cmd_data_read_memory): Label the output table with "memory".
1410
1411Thu Nov 18 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1412
1413 * mi-main.c (mi_cmd_exec_interrupt, mi_cmd_break_insert,
1414 mi_cmd_break_watch, mi_cmd_disassemble, mi_cmd_execute): Replace
1415 strdup with xstrdup.
1416
1417Thu Nov 18 20:50:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
1418
1419 * mi-main.c (mi_cmd_data_read_memory): New function. Implement
1420 data-read-memory.
1421
1422 * mi-cmds.h, mi-cmds.c: Add mi_cmd_data_read_memory.
1423 * mi-cmds.c (mi_cmds): Ditto.
1424
14251999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1426
1427 * mi-cmds.h (mi_cmd_break_watch): Export.
1428
1429 * mi-cmds.c (mi_cmds): Hook up break-watch to function
1430 mi_cmd_break_watch.
1431
1432 * mi-main.c (wp_type): New enumeration for the possible types of
1433 watchpoints.
1434 (mi_cmd_break_watch): New function, implements the break-watch
1435 command.
1436
14371999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1438
1439 * mi-main.c (mi_cmd_break_insert): Handle case in which the command is
1440 just a -break-insert w/o args.
1441
1442Fri Nov 12 00:01:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1443
1444 * mi-out.c (mi_field_string): Always quote the string.
1445
14461999-11-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1447
1448 * mi-cmds.h(mi_cmd_data_list_changed_registers,
1449 mi_cmd_data_list_register_names): Export.
1450
1451 * mi-cmds.c (mi_cmds): Hook up data-list-changed-registers to
1452 mi_cmd_data_list_changed_registers and data-list-register-names to
1453 mi_cmd_data_list_register_names.
1454
1455 * mi-main.c (mi_cmd_data_list_changed_registers): New function,
1456 implements the data-list-changed-registers command.
1457 (mi_cmd_data_list_register_names): New function, implements the
1458 data-list-register-names command.
1459 (register_changed_p): New function. Decide whether the register
1460 contents have changed.
1461 (setup_architecture_data): New function. Initialize registers
1462 memory.
1463 (_initialize_mi_main): Call setup_architecture_data(), and
1464 register_gdbarch_swap().
1465
1466Wed Nov 10 18:35:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
1467
1468 * mi-main.c (mi_execute_command): Correctly quote error messages.
1469
1470Wed Nov 10 11:05:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
1471
1472 * mi/gdbmi.texinfo: Delete <stream-output>. Replaced by
1473 <c-string>.
1474
1475 * mi-main.c (mi_console_raw_packet): Always quote console output.
1476
1477Tue Nov 9 17:53:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1478
1479 * mi-main.c (mi_console_file_new), mi-out.c (mi_out_new): Replace
1480 the tui_file with a mem_file. Ya!
1481
1482 * mi-out.c (do_write): New function, wrapper to gdb_file_write.
1483 (mi_out_put): Pass do_write to gdb_file_put.
1484
1485 * mi-main.c (mi_console_file_flush): Rewrite. Use
1486 mi_console_raw_packet to send data to the console.
1487 (mi_console_raw_packet): New function. Correctly
1488 create quoted C string packets.
1489
14901999-11-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1491
1492 * mi-cmds.c (mi_cmds): Break-insert is now implemented by
1493 mi_cmd_break_insert.
1494 * mi-cmds.h (mi_cmd_break_insert): Export.
1495 * mi-main.c (bp_type): New enumeration.
1496 (mi_cmd_break_insert): New function. Implements all flavors of
1497 breakpoint insertion.
1498
1499Mon Nov 8 17:49:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
1500
1501 * mi-main.c (mi_console_file_flush): Replace gdb_file_get_strbuf
1502 with tui_file_get_strbuf.
1503
1504Fri Nov 5 17:06:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1505
1506 * mi-main.c (mi_console_file_delete, mi_console_file_fputs,
1507 mi_console_file_flush): Call internal_error instead of error.
1508
1509Thu Nov 4 19:53:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1510
1511 * mi-main.c (captured_mi_execute_command): New function.
1512 (mi_execute_command): Rewrite. Replace SET_TOP_LEVEL() with call
1513 to captured_mi_execute_command via catch_errors.
1514
1515Thu Nov 4 20:33:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1516
1517 * mi-main.c (clean): Delete.
1518 (mi_command_loop): Delete extern declaration of
1519 mi_execute_command.
1520
15211999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1522
1523 * mi-main.c (mi_cmd_stack_select_frame): Conditionalize the body
1524 on UI_OUT, because select_frame_command_wrapper is only defined if
1525 UI_OUT is.
1526 (mi_cmd_exec_interrupt): Conditionalize the body on UI_OUT,
1527 because interrupt_target_command_wrapper is only defined if UI_OUT is.
1528
1529 * mi-cmds.c (mi_cmds): Implement command exec-interrupt by
1530 mi_cmd_exec_interrupt.
1531
1532 * mi-main.c (mi_cmd_exec_interrupt): New function. Implements
1533 exec-interrupt command.
1534 (mi_cmd_execute): If the target is running save execution command
1535 token in previous_async_command. If the command is not 'interrupt'
1536 and the target is running, reject it.
1537 (clean): New function. Free the arg and reset it to NULL.
1538
1539 * mi-cmds.h (mi_cmd_exec_interrupt):Export.
1540
15411999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1542
1543 * mi-cmds.c (mi_cmds): Implement command stack-select-frame by
1544 mi_cmd_stack_select_frame.
1545
1546 * mi-main.c (mi_cmd_stack_select_frame): New function. Implements
1547 stack-select-frame command.
1548
1549 * mi-cmds.h (mi_cmd_select_frame):Export.
1550
15511999-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1552
1553 * mi-cmds.c (mi_cmds): Implement commands stack-list-locals and
1554 stack-list-arguments by mi_cmd_stack_list_locals and
1555 mi_cmd_stack_list_args.
1556
1557 * mi-main.c (mi_cmd_stack_list_locals): New function. Implements
1558 stack-list-locals command.
1559 (mi_cmd_stack_list_args): New function. Implements
1560 stack-list-arguments command.
1561 (list_args_or_locals): New function. Do all the work for the
1562 listing of locals or arguments.
1563
1564 * mi-cmds.h (mi_cmd_stack_list_args,mi_cmd_stack_list_locals) :
1565 Export.
1566
15671999-10-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1568
1569 * mi-cmds.c (mi_cmds): Add new command stack-info-depth.
1570
1571 * mi-main.c (mi_cmd_stack_info_depth): New function. Implements
1572 the stack-info-depth command.
1573 * mi-cmds.h (mi_cmd_stack_info_depth): Export.
1574
1575
15761999-10-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1577
1578 * mi-main.c (mi_execute_command): Handle MI_CMD_ERROR case
1579 properly, for command that return error code and don't set
1580 mi_error_message.
1581
1582 * mi-cmds.c (mi_cmds): Hook stack-list-frames command to
1583 mi_cmd_stack_list_frames function.
1584 * mi-cmds.h (mi_cmd_stack_list_frames): Export.
1585
1586 * mi-main.c (mi_execute_command): Deal with a return code of
1587 MI_CMD_ERROR from the execution of mi commands.
1588 (mi_error_message): Static string variable, to contain the error
1589 message from mi commands.
1590 (mi_cmd_stack_list_frames): New function. Prints a backtrace.
1591
15921999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1593
1594 * mi-main.c (mi_cmd_disassemble): Handle the new command line
1595 parameter that specifies the number of disassembly lines to be
1596 displayed.
1597 (gdb_do_disassemble): Add new parameter. Count the number of lines
1598 that have been displayed, and stop when limit is reached.
1599
1600Wed Oct 13 18:04:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
1601
1602 * mi-main.c (mi_command_loop): Don't initialize ``flush_hook''.
1603
16041999-10-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1605
1606 * mi/gdbmi.texinfo: More reformatting of the grammars.
1607
16081999-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1609
1610 * mi/gdbmi.texinfo: More TeX formatting.
1611
16121999-10-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1613
1614 * mi/gdbmi.texinfo: First pass completed. All commands should have
1615 some comments/info.
1616 Escape '@' output special char.
1617 Reformat for TeX.
1618
16191999-10-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1620
1621 * mi/gdbmi.texinfo: Filled in part of file command section, and
1622 stack section.
1623
16241999-10-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1625
1626 * mi/gdbmi.texinfo: Filled in some sections about execution
1627 commands.
1628
1629Tue Oct 5 15:27:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1630
1631 * mi-cmds.h: Sort table
1632 * mi-cmds.c: Ditto.
1633 (MI_TABLE_SIZE): Increase to 251.
1634
16351999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1636
1637 * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete): Add missing
1638 cleanups.
1639
16401999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1641
1642 * mi-main.c (next_arg): Returns lenght as well.
1643 (which_var, mi_cmd_var_create, mi_cmd_var_delete,
1644 mi_cmd_var_set_format, mi_cmd_var_update): Do not modify the input
1645 string, use allocated storage instead.
1646 (mi_cmd_var_assign): Adjust call to next_arg() to include new
1647 argument.
1648
16491999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1650
1651 * mi-main.c (mi_execute_command): Fix handling of errors.
1652
16531999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1654
1655 * mi-out.c (mi_out_new): Call tui_sfileopen() instead of
1656 deprecated gdb_file_init_astream().
1657 * mi-main.c (mi_console_file_new): Ditto.
1658
1659Mon Oct 4 15:17:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1660
1661 * mi-cmds.h: Sort function declarations.
1662 (mi_lookup): Add extern.
1663
1664 * mi-cmds.c (mi_lookup): Delete dead code.
1665 (build_table): Call internal_error instead of error.
1666 (build_table): Send trace output to gdb_stdlog.
1667
16681999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1669
1670 * mi-main.c (mi_execute_async_cli_command): Don't do the cleanups
1671 if target_executing is null.
1672
16731999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1674
1675 * mi-main.c (async_p): Change var name to event_loop_p.
1676
1677Mon Sep 27 15:11:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1678
1679 * mi-main.c (mi_execute_async_cli_command, mi_execute_command):
1680 Replace target_has_async with function target_can_async_p.
1681
1682Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1683
1684 * mi-main.c (mi_cmd_target_select_continuation): Delete function.
1685 (mi_cmd_target_select): Simplify. target-connect is guarenteed to
1686 be synchronous.
1687
1688Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1689
1690 * mi-cmds.h (mi_cmd_ftype): Replace mi_impl_ftype.
1691 (enum mi_cmd_result): Define.
1692 * mi-cmds.c (struct mi_cmd): Update.
1693 (mi_lookup): Update.
1694 * mi-main.c (mi_cmd_execute): Update.
1695
1696 * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_run, mi_cmd_exec_next,
1697 mi_cmd_exec_step, mi_cmd_target_select, mi_cmd_exec_continue,
1698 mi_cmd_exec_return, mi_cmd_exec_finish, mi_cmd_disassemble,
1699 mi_cmd_var_create, mi_cmd_var_delete, mi_cmd_var_set_format,
1700 mi_cmd_var_show_format, mi_cmd_var_info_num_children,
1701 mi_cmd_var_list_children, mi_cmd_var_info_type,
1702 mi_cmd_var_info_expression, mi_cmd_var_show_attributes,
1703 mi_cmd_var_evaluate_expression, mi_cmd_var_update): Update.
1704 Return MI_CMD_DONE.
1705
17061999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
1707
1708 * mi-main.c (mi_cmd_var_create): Use paddr() to format address
1709 on trace output.
1710
17111999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
1712
1713 * mi-main.c (mi_cmd_var_create): Test for varobjdebug before
1714 printing trace and send it to gdb_stdlog.
1715
1716Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1717
1718 * Makefile.in (mi-out.o): Add dependency list.
1719 * mi-out.c: Include "mi-out.h".
1720
17211999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1722
1723 * mi-main.c (_initialize_mi_main): Events on stadin are now
1724 handled by stdin_event_handler.
1725
17261999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1727
1728 * mi-cmds.c (mi_cmds): Add var-* commands.
1729
17301999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1731
1732 * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete,
1733 mi_cmd_var_set_format, mi_cmd_var_show_format,
1734 mi_cmd_var_info_num_children, mi_cmd_var_list_children,
1735 mi_cmd_var_info_type, mi_cmd_var_info_expression,
1736 mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
1737 mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one,
1738 which_var, next_arg): New functions. Implement the -var-*
1739 commands.
1740 * mi-cmds.h: Add prototypes for the above.
1741
17421999-09-14 Fernando Nasser <fnasser@totem.to.cygnus.com>
1743
1744 * mi-cmds.c (mi_cmds): Add detach command.
1745
17461999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1747
1748 * mi-cmds.c (lookup_table): Fix typo.
1749
17501999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1751
1752 * mi-cmds.c (mi_cmds): Fix typo and missing command.
1753
17541999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1755
1756 * mi-main.c: Properly align function prototypes.
1757 (mi_cmd_target_select): Proper check for NULL value.
1758
17591999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1760
1761 * mi-main.c (mi_execute_async_cli_command): Fix for native targets
1762 that do not have async yet.
1763
17641999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1765
1766 * mi-main.c (mi_cmd_disassemble): Remove unused var.
1767 (gdb_do_disassemble): Ditto.
1768
17691999-08-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1770
1771 * mi-main.c: Replace all the occurrences of 'asynch' in variable
1772 or function names with 'async' to make it consistent with the rest
1773 of gdb.
1774
1775Mon Aug 30 18:16:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1776
1777 * mi-main.c: #include <ctype.h> for isspace().
1778
17791999-08-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1780
1781 * mi-main.c (gdb_do_disassemble): This function returns void, not
1782 int.
1783
17841999-08-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1785
1786 * mi-main.c (mi_cmd_disassemble): Don't use atoi() on the high
1787 address string, just treat it same as address low.
1788 (gdb_do_disassemble): Parse high_address string before seeing if
1789 it is zero.
1790
17911999-08-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1792
1793 * mi-main.c (mi_cmd_disassemble): New function to produce
1794 disassembly output for mi.
1795 (gdb_dis_asm_read_memory): New function. Read the disassembly from
1796 the executable file, instead of target memory.
1797 (compare_lines): New function. Compare order of disassembly lines.
1798 (gdb_do_disassemble): New function. Do the real job of getting the
1799 assembly code out.
1800
1801 * mi-cmds.c (mi_cmds): Do data-disassemble mi command via the
1802 mi_cmd_disassemble function.
1803
1804 * mi-cmds.h: Export new function mi_cmd_disassemble.
1805
1806Wed Aug 25 15:58:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1807
1808 * mi-main.c (mi_command_loop): Remove references to ui-hooks.
1809
18101999-08-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1811
1812 * mi-main.c (mi_execute_asynch_cli_command): Fix the incorrect
1813 usage of strcat(): allocate enough space for the string.
1814
18151999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1816
1817 From Christopher Faylor <cgf@cygnus.com>
1818 * mi-main.c (mi_execute_command): Make sure we flush all the
1819 output after each command.
1820
18211999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1822
1823 * mi-main.c (_initialize_mi_main): Remove casting in call to
1824 add_file_handler.
1825
1826Sun Aug 8 17:20:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1827
1828 * mi-main.c (mi_cmd_target_select, mi_execute_asynch_cli_command):
1829 Replace call to fatal with call to internal_error.
1830
18311999-07-26 Fernando Nasser <fnasser@totem.to.cygnus.com>
1832
1833 * mi-main.c (mi_cmd_execute): Add return code.
1834 (mi_execute_command): Make appropriate changes when calling the
1835 function mentioned above.
1836 (mi_cmd_gdb_exit, mi_cmd_target_select,
1837 mi_cmd_target_select_continuation, mi_execute_command,
1838 mi_exec_asynch_cli_cmd, mi_exec_asynch_cli_cmd_continuation):
1839 Print token, prefix, class and output (if any) in one single group
1840 of statements.
1841 (mi_execute_command, mi_cmd_execute): Fix error prefix.
1842 (mi_cmd_execute): Use exec cleanup for token.
1843 * mi-out.c (mi_out_rewind): New function.
1844 * mi-out.h: Prototype for the above.
1845
18461999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1847
1848 * mi-main.c (mi_cmd_gdb_exit): Use buffer for exit message.
1849 (mi_cmd_execute): Route error messages to correct file.
1850 (mi_execute_asynch_cli_command): Insert line feed after running
1851 message.
1852
18531999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1854
1855 * mi-out.h (mi_out_buffered): Add extern declaration.
1856 * mi-out.c (mi_out_buffered): New function. Insert a string at the
1857 current buffer position.
1858 * mi-main.c (mi_cmd_target_select, mi_execute_command,
1859 mi_cmd_execute, mi_execute_asynch_cli_command): Use the above
1860 function instead of printing to raw_stdout.
1861 (mi_cmd_target_select, mi_cmd_target_select_continuation,
1862 mi_execute_command, mi_cmd_execute, mi_execute_cli_command,
1863 mi_exec_asynch_cli_cmd_continuation): Fix handling of token and
1864 prefix.
1865 (mi_execute_cli_command): Remove parameter no longer needed.
1866
18671999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1868
1869 * mi-main.c (mi_cmd_target_select_continuation): Print the numeric
1870 token when we are connected.
1871 (mi_execute_command): Don't print the token now, do it later.
1872 (mi_execute_cli_command): Add a new parameter for the numeric
1873 token. Print the token, the prefix and the class after the
1874 command has executed, not before.
1875 (mi_execute_asynch_cli_command): Don't print an extra blank line.
1876
18771999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1878
1879 * mi-main.c (mi_gdb_exit): Add \n at the end.
1880
18811999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1882
1883 * mi-main.c (mi_cmd_execute): New function. Dispatch a mi operation.
1884 (mi_execute_command): Use the above.
1885
18861999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
1887
1888 * mi-main.c: Fix identation.
1889
18901999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1891
1892 * mi-main.c: Include target.h and inferior.h.
1893 (mi_cmd_target_select): New function to execute the target-select
1894 mi operation.
1895 (mi_cmd_target_select_continuation): New function. Continuation
1896 for the target-select operation.
1897 (mi_execute_command): In case of an MI command which requires
1898 asynchronous execution, do not try to display the result now. If
1899 the execution has to look synchronous don't display the "(gdb)"
1900 prompt.
1901 (mi_execute_asynch_cli_command): Invoke real asynchronous
1902 commands, set up exec_cleanups, and continuations.
1903 (mi_exec_asynch_cli_cmd_continuation): New function. Continuation
1904 for all the MI execution commands except 'target-select'.
1905 (mi_execute_command): Handle null commands by exiting gdb, instead
1906 of core dumping.
1907
1908 * mi-cmds.c (mi_cmds): Hook up -target-select operation to new mi
1909 function.
1910
1911 * mi-cmds.h (mi_cmd_target_select): Add extern declaration.
1912
1913Thu Jul 15 10:31:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1914
1915 * mi-main.c (struct mi_console_file): Add field ``prefix''.
1916 (mi_console_file_new): Add argument prefix. Initialize prefix
1917 field.
1918 (mi_console_file_flush): Use ``prefix'' instead of "~" as the
1919 prefix string.
1920 (mi_command_loop): Update stream output prefixes. gdb_stdout ==
1921 "~", gdb_stderr / gdb_stdlog == "&", gdb_stdtarg == "@".
1922
19231999-07-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
1924
1925 * mi-main.c (ui_out_data): New field first_header. Fix output when
1926 no breakpoints are found.
1927 (mi_table_begin, mi_table_body, mi_table_header): Test for
1928 first_header.
1929 (mi_table_end): Test for supress_field_separator.
1930 (mi_message): Remove messages from MI output.
1931
19321999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
1933
1934 * mi-cmds.c (mi_cmds[]): Delete gdb-cli operation.
1935 * mi-main.c (parse): Remove ifdefs for cli commands parsing.
1936 (mi-execute-command): Ditto.
1937
1938Mon Jun 28 13:06:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1939
1940 * mi-out.h: New file.
1941 (mi_out_new, mi_out_put): Move mi specific delcarations to here.
1942 * ui-out.h: From here.
1943
1944 * mi-main.c: Include "mi-out.h".
1945
19461999-06-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
1947
1948 * top.c (print_gdb_version): Add the word HEADLESS when output
1949 follows headless format.
1950 (print_command_lines): Fix typo.
1951
19521999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1953
1954 * event-loop.h: Export input_fd.
1955 * mi-main.c (mi_command_loop): Use the event loop if running
1956 asynchronously.
1957 (mi_execute_command_wrapper): New function.
1958 (_initialize_mi-main): Set things up for running asynchronously.
1959
19601999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
1961
1962 * mi-cmds.c (mi_lookup): Deleted.
1963 (lookup_table): New function. Replaces old mi_lookup() for local
1964 use.
1965 (mi_lookup): New function. External interface for command table
1966 searchs.
1967 (build_table): New definition.
1968 (mi_cmds[]): Add several command implementations and the gdb-cli
1969 special operation.
1970 (mi_cmd_execute): Deleted.
1971 * mi-cmds.h: Add type definition for command implementation
1972 function pointers, add declaration for new implementation
1973 functions and a declaration for mi_lookup().
1974 * mi-main.c (mi_execute_asynch_cli_command): New
1975 function. Captures code that was repeated for all asynch
1976 operations.
1977 (mi_cmd_exec_*): Use the above new function.
1978 (mi_gdb_cmd_exit): Fix the output, printing something appropriate.
1979 (mi_cmd_exec_finish): New operation implementation function.
1980 (mi_cmd_exec_return): Ditto.
1981 (parse): Prepare to remove cli commands.
1982 (mi_execute_command): Fix the output and change the way mi-cmds is
1983 used.
1984
19851999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
1986
1987 * mi-out.c (mi_table_begin): Add missing field separator call.
1988
1989Thu Jun 17 21:05:40 1999 Fernando Nasser <fnasser@tofu.to.cygnus.com>
1990
1991 * breakpoint.c (breakpoint_1): Remove space in breakpoint table
1992 id.
1993 (mention): Use ui_out for last new line (forgotten).
1994
19951999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
1996
1997 * mi-main.c (mi_console_file_flush): Prevent prefix printing when
1998 buffer empty; change prefix to '~'.
1999 (mi_cmd_exec_*): Prefix normal output with '^' instead of
2000 ','; remove unwanted new lines before "stopped".
2001
20021999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
2003
2004 * mi-cmds.c (struct mi_cmds): Updated entries for -exec-continue
2005 and exec-next operations.
2006 (mi_cmd_execute): New text for error messages.
2007 * mi-cmds.h: Add declaration for mi_cmd_exec_next and
2008 mi_cmd_exec_continue.
2009 * mi-main.c (mi_cmd_exec_next): New function. Implements exec-next
2010 operation.
2011 (mi_cmd_exec_continue): New function. Implements exec-continue
2012 operation.
2013 (mi_execute_comand): Add missing space to prompt.
2014 (mi_cmd_exec_run): Ditto.
2015 (mi_cmd_exec_step): Ditto.
2016 * mi-out.c (mi_out_new): Add flags argument to ui_out_new call.
2017 (ui_list_end): Reset supress_field_separator flag.
2018
2019Sat Jun 12 11:49:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
2020
2021 * mi-cmds.h. mi-cmds.c (exec step): Command implemented by
2022 mi_cmd_exec_step instead of cli call.
2023 * mi-main.c (mi_cmd_exec_step): New function.
2024
2025 * mi-cmds.h. mi-cmds.c (exec run): Command implemented by
2026 mi_cmd_exec_run instead of cli call.
2027 * mi-main.c (mi_cmd_exec_run): New function.
2028
2029 * mi-cmds.h. mi-cmds.c (gdb exit): Command implemented by
2030 mi_cmd_gdb_exit instead of quit_force.
2031 * mi-main.c (mi_cmd_gdb_exit): New function.
2032
2033Sat Jun 12 11:33:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
2034
2035 * mi-main.c (mi_command_loop): Pass mi_input to
2036 simplified_command_loop.
2037 (mi_input): New function. Calls gdb_readline with no prompt.
2038
2039Sat Jun 12 11:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2040
2041 * mi-main.c (mi_console_file_fputs): Re-implement. Use a buffer
2042 to accumulate output.
2043
2044 * mi-main.c (struct mi_console_file): Add a buffer.
2045 (mi_console_file_new): Create a buffer.
2046 (mi_console_file_flush): New function.
2047
2048Sat Jun 12 10:59:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
2049
2050 * mi-cmds.h (raw_stdout): Declare. Will be moved later.
2051 * mi-cmds.c (mi_cmd_execute): Send error messages to RAW stdout.
2052 (mi_cmds): Sort by class.
2053
2054 * mi-main.c (raw_stdout): Make global.
2055 * mi-main.c: Remove #ifdef UI_OUT. File assumes UI_OUT is
2056 present.
2057 * mi-main.c: Include "gdb_string.h".
2058 (mi_out_put): Delete declaration.
2059
20601999-06-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
2061
2062 * mi-main.c: Add pre-processor test for UI_OUT.
2063 (mi_execute_command): Add pre-processor test for UI_OUT.
2064
2065Fri Jun 11 23:11:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
2066
2067 * mi-main.c (raw_stdout): New variable.
2068 (mi_execute_command): Write mi-out direct to raw_stdout.
2069 (mi_command_loop): Create raw_stdout. Attach gdb_stdout to the
2070 console.
2071 (mi_console_file_fputs, mi_console_file_delete,
2072 mi_console_file_new): New functions.
2073 (struct mi_console_file): Declare.
2074
2075Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2076
2077 * mi-main.c (mi_execute_command): Call mi_out_put to display the
2078 result.
2079 * mi-out.c (mi_out_put): New function.
2080 * ui-out.h (mi_out_put): Add declare. Will move later.
2081 * Makefile.in (mi-cmds.o, mi-main.o): Add dependency on ui-out.h.
2082
2083 * mi-out.c (mi_field_string, mi_field_fmt, mi_message, mi_flush,
2084 out_field_fmt, list_open, list_close): Replace gdb_stdout with
2085 data->buffer.
2086 (field_separator, list_open, list_close): Add uiout parameter.
2087 (mi_table_begin, mi_table_body, mi_table_end, mi_list_begin,
2088 mi_list_end, mi_field_string, mi_field_fmt, out_field_fmt,
2089 out_field_fmt): Update.
2090
2091 * mi-out.c (mi_out_new): Initialize supress_field_separator.
2092 (supress_field_separator): Move into mi-out local data object.
2093 (mi_table_begin, mi_list_begin, field_separator): Update.
2094
2095Fri Jun 11 16:08:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2096
2097 * mi-out.c (mi_out_new): New function, replace init_mi_out.
2098 * mi-main.c (mi_command_loop): Call mi_out_new().
2099
2100 * ui-out.h (mi_out_new): Add declaration. Will move later.
2101 (mi_ui_out_impl): Delete.
2102
2103Wed Jun 9 16:42:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
2104
2105 * mi-main.c: Include "ui-hooks.h".
2106 (mi_init_ui, mi_command_loop): New functions.
2107 (_initialize_mi_main): Install ``mi'' as the interpreter when
2108 selected.
2109
2110Mon Jun 7 18:43:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
2111
2112 From Fernando Nasser <fnasser@totem.to.cygnus.com>
2113 * mi-cmds.c (build_table): Clean up error message.
2114 * mi-cmds.c (mi_cmd_execute), mi-main.c (mi_execute_command): Only
2115 print debug information when mi_debug_p.
2116 * mi-cmds.h (mi_debug_p), mi-main.c: Global, control debug messages.
2117
2118Thu Jun 3 00:44:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
2119
2120 From Fernando Nasser <fnasser@totem.to.cygnus.com>:
2121 * mi-cmds.c: Add CLI definitions for "exec-arguments",
2122 "exec-next", "gdb-exit", "break-list", "break-info", "exec-step"
2123 and "stack-list-frames" to mi_cmds.
2124 (struct mi_command): Add ``from_tty'' argument to func.
2125 * mi-cmds.h (quit_force): Declare.
2126
21271999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
2128
2129 * mi-out.c (mi_table_end): Remove unwanted "\n".
2130
2131Thu May 27 14:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2132
2133 * top.c: Include "ui-hooks.h".
2134 (call_interp_loop): Tempoary. Pass mi_execute_command to
2135 simplified_command_loop. Initialize gdb_stdout & gdb_stderr to
2136 stdio gdb_file streams. Force all hooks to null.
2137
2138 * mi-cmds.h, mi-main.c, mi-cmds.c: New files.
2139 * Makefile.in (SFILES): Add mi-main.c, mi-cmds.c
2140 (COMMON_OBS): Add mi-main.o, mi-cmds.o.
2141 (mi_cmds_h): Define.
2142
2143Wed May 26 12:39:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
2144
2145 * top.c (call_interp_loop): Hack. Add extern declaration for
2146 mi_ui_out_impl.
2147
21481999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
2149
2150 * mi-out.c: New table syntax.
2151
2152Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
2153
2154 mi-out.c (_initialize_mi_out): Add external declaration.
2155
21561999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2157
2158 * mi-out.c (mi_table_begin): Added missing parameter.
2159
21601999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2161
2162 * mi-out.c: Changed table markers and added table id.
2163
21641999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2165
2166 * mi-out.c: New file. Implements low-level ui-out primitives for
2167 CLI-based interaction.
2168
2169\f
2170Local Variables:
2171mode: change-log
2172left-margin: 8
2173fill-column: 74
2174version-control: never
2175End:
This page took 0.38259 seconds and 4 git commands to generate.