summaryrefslogtreecommitdiff
path: root/gdb/gdbtk
Commit message (Collapse)AuthorAgeFilesLines
* * generic/gdbtk.c (gdbtk_init): Revert change from earlier.Keith Seitz2001-08-162-8/+8
| | | | | | | It is insufficient. We must get the absolute pathname from autoconf. Don't bother setting TCL_LIBRARY: it must be set already in order for us to execute a script.
* * library/globalpref.ith (_change_font, _change_size): NewKeith Seitz2001-08-164-32/+62
| | | | | | | | | | | | private methods. (_size): New private variable. (font_changed, wfont_changed): Removed. * library/globalpref.itb (make_font_item): Change combobox callback to use _change_font. Replace tixControl with iwidgets::spinint. (font_changed, wfont_changed): Removed. (_change_font, _change_size): New private methods. * tclIndex: Regenerate.
* * generic/gdbtk.c (gdbtk_init): Make sure we're working withKeith Seitz2001-08-162-0/+9
| | | | absolute pathnames in the *_LIBRAY variables.
* From Ian Roxborough <irox@redhat.com>Keith Seitz2001-08-162-2/+10
| | | | | | | * generic/gdbtk-hooks.c (x_event): Deal with Tcl API insanity for Tcl_ObjGetVar2 or Tcl_GetObjVar2. (gdbtk_trace_find): Likewise for Tcl_GlobalEvalObj or Tcl_EvalObj (TCL_EVAL_GLOBAL).
* * generic/gdbtk.c (gdbtk_init): Don't assume a particularKeith Seitz2001-08-152-3/+110
| | | | | | | | | | | | | | | layout for the source directory, let the Makefile tell us where the real source directory is. When compiling under Cygwin, convert the (posix) path to a win32 path, which is what tcl really wants. From Ian Roxborough <irox@redhat.com>: * generic/gdbtk.c (gdbtk_init): If Insight isn't executed from inside a directory called "bin", assume that we are being running from the build directory and set the *_LIBRARY variables to point to (hopefully) the correct source directory.
* * library/regwin.ith: Rewrite.Keith Seitz2001-08-134-605/+1123
| | | | | * library/regwin.itb: Rewrite. * library/tclIndex: Regenerate.
* * generic/gdbtk-register.c (gdb_register_info): New function.Keith Seitz2001-08-132-96/+122
| | | | | | | | | Consolidates all register handling. (get_register_size): New function. (gdb_changed_register_list, gdb_fetch_registers, gdb_regnames): Deprecate. (setup_architecture_data): Free old register cache when necessary.
* * generic/gdbtk-hooks.c (gdbtk_add_hooks): RegisterKeith Seitz2001-08-135-0/+38
| | | | | | | | | | architecture_changed event handler. (gdbtk_architecture_changed): New function. * library/gdbevent.ith (class ArchChangdEvent): New event. * library/ehandler.ith (arch_changed): New method. Handler for ArchChangedEvents. * library/interface.tcl (gdbtk_tcl_architecture_changed): New proc to handle architecture change events.
* * library/prefs.tcl (pref_set_defaults): Add new fontKeith Seitz2001-08-094-3/+32
| | | | | | | | color defaults for highlighting, headers, selecting, and "normal". Get rid of gdb/variable/highlight_fg and gdb/reg/highlight_fg. * library/variables.tcl (build_win): Use gdb/font/highlight_fg and gdb/font/highilght_bg to set highlight style. * library/memwin.itb (build_win): Use header_fg and header_bg.
* * library/srcbar.itcl (_post): New method.Keith Seitz2001-08-034-18/+74
| | | | | | | | | | | | | | | | | | (_update_file_menu): New method. (create_file_menu): Move the guts to _update_file_menu. Add a post command to the menu. * library/interface.tcl (gdbtk_tcl_file_changed): Catch the call to run_hooks. (gdbtk_tcl_exec_file_display): Save the new session, too. (set_exe_name): Don't bother saving the session here. (_close_file): Save the session here, too. (gdbtk_clear_file): Catch the call to run_hooks, too. * library/gdbmenubar.itcl (menubar_new_menu): Allow caller to specify optional arguments to be passed to Tk when creating the menu. Tk's "menu add" command returns an empty string. Save the menu's index in the parent instead. This is what all the menu subcommands want.
* * generic/gdbtk-bp.c (gdb_get_breakpoint_info): UpdateKeith Seitz2001-08-032-6/+14
| | | | | | | with recent breakpoint structure changes in gdb. (gdb_set_bp_addr): Likewise. (gdb_get_tracepoint_info): Update with recent tracepoint structure changes in gdb.
* 2001-07-31 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2001-07-313-1/+6
| | | | | * generic/gdbtk-cmds.c: Don't include regcache.h. * generic/gdbtk-register.c: Include regcache.h.
* * library/prefs.tcl (pref_set_defaults): Add additional entryJonathan Larmour2001-07-262-1/+6
| | | | points for eCos if main is not present.
* 2001-07-20 Martin M. Hunt <hunt@redhat.com>Martin Hunt2001-07-211-6/+8
| | | | | | * library/managedwin.itb: Revert to global to properly initialize geometry with some window managers. * library/managedwin.ith (shutdown): Remove _geometry.
* 2001-07-21 Martin M. Hunt <hunt@redhat.com>Martin Hunt2001-07-212-5/+18
| | | | | | * library/interface.tcl (gdbtk_locate_main): Fix function so that it returns either a null string or a valid location, as documented.
* 2001-07-21 Martin M. Hunt <hunt@redhat.com>Martin Hunt2001-07-212-1/+10
| | | | | * library/variables.tcl (build_menu_helper): Set the Format menu option to "disabled" initially.
* 2001-07-20 Martin M. Hunt <hunt@redhat.com>Martin Hunt2001-07-202-1/+4
| | | | | * library/memwin.itb: Fix syntax to open a new window using the "-force" flag.
* 2001-07-20 Martin M. Hunt <hunt@redhat.com>Martin Hunt2001-07-202-3/+11
| | | | | | * generic/gdbtk-register.c (gdb_regnames): Fix 'if' statement so count is decremented only if "-numbers" is the first arg.
* 2001-07-18 Martin M. Hunt <hunt@redhat.com>Martin Hunt2001-07-192-3/+8
| | | | | * library/util.tcl (find_iwidgets_library): Look for iwidgets3* so we don't accidently find iwidgets2.x.
* * library/regwin.itb (RegWin::build_win): Add radio buttonNicholas Duffek2001-07-162-2/+13
| | | | | | for unsigned register format. (RegWin::reg_select): Iterate through 8 rather than 7 formats. (RegWin::but3): Add menu option for unsigned register format.
* * library/download.itb (constructor): Use the iwidgetsKeith Seitz2001-07-133-29/+53
| | | | | | | | | | feedback widget instead of tixMeter. Pack all the topmost widgets together -- don't use grid. (update_download): Support the feedback widget. (done): Ditto. * library/download.ith (steps): New private variable. (num_steps): New common.
* Foo. Forgot to update the copyright.Keith Seitz2001-07-121-2/+2
|
* * library/srcbar.itcl (create_trace_buttons): FixKeith Seitz2001-07-124-126/+117
| | | | | | | | | | | | syntax errors. * library/tracedlg.tcl: Update to work with Itcl3.0 and ManagedWin. * library/actiondlg.tcl: Update to work with Itcl3.0 and ManagedWin. (build_win): Use iwidgets scrolled listbox instead of the tix one.
* * library/managedwin.itb (_create): Don't pass "-over"Keith Seitz2001-07-052-2/+10
| | | | | to center_window unless we really are asked to put the window over another!
* * library/managedwin.itb (_create): When creating aKeith Seitz2001-06-182-1/+7
| | | | | window over another, be sure to center on the window, not the object.
* * generic/gdbtk-bp.c (gdbtk_tracepoint_create): ChangeKeith Seitz2001-06-133-22/+29
| | | | | | | | | parameter to int to match breakpoint notifications. (gdbtk_tracepoint_modify): Ditto. (gdbtk_tracepoint_delete): Ditto. (tracepoint_notify): Ditto. * generic/gdbtk-hooks.c (gdbtk_add_hooks): Remove tracepoint hooks and install tracepoint event handlers.
* * library/help/session.html: New file.Tom Tromey2001-06-123-0/+46
| | | | * library/help/index.html: Added link.
* * library/session.tcl (session_save): Save breakpoints.Tom Tromey2001-06-118-8/+142
| | | | | | | | | | | | | | | | | | | | (SESSION_serialize_bps): New proc. (SESSION_recreate_bps): New proc. (session_load): Recreate breakpoints. * library/util.tcl (bp_exists): Expect user specification in breakpoint info. * library/srctextwin.itb (SrcTextWin::showBPBalloon): Expect user specification in breakpoint info. * library/gdbevent.itb (BreakpointEvent::_init): Initialize _user_specification. (BreakpointEvent::get): Handle user_specification. * library/gdbevent.ith (BreakpointEvent): Added _user_specification field. * library/bpwin.itb (BpWin::bp_store): Expect user specification and use it when saving. (BpWin::bp_type): Expect user specification. * generic/gdbtk-bp.c (BREAKPOINT_IS_WATCHPOINT): New macro. (gdb_get_breakpoint_info): Added `user specification' to result.
* * generic/gdbtk-stack.c (gdb_stack): Return TCL_ERROR ifKeith Seitz2001-06-112-1/+7
| | | | | we are unable to get the current frame. get_current_frame may have output an error message.
* Some "-Wall" cleanups.Keith Seitz2001-06-074-9/+17
| | | | | | | | | | | | | | * generic/gdbtk-hooks.c (x_event): Remove unused variable "count". (tracepoint_notify): Remove superfluous declaration. This funtion was moved to gdbtk-bp.c. * generic/gdbtk-bp.c (gdb_find_bp_at_addr): Remove unused variable "b". (gdb_set_bp): Remove unused variable "cmd". (gdb_set_bp_addr): Remove unused variables "cmd" and "filename". * generic/gdbtk.c (gdbtk_init): Remove unused variables "auto_path_name", "auto_path_elem", and "found_main".
* 2001-06-05 Martin Hunt <hunt@redhat.com>Martin Hunt2001-06-052-13/+17
| | | | | | * generic/gdbtk.c (_initialize_gdbtk): Don't close console yet. (gdbtk_init): Wait until after tcl/tk stuff is all initialized to close console (on Windows) and redirect ouput.
* 2001-06-05 Martin Hunt <hunt@redhat.com>Martin Hunt2001-06-052-2/+7
| | | | | * library/globalpref.itb(build_win): Don't change directory before building icon combobox. Add debug lines.
* * library/srcbar.itcl (constructor): Set the toolbar's initialKeith Seitz2001-06-042-0/+8
| | | | state.
* * library/interface.tcl (gdb_update_hook): Mark as deprecated.Keith Seitz2001-06-0422-76/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gdbtk_update): Dispatch and UpdateEvent, too. * library/ehandler.ith (update): New event handler. * library/gdbevent.ith (UpdateEvent): New event. * library/gdbevent.itb (UpdateEvent::constructor): New method. (UpdateEvent::get): New method. * library/kod.ith (udpate): Match event handler definition. * library/kod.itb (update): Ditto. (build_win): Pass dummy argument to update method. (top): Ditto. (up): Ditto. (set_variable): Ditto. * library/memwin.ith (update): Match event handler definition. * library/memwin.itb (update): Ditto. (constructor): Remove gdb_update_hook. (destructor): Ditto. * library/process.ith (update): Match event handler definition. * library/process.itb (update): Ditto. (constructor): Remove gdb_update_hook. (destructor): Ditto. (build_win): Pass dummy argument to update method. * library/regwin.ith (update): Match event handler definition. * library/regwin.itb (update): Ditto. (constructor): Remove gdb_update_hook. (destructor): Ditto. (build_win): Pass dummy argument to update method. (but3): Ditto. (unedit): Ditto. * library/stackwin.ith (update): Match event handler definition. * library/stackwin.itb (update): Ditto. (constructor): Remove gdb_update_hook. (destructor): Ditto. (build_win): Pass dummy argument to update method. * library/tdump.tcl (update): Match event handler definition. (constructor): Remove gdb_update_hook. (destructor): Ditto. (build_win): Pass dummy argument to update method. * library/variables.tcl (update): Match event handler definition. (build_win): Pass dummy argument to update method. * library/locals.tcl (update): Match event handler definition. (constructor): Pass dummy argument to update method. * library/watch.tcl (update): Match event handler definition. Pass dummy argument to VariableWin::update. (add): Pass dummy argument to update method. * library/srcwin.ith (update): New method. (update_hook_init): Remove. * library/srcwin.itb (update): New method. (constructor): Remove gdb_update_hook. (destructor): Ditto. * tclIndex: Regenerate.
* * library/console.itb (constructor): Pass dummy argumentKeith Seitz2001-06-012-2/+8
| | | | | to idle method. (destructor): Ditto.
* * library/interface.tcl (gdbtk_idle): Run hooks, too,Keith Seitz2001-05-312-2/+13
| | | | until they're all gone.
* ChangeLog for the gdb_idle_hook->GDBEventHandler::idle change.Keith Seitz2001-05-311-0/+47
|
* * library/interface.tcl (gdb_idle_hook): Mark as deprecated.Keith Seitz2001-05-3122-53/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gdbtk_idle): Dispatch an IdleEvent. gdb_idle_hook is gone. * library/ehandler.ith (idle): New event handler. * library/gdbevent.ith (IdleEvent): New event. * library/console.ith (idle): Match event handler definition. * library/console.itb (idle): Ditto. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/kod.ith (idle): Match event handler definition. * library/kod.itb (idle): Ditto. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/memwin.ith (idle): Match event handler definition. * library/memwin.itb (idle): Ditto. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/pluginwin.itcl (stopped): Rename to "idle" and match event handler definition. Fix misleading comments. * library/process.ith (idle): Match event handler definition. * library/process.itb (idle): Ditto. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/regwin.ith (idle): Match event handler definition. * library/regwin.itb (idle): Ditto. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/srcbar.itcl (idle): New method. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/srcwin.ith (idle): Match event handler definition. * library/srcwin.itb (idle): Ditto. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/stackwin.ith (idle): Match event handler definition. * library/stackwin.itb (idle): Ditto. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/variables.tcl (idle): Match event handler definition. (constructor): Remove gdb_idle_hook. (destructor): Ditto. * library/plugins/rhabout/rhabout.itcl (stopped): Rename to "idle" and match new event handler definition. * library/tclIndex: Regenerated.
* * library/interface.tcl (gdb_busy_hook): Deprecate.Keith Seitz2001-05-3123-72/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gdbtk_busy): Create and dispatch a BusyEvent instead of running hooks. * library/ehandler.ith (busy): New event handler. * library/gdbevent.ith (BusyEvent): New event class. * library/console.ith: Inherit from GDBEventHandler. (busy): Match event handler definition. * library/console.itb (busy): Ditto. (constructor): Remove gdb_busy_event. (destructor): Ditto. * library/kod.ith (busy): Match event handler definition. * library/kod.itb (busy): Ditto. (constructor): Remove gdb_busy_hook. (destructor): Ditto. * library/memwin.ith (busy): Match event handler definition. * library/memwin.itb (busy): Ditto. (constructor): Remove gdb_busy_hook. (destructor): Ditto. * library/pluginwin.itcl (running): Rename to "busy" and match event handler definition. (consturctor): Remove gdb_busy_hook. (destructor): Ditto. * library/process.ith (busy): Match event handler definition. * library/process.itb (busy): Ditto. (constructor): Remove gdb_busy_hook. (destructor): Ditto. * library/regwin.ith (busy): Match event handler definition. * library/regwin.itb (busy): Ditto. (constructor): Remove gdb_busy_hook. (destructor): Ditto. * library/srcbar.itcl (constructor): Remove gdb_busy_hook. (destructor): Ditto. (busy): New method. * library/srcwin.ith (busy): Match event handler definition. * library/srcwin.itb (busy): Ditto. Only do the "busy" stuff if do_updates is set. (toggle_updates): Remove gdb_busy_hook. (constructor): Ditto. (destructor): Ditto. * library/stackwin.ith (busy): Match event handler definition. * library/stackwin.itb (busy): Ditto. (constructor): Remove gdb_busy_hook. (destructor): Ditto. * library/variables.tcl (constructor): Ditto. (destructor): Ditto. (disable_ui): Rename to "busy" and match event handler definition. * library/plugins/rhabout/rhabout.itcl (running): Rename to "busy" and match new event handler definition. * library/tclIndex: Regenerated.
* * generic/gdbtk-cmds.c (bin2hex): New function.Keith Seitz2001-05-253-8/+126
| | | | | | | | | | (fromhex): New function. (gdb_set_mem): New function. (Gdbtk_Init): Add new command, "gdb_set_mem". * library/memwin.itb (edit): Use "gdb_set_mem" to set memory, not some gdb_cmd contrivance. When sending data to gdb_set_mem, make sure that it is properly zero-padded.
* Update copyright info.Keith Seitz2001-05-222-4/+4
|
* * memwin.ith (error_dialog): Declare public method.Keith Seitz2001-05-223-2/+39
| | | | | | * memwin.itb (error_dialog): Define. (edit): When attempting to set memory, post an error dialog if gdb told us an error occurred while writing the memory.
* * library/interface.tcl (gdbtk_tcl_file_changed): HandleKeith Seitz2001-05-224-11/+78
| | | | | | | | | | | | | | | the case of empty-string files, sent by gdb when the user requests to reset the file. (_close_file): New proc to deal with closing an exe. * library/srcbar.itcl (create_file_menu): Add "Close" menu option. (create_view_menu): Change key binding for Watch Window to Ctrl+T to accomodate "Close" going to Ctrl+W. * library/srctextwin.itb (config_win): Update key binding for Watch Window. Add key binding for Close. (do_key): Add "close". (_clear_cache): Finally implement. I think this works now.
* * library/variables.tcl (postMenu): Add mysterious workaroundKeith Seitz2001-05-222-0/+25
| | | | | for popup menu bug in Tk for windows. Highlight the selection, too.
* * library/managedwin.ith (_geometry): Use a protected variableKeith Seitz2001-05-183-38/+43
| | | | | | | | | | | | instead of a global from ManagedWin::reveal. (open): Make arg list reflect managedwin.itb. * library/managedwin.itb (window_name): Use class variable _top instead of recomputing the toplevel every time. (reveal): Ditto. Use class variable "_geometry" instead of global variable. (shutdown): Do not save ModalDialogs. (_create): If centering the new window, use libgui's center_window to do it.
* It appears that I forgot to check this in!Keith Seitz2001-05-182-6/+11
| | | | | * generic/gdbtk-hooks.c (gdbtk_wait): Change integer pid argument to match gdb's new "ptid_t" pids.
* * library/interface.tcl (gdbtk_quit_check): Don't save sessionsKeith Seitz2001-05-142-6/+25
| | | | | | | here. It doesn't work for the Console Window. (gdbtk_cleanup): Save session information here. (gdbtk_tcl_exec_file_display): When files are loaded, get the full pathname to the exe.
* * library/prefs.tcl (pref_save): Fix bug when key in gdb space hasTom Tromey2001-05-122-1/+11
| | | | extra `/' in it.
* * generic/gdbtk-bp.c (set_raw_breakpoint): Revise declarationKevin Buettner2001-05-112-5/+10
| | | | | to match the recently changed declaration in breakpoint.c. Update all callers.
* * generic/gdbtk-bp.c (gdbtk_create_breakpoint): Safe guardKeith Seitz2001-05-112-3/+24
| | | | | | against "invalid" (internal) breakpoint numbers. (gdbtk_modify_breakpoint): Ditto. (gdbtk_delete_breakpoint): Ditto.