summaryrefslogtreecommitdiff
path: root/gdb/mi
Commit message (Collapse)AuthorAgeFilesLines
* * mi/mi-cmd-var.c (varobj_update_one): Remove reference toJoel Brobecker2007-02-271-1/+0
| | | | unused WRONG_PARAM value since it was recently deleted.
* 2007-02-13 Denis Pilat <denis.pilat@st.com>Denis Pilat2007-02-131-28/+26
| | | | | | | | | | | | | | * varobj.h (enum varobj_update_error): New enum. * varobj.c (struct varobj_root): Add is_valid member. (varobj_get_type): Check for invalid varobj. (varobj_get_attributes): Likewise. (variable_editable):Likewise. (varobj_update): Likewise. Use varobj_update_error. (new_root_variable): Set root varobj as valid by default. (varobj_invalidate): New function. * symfile.c (clear_symtab_users): Use varobj_invalidate. * mi/mi-cmd-var.c (varobj_update_one): Change return type to void. Use varobj_update_error.
* * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.Nick Roberts2007-02-081-1/+1
| | | | | | | | | | | * gdb.mi/mi-var-block.exp, gdb.mi/mi2-var-block.exp * gdb.mi/mi-var-child.exp, gdb.mi/mi2-var-child.exp * gdb.mi/mi-var-child-f.exp, gdb.mi/mi-var-cmd.exp * gdb.mi/mi2-var-cmd.exp, gdb.mi/mi-var-display.exp * gdb.mi/mi2-var-display.exp, gdb.mi/gdb701.exp * gdb.mi/gdb792.exp, gdb.mi/gdb792.exp * lib/mi-support.exp: Update tests to include value field in output of -var-create.
* * mi/mi-parse.h: Include <sys/time.h>.Daniel Jacobowitz2007-02-051-0/+2
|
* *** empty log message ***Nick Roberts2007-02-041-2/+7
|
* Numerous formatting changes.Nick Roberts2007-02-031-101/+101
| | | | | (mi_cmd_data_write_register_values): Replace clause inadvertantly removed in my previous change.
* (mi_load_progress, timestamp, print_diff_now):Nick Roberts2007-02-021-4/+4
| | | | Use 1000000L instead of 1000000.
* * mi/mi-main.c: Include <sys/resource.h> if present.Nick Roberts2007-02-024-1/+123
| | | | | | | | | | | | | | | | | | (rusage): Declare if HAVE_GETRUSAGE. (current_command_ts, do_timings): New static variables. (timestamp, print_diff_now, print_diff, timeval_diff): New static timing functions. (mi_cmd_enable_timings): New function for new MI command. (captured_mi_execute_command, mi_execute_async_cli_command): Call timing functions. * mi/mi-cmds.c (mi_cmds): Add entry for new MI command -enable-timings. * mi/mi-cmds.h (mi_cmd_enable_timings): New extern. * mi/mi-parse.h: (mi_timestamp): New structure. (mi_parse): Add mi_timestamp* member.
* (mi_cmd_execute): Call free_all_values.Nick Roberts2007-01-231-0/+2
|
* * mi/mi-main.c: Remove obsolete comment.Mark Kettenis2007-01-131-1/+1
|
* Copyright updates for 2007.Daniel Jacobowitz2007-01-0923-24/+26
|
* Warning fixes.Daniel Jacobowitz2007-01-035-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ada-lang.c (find_struct_field): Initialize *byte_offset_p. * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i. * c-typeprint.c (c_type_print_varspec_suffix): Don't test length greater than or equal to zero. * m2-typeprint.c (m2_array): Likewise. * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. * gdbtypes.c (copy_type_recursive): Correct == typo. * i386-tdep.c (i386_skip_prologue): Remove stray semicolon. * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer greater than zero. * macroscope.c (sal_macro_scope): Don't name a local variable "main". (default_macro_scope): Remove unused variable. * prologue-value.h (pv_area_find_reg): Don't name an argument "register". * remote-fileio.c (remote_fio_func_map): Add missing braces. * remote.c (sigint_remote_twice_token, sigint_remote_token): Change type. (cleanup_sigint_signal_handler): Remove casts. * valprint.c (val_print): Use a volatile local for the modified argument. * varobj.c (languages): Remove extra array dimension. (varobj_create): Correct access to languages array. * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add missing braces. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise. * mi/mi-getopt.c (mi_valid_noargs): Likewise. * mi/mi-main.c (mi_cmd_data_read_memory): Likewise. (mi_cmd_data_write_memory): Likewise. * signals/signals.c (target_signal_to_string): Cast to int before comparing. * tui/tui-layout.c (init_and_make_win): Take and return a void *. Update all callers.
* (mi_cmds): Remove entries for -display-delete,Nick Roberts2007-01-021-5/+0
| | | | | -display-disable, -display-enable, -display-insert and -display-list.
* * mi/mi-main.c (mi_cmd_data_write_register_values): UseMark Kettenis2007-01-011-19/+8
| | | | | regcache_cooked_write_signed instead of deprecated_write_register_bytes.
* (mi_cmd_var_update): Fix memory leak.Nick Roberts2006-12-081-3/+3
|
* (mi_cmd_var_list_children): Remove unusedNick Roberts2006-11-291-1/+0
| | | | variable.
* 2006-07-29 Vladimir Prus <vladimir@codesourcery.com>Vladimir Prus2006-11-291-21/+30
| | | | | | * mi/mi-cmd-var.c (print_varobj): New function. (mi_cmd_var_create): Use the above. (mi_cmd_var_list_children): Likewise.
* 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>Vladimir Prus2006-11-281-1/+2
| | | | | * mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup handlers. Free expression.
* * utils.c (string_to_core_addr): Use error instead ofDaniel Jacobowitz2006-11-171-1/+4
| | | | | internal_error. * mi/mi-main.c (mi_execute_command): Check for a NULL message.
* * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Don't emit errorVladimir Prus2006-09-171-2/+0
| | | | | if high requested frame number is larger then number of available frames.
* Allow the HIGH-FRAME parameter for -stack-list-frames to be largerVladimir Prus2006-09-071-2/+0
| | | | than the number of available frames.
* Refer to next release of Emacs as 22.1.Nick Roberts2006-08-231-1/+1
|
* (gdbmi): Remove gdb-force-update, initializeNick Roberts2006-08-221-22/+30
| | | | | | | | | other variables. (gdbmi-send): Ensure any text properties can be removed. (gdbmi-prompt1): Update to gdb-ui.el (gud-gdbmi-marker-filter): Defer setting of gud-running. Keep gdb-done-regexp for partial-output-buffer. (gdb-stack-list-frames-handler): Add face to function names.
* PR remote/1966Daniel Jacobowitz2006-08-151-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dcache.c (dcache_write_line): Use target_write. (dcache_read_line): Use target_read. * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read. * symfile.c (struct load_section_data): Add new per-section members. (load_progress): New function. (load_section_callback): Pass load_progress to the new target_write_with_progress. * target.c (current_xfer_partial, memory_xfer_partial): New. (target_xfer_partial): New prototype. (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum) (do_xfer_memory, target_xfer_memory_partial) (target_read_memory_partial, target_write_memory_partial): Delete. (trust_readonly): Move higher in the file. (update_current_target): Use current_xer_partial. (target_xfer_partial): Use memory_xfer_partial. Handle TARGET_OBJECT_RAW_MEMORY specially. (target_read_memory): Use target_read. (target_write_memory): Use target_write. (default_xfer_partial): Call to_xfer_partial directly. (target_write_with_progress): New function, based on target_write. (target_write): Call it. * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY. (target_write_with_progress): New prototype. (do_xfer_memory, target_read_memory_partial) (target_write_memory_partial): Delete prototypes.
* gdb/Daniel Jacobowitz2006-07-051-4/+0
| | | | | | | | | | | | | | * remote.c (remote_xfer_partial): Remove KOD support. * target.h (enum target_object): Remove TARGET_OBJECT_KOD. * MAINTAINERS: Move Kernel Object Display entry to past maintainers. * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o): Remove KOD support. * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands. * NEWS: Mention KOD. * kod.h, kod.c, kod-cisco.c: Delete files. gdb/doc/ * doc/gdb.texinfo (KOD): Remove node. (GDB/MI Kod Commands): Remove commented out node.
* (gdbmi-send): Correct regexp for repeat commands.Nick Roberts2006-05-141-17/+18
| | | | | | (gdbmi): Use new variable name gdb-pc-address. (gdbmi-frame-handler): Use new variable name gdb-pc-address. Check that a match has been found.
* * mi/mi-main.c (captured_mi_execute_command): Check the returnDaniel Jacobowitz2006-05-051-11/+25
| | | | value of -interpreter-exec.
* (gdbmi-send): Improve regexp to repeat commands.Nick Roberts2006-03-251-23/+37
| | | | | | | | | | | | | Try to deal with continuation line. (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new variable names. (gdb-break-list-regexp, gdb-stack-list-frames-regexp): Future proof against new fields being added to MI output. (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file) (gdbmi-frame-handler): Update to new variable name gdb-get-buffer-create. (gdbmi-frame-handler): Use hollow-right-triangle for all selected frames which except the innermost (where execution has stopped).
* Use more functions from gdb-ui.el.Nick Roberts2006-02-141-285/+40
| | | | | | | (gdb-break-list-regexp): Match "what" field if present. (gdb-stack-list-frames-regexp): Match "from" field if present. (gdb-stack-list-frames-handler): Present output like "info breakpoints" so regexps can be shared with gdb-ui
* Update to reflect changes in Emacs 22.0.50.Nick Roberts2006-02-101-7/+9
|
* * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus intoMark Kettenis2006-01-101-1/+1
| | | | 'gdb_byte *'.
* * mi/mi-symbol-cmds.c:Eli Zaretskii2005-12-2322-66/+66
| | | | | | | | | | | | | | | | | | | | | | | | | * mi/mi-parse.h: * mi/mi-parse.c: * mi/mi-out.h: * mi/mi-out.c: * mi/mi-main.h: * mi/mi-main.c: * mi/mi-interp.c: * mi/mi-getopt.h: * mi/mi-getopt.c: * mi/mi-console.h: * mi/mi-console.c: * mi/mi-common.h: * mi/mi-common.c: * mi/mi-cmds.h: * mi/mi-cmds.c: * mi/mi-cmd-var.c: * mi/mi-cmd-stack.c: * mi/mi-cmd-file.c: * mi/mi-cmd-env.c: * mi/mi-cmd-disas.c: * mi/mi-cmd-break.c: Add (C) after Copyright. Update the FSF address.
* * mi/mi-interp.c (mi_interpreter_resume): Route target errorFrederic Riss2005-12-061-0/+2
| | | | through the MI.
* 2005-11-18 Andrew Stubbs <andrew.stubbs@st.com>Andrew Stubbs2005-11-181-2/+14
| | | | | * mi/mi-main.c (mi_load_progress): Ensure the use of the correct mi uiout for the duration of the function.
* (gdb-source-file-list): Declare.Nick Roberts2005-11-181-79/+78
| | | | | | | | | | | | | | (gdbmi): Bind new functions. (gdbmi-var-list-children-handler, gdbmi-var-list-children-regexp): Handle string expressions properly. Move "type" field into regexp. (gdbmi-var-update-regexp, gdbmi-var-update-handler): Handle string expressions properly. Update speedbar. (gdbmi-breakpoints-buffer, gdb-stack-buffer, gdb-locals-buffer) (gdb-registers-buffer): Use def-gdb-auto-update-trigger instead of def-gdb-auto-updated-buffer as handlers is defined explicitly. (gdb-stack-list-locals-handler): Handle string expressions properly. (gdb-data-list-register-values-handler) (gdb-data-list-register-values-custom): Fontify buffer.
* Sync with Emacs 22.0.50.Nick Roberts2005-10-281-1/+2
|
* From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>:Daniel Jacobowitz2005-07-312-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | gdb/ * cli-out.c (cli_field_fmt, cli_message, out_field_fmt): Add ATTR_FORMAT or ATTRIBUTE_FPTR_PRINTF. * complaints.c (vcomplaint): Likewise. * defs.h (xvasprintf, xstrvprintf, verror, vfatal) (internal_verror, internal_vwarning, vwarning) (deprecated_query_hook, deprecated_warning_hook) (deprecated_readline_begin_hook): Likewise. * disasm.c (fprintf_disasm): Likewise. * exceptions.c (throw_it): Likewise. * exceptions.h (throw_verror, throw_vfatal): Likewise. * mi/mi-interp.c (mi_interp_query_hook): Likewise. * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. * tui/tui-hooks.c (tui_query_hook): Likewise. * tui/tui-out.c (tui_field_fmt, tui_message, out_field_fmt): Likewise. * ui-out.c (default_field_fmt, default_message, uo_field_fmt) (uo_message): Likewise. * ui-out.h (ui_out_field_fmt, ui_out_message, field_fmt_ftype) (message_ftype): Likewise. * utils.c (vfprintf_maybe_filtered, internal_vproblem) (defaulted_query, printchar): Likewise. gdb/gdbserver/ * server.h (error, fatal, warning): Add ATTR_FORMAT.
* Update for changes in Emacs 22.0.50. Bring moreNick Roberts2005-07-151-188/+448
| | | | | features over from gdb-ui.el. Use "-var-update --all-values" for faster re-display of watch expressions.
* 2005-07-15 Nick Roberts <nickrob@snap.net.nz>Daniel Jacobowitz2005-07-153-27/+88
| | | | | | | | | | | | | | | | | | | | Daniel Jacobowitz <dan@codesourcery.com> * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values): New declarations. * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Use string constants instead of literals for MI command options. * mi/mi-cmd-var.c (mi_no_values, mi_simple_values, mi_all_values): New variables. (mi_parse_values_option, mi_print_value_p): New functions. (mi_cmd_var_list_children): Use mi_parse_values_option and mi_print_value_p. (mi_cmd_var_update): Support a PRINT_VALUES option. Update calls to varobj_update_one. (varobj_update_one): Take a print_values argument. Call mi_print_value_p. * varobj.c (varobj_get_gdb_type): New function. * varobj.h (varobj_get_gdb_type): New prototype.
* Index: gdb/ChangeLogBob Rossi2005-07-063-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +2005-07-06 Bob Rossi <bob@brasko.net> + + * fork-child.c (fork-inferior): Use accessor function for + inferior_io_terminal. + * infcmd.c (inferior_io_terminal): Make static. + (set_inferior_io_terminal): New function. + (get_inferior_io_terminal): Ditto. + (tty_command): Use accessor function. + (_initialize_infcmd): Add inferior_tty setshow variable. + (_initialize_infcmd): Remove tty command. + (_initialize_infcmd): Add a tty command that is an alias. + * inferior.h (set_inferior_io_terminal): New prototype. + (get_inferior_io_terminal): Ditto. + (new_tty_prefork): Add const qualifier to parameter. + * inflow.c (inferior_thisrun_terminal): Add const qualifier. + (new_tty_prefork): Add const qualifier to parameter. + * nto-procfs (procfs_create_inferior): Use accessor function. + (procfs_create_inferior): Add const qualifier to locals. + * win32-nat.c (child_create_inferior): Ditto. + * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): New function. + (mi_cmd_inferior_tty_set): Ditto. + * mi/mi-cmds.c (mi_cmds): Add inferior-tty-set and inferior-tty-show + * mi/mi-cmds.h (mi_cmd_inferior_tty_set): Add prototype. + (mi_cmd_inferior_tty_show): Ditto. Index: gdb/doc/ChangeLog +2005-07-06 Bob Rossi <bob@brasko.net> + + * gdb.texinfo (GDB/MI Miscellaneous Commands): Add -inferior-tty-set + and -inferior-tty-show. + (Input/Output): Document "set/show inferior-tty" and tty alias. Index: gdb/testsuite/ChangeLog +2005-07-06 Bob Rossi <bob@brasko.net> + + * gdb.mi/mi-basics.exp (test_setshow_inferior_tty): Test MI tty + command. + (Copyright): Update copyright.
* (mi_cmds): Replace entry for -stack-info-frame.Nick Roberts2005-06-191-0/+1
| | | | Make it use mi_cmd_stack_info_frame
* (mi_cmd_stack_info_frame): New declaration.Nick Roberts2005-06-191-0/+1
|
* (mi_cmd_stack_info_frame): New function.Nick Roberts2005-06-191-0/+10
|
* (mi_cmds): Remove entry for -stack-info-frame.Nick Roberts2005-06-181-1/+0
|
* (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth):Nick Roberts2005-06-181-16/+3
| | | | | | Don't test for stack. (mi_cmd_stack_select_frame): Make the argument mandatory. Don't test for stack.
* (mi_cmd_data_list_register_values): Remove test forNick Roberts2005-06-131-6/+0
| | | | registers now that mi_execute_command rewinds after an error.
* gdb/Daniel Jacobowitz2005-06-131-3/+4
| | | | | | | | | * mi/mi-main.c (register_changed_p, get_register): Use get_selected_frame. (mi_execute_command): Call mi_out_rewind after an error. testsuite/ * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Don't expect excess MI output after an error.
* This is a cleanup change. It is the beggining of allowing GDB/MI to beBob Rossi2005-05-292-0/+99
| | | | better understood (internally).
* 2005-05-22 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * frame.h (frame_register_unwind, frame_unwind_register) (get_frame_register, frame_register, put_frame_register) (get_frame_memory, safe_frame_unwind_memory) (frame_register_read): Use gdb_byte for byte buffer parameters. * trad-frame.h (trad_frame_get_register) (frame_get_prev_register): Ditto. * frame-unwind.h (frame_prev_register_ftype): Ditto. * frame.c (frame_pop, frame_register, frame_unwind_register) (get_frame_register, frame_unwind_register_signed) (frame_unwind_register_unsigned, frame_unwind_unsigned_register) (frame_register_read, get_frame_memory): Update. * trad-frame.c (trad_frame_get_prev_register): Update. (trad_frame_get_register): Update. * gdbcore.h (deprecated_read_memory_nobpt, read_memory): Ditto. * breakpoint.c (deprecated_read_memory_nobpt): Update. * corefile.c (read_memory): Update. * tramp-frame.c (tramp_frame_prev_register): Update. * valops.c (value_assign): Update. * sentinel-frame.c (sentinel_frame_prev_register): Update. * std-regs.c (value_of_builtin_frame_fp_reg) (value_of_builtin_frame_pc_reg): Update. * infcmd.c (default_print_registers_info): Update * dummy-frame.c (dummy_frame_prev_register): Update. * findvar.c (value_of_register, value_from_register): Update. * tui/tui-regs.c (tui_register_format, tui_get_register): Update. * mi/mi-main.c (register_changed_p, get_register): Update.
* 2005-04-26 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-04-262-4/+4
| | | | | | | | | | | | | | | | | | | Rename 'struct exception' to 'struct gdb_exception'. * wrapper.c: Update. * varobj.c: Update. * tui/tui-interp.c: Update. * remote.c: Update. * mi/mi-main.c: Update. * mi/mi-interp.c: Update. * linux-thread-db.c: Update. * interps.h: Update. * interps.c: Update. * exceptions.h: Update. * exceptions.c: Update. * dwarf2loc.c: Update. * cli/cli-interp.c: Update. * cli/cli-script.c: Update. * breakpoint.c: Update.