aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
AgeCommit message (Collapse)AuthorFilesLines
2002-11-292002-11-29 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-5/+11
* stack.c (selected_frame, select_frame): Move from here ... * frame.c (selected_frame, select_frame): ... to here. Include "language.h". * Makefile.in (frame.o): Update dependencies. * frame.c (get_selected_frame): New function. * frame.h (get_selected_frame): Declare. (deprecated_selected_frame): Rename selected_frame. * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update. * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update. * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update. * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update. * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update. * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update. * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update. * z8k-tdep.c, cli/cli-cmds.c: Update. Index: mi/ChangeLog 2002-11-29 Andrew Cagney <ac131313@redhat.com> * mi/mi-cmd-stack.c, mi/mi-main.c: Update to use deprecated_selected_frame. Index: tui/ChangeLog 2002-11-29 Andrew Cagney <ac131313@redhat.com> * tui/tui-hooks.c: Update to use deprecated_selected_frame. * tui/tui.c, tui/tuiDisassem.c, tui/tuiRegs.c: Ditto. * tui/tuiSource.c, tui/tuiSourceWin.c, tui/tuiWin.c: Ditto.
2002-11-142002-11-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-2/+7
* regcache.h (deprecated_read_register_bytes): Rename read_register_bytes. (deprecated_write_register_bytes): Rename write_register_bytes. * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update. * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update. * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update. * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update. * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update. * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update. * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update. * config/nm-m3.h, config/h8500/tm-h8500.h: Update. * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update. * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update. * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update. * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update. * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update. * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update. 2002-11-13 Andrew Cagney <ac131313@redhat.com> * mi-main.c (mi_cmd_data_write_register_values): Use deprecated_write_register_bytes instead of write_register_bytes.
2002-11-112002-11-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-1/+20
* gdbmi.texinfo (-var-assign): Add comments about interaction with -var-update and add an example. Part of fix for gdb/702.
2002-11-082002-11-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-8/+28
* mi-main.c (mi_command_loop): Initialize raw_stdout and gdb_stdout only if mi version is <= 1. (mi_init_ui): Initialize raw_stdout and gdb_stdout if mi version is > 1 so startup message is treated as console output. This is part of fix for PR gdb/604.
2002-11-072002-11-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-1/+7
* mi-cmd-var.c (mi_cmd_var_create): Change the function used to parse the frame addr from parse_and_eval_address() to string_to_core_addr(). This is a fix for PR gdb/494.
2002-10-232002-10-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston4-24/+47
* mi-cmd-var.c: Change all remaining occurrences of ui_out_tuple_begin to make_cleanup_ui_out_tuple_begin_end. Change all remaining occurrences of ui_out_list_begin to make_cleanup_ui_out_list_begin_end. Use do_cleanups instead of ui_out_list_end or ui_out_tuple_end. This is a fix for PR gdb/680. * mi-cmd-stack.c: Ditto. * mi-main.c: Ditto.
2002-10-22 * mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERRORKeith Seitz2-1/+11
when we really did catch an error(). If we got GDB_RC_FAIL, return MI_CMD_ERROR instead.
2002-10-032002-10-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-21/+26
* gdbmi.texinfo: Fix examples that show frames to remove extraneous blank in level field. Part of fix for PR gdb/192.
2002-10-032002-10-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-5/+32
* mi-cmd-var.c (mi_cmd_var_update): Fix for PR gdb/672. For m2, output list begin and end for "changelist" rather than tuple begin/end. (varobj_update_one): For m2, add tuple begin and end for varobj update output.
2002-10-022002-10-02 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-9/+16
* inferior.h (registers_info, stepi_command, nexti_command, continue_command, interrupt_target_command): Export from infcmd.c. * frame.h (args_info, selected_frame_level_changed_hook, return_command): Export from stack.c. * v850ice.c (stepi_command, nexti_command, continue_command): use prototypes from inferior.h. * tracepoint.c (registers_info, args_info, locals_info): Use prototypes from frame.h and inferior.h. * Makefile.in (mi-main.o): Add dependency on frame.h. 2002-10-02 Elena Zannoni <ezannoni@redhat.com> * mi-main.c (mi_cmd_exec_return): Don't use return_command_wrapper, use return_command instead. (mi_cmd_exec_interrupt): Don't use interrupt_target_command_wrapper, use interrupt_target_command instead. (return_command_wrapper, interrupt_target_command_wrapper): Delete. Include frame.h. 2002-10-02 Elena Zannoni <ezannoni@redhat.com> * tui-hooks.c (selected_frame_level_changed_hook): Use the one exported from frame.h.
2002-10-012002-10-01 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-36/+21
* NEWS: Mention that MI syntax, selected by "mi" changed to "mi2" and that "mi0" syntax has been removed. 2002-10-01 Andrew Cagney <ac131313@redhat.com> * gdb.texinfo (Mode Options): Update --interpreter option. "mi2" and "mi1" instead of "mi1" and "mi0". 2002-10-01 Andrew Cagney <ac131313@redhat.com> * mi-main.c (mi2_command_loop): New function. (mi0_command_loop): Delete function. (_initialize_mi_main): Recognize, and default to, "mi2". Do not recognize "mi0". * mi-out.c (mi_table_begin): Remove mi0 code. (mi_table_body, mi_table_end): Ditto. (mi_table_header, mi_open, mi_close): Ditto.
2002-09-302002-09-29 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-0/+17
* mi-out.c (mi_version): New function. * mi-out.h (mi_version): Declare.
2002-09-30 * disasm.c: New file.Fernando Nasser1-350/+8
* disasm.h: New file. * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c. (compare_lines): Ditto. (dump_insns): Ditto. (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout argument. (do_assembly_only): Ditto. (do_disassembly): Renamed to gdb_disassembly and moved to disasm.c. Sdded uiout argument. * Makefile.in: Add new files. Reorder SFILES list. Update dependencies. Include libgdb.a later in the insight executable.
2002-09-272002-07-12 Mo DeJong <supermo@bayarea.net>Andrew Cagney2-0/+10
* gdbmi.texinfo (var-evaluate-expression): Note that var-list-children must be invoked before child variable values can be evaluated.
2002-09-262002-09-26 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+10
* mi-cmd-disas.c (dump_insns): Add text only output for CLI. (do_mixed_source_and_assembly): Ditto.
2002-09-11 * mi-main.c (mi_cmd_data_list_register_names): Use cleanupsKeith Seitz2-12/+34
for the uiout list. Do the cleanups when returning an error. (mi_cmd_data_list_changed_registers): Ditto. (mi_cmd_data_list_register_values): Use cleanups for the uiout list and tuples. Do the cleanups when returning errors.
2002-07-302002-07-30 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-0/+8
* symtab.h: Replace #include "gdb_obstack.h" with opaque declaration. * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h". * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto. * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto. * arch-utils.c, cli/cli-setshow.c: Unconditionally include "gdb_string.h". * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies. (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto. (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto. (avr-tdep.o, mon960-rom.o): Ditto. (aout_stabs_gnu_h): Define. (symtab_h): Remove $(gdb_obstack_h).
2002-06-17 * gdbmi.texinfo: Update command examples with real MI behavior.Keith Seitz2-5/+11
2002-05-20 * mi-main.c (captured_mi_execute_command): Add uiout parameter.Keith Seitz2-19/+71
"data" is now a structure which is used to pass data to/from this function to mi_execute_command. Modify function to comply with requirements from catch_exceptions. Store real return result and command's return result in data. (mi_execute_command): Use catch_exceptions. Use enum to handle actions to be performed instead of overloading catch_errors return result and the mi return result.
2002-04-21* frame.h (selected_frame_level): Document as deprecated.Andrew Cagney2-1/+5
(frame_relative_level): Declare. * stack.c (frame_relative_level): New function. (selected_frame_level): Document as deprecated. (select_frame): Do not set the selected_frame_level. * stack.c (frame_info, record_selected_frame): Update. (frame_command, current_frame_command): Update. (up_silently_base, up_command, down_silently_base): Update. (down_command): Update. * inflow.c (kill_command): Update. * tracepoint.c (finish_tfind_command): Update. * corelow.c (core_open): Update. * thread.c (info_threads_command): Update. (do_captured_thread_select): Update. * infcmd.c (finish_command): Update. * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
2002-04-152002-04-14 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-1/+1
* mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN instead of tm_print_insn.
2002-04-12* defs.h (read_relative_register_raw_bytes): Delete declaration.Andrew Cagney2-5/+7
* frame.c (frame_register_read): New function. Return non-zero on success. (read_relative_register_raw_bytes_for_frame): Delete. (read_relative_register_raw_bytes): Delete. * frame.h (frame_register_read): Declare. * d30v-tdep.c: Update Copyright. Use frame_register_read. * sh-tdep.c: Ditto. * infcmd.c (do_registers_info): Ditto. * hppa-tdep.c: Ditto. * rs6000-tdep.c: Ditto. * h8500-tdep.c: Ditto. * mips-tdep.c: Ditto. * h8300-tdep.c: Ditto. * z8k-tdep.c: Ditto.
2002-04-082002-04-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-33/+32
* mi-cmd-disas.c: Run through indent.
2002-04-082002-04-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-291/+305
* mi-cmd-disas.c (dump_insns): New function. (do_mixed_source_and_assembly): New function. (do_assembly_only): New function. (do_disassembly): New function. (mi_cmd_disassemble): Rewrite using smaller, more modular functions.
2002-04-05gdb/ChangeLog:Jim Blandy2-1/+6
* stack.c (get_selected_block): Add new argument `addr_in_block', used to return the exact code address we used to select the block, not just the block. * blockframe.c (get_frame_block, get_current_block): Same. * frame.h (get_frame_block, get_current_block, get_selected_block): Update declarations. * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c, linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed. gdb/mi/ChangeLog: * mi-cmd-stack.c (list_args_or_locals): Pass new arg to get_frame_block. (See entry in gdb/ChangeLog.)
2002-04-052002-04-05 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-3/+9
* mi-cmd-disas.c (mi_cmd_disassemble): Use TARGET_PRINT_INSN instead of tm_print_insn. Update copyright year.
2002-04-042002-04-04 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-0/+9
* mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function markers in the line table.
2002-03-19* defs.h (XMALLOC): Define.Andrew Cagney7-33/+24
* gdb-events.sh (XMALLOC): Delete macro. * gdb-events.c, gdb-events.h: Regenerate. * gdbarch.sh (XMALLOC): Delete macro. * gdbarch.c: Regenerate. * serial.c (XMALLOC): Delete macro. * ui-file.c (XMALLOC): Ditto. * ser-unix.h (XMALLOC): Ditto. * sh-tdep.c (XMALLOC): Ditto. * ui-out.c (XMALLOC): Ditto. * utils.c (XMALLOC): Ditto. * i386-tdep.c (XMALLOC): Ditto. * gdb-events.c (XMALLOC): Ditto. * d10v-tdep.c (XMALLOC): Ditto. * cli-out.c (XMALLOC): Ditto. * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright. * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto. * ui-file.c, ui-out.c: Ditto.
2002-02-25Fix PR gdb/287. From wiz at danbala. Then->than and typos.Andrew Cagney2-1/+7
2002-02-05* mi-cmd-stack.c (list_args_or_locals): Move declaration ofJim Blandy2-1/+9
print_me inside the loop body, so it gets re-initialized every iteration. The cases for the different symbol kinds leave print_me unchanged if they don't want the symbol printed.
2002-01-22Eliminate texinfo 3.12 hacks.Andrew Cagney2-11/+10
2002-01-22FOOBAR, didn't ChangeLog UI_OUT removal.Andrew Cagney1-5/+3
2002-01-17Remove else clause to #if UI_OUT.Andrew Cagney4-21/+11
2002-01-05s/BIG_ENDIAN/BFD_ENDIAN_BIG/Andrew Cagney2-2/+2
2001-12-30Fix the application of GFDL in the Copyright notice.Eli Zaretskii2-10/+8
2001-10-122001-10-12 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-3/+6
* symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro. * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS. (make_symbol_completion_list): Likewise. (make_symbol_overload_list): Likewise. * buildsym.c (finish_block): Likewise. * breakpoint.c (get_catch_sals): Likewise. * mdebugread.c (mylookup_symbol): Likewise. * objfiles.c (objfile_relocate): Likewise. * printcmd.c (print_frame_args): Likewise. * stack.c (print_block_frame_locals): Likewise. (print_block_frame_labels): Likewise. (print_frame_arg_vars): Likewise. * symmisc.c (dump_symtab): Likewise. * tracepoint.c (add_local_symbols): Likewise. (scope_info): Likewise. 2001-10-12 Daniel Jacobowitz <drow@mvista.com> * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS. 2001-10-12 Daniel Jacobowitz <drow@mvista.com> * generic/gdbtk-cmds.c (gdb_listfuncs): Use ALL_BLOCK_SYMBOLS. * generic/gdbtk-stack.c (gdb_block_vars): Likewise. (gdb_get_blocks): Likewise. (gdb_get_vars_command): Likewise. 5~
2001-09-18Add ui_out parameter to libgdb functions.Andrew Cagney3-3/+12
2001-08-17 * mi-cmd-var.c (varobj_update_one): Update call toKeith Seitz2-1/+6
varobj_update to reflect recent api change.
2001-07-28Move libgdb library functions to gdb.h (new file).Andrew Cagney3-0/+7
Update everything related to this.
2001-07-12* mi-main.c (mi_execute_command): Flush output after ``(gdb)''Andrew Cagney2-1/+12
prompt. Bug reported by David Whedon. (mi_execute_async_cli_command): Ditto. (mi_exec_async_cli_cmd_continuation): Ditto. (mi_command_loop): Ditto.
2001-07-09* mi-out.c (mi_out_new): Initialize suppress_ouput field of newlyMark Kettenis2-0/+6
created `struct ui_out_data'.
2001-07-09Fix memory leak and compilation problems using AIX 5 native compiler.Kevin Buettner2-8/+25
2001-07-09* mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptrAndrew Cagney2-1/+6
with `struct value *'.
2001-07-09Make function declarators match function declarations.Kevin Buettner2-6/+12
2001-07-06Replace:Andrew Cagney2-1/+6
if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0) with: if (ui_out_is_mi_like_p (uiout))
2001-06-27For MI>0, output full breakpoint table header information. Output theAndrew Cagney3-43/+152
breakpoint table body as a list.
2001-06-26delete reference to query outputAndrew Cagney2-8/+5
2001-06-26* mi-cmd-stack.c (list_args_or_locals): Output a list of "args" orAndrew Cagney3-25/+33
"locals" entries. * gdbmi.texinfo (stack-list-locals, stack-list-arguments) (exec-interrupt, target-select, thread-select): Update documentation. * mi-stack.exp: Update. Output for args=... and locals=... changed to a list.
2001-06-26* mi-cmd-stack.c (mi_cmd_stack_list_frames): Output a list ofAndrew Cagney3-20/+30
"stack" entries. (mi_cmd_stack_list_args): Ditto for "stack-args". * gdbmi.texinfo (stack-list-frames, stack-list-arguments): Update documentation. (GDB/MI Stack Manipulation Commands): Fix section title. Was Stack Manipulation Commands in GDB/MI. * mi-stack.exp: Update. Output for stack=..., args=... and stack-args=... changed to a list.
2001-06-26Unscramble two merged patches. This puts memory lists back to normal.Andrew Cagney1-15/+15