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