summaryrefslogtreecommitdiff
path: root/gdb/gdbtk
Commit message (Collapse)AuthorAgeFilesLines
* gdb:Tom Tromey2008-07-253-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tui/tui-hooks.c: Include observer.h. (tui_event_default, tui_old_event_hooks, tui_event_hooks): Remove. (tui_bp_created_observer, tui_bp_deleted_observer, tui_bp_modified_observer): New globals. (tui_install_hooks): Use observers, not events. (tui_remove_hooks): Likewise. * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h. (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New globals. (breakpoint_notify): Check mi_can_breakpoint_notify. (breakpoint_hooks): Remove. (mi_cmd_break_insert): Attach observers. Don't use events. * tracepoint.c: Include observer.h, not gdb-events.h. (tracepoint_operation, trace_pass_command): Notify observer. * interps.c: Don't include gdb-events.h. (clear_interpreter_hooks): Don't call clear_gdb_event_hooks. * gdbarch.c: Rebuild. * gdbarch.sh: Emit include for observer.h, not gdb-events.h. (deprecated_current_gdbarch_select_hack): Notify observer. * breakpoint.h: Don't include gdb-events.h. * breakpoint.c: Don't include gdb-events.h. (condition_command): Notify observer. (commands_command): Likewise. (commands_from_control_command): Likewise. (mention, delete_breakpoint, set_ignore_count): Likewise. (disable_breakpoint, do_enable_breakpoint): Likewise. * Makefile.in (gdb_events_h): Remove. (breakpoint_h): Update. (COMMON_OBS): Remove gdb-events.o. (gdb-events.o): Remove. (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o, gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update. * gdb-events.c: Remove. * gdb-events.h: Remove. * gdb-events.sh: Remove. gdb/doc: * observer.texi (GDB Observers): Document new observers: breakpoint_created, breakpoint_deleted, breakpoint_modified, tracepoint_created, tracepoint_deleted, tracepoint_modified, architecture_changed. gdb/gdbtk: * 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.
* * generic/gdbtk-stack.c (gdb_block_args): Remove deprecated valuesKeith Seitz2008-07-149-56/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * Update uses of val_print functions with additional language argument.Pierre Muller2008-05-124-4/+17
| | | | | | | | | 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.
* * generic/gdbtk-cmds.c (symtab_to_filename): Call gdb'sKeith Seitz2008-04-212-7/+7
| | | | open_source_file instead of find_and_open_source.
* gdbtk/Maciej W. Rozycki2008-03-282-1/+5
| | | | | | | * README: Fix a typo. testsuite/gdb.gdbtk/ * README: Fix a few typos throughout.
* * generic/gdbtk-interp.c (gdbtk_interpreter_init): New parameterMaciej W. Rozycki2008-03-182-2/+7
| | | | top_level.
* * generic/gdbtk-register.c (map_arg): New data typeKeith Seitz2008-03-075-145/+177
| | | | | | | | | | | | | 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.
* From Dave Murphy <davem@devkitpro.org>:Keith Seitz2008-03-039-7/+55
| | | | | | | | | | | | | | | | | | * gdbtk-cmds.c: Guard <sys/ioctl.h> 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.
* * library/main.tcl: Add gdbtk_platform definitions.Keith Seitz2008-02-0920-86/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Moved entries for previous years to separate changelogs.Keith Seitz2008-02-091-158/+0
|
* Rotate logs.Keith Seitz2008-02-092-0/+158
|
* * generic/gdbtk-varobj.c (variable_children): AdjustMaciej W. Rozycki2008-02-052-9/+12
| | | | for varobj_list_children change.
* * Make-rules (html): Add goal.Maciej W. Rozycki2007-07-262-0/+5
|
* 2007-07-02 Markus Deuling <deuling@de.ibm.com>Ulrich Weigand2007-07-022-10/+5
| | | | | * gdbtk/generic/gdbtk-stack.c (get_frame_name): Remove dead code (PC_LOAD_SEGMENT).
* * generic/gdbtk-register.c (Gdbtk_Register_Init): RemoveKeith Seitz2007-06-281-5/+2
| | | | | | calls to deprecated_register_gdbarch_swap. Add "gdb_reg_arch_changed" command. * library/regwin.itb (arch_changed): Call gdb_reg_arch_changed.
* * generic/gdbtk-register.c (Gdbtk_Register_Init): RemoveKeith Seitz2007-06-272-4/+12
| | | | | | calls to deprecated_register_gdbarch_swap. Add "gdb_reg_arch_changed" command. * library/regwin.itb (arch_changed): Call gdb_reg_arch_changed.
* gdb/:Maciej W. Rozycki2007-06-212-1/+6
| | | | | | | | | | | | | | | | | | | | | | | * disasm.c (gdb_print_insn): Return the number of branch delay slot instructions too. * disasm.h (gdb_print_insn): Update prototype. * printcmd.c (branch_delay_insns): New variable to record the number of delay slot instructions after disassembling a branch. (print_formatted): Record the number of branch delay slot instructions. (do_examine): When disassembling, if the last instruction disassembled has any branch delay slots, then bump the count so that they get disassembled too. * tui/tui-disasm.c (tui_disassemble): Update the call to gdb_print_insn(). * NEWS: Document the new behaviour. gdb/doc/: * gdb.texinfo (Examining Memory): Document the new behaviour. gdb/gdbtk/: * generic/gdbtk-cmds.c (gdbtk_load_asm): Update the call to gdb_print_insn().
* * generic/gdbtk-register.c get_register): Replace REGISTER_NAMEKeith Seitz2007-06-092-8/+16
| | | | | | with gdbarch_register_name. (get_register_name): Ditto. (map_arg_registers): Ditto.
* * generic/gdbtk-cmds.c (hex2bin): Use gdbarch_byte_order insteadKeith Seitz2007-06-053-13/+33
| | | | | | | | | | of TARGET_BYTE_ORDER. * generic/gdbtk-register.c (get_register): Likewise. (map_arg_registers): Use gdbarch_num_regs and gdbarch_num_pseduo_regs instead of NUM_REGS and NUM_PSEUDO_REGS. (setup_architecture_data): Likewise. (gdb_regformat): Likewise. (gdb_reggroup): Likewise.
* * generic/gdbtk-stack.c (get_frame_name): Remove spuriousMaciej W. Rozycki2007-05-222-2/+7
| | | | newlines from dummy/sigtramp frame names.
* gdb/:Maciej W. Rozycki2007-04-276-3/+59
| | | | | | | | | | | | | | | * Makefile.in (gdbtk-wrapper.o): Update dependencies. (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise. gdb/gdbtk/: * generic/gdbtk-wrapper.c (GDB_varobj_update): New function. (wrap_varobj_update): Likewise. * generic/gdbtk-wrapper.h (GDB_varobj_update): New declaration. * generic/gdbtk-varobj.c (variable_update): Call GDB_varobj_update() rather than varobj_update() directly. Take the new semantics of the latter into account. * generic/gdbtk-cmds.c: Include "varobj.h". * generic/gdbtk-stack.c: Likewise.
* Eliminate use of `deprecated_selected_frame'.Kevin Buettner2007-03-134-29/+46
|
* insight/293:Keith Seitz2006-12-013-20/+28
| | | | | | | | | | | | * library/watch.tcl (no_inferior): Remove all varobjs and clear the display. (clear_file): Call no_inferior. Update comments. * library/locals.tcl: Remove unused variables "Running" and "Variables". Changed throughout. (no_inferior): Delete the current frame and clear the display. (clear_file): Call no_inferior. Update comments. (context_switch): To delete an Itcl object, one uses "delete object" not "destroy".
* insight/299:Keith Seitz2006-12-012-12/+8
| | | | | | * generic/gdbtk.c (gdbtk_init): Don't check if DISPLAY is set, it isn't needed anymore. Gdb will not abort, and Tk_Init will fail gracefully.
* * library/targetselection.itb (constructor): "top" is unused.Keith Seitz2006-12-012-7/+14
| | | | | Remove it. (get_target_list): Use "scan" to parse "help target" output.
* * help/trace/locals.html: Remove all references to gdb.ini. EvenKeith Seitz2006-11-103-3/+9
| | | | | Cygwin now uses .gdbinit. * help/trace/watch.html: Likewise.
* * aclocal.m4: Regenerate.Keith Seitz2006-09-298-820/+1900
| | | | | * configure: Regenerate. * Makefile.in: Regenerate.
* From Andrew Stubbs <andrew.stubbs@st.com>:Keith Seitz2006-09-192-2/+9
| | | | | * library/prefs.tcl (pref_save): Save preferences if INSIGHT_FORCE_READ_PREFERENCES is set in the environment.
* Grr. Another updateKeith Seitz2006-09-141-5/+5
|
* * README: Update startup info and add DISPLAY environmentKeith Seitz2006-09-142-2/+11
| | | | variable.
* * generic/gdbtk-cmds.c (gdb_update_mem): Use target_read.Maciej W. Rozycki2006-08-252-9/+10
|
* * library/prefs.tcl (pref_set_defaults): Disable IPC, gdb/ipc/enabled,Keith Seitz2006-08-252-1/+6
| | | | by default.
* * library/srcwin.itb (_build_win): Add invisible frame to workaroundKeith Seitz2006-06-262-2/+14
| | | | the missing frame problem.
* * generic/gdbtk-cmds.c: Include sys/cygwin.h if __CYGWIN__ defined.Brian Dessent2006-03-292-1/+10
| | | | (gdb_path_conv): Call cygwin_conv_to_full_win32_path instead.
* From Andrew Stubbs <andrew.stubbs@st.com>:Keith Seitz2006-01-242-1/+14
| | | | * library/help/source.html: Add entries for the missing menu commands.
* From Andrew Stubbs <andrew.stubbs@st.com>:Keith Seitz2006-01-244-11/+66
| | | | | | | | | | | | | * library/mempref.itb (MemPref::constructor): Allow the Byte Per Row combo box to accept arbitrary values. (MemPref::set_bytes_per_row): Validate the new value; reject invalid entries and round up to a multiple of the word size. (MemPref::apply): Read the value from the text box even if the user has not pressed return. (MemPref::enable_format): Ensure the bytes per row value is still valid. (MemPref::disable_format): Likewise. * library/mempref.ith (MemPref): Add $gbprlist. * library/help/memory.html: Update.
* From Andrew Stubbs <andrew.stubbs@st.com>:Keith Seitz2006-01-242-3/+9
| | | | | * library/helpviewer.tcl (open_help): Add firefox and opera to the browser list used to display help.
* * ChangeLog: Cleared and saved to ...Keith Seitz2006-01-242-212/+217
| | | | * ChagneLog-2005: ... here.
* Update FSF address.Eli Zaretskii2005-12-241-1/+1
|
* Undo accidental changes to image files.Daniel Jacobowitz2005-12-2342-0/+0
|
* * msrselection.ith:Eli Zaretskii2005-12-234-3/+9
| | | | | * msrselection.itb: * cpuinfo.tcl: Put (C) after Copyright.
* Update the FSF address.Eli Zaretskii2005-12-232-1/+5
|
* * library/attachdlg.itb:Eli Zaretskii2005-12-23112-70/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/actiondlg.tcl: * library/about.tcl: * library/ehandler.itb: * library/editor.tcl: * library/download.ith: * library/download.itb: * library/debugwin.ith: * library/debugwin.itb: * library/cspref.ith: * library/cspref.itb: * library/console.ith: * library/console.itb: * library/browserwin.ith: * library/browserwin.itb: * library/bpwin.ith: * library/bpwin.itb: * library/blockframe.ith: * library/managedwin.ith: * library/managedwin.itb: * library/main.tcl: * library/locals.tcl: * library/ipcpref.ith: * library/ipcpref.itb: * library/ipc.tcl: * library/interface.tcl: * library/helpviewer.tcl: * library/globalpref.ith: * library/globalpref.itb: * library/gdbwin.ith: * library/gdbtoolbar.itcl: * library/gdbmenubar.itcl: * library/gdbevent.ith: * library/gdbevent.itb: * library/embeddedwin.ith: * library/ehandler.ith: * library/srcwin.itb: * library/srctextwin.ith: * library/srctextwin.itb: * library/srcpref.ith: * library/srcpref.itb: * library/srcbar.itcl: * library/session.tcl: * library/regwin.ith: * library/regwin.itb: * library/process.ith: * library/process.itb: * library/prefs.tcl: * library/pluginwin.itcl: * library/modal.tcl: * library/memwin.ith: * library/memwin.itb: * library/mempref.ith: * library/mempref.itb: * library/watch.tcl: * library/watch.tcl: * library/warning.tcl: * library/vartree.ith: * library/vartree.itb: * library/util.tcl: * library/tracedlg.tcl: * library/toplevelwin.ith: * library/tfind_args.tcl: * library/tdump.tcl: * library/targetselection.ith: * library/targetselection.itb: * library/stackwin.ith: * library/stackwin.itb: * library/srcwin.ith:
* * generic/gdbtk.h:Eli Zaretskii2005-12-2314-35/+55
| | | | | | | | | | | | | | | | * generic/gdbtk.c: * generic/gdbtk-wrapper.h: * generic/gdbtk-wrapper.c: * generic/gdbtk-varobj.c: * generic/gdbtk-stack.c: * generic/gdbtk-register.c: * generic/gdbtk-main.c: * generic/gdbtk-interp.c: * generic/gdbtk-hooks.c: * generic/gdbtk-cmds.h: * generic/gdbtk-cmds.c: * generic/gdbtk-bp.c: Put (C) after Copyright. Update the FSF address.
* 2005-11-29 Andrew Stubbs <andrew.stubbs@st.com>Andrew Stubbs2005-11-293-1/+11
| | | | | | * library/prefs.tcl (pref_read): Read preferences file if environment variable INSIGHT_FORCE_READ_PREFERENCES is set (regardless of -nx). * README: Mention INSIGHT_FORCE_READ_PREFERENCES.
* From Spencer Oliver <spencer.oliver@anglia.com>:Keith Seitz2005-11-112-1/+9
| | | | | * library/targetselection.itb (build_win): Only pack the xterm checkbutton on unix platforms.
* * generic/gdbtk.c (gdbtk_init): Remove all mention of Tix.Keith Seitz2005-09-123-6/+6
| | | | * README: Ditto.
* * library/help/target.html: Update dialog options.Keith Seitz2005-09-013-6/+25
| | | | | | * library/targetselection.itb (help): Implement. (build_win): Don't disable help button. Only display "use tty" option on unix hosts.
* * library/bpwin.itb (bp_store): gdb_get_breakpoint_info outputsKeith Seitz2005-09-012-1/+6
| | | | the breakpoint condition, too -- include it in the lassign.
* From Dieter Ruppert <dieter_ruppert@siemens.com>:Keith Seitz2005-09-012-8/+17
| | | | | | * library/memwin.itb (update_address): Change parameter name so that it does not shadow a member variable. Save the updated address internally.