2009-05-28 Pierre Muller * Adapt to VALUE_ADDRESS removal. generic/gdbtk-cmds.c (gdb_eval): Use value_address function instead of VALUE_ADDRESS macro. 2009-05-24 Pierre Muller * Adapt to target_wait_hook change. * generic/gdbtk-hooks.c (gdbtk_wait): Add `options' argument. 2009-05-06 Pierre Muller * Adapt to read_pc function removal. * generic/gdbtk-cmds.c: Add "cache.h" include. (gdb_loc): Use regcache_read_pc instead of read_pc. 2009-04-23 Keith Seitz * library/vartree.itb (constructor): Remove the borderwidth 0 argument. 2009-04-23 Keith Seitz * library/mempref.itb (build_win): Replace libgui's "Labelledframe" with the iwidget's LabeledFrame. Replaced all occurrances. * libarary/memwin.itb (create_prefs): Use ManagedWin::open_dlg instead of ManagedWin::open. 2009-04-23 Keith Seitz * library/targetselection.itb (init_target_db): Add comment about "arguments" vs "options" on native debuggers. (build_win): If the target is "default", choose "Exec" for native debuggers. For cross debuggers, let the user choose. (write_saved): For exec targets, save target options to gdb via gdb_set_inferior_args. (config_dialog): For "exec" targets, save gdb's stored arguments into the options preference. 2009-04-07 Pierre Muller ARI fix: Use "gdb_stat.h" header instead of . * generic/gdbtk-cmds.c: Apply change. * generic/gdbtk.c: Ditto. 2009-04-07 Pierre Muller ARI fixes: xvasprintf and strdup rules. * generic/gdbtk-cmds.c (gdbtk_set_result): Replace xvasprintf by xstrvprintf. * generic/gdbtk-hooks.c (gdbtk_warning): Ditto. (gdbtk_readline_begin, gdbtk_query): Ditto. * generic/gdbtk.c (TclDebug): Ditto. * generic/gdbtk-varobj.c (variable_create): Replace strdup by xstrdup. 2009-03-27 Stan Shebs * generic/gdbtk-bp.c (gdb_actions_command): Update to handle tracepoints as breakpoints. (gdb_get_tracepoint_info): Ditto, plus use get_tracepoint and breakpoint locations. (tracepoint_exists): Ditto, plus use all_tracepoints. 2009-03-25 Pierre Muller ARI fix: "xasprintf" rule. * generic/gdbtk-bp.c (gdb_set_bp): Replace xasprintf by xstrprintf. (breakpoint_notify, tracepoint_notify):Ditto. * generic/gdbtk-cmds.c (gdbtk_load_source, gdbtk_load_asm):Ditto. * generic/gdbtk-hooks.c (gdbtk_ignorable_warning): Ditto. (gdbtk_set_hook, gdbtk_load_hash): Ditto. (gdbtk_selected_frame_changed, gdbtk_annotate_signal): Ditto. * generic/gdbtk-register.c (get_register_types):Ditto. * generic/gdbtk-stack.c (gdb_get_blocks): Ditto. (gdb_selected_block, gdb_selected_frame): Ditto. * generic/gdbtk.c (gdbtk_init, view_command): Ditto. 2009-03-02 Kevin Buettner * generic/gdbtk-stack.c (gdb_get_vars_command): Revise cast of `clientData' to avoid build error on 64-bit hosts. 2008-12-16 Denis Pilat on behalf of Nunzio Raciti * library/srctextwin.itb (_clear_cache): Take care of $p variable that could contains ":" for source pane on windows hosts. * library/srcwin.itb (choose_and_update): Avoid updating the "source" window if target executable name is empty. 2008-12-15 Kevin Buettner * generic/gdbtk-cmds.c (valprint.h): Include. (gdb_eval): Fetch print options via get_formatted_print_options. Update call to val_print. (gdb_update_mem): Likewise, but for print_scalar_formatted. * generic/gdbtk-register.c (valprint.h): Include. (get_register): Use get_formatted_print_options. Update calls to val_print. * generic/gdbtk-wrapper.c (valprint.h): Include. (wrap_val_print): Use get_formatted_print_options. Delete variables deref_ref and pretty; assign to equivalent fields in the value_print_options struct instead. Update call to val_print. 2008-10-27 Keith Seitz * generic/gdbtk-stack.c (get_gdb_vars_command): clientData is an int, not a pointer to int. 2008-09-22 Keith Seitz * generic/gdbtk-cmds.c (gdb_clear_file): The global "attach_flag" is now per-inferior. 2008-09-19 Denis Pilat * generic/gdbtk-bp.c (gdb_get_breakpoint_info): Manage the case of NULL location to handle pending breakpoint in a better way. (gdb_find_bp_at_addr): Likewise. 2008-09-18 Keith Seitz From Pedro Alves : * generic/gdbtk-cmds.c (gdb_cmd, gdb_immediate_command): Adjust to new bpstat_do_actions inferface. * generic/gdbtk-hooks.c: Include gdbthread.h. (gdbtk_annotate_signal): Get the stop_signal from the current thread. 2008-09-02 Keith Seitz * generic/gdbtk-cmds.c (gdb_listfuncs): Use SYMBOL_PRINT_NAME instead of DEPRECATED_SYMBOL_NAME. * generic/gdbtk-stack.c (gdb_block_vars): Likewise. (gdb_get_vars_command): Likewise. * generic/gdbtk.h (GDBTK_SYMBOL_SOURCE_NAME): Likewise. 2008-08-02 Keith Seitz * generic/gdbtk-cmds.c: Don't include itcl.h. * generic/gdbtk-hooks.c: Likewise. * generic/gdbtk.c: Include tcl.h and tk.h instead of itcl.h and itk.h. (gdbtk_init): Rewrite to accommodate using a system-provided Tcl, Tk, Itcl, Itk. (gdbtk_source_start_file) [!_WIN32]: Don't call error() when we fail to source the start file. Just dump the message to stderr. Throw an exception indicating the failure. * library/ehandler.itb (GDBEventHander::dispatch): "itcl_info" is deprecated: use "itcl::find objects" instead. * library/managedwin.itb (window_instance): Ditto. (restart): Ditto. (shutdown): Ditto. (_open): Ditto. (find): Ditto. * library/globalpref.itb (_build_win): Don't pass config arguments for libgui widgets to the constructor. Configure the widget after creation. * library/srcpref.itb (_build_win): Ditto. * library/main.tcl: Update Tcl, Tk, Itcl, Itk, and Iwidgets (just added to this loop) version requirements. No need to initialize Iwidgets separately. * plugins/Make-rules (TCLHDIR): Renamed to TCL_INCLUDES. Change all references. (TCL_BUILD_LIB_SPEC): Renamed to TCL_LIBRARY. Change all references. * plugins/acinclude.m4: Include the standard tcl.m4 instead of the sourceware-derived one. * plugins/configure.ac: Use Tcl's standard SC_* macros instead of the sourceware-derived CYG_AC_* macros. Add logic to deal with using a system-supplied Tcl/Tk. * plugins/configure: Regenerated. * plugins/Makefile.in: Regenerated. 2008-07-25 Tom Tromey * generic/gdbtk-hooks.c: Include observer.h, not gdb-events.h. (gdbtk_add_hooks): Use observers, not events. (gdbtk_architecture_changed): Add argument, for observer. * generic/gdbtk-bp.c: Include observer.h. (gdb_set_bp): Notify observer. (gdb_set_bp_addr): Likewise. 2008-07-14 Keith Seitz * generic/gdbtk-stack.c (gdb_block_args): Remove deprecated values LOC_LOCAL_ARG, LOC_COMPUTED_ARG, LOC_REGPARM, LOC_BASEARG_ARG, and LOC_BASEARG. (gdb_get_blocks): Likewise. (gdb_get_vars_command): Likewise. Fix type-punned pointer error introduced on 03-07. * generic/gdbtk-cmds.c (gdbtk_load_asm): Use paddress instead of deprecated_print_address_numeric. (gdb_stop): Update use of target_stop. * generic/gdbtk.h (gdbtk_get_ptid): Declare new function. * generic/gdbtk-hooks.c (gdbtk_wait): Save inferior's ptid. (gdbtk_get_ptid): Define new function. * generic/gdbtk-varobj.c (variable_update): Update for recent varobj_update API change. * generic/gdbtk-wrapper.h (GDB_varobj_update): Likewise. * generic/gdbtk-wrapper.c (GDB_varobj_update): Likewise. (wrap_varobj_update): Likewise. * library/targetselection.itb (init_target_db): Initialize preferences here instead of ... (_init): ... here. (_init_prefs): Define gdb/load/default-portname, too. 2008-05-12 Pierre Muller * Update uses of val_print functions with additional language argument. generic/gdbtk-cmds.c: Add "language.h" include. (gdb_eval): Add current_language as new arg of val_print. generic/gdbtk-register.c: Add "language.h" include. (get_register): Add current_language as new arg of val_print. generic/gdbtk-wrapper.c: Add "language.h" include. (wrap_val_print): Add current_language as new arg of val_print. 2008-04-21 Keith Seitz * generic/gdbtk-cmds.c (symtab_to_filename): Call gdb's open_source_file instead of find_and_open_source. 2008-03-28 Maciej W. Rozycki * README: Fix a typo. 2008-03-18 Maciej W. Rozycki * generic/gdbtk-interp.c (gdbtk_interpreter_init): New parameter top_level. 2008-03-07 Keith Seitz * generic/gdbtk-register.c (map_arg): New data type for passing arguments to mapping functions. (map_func): New definition of mapping function. Changed all callers to use these new types. * generic/gdbtk-stack.c (gdb_get_vars_command): Change cast to int to dereference of int *. * generic/gdbtk-wrapper.c: Change all casts to char * for results and args to use pointer or integer flavor of gdb_wrapper_args.results and .args. * generic/gdbtk-wrapper.h: struct gdb_wrapper_arguments members result and args now return a union of void * and int. 2008-03-03 Keith Seitz From Dave Murphy : * gdbtk-cmds.c: Guard with HAVE_SYS_IOCTL_H. * gdbtk-hooks.c: Ditto. * gdbtk.c: Ditto. * gdbtk-interp.c: Include windows.h under mingw32. (gdbtk_start_timer, gdbtk_stop_timer): Remove timer calls under mingw. (gdbtk_init): Include windows-specific commands under mingw without cygwin path commands. * library/download.itb (Download::download_it): Only use ide_cygwin_path on cygwin hosts. * library/interface.tcl (_open_file): Ditto. * library/prefs.tcl (pref_read): Ditto. * library/targetselection.itb (TargetSelection::default_port): Default to "/dev/com1" under cygwin and "COM1" under mingw. (TargetSelection::port_list): Use "/dev/com" under cygwin and "COM" under mingw. 2008-02-08 Keith Seitz * library/main.tcl: Add gdbtk_platform definitions. * library/attachdlg.itb (list_pids): Use gdbtk_platform instead of tcl_platform. * library/bpwin.itb (build_win): Likewise. (_bp_add): Likewise. (_bp_modify): Likewise. * library/download.itb (download_it): Likewise. * library/globalpref.itb (_build_win): Likewise. * library/helpviewer.tcl (open_help): Likewise. * library/interface.tcl (gdbtk_tcl_query): Likewise. (show_warning): Likewise. (open_file): Likewise. (run_executable): Likewise. * library/managedwin.itb (reveal): Likewise. (_create): Likewise. * library/prefs.tcl (pref_read): Likewise. (pref_set_defaults): Likewise. (pref_set_colors): Likewise. * library/session.tcl (_exe_name): Likewise. * library/srcbar.itcl (_update_file_menu): Likewise. (create_run_menu): Likewise. * library/srctextwin.itb (_mtime_changed): Likewise. (LoadFromCache): Likewise. * library/targetselection.itb (default_port): Likewise. (build_win): Likewise. * library/memwin.itb (build_win): Remove unused tcl_platform declaration. * library/pluginwin.itcl (enable_ui): Likewise. * library/process.itb (build_win): Likewise. * library/srcbar.itcl (enable_ui): Likewise. * library/srcwin.itb (location): Likewise. * library/stackwin.itb (build_win): Likewise. * library/tdump.tcl (build_win): Likewise. 2008-02-05 Maciej W. Rozycki * generic/gdbtk-varobj.c (variable_children): Adjust for varobj_list_children change.