1 Mon Dec 21 14:12:14 1998 Keith Seitz <keiths@cygnus.com>
3 * manage.tcl (manage_create): Set window geometry after window is
6 * prefs.tcl (pref_save): Save out preferences for memory window, too.
8 Thu Dec 17 08:54:37 1998 Keith Seitz <keiths@cygnus.com>
10 * browser.tcl (fill_source): Strip off any function args
11 which could arise from C++ function names.
12 (search): Be careful of C++ functions with spaces in the name
13 returned from gdb_search.
15 Tue Dec 15 13:24:42 1998 Keith Seitz <keiths@cygnus.com>
17 * prefs.tcl (escape_value, unescape_value): New procs to
18 escape equal signs in preference values.
19 (pref_read): Use unescape_value whenever prefs are read.
20 (pref_save): Use escape_value whenever prefs are saved..
22 Tue Dec 15 11:07:01 1998 Keith Seitz <keiths@cygnus.com>
24 * process.tcl (build_win): Do not export the listbox's selection
25 as the X selection so that multiple listboxes can have selections
26 highlighted at the same time.
28 * stack.tcl (build_win): Ditto.
30 Mon Dec 14 15:53:38 1998 Keith Seitz <keiths@cygnus.com>
32 * watch.tcl (update): Catch errors to getLocals, which could error
33 if no symbol table is loaded.
35 * locals.tcl (update): Ditto.
37 1998-11-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
39 * kod.tcl: fix <Double-1> command spec for listbox.
41 1998-11-13 Martin M. Hunt <hunt@cygnus.com>
43 * srctextwin.tcl (bp): Pass "asm" argument to do_bp.
44 (do_bp): Use asm argument to determine whether to
45 check for multiple bps on the same src line. Remove
46 redundant "if" statement.
48 1998-11-12 Martin M. Hunt <hunt@cygnus.com>
50 * srctextwin.tcl (do_bp): Fix multiple assembly
51 breakpoints mapping to the same line number.
53 Thu Nov 12 15:20:15 1998 Jim Ingham <jingham@cygnus.com>
55 * console.tcl (complete): I added the ability to pass from_tty
56 from gdb_cmd to the underlying commands. Pass 1 when the
57 command is invoked from the console.
59 * interface.tcl (gdbtk_tcl_tstart, gdbtk_tcl_tstop): Run the
60 src window's do_tstop method rather than manipulating the
63 * src.tcl (build_win): Redo the packing so that the function
64 combobox doesn't push all the other combo-boxes off the screen
65 if it has a very long function name in it.
67 * srcbar.tcl (do_tstop): Added a mode that just changes the
68 GUI, which can be called from console hooks.
70 * srctextwin.tcl: Fixed some bugs I introduced in setting
71 breakpoints in the assembly & mixed mode windows. Dropped
72 the notion of joint breakpoint images for lines that have
73 breakpoints of two separate types. Too fragile.
74 Also added the "dont_change_appearance" flag, used in the
75 continue_to_here method to tell the GUI not to reflect the
76 temporary disabling of all the breakpoints.
78 * toolbar.tcl (insert_buttons): Added a little more error-checking.
80 Wed Nov 11 08:40:04 1998 Fernando Nasser <fnasser@cygnus.com>
82 * kod.c: adjusted sizes and packing options of widgets
84 1998-11-10 Fernando Nasser <fnasser@totem.to.cygnus.com>
86 * main.tcl: small fix to the kod code as requested by the maintainers
87 * kod.tcl: use show kod and info <kod cmd> as per spec
89 Mon Nov 9 17:00:45 1998 Fernando Nasser <fnasser@cygnus.com>
91 * kod.tcl: New file that implements the Kernel Object Display window
92 * Makefile: added kod.tcl
93 * main.tcl: test for kod support
94 * manage.tcl (manage_init): support for kod
95 * prefs.tcl (pref_save, pref_set_defaults): ibid
96 * scrtextwin.tcl (config_win, do_key): ibid
97 * toolbar.tcl (_load_images, create_window_buttons,
98 create_view_menu): ibid
101 Mon Nov 9 12:09:48 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
103 * actiondlg.tcl: Customize the stack collect string to collect
104 the FP reg plus 64 words of stack mem. This will work for many
105 targets. As noted in earlier comment, we need a way to configure
106 this to the specific target.
108 Wed Nov 4 12:41:42 1998 Jim Ingham <jingham@cygnus.com>
110 * actiondlg.tcl: Get the stack collect string from an instance
111 variable. Need to implement some way to get this from the
113 * global_pref.tcl (toggle_tracing_mode): Add & remove hooks
114 when you go in and out of tracing mode. Also reset the B1
115 behavior when you leave tracing mode
116 * interface.tcl (gdbtk_tcl_trace_find_hook): Added the trace
117 find hook, so you can switch the GUI state when the tfind
118 command is used to enter & leave browse mode.
119 * srcbar.tcl (constructor, destructor trace_find_hook): Added
120 the trace_find_hook to the source toolbar, and added the
121 necessary hooks to handle it.
122 * srctextwin.tcl (trace_find_hook): Added a trace find hook to
123 the sourcebar as well.
124 * stack.tcl (update): protect against errors in gdb_stack.
125 Just return "NO STACK" if we couldn't get it.
126 * src_pref.tcl (constructor, cancel): Put all the saved prefs
127 in an array, on cancel, see if any have changed and only
128 rebuild the window if there have been changes.
130 1998-11-03 Keith Seitz <keiths@cygnus.com>
132 * target.tcl: Add ice target.
133 (GdbLoadPref): Add "after_attaching" preference.
134 (set_saved): Add "after_attaching" preference.
135 (write_saved): Add "after_attaching" preference.
136 (change_target): Add "after_attaching" preference.
137 (build_win): Add "after_attaching" entry to options
140 * main.tcl (set_target_name): Add ice target.
141 (set_target): If an "after_attaching" preference exists,
144 Mon Nov 2 13:24:10 1998 Jim Ingham <jingham@cygnus.com>
146 * bp.tcl (update): The hook function was passing more
147 arguments than this function expected.
149 Mon Nov 2 11:16:10 1998 Jim Ingham <jingham@cygnus.com>
151 * toolbar.tcl: Added Tdump image.
153 Fri Oct 30 17:36:05 1998 Jim Ingham <jingham@cygnus.com>
155 * src.tcl (set_execution_status): Changed status messages,
156 tracing is not the same as async debugging...
158 Fri Oct 30 17:06:31 1998 Jim Ingham <jingham@cygnus.com>
160 * bp.tcl (bp_all): Only remove tracepoints in the tracepoint
161 window, and breakpoints in the breakpoint window.
163 Fri Oct 30 11:22:23 1998 Jim Ingham <jingham@cygnus.com>
165 * actiondlg.tcl: Added special tag "Collect Stack". This
166 still needs to get hooked into the target database to deal
167 with targets that need to do something special to collect the
168 stack. Also moved some repeated code into loops.
169 * main.tcl (source_file): Source in a file of gdb commands.
170 * srcbar.tcl (constructor): Added source file menu entry, and
171 made stack buttons belong to both the Trace & Control classes.
172 * srctextwin.tcl (constructor): One too many separators in the
173 trace trace popup menu.
174 * tclIndex: regenerated.
175 * tfind_args.tcl: Added "tfind frame"
176 * toolbar.tcl (create_button): Allow a button to belong to
178 * toolbar.tcl (enable_ui): Eliminate redundant code, and allow
179 a button to belong to more than one class.
180 * toolbar.tcl (create_trace_menu): Added save tracepoints &
181 Tfind frame menu items.
182 * tracedlg.tcl: Added deletion of actions, and fixed a
183 the whiile-stepping combobox callback for the new combobox.
184 * util.tcl (save_trace_commands): new proc.
186 1998-10-29 Michael Snyder <msnyder@demo-laptop2.cygnus.com>
188 * target.tcl: add /dev/cua0 for Linux.
190 Tue Oct 27 13:46:03 1998 Jim Ingham <jingham@cygnus.com>
192 * Many little bug fixes all over in order to get tracing to work
193 along with normal program control.
194 * toolbar.tcl: Rewrote much of the code here to put commonly
195 used code into functions, and clean up adding menus and
196 buttons. Added the ability to disable particular menu items,
197 not just whole menus. Added the ability to delete and insert
199 * srcbar.tcl: Pushed the changes to toolbar.tcl into this file.
200 * srctextwin.tcl: Changed the code dealing with breakpoints
201 and tracepoints to use the text tags more consistently. Use
202 only one set of menus for the whole widget, rather than having
203 a separate set for the SRC+ASM case. Rewrote a lot of the
204 code to separate out the tracing & program control functions.
205 * interface.tcl (gdbtk_tcl_breakpoint): pass more information
206 to the scrtextwin when a breakpoint changes state, so it can
207 do the right thing without having to guess...
208 * tracedlg.tcl (build_win): get the packing right so the
209 window expands correctly.
210 * main.tcl: do_tstop -> tstop, do_tstart -> tstart to avoid
211 confusion with the methods in ScrBar.tcl.
212 * prefs.tcl: Added two new preferences B1_Behavior to control
213 whether B1 sets breakpoints or tracepoints.
214 * src_prefs.tcl: Put in support for the B1_Behavior.
215 * global_prefs.tcl: Put back tracing checkbox.
216 * tdump.tcl: Fixed an incorrect (1 rather than 1.0) text
217 widget line specification.
218 * tfind_args.tcl (build_win): Bind return in the entry to the
219 OK button. Clear the entry field if the Type has changed.
220 * utils.tcl: Added comments for the debug commands.
221 * watch.tcl (build_win): Flash the OK button before invoking it.
223 Wed Oct 28 16:19:57 1998 Martin M. Hunt <hunt@cygnus.com>
225 * srctextwin.tcl: Changed the _map cache to use
226 the variable Cname instead of the kludgy upvar alias.
228 Mon Oct 26 21:08:54 1998 Martin M. Hunt <hunt@cygnus.com>
230 * srctextwin.tcl (motion): Show breakpoint balloons
231 even when not running.
232 (showBPBalloon): Check for null before displaying.
234 Wed Oct 21 10:05:17 1998 Martin M. Hunt <hunt@cygnus.com>
236 * images/kod.gif: Added temporary kernel object display icon.
238 Wed Oct 14 17:30:07 PDT 1998 Jim Ingham <jingham@cygnus.com>
240 * main.tcl (gdbtk_tcl_preloop): Fixed the code to set gdb_exe_name.
241 I seem to have dropped a variable...
242 * main.tcl (_open_file): Make the open file dialog truely
245 Wed Oct 14 14:29:17 1998 Martin M. Hunt <hunt@cygnus.com>
247 * target.tcl: Change default runlist for remote
249 (build_win): Add user-defined list of functions for
252 * main.tcl (run_executable): Set user-defined initial
255 * prefs.tcl (pref_set_defaults): Define new prefs
256 gdb/load/bp_at_func and gdb/load/bp_func. These are
257 user-defined initial breakpoints.
259 Sat Oct 10 00:21:44 1998 Martin M. Hunt <hunt@cygnus.com>
261 * help/source.html: Add new images, add description of changes
262 to breakpoints and threads support. Fix typos.
264 * help/memory.html: Cleanup and add new information.
266 * help/breakpoint.html: Reformat.
268 * help/images: Add a bunch of new GIFs.
270 1998-10-08 Keith Seitz <keiths@cygnus.com>
272 * main.tcl (run_executable): Do not call set_exe here, either.
273 (_open_file): Add some comments about using set_exe
274 here instead of in download_it and run_executable. Do not look
275 for main, either, since the file hooks will take care of that.
277 * interface.tcl (gdbtk_tcl_pre_add_symbol): Do not reset the
278 source windows here -- only show the user what is going on.
279 (gdbtk_tcl_post_add_symbol): Force the source windows' file
280 comboboxes to refill, since adding a symbol file may actually
281 expand the debugger's view of the world.
282 (gdbtk_tcl_file_changed): New hook proc. Called by file_changed_hook
283 in symfile.c, this hook will cause the source window to point
284 to main/entry. gdbtk_tcl_exec_file_display actually sets up
286 (gdbtk_tcl_exec_file_display): Renamed from
287 gdbtk_tcl_exec_file_changed for clarity. This hook is called
288 from exec_file_display_hook in exec_file_command. This function
289 sets up gdbtk to use a new executable, including resetting the
290 debugger's state and source window(s). See comments in this file
291 for more information.
293 * download.tcl (download_it): Don't call set_exe here and
294 do not touch state variables gdb_target_changed -- run_executable
295 will do it. (In short, make download_it one step closer to only
298 1998-10-08 Keith Seitz <keiths@cygnus.com>
300 * variables.tcl (UnEdit): Fix quoting problems so that arrays may be
304 Wed Oct 7 16:03:00 1998 Martin M. Hunt <hunt@cygnus.com>
306 * srctextwin.tcl (reconfig): Fix bindings.
308 Wed Oct 7 13:07:00 1998 Martin M. Hunt <hunt@cygnus.com>
310 * manage.tcl (manage_create): Bind ALL source windows
311 Map and Unmap events.
312 (manage_delete): Small optimization.
313 (manage_iconify): When the last source window is iconified,
314 iconify all the support windows too. When any source
315 window is deiconified, deiconify everything.
317 * src.tcl (destructor): Destroy SrcTextWin too.
319 Tue Oct 6 23:00:08 1998 Martin M. Hunt <hunt@cygnus.com>
321 * src.tcl (set_status): Display only the first line of
323 (build_win): Configure status window to a height of 1.
325 * srcbar.tcl (create_menu_items): Change "Open..."
326 menu item to call _open_file proc. Remove old
329 * main.tcl (run_executable): If the run command fails
330 with a result of "No executable" then call _open_file.
331 (_open_file): New proc. Opens a file requester and
332 sets the executable name to the selected file.
334 * toolbar.tcl (create_menu_items): Add "..." to Source
335 and Global prefs menu item.
337 Mon Oct 5 21:10:30 1998 Jim Ingham <jingham@cygnus.com>
339 * srctextwin.tcl (set_tracepoint): The filename variable
340 changed to current(filename) but this use was not updated.
342 * global_prefs: Added a global preference to turn on the
343 tracing. It only sets the tracing preference, and does
344 not cause gdb to relayout the toolbar yet...
346 * util.tcl: Fixed the comments for the little debug
349 * util.tcl (auto_step): Added a way to cancel the
350 auto_stepping. This is not currently used, but with this
353 Mon Oct 5 00:43:11 1998 Martin M. Hunt <hunt@cygnus.com>
355 * srctextwin.tcl (SrcTextWin): Create a threaded image
356 with a color of [pref get gdb/src/thread_fg].
357 (bind_src_tags): Bind bp_tag <Motion> and <Leave> for
358 balloon help on breakpoints.
359 (config_win): A bunch of binding changes to support
360 balloon help breakpoints and setting multiple BPs
361 on a line. Add menu item for thread specific BPs.
362 (reconfig): Similar changes as above.
363 (register_balloon): Remove.
364 (updateBalloon): Cleanup and don't call register_balloon.
365 (do_bp): When a BP is deleted, call gdb_find_bp_at_line()
366 to see if there are any more BPs at the same line number.
367 Add "thread" BP type.
368 (bp_line): Accept an optional list of thread numbers to
369 set BPs on. Loop through the list setting BPs on each thread.
370 (motion): Accept a window and type argument. Call
371 showBPBalloon in type is not "var".
372 (showBPBalloon): New method.Opens a balloon with breakpoint
374 (showballoon): Accept window parameter.
375 (ask_thread_bp): New. A thread selector dialog. Opens
376 a scrolled listbox with a list of threads and allows
377 the user to multiselect threads to set BPs on.
378 (do_thread_bp): New callback from ask_thread_bp()
381 * src_pref.tcl: Replace disabled color selector with thread
382 fg selector. Disabled color should probably always be
385 * util.tcl (CygScrolledListbox): Temporary simple scrolled
386 listbox. Replace with a better one soon.
388 * prefs.tcl (pref_set_defaults): Set default for thread fg.
390 * bp.tcl (bp_add): For thread BPs, set the button color
395 Fri Oct 2 17:07:32 1998 Jim Ingham <jingham@cygnus.com>
397 * util.tcl (debug namespace): Added helper functions
398 "trace_var", "remove_trace" & "remove_all_traces" which
399 watch a variable, and dump the stack, and its value when
400 it is touched... They are in the "debug" namespace.
401 *tclIndex: regenerate index.
403 Fri Oct 2 14:02:25 1998 Jim Ingham <jingham@cygnus.com>
405 * main.tcl (gdbtk_tcl_preloop): Catch the error when no file
406 is given on the command line.
408 1998-10-02 Keith Seitz <keiths@cygnus.com>
410 * srcbar.tcl (_open_file): Call SrcWin::point_to_main.
411 (_set_runstop): Catch the stop in case the user
414 * srctextwin.tcl (destructor): New. Remove all previously added
417 * src.tcl (point_to_main): New function. I got tired of typing
418 the same five lines over and over again.
420 * main.tcl (set_baud): Target baud preferences are stored as
421 [target name]-baud, not [target name]/baud.
422 (run_executable): Call SrcWin::point_to_main.
423 (gdbtk_tcl_preloop): Call SrcWin::point_to_main.
425 * interface.tcl (gdbtk_tcl_pre_add_symbol): Use "update idletasks", not
427 (gdbtk_tcl_post_add_symbol): Rewrite to have better behavior
428 for symbol files which have been loaded. Use a small hack to work
429 with gdbtk_tcl_exec_file_changed so that we look for main only
430 when a new executable is loaded.
431 (gdbtk_tcl_exec_file_changed): New proc to do some necessary
432 setup when an exec file changes.
434 * tclIndex: Regenerate.
436 Fri Oct 2 11:40:05 1998 Martin M. Hunt <hunt@cygnus.com>
438 * Makefile (TCL): Add modal.tcl.
442 1998-10-02 Keith Seitz <keiths@cygnus.com>
444 * srcbar.tcl (_set_runstop): Catch the stop in case the user
447 Thu Oct 1 18:58:11 1998 Jim Ingham <jingham@cygnus.com>
449 * main.tcl (gdbtk_tcl_preloop): We were using lindex on the
450 return value from info files, but if the directory had a space
451 in it, then the result was not a proper Tcl list, and so the
452 command would fail. Use regexp instead...
454 Thu Oct 1 17:21:26 1998 Jim Ingham <jingham@cygnus.com>
456 * download.tcl (download_it): One more place where we used
457 "Foundry_Debugger" unconditionally... Stamped out.
459 * main.tcl (set_target): Don't put the "Trying to
460 communicate..." message in the window title, put it in the
461 status area, and remember to remove it when you are done.
463 Wed Sep 30 21:32:39 1998 Jim Ingham <jingham@cygnus.com>
465 * srctextwin.tcl (insertBreakTag): There was a bug in the
466 method of inserting break tags. If a tag of the intended
467 type did not already exist, insertBreakTag would not set it.
468 This method is a little less flexible, but actually works
471 Wed Sep 30 19:42:43 1998 Jim Ingham <jingham@cygnus.com>
473 * src.tcl (set_execution_status): When the program has
474 terminated, most stubs detach. Then we need to set
475 gdb_target_changed here so gdb will know to reattack when
476 you press the Run button.
478 * memory.tcl (update_address): We caught the gdb_eval when you
479 give an address expression, but then only trapped the case
480 where you gave an invalid address or non-existant symbol.
481 Trap all the other errors as well...
483 Wed Sep 30 16:55:53 1998 Martin M. Hunt <hunt@cygnus.com>
485 * bp.tcl: Add optional "thread" column and menu items
486 to turn it on and off.
488 * prefs.tcl (pref_set_defaults): Add gdb/bp/show_threads
489 preference used for toggling the display of the thread
490 column in the BP window. Default is 0 (off).
492 1998-09-28 Keith Seitz <keiths@cygnus.com>
494 * download.tcl (download_it): Don't download if there is no executable...
496 Mon Sep 28 14:23:39 1998 Jim Ingham <jingham@cygnus.com>
498 * modal.tcl: NEW FILE. Had to fix a bug in the dialogs
499 so I made a sub-class: ModalDialog. The bug was that
500 manage.tcl sets the WM_DELETE_WINDOW handler to be
501 "manage delete" of the window, which is wrong for these
502 windows, they need to unpost themselves first. Override
503 this in the post method.
504 * mem_pref.tcl: Subclass & remove the code that went into
505 the ModalDialog class.
507 * tclIndex: regenerate for the new class.
509 Fri Sep 25 19:01:32 1998 Jim Ingham <jingham@cygnus.com>
511 * utils.tcl (freeze): Hacked the freeze method so that it comes closer
512 to working on Windows, but it still flashes. Use a post
513 method, like that im mem_prefs.tcl or target.tcl instead.
514 * mem_pref.tcl (post): Added post method, so you can use the
515 Windows EnableWindow call without sending your app into the
516 background when the dialog is dismissed.
517 * target.tcl (post): Added the same method to this class.
518 Really should subclass these. Will do this when we rework the
519 class hierarchy for Itcl3.0.
520 * memory.tcl (create_prefs): Use the new post method.
521 * main.tcl (set_target_name): Use the post method rather than
524 1998-09-25 Keith Seitz <keiths@cygnus.com>
525 * main.tcl (set_baud): Baud rates are saved in gdb/load/target-baud,
526 not gdb/load/target/baud.
527 (set_target): Attempt to silently detach before attaching.
529 * target.tcl: Add gdb_target entries for Angel and ARM Remote
532 1998-09-18 Keith Seitz <keiths@cygnus.com>
534 * interface.tcl (gdbtk_tcl_post_add_symbol): Force the source window
535 to 'main'; if that fails, let gdb guess based on stop_pc.
537 1998-09-04 Keith Seitz <keiths@cygnus.com>
539 * srctextwin.tcl (SrcTextWin::destructor): Define and remove
540 previously installed hooks.
542 * browser.tcl (get_selection): Listbox indices start at zero!
543 Clear the selection if the user clicks below the last visible
546 Thu Sep 3 16:43:43 1998 Jim Ingham <jingham@leda.cygnus.com>
548 * mem_prefs.tcl: Fixed the size & format radiogroups in
549 the memory preferences so that they match the format
550 options being sent to it by the memory window. Also
551 greyed out the format box when float or double is selected.
552 Also made sure we didn't re-enable any disabled widgets in
555 Sun Aug 30 00:40:28 1998 Martin M. Hunt <hunt@cygnus.com>
557 * process.tcl: New file. Implement a process/thread selection
560 * srctextwin.tcl (do_key): Add entry for thread/process
562 (config_win): Bind "Thread List" to Control-H.
563 (FillSource): Fix bug when source is not found.
565 * toolbar.tcl (create_menu_items): Add Thread List to menu
567 * manage.tcl (manage_init): Add process window to
570 * prefs.tcl (pref_save): Add "process" to window types to save.
572 * Makefile: Add process.tcl
576 1998-08-28 Keith Seitz <keiths@cygnus.com>
578 * variables.tcl (edit): Format data so that C arrays are not
579 mistaken for tcl commands.
582 Thu Aug 27 14:13:09 1998 Martin M. Hunt <hunt@cygnus.com>
584 * main.tcl (run_executable): If the target is "sim"
585 then the pref "sim-opts" should be treated as target
586 options instead of command line arguments.
588 Wed Aug 26 00:06:11 1998 Martin M. Hunt <hunt@cygnus.com>
590 * src.tcl (mode): Set the mode widget using entryset.
591 (build_win): Use default combobox selectbackground.
593 * srctextwin.tcl (FillMixed): Better error handling.
594 (LoadFIle): Stop harrassing users with worthless dialog boxes.
596 * main.tcl (run_executable): Set args when arguments are
597 given in the target dialog.
599 * helpViewer.tcl (insertHtml): Window may have been
600 closed while waiting for HTMLparse, so catch next commands
601 to prevent error message.
603 * images/stack.gif: Use the image from images2 because
606 Tue Aug 25 16:09:02 1998 Martin M. Hunt <hunt@cygnus.com>
608 * src.tcl (build_win): Change fonts on comboboxes to src-font.
610 * global_pref.tcl: Change to new combobox.
612 Tue Aug 25 11:41:43 1998 Martin M. Hunt <hunt@cygnus.com>
614 * srctextwin.tcl (insertBreakTag): Take an index
615 instead of a linenumber. Check for bp_tag and break_tag.
616 (display_breaks): Reset all lines back to break_tag
617 after deleting bp image. Fixes caching bug.
618 (do_bp): Fix up calls to insertBreakTag.
620 Fri Aug 21 12:44:25 1998 Martin M. Hunt <hunt@cygnus.com>
622 * target.tcl (build_win): Remove tix stuff. Set maxheight
623 of comboboxes to 10. Remove all code to count elements
624 in comboboxes because the new one does it for us.
625 (fill_rates): Remove combobox height configure code.
626 (fill_targets): Same.
628 * src.tcl (build_win): Change combobox -height to
629 -maxheight for combobox 1.05.
630 (name, goto_func): Use combobox entryset instead of SetSilent.
631 (SetSilent): Deleted.
633 * srctextwin.tcl (FillSource): Fix change mode call when
636 1998-08-20 Keith Seitz <keiths@cygnus.com>
638 * srctextwin.tcl (print): New method. Moved from src.tcl.
640 * srcbar.tcl (create_menu_items): Add page setup for non-ide again..
642 * src.tcl (build_win): Fix balloon help for new comboboxes.
643 (print): Move guts to srctextwin and invoke that method.
645 * target.tcl: Remove protected variable tcpmode.
646 Add "options" member for sim and exec targets. For sim, this is
647 options to pass to the simulator; for exec, command line arguments.
648 (build_win): Replace tix comboboxes with one from libgui.
649 (set_saved): Add target-options when appropriate.
650 (write_saved): Add target-options when appropriate.
651 (fill_rates): Modify to work with new combobox.
652 (fill_targets): Modify to work with new combobox.
653 (config_dialog): New method which maps/unmaps/relabels comboboxes
654 and entries for each target.
655 (change_target): Remove all code pertaining to mapping/unmapping/relabeling
656 comboboxes and entries and call config_dialog instead.
657 (change_baud): Remove all code pertaining to mapping/unmapping/relabeling
658 comboboxes and entries and call config_dialog instead.
660 * console.tcl (Console): Add key binding for TAB completion.
661 (find_lcp): New helper method for find_completion.
662 (find_completion): New helper method for complete.
663 (complete): New method (bound to tab key) which computes the completion
664 of the current command line.
665 (reset_tab): New method to reset the tab completion whenever a key
666 is pressed (forces complete to recompute the completions instead of
667 printing out the last list of completions).
669 1998-08-18 Keith Seitz <keiths@cygnus.com>
671 * stack.tcl (update): Use new built-in command gdb_stack for
673 Use the global gdb_selected_frame_level to figure out which
674 line in the listbox should be highlighted.
675 ALWAYS highlight the selected frame.
676 Put a fencepost arount update so that we can prevent it from
677 being called twice when change_frame is used.
678 (change_frame): Protect call to gdbtk_update so that this object is
681 * srctextwin.tcl (config_win): Copy the properties of the selection tag
682 into a new "search" tag that will be used by the search widget.
683 (search): Use the defined "search" tag to highlight found text.
684 Remove all search-tagged text from the window when an empty expression
687 Mon Aug 17 14:27:54 1998 Martin M. Hunt <hunt@cygnus.com>
689 * main.tcl (do_tstop): Require combobox package.
691 * src.tcl (build_win): Use new combobox.
692 (name): Changes for new combobox.
693 (goto_func): Changes for new combobox.
694 (FillNameCB): Changes for new combobox.
695 (FillFuncCB): Changes for new combobox.
696 (SetSilent): New method, like tixSetSilent.
697 (mode): Changes for new combobox.
698 (set_name): Changes for new combobox.
699 (reset): Changes for new combobox.
701 * srctextwin.tcl (FillSource): Call parent's mode method when
702 mode is changed to assembly.
703 (location): Call display_breaks only if flag is set.
704 (LoadFIle, FillAssembly, FillMixed): Set display_breaks flag.
705 (display_breaks): Set all breakpoints in a single pass.
706 (insertBreakTag): Check $stop before trying to remove tag.
708 Mon Jul 27 12:35:31 1998 Martin M. Hunt <hunt@cygnus.com>
710 * interface.tcl (gdbtk_tcl_tracepoint): Make function match C
711 implementation by adding pass_count.
713 Sat Jul 25 22:40:49 1998 Martin M. Hunt <hunt@cygnus.com>
715 * manage.tcl (manage_init): Change "loadpref" to "targetsel"
716 and change class name to TargetSelection. This avoids confusion
717 with the IDE GdbLoadPref class.
718 * target.tcl (TargetSelection): Change class name.
719 * main.tcl (set_target_name): Change "loadpref" to" targetsel"
721 Fri Jul 24 14:37:49 1998 Keith Seitz <keiths@cygnus.com>
723 * util.tcl (bp_exists): New procedure.
724 * srctextwin.tcl (SrcTextWin::constructor): Add public vars
725 "parent" and "ignore_var_balloons" and initialize accordingly.
726 (config_win): Add binding for browser.
727 Add binding for up/down arrows to scroll more naturally.
728 (do_key): Add browser entry.
729 * browser.tcl: Add srctextwin into browser.
730 * prefs.tcl (pref_set_defaults): Add new preferences for the func
732 * tclIndex: Regenerate.
734 Fri Jul 24 00:53:28 1998 Martin M. Hunt <hunt@cygnus.com>
736 * srctextwin.tcl (SrcTextWin): Initialize LineNums.
737 (setTabs): Set tabs correctly when in assembly mode
738 or when there are no linenumbers.
739 (bind_src_tags): Remove lineNum_tag bindings.
740 (config_win): Remove lineNum_tag and line_tag. Set
741 linenumbers to break_tag and bp_tag instead.
742 (FillAssembly): Don't use lineNum_tag.
743 (FillMixed): Don't use line_tag.
744 (LoadFile): Use new protected variable LineNums.
745 (insertBreakTag): Instead of trying to calculate the
746 correct location of the new tag, simply ask the widget
747 where the old one was.
748 (do_bp): Call insertBreakTag when bps are deleted.
750 * src.tcl (FillNameCB): Call gdb_listfiles with [pwd].
752 Sat Jul 18 13:27:20 1998 Martin M. Hunt <hunt@cygnus.com>
754 * src.tcl (location): Change BROWSE_TAG to STACK_TAG.
756 * interface.tcl (gdbtk_quit): New function. Called by
759 Fri Jul 17 00:03:43 1998 Martin M. Hunt <hunt@cygnus.com>
761 * memory.tcl (build_win): Change address controlbox to
762 call update_address_cb.
763 (update_address_cb): New method. Handle address
764 controlbox callbacks. Set flag and call update_address.
765 (update_address): Call BadExpr on bad expressions.
766 Use local variable "ae" to set public variable addr_exp.
767 This fixes bug where widget forgets its address when
768 reconfigured. Set table background white when expression
770 (BadExpr): When a bad expression is entered, create a
771 messagebox and set the table bg to gray.
773 * mem_pref.tcl (apply): Remove mystery debug line.
775 Thu Jul 16 16:56:12 1998 Jim Ingham <jingham@cygnus.com>
777 * download.tcl, ide.tcl, interface.tcl, main.tcl, manage.tcl
778 srcbar.tcl, toolbar.tcl: Merged the IDE changes back into devo.
780 Mon Jul 13 14:34:45 1998 Jim Ingham <jingham@cygnus.com>
782 * mem_pref.tcl (destructor): Remember to delete the variable
783 trace that implements the entry widget checking.
785 Fri Jul 10 19:17:53 1998 Jim Ingham <jingham@cygnus.com>
787 * mem_pref.tcl: Changed the number of bytes entry widget so
788 that it only accepts +'ve integers, and protect against the
789 case where the user deletes the contents of this entry, then
790 closes the window. Also made the entry disabled when the
791 other radio button is selected.
793 Wed Jul 8 23:20:33 1998 Martin M. Hunt <hunt@cygnus.com>
795 * srctextwin.tcl (FillSource): Fix code that
796 detects when no line numbers are available and we must use
799 Mon Jul 6 17:53:50 1998 Jim Ingham <jingham@cygnus.com>
801 * download.tcl, helpViewer.tcl, html_library.tcl, memory.tcl,
802 register.tcl, src.tcl, srctextwin.tcl, target.tcl,
803 tracedlg.tcl, util.tcl, variables.tcl, warning.tcl, watch.tcl:
804 With the Tcl 8.0 compiler, expr commands are more efficient if
809 So I changed all the uses of expr to this form.
812 Mon Jul 6 15:19:59 1998 Martin M. Hunt <hunt@cygnus.com>
814 * srctextwin.tcl (FillSource): Call Parent's mode method
815 to combobox will be updated.
816 * src.tcl (mode): Pass along second argument to mode_set.
818 Wed Jul 1 15:09:47 1998 Martin M. Hunt <hunt@cygnus.com>
820 * srctextwin.tcl (location): Add missing parameter
821 to FillSource call in SRC+ASM.
823 Wed Jul 1 11:07:21 1998 Jim Ingham <jingham@cygnus.com>
825 * main.tcl (gdbtk_preloop): Call gdbtk_idle on spec. If there was an
826 error in loading an executible specified on the command line,
827 then the pre_add_symbol hook would have called gdbtk_busy but
828 the corresponding call to gdbtk_idle would not have occured.
830 Also changed some catch calls so they didn't use
831 "catch {set foo [real_command]}"
832 but rather the more efficient:
833 "catch {real_command} foo"
835 * register.tcl: more catch cleanups
836 * src.tcl: more catch cleanups
837 * stack.tcl: more catch cleanups
838 * target.tcl: more catch cleanups
839 * tdump.tcl: more catch cleanups
840 * variables.tcl: more catch cleanups
841 * watch.tcl: more catch cleanups
843 Wed Jul 1 12:21:55 1998 Martin M. Hunt <hunt@cygnus.com>
845 * src.tcl (build_win): Remove incorrect runstop
848 Wed Jul 1 11:25:48 1998 Martin M. Hunt <hunt@cygnus.com>
850 * floatbar.tcl: Deleted.
851 * Makefile: Removed floatbar.tcl
854 Wed Jul 1 11:19:05 1998 Martin M. Hunt <hunt@cygnus.com>
856 * toolbar.tcl (enable_ui): Now takes an argument and
857 handles disable_ui and no_inferior functions.
858 (disable_ui): Deleted.
859 (no_inferior): Deleted.
860 (constructor): Set idle, busy, and no_inferior hooks
863 * srcbar.tcl (_open_file): Fix for multiple source windows.
865 Wed Jul 1 01:40:52 1998 Martin M. Hunt <hunt@cygnus.com>
866 * Makefile: Added srctextwin.tcl.
868 * src.tcl: Major rewrite to move the source text window
869 into another object implemented in srctextwin.tcl. Every function
870 changed and many moved to srctextwin.tcl.
871 * srctextwin.tcl: New file.
872 * bp.tcl (goto_bp): Fix call to source widget.
874 * src_pref.tcl (build_win): Add line number
875 checkbutton. Layout needs changed.
876 * prefs.tcl (pref_set_defaults): Add linenum pref.
878 Thu Jun 25 17:31:30 1998 Keith Seitz <keiths@cygnus.com>
880 * toolbar.tcl (create_menu_items): Add Function Browser menu item.
882 * tclIndex: Regenerate.
884 * Makefile: Add browser.tcl.
886 * util.tcl (do_test): New procedure for invoking a test in the
887 testsuite from the command line.
888 (gdbtk_read_defs): New procedure for reading in the testsuite definitions
891 * src.tcl (build_win): Create new entry for searching the source window.
892 This "feature" shares the screen with the download indicator.
893 (download_progress): If starting a download, unmap the search widget
894 and map the download progress indicator in its place. When downloading
895 is done, do the opposite.
896 (config_win): Bind the down and up arrow keys to directly scroll the
898 (search): New method which searches for strings in the source window
899 and jumps to a particular line.
900 (set_state): Do not reset current_file to empty when an exe has been
902 (bp): Do not special case tracepoint debugging.
904 * manage.tcl (manage_init): Add elements for function browser.
905 (manage_create): If GDBTK_TEST_RUNNING is set in the environment,
906 place all windows on the screen at +0+0.
908 * prefs.tcl (pref_save): Add new preference category "search".
909 (pref_set_defaults): Add search preferences.
911 * tracedlg.tcl (TraceDlg::destructor): Destroy the actions dialog is
913 (add_action): Save the object returned from the window manager when
914 the actions dialog is opened so that we can later destroy it if
916 (done): Clear ActionsDlg when the actions dialog is destroyed.
918 * main.tcl (do_tstart): Do not disable the "Begin collection" menu
919 item when we issue a tstart.
921 * console.tcl (paste): New method which handles all Paste events for
923 (Console): Bind the middle mouse button on unix to generate a paste
925 Override default binding for button-2 motion to allow easier pasting
927 Bind the paste event to the method paste.
929 Wed Jun 17 13:50:48 1998 Martin M. Hunt <hunt@cygnus.com>
931 * src.tcl (reconfig): Recognize tab size changes.
933 * src_pref.tcl (build_win): Add tab control. Remove extra frame.
934 Justify variable ballons text. Set activebackgrounds on
937 Tue Jun 9 13:57:24 1998 Keith Seitz <keiths@cygnus.com>
939 * helpViewer.tcl (HtmlViewer): Display appropriate help based on the
942 * help/trace: Add help files for tracing.
944 * main.tcl (gdbtk_tcl_preloop): Call gdbtk_update so that the
945 source window fills files into the combobox.
947 * srcbar.tcl (_open_file): "cd" to directory, don't add it to the
948 search list. This never gets reset anywhere, so if multiple file
949 commands are added, we could get the wrong path. Call gdb_clear_file,
952 * interface.tcl (gdbtk_tcl_pre_add_symbol): Call the reset method
953 of the source window, too.
955 * src.tcl (reset): New method used to clear the source window
956 whenever multiple file commands are used.
958 * tdump.tcl (update): Erase the contents of the tdump window
959 when displaying a new dump.
961 * stack.tcl (update): Errors from the backtrace can contain
962 backtrace info, too, so make sure we print as much of that as
965 * register.tcl (build_win): Do not allow editing in tracing
967 (reg_select): Do not allow editing in tracing mode.
969 * memory.tcl (update_address): Check that gdb's handling of chars and
970 char*s doesn't abort the update.
972 * variables.tcl (build_win): Disable editing in tracing mode.
973 (build_menu_helper): Disable editing in tracing mode.
974 (getLocals): Use the builtin functions gdb_get_locals and
975 gdb_get_args to get all local variables. Concat lists together.
976 (Variable::value): Set a default value for "radix" in case
979 Tue Jun 9 00:00:18 1998 Martin M. Hunt <hunt@cygnus.com>
981 * interface.tcl (gdbtk_quit): No longer use quit_hook.
982 Just call "manage save".
983 * manage.tcl (manage): Remove manage quit.
984 (manage_quit): Deleted.
985 (manage_init): Remove quit_hook.
986 (manage_save): Use "Pref setd" instead of "pref set".
987 * prefs.tcl (pref_set_defaults): Remove quit_hook.
988 (pref_quit): Deleted.
990 Mon Jun 8 16:15:33 1998 Martin M. Hunt <hunt@cygnus.com>
992 * target.tcl (set_check_button): Check for existence of
993 button before trying to set its state.
995 Mon Jun 8 13:31:08 1998 Martin M. Hunt <hunt@cygnus.com>
997 * memory.tcl (build_win): Always Bind configure event to
998 newsize method. Change table widget to use incr_addr for
999 both incr and decr. Enable autorepeat.
1000 (create_prefs): Set rheight (row height).
1001 (newsize): Set rheight if necessary. Return if numbytes
1003 (update_address): Move gdbtk_idle and gdbtk_busy calls to
1005 (update_addr): Surround with gdbtk_idle and gdbtk_busy.
1006 (incr_addr): Take an argument to indicate how much
1007 to increment or decrement by.
1008 (decr_addr): Deleted.
1010 Fri Jun 5 00:13:49 1998 Martin M. Hunt <hunt@cygnus.com>
1012 * Change all references to GDBTK_IDE to IDE_ENABLED.
1014 Thu Jun 4 18:34:11 1998 Martin M. Hunt <hunt@cygnus.com>
1016 * memory.tcl: Complete rewrite. Added many new features
1017 and made it much faster.
1019 * mem_pref.tcl (build_win): Set listbox width.
1021 * images/check.gif: New image. Used in version of
1022 memory window without a menubar.
1024 Thu Jun 4 10:53:33 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1026 * tclIndex: regenerated.
1028 Merged (most recent first):
1030 - Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1032 * tracedlg.tcl (ok): if the tracepoint does not exist (this can happen
1033 if user is editing a tp and decides to remove it from tp window)
1034 do not core dump, give an error message instead, and return.
1036 * bp.tcl (get_actions): invoke trace dialog from tracepoint window,
1037 passing filename and line as arguments, rather than address.
1039 - Jeff Holcomb <jeffh@cygnus.com>
1041 * main.tcl (set_baud): Change gdb/load/$gdb_target_name/baud
1042 to gdb/load/${gdb_target_name}-baud.
1044 - Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1046 * tdump.tcl (update): call tdump only if the current trace frame
1049 * interface.tcl (gdbtk_tcl_tstart): update menus entries only, do
1050 not do actual command.
1051 (gdbtk_tcl_tstopt): update menus entries only, do not do actual
1053 (gdbtk_tcl_warning): remove tdump warning message from list of not
1056 * main.tcl (do_tstart): catch error output from tstart and display
1058 (do_tstop): catch error output from tstop and display error dialog.
1060 * bp.tcl (bp_add): align properly the bpnum and passcount fields,
1061 for the tracepoint window.
1063 * main.tcl (set_exe): set file_done (new global state variable)
1064 depending whether new file was read in or not.
1065 (set_target_name): return 0 if user chose cancel from target setting
1066 window displayed by 'connect'.
1067 (set_target): if no target_cmd is specified call set_target_name and
1069 (async_connect): handle possible outcomes of set_target command,
1070 issue appropriate messages to user.
1071 Initialize file_done to 0.
1073 * target.tcl (cancel): set gdb_target_name to CANCEL for use by
1075 Added public data 'exportcancel'.
1077 * toolbar.tcl (do_async_connect): change menu items state only
1078 if connect was successful.
1080 * src.tcl (bp): modify condition for SOURCE case to display tp dot
1081 after connecting to target.
1083 * actiondlg.tcl (constructor): make dialog non modal.
1084 (destructor): release grab not any longer necessary.
1085 (change): make lsearch use exact pattern matching for entries
1086 added to the collect list using the 'other' field. The new syntax
1087 allows array elements to be specified and this messes up the
1088 default glob style pattern matching.
1089 (change_other): reject memranges (obsolete). Delegate validation
1090 of user input to the lower levels, in gdb. I.e. keep everything
1091 until the whole tracepoint is installed.
1093 * tracedlg.tcl (gdb_add_tracepoint): call to gdb_actions is now
1094 catching the errors (in case of incorrect syntax) and displaying
1097 * main.tcl (set_target): Changed text of error message to mention
1098 the Target Settings dialog.
1100 * prefs.tcl: Set default preference for gdb/load/check to 0.
1102 * target.tcl (build_win): disable comparison with executable for
1104 (set_check_button): new method. Enable/disable the check button
1105 for comparing executable.
1106 (change_target): call set_chack_button when target changes.
1107 Set default preference gdb/load/check to 0.
1109 * stack.tcl: set initial window width value to 40, so that window
1110 looks better if opened before a stack exists.
1112 - David Taylor <taylor@texas.cygnus.com>
1114 * main.tcl (async_connect): remote-compare is now compare-sections.
1116 - Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1118 * warning.tcl (constructor): call destructor if dialog doesn't
1119 need to be displayed.
1121 * console.tcl (invoke): make function get input and return if in
1122 readline state, independently from the value of Running.
1124 * src.tcl (set_state): set state of pop up menus only for synch
1127 * tdump.tcl (build_win): simplify the window, eliminating pane.
1128 This fixes resize problems.
1129 (update): add call to see to display last thing outputted to the
1132 * tfind_args.tcl (do_it): call the tfind_cmd procedure.
1134 * toolbar.tcl (create_menu_items): changed calls to tstart and tstop
1135 to use do_tstart and do_tstop.
1137 * srcbar.tcl (runstop): do not call _set_trace in asynch case,
1138 just use _set_runstop always.
1139 (_set_runstop): added handling for asynch mode cases.
1140 (_set_trace): removed.
1142 * main.tcl (do_tstart): new procedure to execute tstart command
1143 update tstart/tstop button, and menu entries accordingly.
1144 (do_tstop): new procedure for tstop, as above.
1145 (run_executable): calls do_tstart in the asynch case.
1147 * interface.tcl (gdbtk_tcl_tstart): new procedure to invoke
1149 (gdbtk_tcl_tstop): new procedure to invoke the tstop command
1151 * interface.tcl: (gdbtk_tcl_warning) do not display warning
1152 about no current trace frame upon opening of tdump window.
1154 * main.tcl: (run_executable) in asynch mode just call tstart,
1155 connect is now done independently.
1156 (async_connect) new procedure to connect and do comarison with
1157 remote executable, in asynch mode. Sets up gui state globals.
1158 (async_disconnect) new procedure to disconnect from target in
1159 asynch mode. Sets up gui state globals.
1161 * prefs.tcl: added new preference gdb/load/check
1163 * srcbar.tcl: (create_buttons) tfind commands now use tfind_cmd
1166 * target.tcl: added new preference gdb/load/check to execute an
1167 automatic remote-compare command on connection to target in asynch
1169 (set_saved) set saved value for new preference
1170 (write saved) write saved value for new preference
1171 (build_win) set state of 'run to main', 'break at exit', 'display
1172 dowload' to disabled for asynch mode target dialog.
1173 Added new checkbutton for automatic comparison of remote exec.
1174 Saved_check: new protected member
1176 * tdump.tcl: (update) changed check for no frame, since 0 is legal
1179 * toolbar.tcl: (create_menu_items): added menus items 'connect to
1180 target' and 'disconnect', in async mode. Changed to call tfind_cmd
1181 to execute tfind commands
1182 (do_async_connect): new method to connect to target in async mode.
1183 (do_asynch_disconnect): new method to disconnect from target in
1186 * util.tcl: (tfind_cmd): new proc to execute a tfind command on
1189 Thu May 28 12:49:29 1998 Keith Seitz <keiths@cygnus.com>
1191 * target.tcl: Add sparclite target.
1192 (fill_targets): Add sparclite target.
1194 * main.tcl (set_target_name): Rearrange so that the default behavior
1195 is to assume a remote-like target.
1197 * src.tcl (browse_to): Helper function for BpWin::goto_bp which causes
1198 the source window to show the specified location.
1200 * bp.tcl (bp_add): Clean up repetitive code.
1201 Add double-click binding which shows the breakpoint
1202 in the source window.
1203 (bp_select): Clean up repetitive code.
1204 (goto_bp): New function.
1206 Sun May 24 14:05:27 1998 Keith Seitz <keiths@cygnus.com>
1208 * src.tcl (reconfig): Remove the variable balloon selection in the text
1209 widget, too, when we are disabling varialbe balloons.
1211 * target.tcl: Add a "runlist" parameter to all gdb_target entries. This list
1212 controls the default behavior of the run button.
1213 (GdbLoadPref): Define the run preferences based on this target.
1214 (build_win): Add a "more options" dropdown pane to allow users to modify the
1215 behavior of the run button.
1216 (set_saved): Add run button preferences.
1217 (write_saved): Add run button preferences.
1218 (fill_targets): Add the "pretty name" to the combo box, not gdb's internal
1220 (change_target): Use get_target to translate the "pretty-name" to the
1222 (save): Write out saved values, too.
1223 (get_target): New method to translate the "pretty-name" of a target into gdb's
1225 (toggle_more_options): New method to handle mapping and unmapping of the
1226 "more options" pane.
1227 (set_run): New method. Moved from src_pref.tcl.
1228 (valid_target): Moved here from main.tcl.
1229 (native_debugging): Moved here from main.tcl.
1230 (change_target): Don't write_saved here -- wait until dialog is closed.
1232 * src_pref.tcl (build_win): Use libgui's Labelledframe class instead of the
1234 Remove the run button frame -- this has moved into the target selection dialog.
1235 (set_run): Moved to targets.tcl.
1237 * prefs.tcl (pref_set_defaults): Change default preferences for the run
1238 button to only do a run. Target selection will reset these as appropriate.
1240 * main.tcl (set_baud): Baud preferences are in TARGET-baud, not
1242 (run_executable): Remove special cases for exec targets.
1243 (native_debugging,valid_target): Move to target.tcl.
1245 * images/more.gif, images/less.gif: New images for drop frames.
1247 * tclIndex: Regenerate.
1249 Wed May 20 13:43:00 1998 Martin M. Hunt <hunt@cygnus.com>
1251 * toolbar.tcl (create_menu_items): Remove register prefs.
1253 * images/stop.gif: Set transparent bit.
1255 Tue May 19 12:34:11 1998 Keith Seitz <keiths@cygnus.com>
1257 * bp.tcl (bp_add): Use source window's colors. Use "file tail" not
1258 "lindex [file split ] end".
1259 (bp_modify): Use source window's colors. Use "file tail" not
1260 "lindex [file split ] end".
1261 (bp_remove): Call bp_select before we delete the breakpoint.
1263 * main.tcl (run_executable): Encapsulate all calls to debugger
1264 based on new run preferences.
1266 * manage.tcl (manage_init): Change loadpref titles to "Target Selection"
1268 * pref.tcl (build_win): Disable Help button until it works.
1270 * prefs.tcl (pref_set_defaults): Define new run button preferences.
1271 Lose stack and bp window color preferences -- use the source window
1272 ones instead. Lose left_click, too.
1274 * src.tcl: Remove all references to _Source_Left_Click and replace with new
1275 protected variable Tracing. Define new protected variable UseVariableBalloons
1276 so that we don't follow the preferences blindly. Replace all preference calls
1277 for these two globals.
1278 (reconfig): Allow reconfiguration of variable balloons and popup menu colors.
1279 (config_win): Add binding for File Menu->Open.
1280 (do_key): Add open key.
1282 * src_pref.tcl (SrcPref): Save all newly added preferences.
1283 (build_win): Add new preferences for mode, variable balloons,
1284 lots of color choices.
1285 (cancel): Reset all new preferences.
1286 (pick): Allow passing of button in to make things a little easier.
1287 (reconfig): Keep empty -- no need for this to reconfigure itself.
1288 (set_run): New method to make sure someone does not try to run _and_
1289 continue a target with the run button.
1291 * stack.tcl (build_win): Use the source window's preferences to set colors.
1293 * target.tcl (build_win): Disable Help button until it works.
1295 Mon May 18 15:25:00 1998 Martin M. Hunt <hunt@cygnus.com>
1297 * html_library.tcl (HMstack): Remove stray 'g' that was
1298 preventing autoloading.
1300 Mon May 18 13:17:30 1998 Keith Seitz <keiths@cygnus.com>
1302 * helpViewer.tcl (HtmlViewer): Initialize glossary.
1303 (glossaryPost): Fill in skeleton supplied by jingham.
1304 (glossaryUnpost): Ditto.
1305 (lookup): New method to lookup glossary definitions.
1306 (HMset_image): Add special image names.
1308 Fri May 15 00:30:06 1998 Martin M. Hunt <hunt@cygnus.com>
1310 * memory.tcl (update_address): Source window was never being
1311 updated due to a faulty fencepost. I removed it. Was it
1314 Tue May 12 11:47:11 PDT 1998 James Ingham <jingham@leda.cygnus.com>
1316 * helpViewer.tcl: Made the fonts for the viewer track the global
1318 *html_library.tcl: Use Tcl Font objects for the fonts rather than
1319 building up X Font Specs.
1322 Thu May 7 16:03:32 1998 Keith Seitz <keiths@cygnus.com>
1324 * toolbar.tcl (create_menu_items): Remove automatic stepping.
1325 (create_menu_items): "Cygnus on the Web..." should point to GNUPro page...
1327 Wed May 6 20:18:34 1998 Keith Seitz <keiths@cygnus.com>
1329 * main.tcl (set_target_name): Recognize d10v and m32r targets.
1330 (valid_target): Change test to recognize all tcp targets.
1332 * target.tcl: Add m32r and d10v tcp targets.
1334 Wed May 6 12:52:12 1998 Keith Seitz <keiths@cygnus.com>
1336 * srcbar.tcl (create_menu_items): Install a page setup menu item for
1339 * src.tcl (print): Don't call idewindow_freeze and idewindow_thaw
1340 the ide is not running
1342 Wed May 6 10:41:30 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1344 * bp.tcl (get_actions): set bpnum to be the real tracepoint number,
1345 not the selected row number.
1347 Tue May 5 04:07:12 1998 Martin M. Hunt <hunt@cygnus.com>
1349 * target.tcl: Add D10V and M32R target.
1351 * prefs.tcl (pref_set_defaults): Set debugging off
1354 Fri May 1 15:23:57 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1356 * main.tcl (valid_target) make 'remotetcp' a valid
1359 Fri May 1 11:50:40 1998 Jim Ingham <jingham@leda.cygnus.com>
1361 * helpViewer.tcl: Added the skeleton for the Glossary entries.
1362 Fixed the zoom to top of page when rendering is complete nit.
1363 Added a reconfig method to refresh the current page.
1364 Compulsive reordering of methods.
1366 Thu Apr 30 00:04:52 1998 Martin M. Hunt <hunt@cygnus.com
1368 * global_pref.tcl (change_icons): Remove debug line.
1370 * toolbar.tcl: Change image names to end with _img
1371 so they don't conflist with command names.
1374 Tue Apr 28 16:51:09 1998 Jim Ingham <jingham@leda.cygnus.com>
1376 * html_library.tcl: The redefinition of tkFocusOK in this file
1377 can cause an infinite recursion loop in autoloading tkFocusOK.
1378 Change proc -> ::proc to hide the definition from itcl_mkindex
1379 * tclIndex: remade without the reference to tkFocusOK.
1381 Tue Apr 28 16:51:09 1998 Jim Ingham <jingham@leda.cygnus.com>
1383 * helpViewer.tcl: The index page now shows up properly in the
1384 history list. Also added images for the fore, back and home
1385 buttons, and removed the close button.
1387 * manage.tcl: Moved the wm withdraw of a new toplevel before the
1388 constructor is run in manage_create. This avoids flashing.
1390 * main.tcl: Changed the tk application name of gdbtk from tk
1393 Mon Apr 27 14:18:01 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1395 * helpViewer.tcl: (constructor) Change 'Foreward' to 'Forward' and
1396 calls to 'foreward' method to calls to 'foreward' method.
1397 (forward) changed method name from 'foreward'.
1399 Thu Apr 23 19:02:25 1998 Keith Seitz <keiths@onions.cygnus.com>
1401 * toolbar.tcl (create_menu_items): Use the new help viewer when not
1404 * helpViewer.tcl (HtmlViewer::constructor): Set default values for
1405 previously passed-in variables.
1406 (HtmlViewer::destructor): Destroy the toplevel, too.
1407 (HMset_image): prepend the dir name "images" to the image path.
1409 Thu Apr 23 13:31:07 1998 Jim Ingham <jingham@leda.cygnus.com>
1411 * html_library.tcl: First checkin
1412 * helpViewer.tcl: First checkin
1413 * manage.tcl (manage): Added the help veiwer to the windows
1414 list. Aslo compulsively alphabetized the list...
1415 * tclIndex Rebuilt for the new procs.
1417 Mon Apr 20 11:14:17 1998 Keith Seitz <keiths@onions.cygnus.com>
1419 * global_pref.tcl (build_win): Add font selector for the status font.
1421 * main.tcl (run_executable): Exec targets are always "loaded".
1423 Sat Apr 18 02:11:04 1998 Martin M. Hunt <hunt@cygnus.com>
1425 * prefs.tcl (pref_read): Remove debug line.
1427 * util.tcl (toggle_debug_mode): When enabling or
1428 disabling debugging, also enable or disable error
1429 reporting and stack traces.
1431 Sat Apr 18 01:13:03 1998 Martin M. Hunt <hunt@cygnus.com>
1433 * srcbar.tcl (_toggle_updates): Cleanup.
1435 * src.tcl (do_popup): Fix problems with selections. While
1436 I'm messing with this code anyway, change how it works
1437 so that the popup will contain the word that is under the cursor
1438 if nothing is selected.
1440 * toolbar.tcl (create_buttons): Bind button 3 to create
1441 new windows when possible.
1443 * stack.tcl (StackWin): Fix broken deiconify call.
1445 * images/[console.gif, reg.gif]: Update.
1447 Fri Apr 17 10:34:23 1998 Martin M. Hunt <hunt@cygnus.com>
1449 * src.tcl (location): Don't look up the full pathname
1450 of each file added to the combobox.
1452 Fri Apr 17 09:58:59 1998 Keith Seitz <keiths@onions.cygnus.com>
1454 * target.tcl (default_port): New proc. Returns a default port
1456 (startup code): Use default port to determine the default port
1457 to use for all hosts.
1458 (build_win): Only set the target if it is valid.
1459 For unix, use port names that correspond to the OS running.
1460 Change gdb/load/$target-portnum to gdb/load/$target-port (typo?)
1461 (get_target_list): Do not allow "exec" for cross debugging.
1462 (save): Do not do dismiss dialog if the target is not valid.
1463 (cancel): If exportcancel is set, set gdb_target_cmd to "CANCEL". This
1464 will allow run_executable to cancel a run if the user cancels target
1466 (exportcancel): New public data.
1468 * main.tcl (set_target_name): Return status to caller so that the user
1469 can cancel a run request when the target selection dialog is opened.
1470 Do not modify gdb_exe_changed -- it has already been set proprely.
1471 (set_target): If gdb_target_cmd is empty, call set_target_name to
1473 Allow all set_target_name commands to cancel target selection.
1474 (run_executable): Allow all set_target_name commands to cancel
1476 Always clear bp's at main and exit, since this proc will set them
1477 for all targets now.
1478 Save the bp number for the breakpoint installed at main and exit so
1479 that we can reliably delete them if the user cancels any subsequent
1481 Whenever the run is canceled, delete the breakpoints at main and exit.
1482 Move setting of breakpoints at main and exit from download_it here.
1483 (valid_target): New proc. Returns true if the given target is a valid,
1485 (native_debugging): New proc. Returns true if this gdb is not a cross
1487 (startup code): Do not call set_target_name here -- let run_executable
1490 * interface.tcl (gdbtk_tcl_query): Update the display when this dialog
1492 (gdbtk_tcl_warning): Always show warnings in the debug window.
1494 * download.tcl (download_it): Move setting breaks at main,exit to
1495 run_executable in main.tcl.
1497 Thu Apr 16 11:28:01 1998 Martin M. Hunt <hunt@cygnus.com>
1499 * main.tcl (set_target_name): Add "prompt" parameter
1500 which allows this function to be called without it always
1501 prompting for the target name. This allows it to quietly
1502 initialize variables from preferences.
1503 (set_target): Remove HACK_FIRST_HACK.
1504 (run_executable): Check the result of [set_target].
1505 If it fails, prompt for a new target and repeat.
1506 (startup code): Remove HACK_FIRST_HACK.
1507 Call set_target_name to initialize gdb_target_cmd from
1510 * toolbar.tcl (create_menu_items): Call set_target_name
1511 for the target menu item. This will open the dialog and
1512 then set the target command correctly.
1514 * target.tcl (save): Set default target preference.
1516 Wed Apr 15 11:29:47 1998 Martin M. Hunt <hunt@cygnus.com>
1518 * src.tcl (reconfig): Tell toolbar to reconfig.
1520 * global_pref.tcl (build_win): Add support for changing
1521 icons. Put fonts in a labelled frame.
1522 (update_file): Removed.
1523 (change_icons): Callback for icon combobox.
1525 * srcbar.tcl (_load_src_images): Remove old target and
1526 load images. Add reconfig parameter which reloads images.
1527 Use global gdb_ImageDir.
1528 (reconfig): New method.
1530 * floatbar.tcl (create_buttons): Remove target image.
1531 Use global gdb_ImageDir.
1533 * toolbar.tcl (_load_images): Use global gdb_ImageDir.
1534 Add reconfig parameter which reloads images.
1535 (reconfig): Don't rebuild everything, just reload images.
1536 (create_menu_items): Change "Fonts" preferences menu
1539 * prefs.tcl (pref_set_defaults): Save only basename in
1540 gdb/ImageDir preference. Initialize global gdb_ImageDir.
1541 (pref_read): Set gdb_ImageDir.
1543 * memory.tcl (build_win): Use global gdb_ImageDir.
1545 * manage.tcl (make_icon_window): Use global gdb_ImageDir.
1547 * about.tcl (build_win): Use global gdb_ImageDir.
1549 * images/icons.txt: New file; icon descriptions.
1550 * images/vmake.gif: New file.
1551 * images/vars.gif: New file.
1552 * images/watch.gif: New file.
1553 * images/bp.gif: New file.
1554 * images/memory.gif: New file.
1556 * images2/icons.txt: New file; icon descriptions.
1558 * toolbar_pref.tcl: Removed.
1560 * main.tcl (run_executable): If target is "exec" don't
1561 show target dialog unless the run command fails.
1563 Wed Apr 15 13:15:22 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1565 * interface.tcl: (gdbtk_tcl_warning) changed to selectively
1566 display warnings in the GUI.
1567 (show_warning) new procedure. Displays warning dialogs.
1569 Wed Apr 15 07:13:04 1998 Keith Seitz <keiths@onions.cygnus.com>
1571 * src.tcl (do_popup): Fix merge casualty -- revert to pre-3/22 version.
1572 Don't allow tracepoint ranges to be set unless in asynch mode.
1574 Mon Apr 13 16:00:06 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1576 * warning.tcl: new file. Implements WarningDlg class, for warning
1579 * tclIndex: regenerated
1581 * Makefile: added new file warning.tcl
1583 * manage.tcl: added new window warningdlg, for ignorable warnings.
1585 * interface.tcl: (gdbtk_tcl_warning) new procedure. Creates a warning
1587 (gdbtk_tcl_ignorable_warning) new procedure. Creates a warning dialog.
1588 The user can choose to not have this dialog pop up again during the
1589 same debugging session.
1591 Mon Apr 13 13:04:20 1998 Keith Seitz <keiths@onions.cygnus.com>
1593 * stack.tcl (StackWin::constructor): Withdraw toplevel before calling
1594 all busy hooks; then build the window, go idle and pop the window onto
1597 * main.tcl (set_target_name): Use a regexp to match target names.
1598 Add "sds" as a target.
1599 (run_executable): Use gdb_immediate to run executable.
1601 Fri Apr 10 10:27:42 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1603 * bp.tcl: changed default value of public var tracepoints to be 0.
1605 Thu Apr 9 15:21:49 1998 Martin M. Hunt <hunt@cygnus.com>
1607 * global_pref.tcl (destructor): Delete test fonts here instead of
1608 in ok and cancel. This fixes bug when dialog was closed by
1609 clicking on close gadget.
1611 * src_pref.tcl (pick): When colors are changed, immediately
1614 Thu Apr 9 04:03:27 1998 Martin M. Hunt <hunt@cygnus.com>
1616 * target.tcl (build_win): Bind <Return> for cancel and help buttons.
1618 Wed Apr 8 10:57:14 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1620 * tdump.tcl: (update): show stuff on window only if current
1621 trace frame is not null.
1623 * variables.tcl: (build_win): get the current output-radix
1624 (getVariables): decide the format to display a var based on Radix
1625 VariableWin class: added protected member Radix
1626 (value): decide display based on output-radix
1628 Wed Apr 8 06:17:42 1998 Keith Seitz <keiths@onions.cygnus.com>
1630 * bp.tcl (get_actions): Open the trace dialog based on a tracepoint's
1633 * tracedlg.tcl (title): New method to title window based on mode.
1634 (TraceDlg::constructor): After the interp is idle, title this window.
1635 (build_win): Add support to simply pass a tracepoint number for editing.
1637 Tue Apr 7 12:49:45 1998 Keith Seitz <keiths@onions.cygnus.com>
1639 * variables.tcl (VariableWin): We should deiconify after withdrawing...
1641 * tracedlg.tcl (gdb_edit_tracepoint): Make necessary gdb_cmd changes
1643 (gdb_add_tracepoint): Make necessary gdb_cmd changes to support new
1646 * tdump.tcl (update): Make necessary gdb_cmd changes to support new
1648 (TdumpWin::constructor): We should deiconify after we withdraw...
1649 Change idle callback to an update callback.
1650 (TdumpWin::destructor): Change idle callback to update callback.
1652 * srcbar.tcl (_open_file): Make necessary gdb_cmd changes to support new
1654 (create_buttons): Change all tracing commands to use gdb_immediate.
1656 * main.tcl (set_target_name): Add simulator target.
1658 * src.tcl (mode): When changing modes, clear the line to pc mappings.
1659 (location): Do not set current_addr if we are not running and gdb_loc
1660 thinks we're at 0x0.
1661 Clear the text-window-line to pc mapping when appropriate.
1662 Revert display_breaks change for SRC+ASM mode.
1663 (bp): Make sure mapping of PC to src window line exists before
1664 attempting to set breakpoints/tracepoints.
1666 Fri Apr 3 13:57:42 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1668 * src.tcl: (do_key): added actions for key bindings in trace mode.
1669 (config_win): added key bindings for trace mode.
1671 * srcbar.tcl: (_set_trace) changed balloon contents for tstart/
1674 * toolbar.tcl: (create_menu_items): changed names of menu items
1675 tstart and tstop to 'Begin Collection' and 'End Collection'.
1676 Changed name of Preference menu item from 'GDB' to 'Fonts'.
1677 Changed name of File menu item from 'Debugger Preferences' to
1679 Commented out Preference menu item 'Download'.
1680 (create_buttons): tdump button, inserted text 'Td' in place of missing
1684 Tue Mar 31 17:20:59 1998 Ian Lance Taylor <ian@cygnus.com>
1686 * Makefile (TCL): Add ide.tcl.
1687 * tclIndex: Rebuild.
1689 Sun Mar 29 18:50:46 1998 Keith Seitz <keiths@onions.cygnus.com>
1691 * tracedlg.tcl (build_win): Enable tracepoints at assembly addresses.
1692 (add_action): Enable tracepoints at assembly addresses.
1693 (ok): Enable tracepoints at assembly addresses.
1694 (edit): Enable tracepoints at assembly addresses.
1695 (gdb_add_tracepoint): Enable tracepoints at assembly addresses.
1697 * srcbar.tcl (_open_file): If main () exists, show it.
1699 * src.tcl (display_breaks): If we are displaying breaks in assembly,
1700 clear the line and file specs.
1701 (location): Use display_breaks to insert breaks and traces.
1702 (bp): Rewrite. Actions are based on mode of the source window.
1703 (bp_line): When setting a tracepoint in assembly, pass address
1705 (set_tracepoint): Open trace dialog specifying either line or
1706 address at which to set trace.
1707 (tracepoint_range): Rewrite. Actions are based on the mode of the
1708 source window. Now able to insert ranges of traces in any mode.
1710 * actiondlg.tcl (ActionDlg::constructor): Enable widget via address
1712 (ActionDlg::Line): Default to empty list.
1713 (ActionDlg::Address): Add new memeber to enable assembly operation.
1715 Sun Mar 29 21:21:37 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1717 * bp.tcl: add tracepoint number to tracepoint window.
1718 (build_win)(bp_add)(bp_select)(bp_modify)(bp_delete)
1720 * manage.tcl: (manage_init) do not open windows not related to
1723 * tdump.tcl: (reconfig) remove it
1724 (config) add toplevel window, show window after it has been built.
1725 (update) add calls to busy and idle hooks, add third argument to
1728 Sun Mar 29 15:01:03 1998 Keith Seitz <keiths@onions.cygnus.com>
1730 * srcbar.tcl (_set_trace): Use gdb_immediate to execute the "tstop".
1731 Call run_executable when requesting a tstart.
1732 (_open_file): Convert all paths under cygwin32 to a posix-compliant
1733 pathname. Add this path to the source search list.
1735 * src.tcl (set_execution_status): Change stop messages to support
1737 (tracepoint_range): Clear the selection when we set a range of
1740 * main.tcl (set_target): Use gdb_immediate so that the console gets
1741 output of target command.
1742 (run_executable): Use gdb_immediate for run command.
1743 Include trace support.
1745 Sat Mar 28 15:50:01 1998 Keith Seitz <keiths@onions.cygnus.com>
1747 * srcbar.tcl (create_menu_items): Put menu items in proper order.
1748 (_open_file): Add exe file's directory to the default source
1751 Sat Mar 28 14:29:08 1998 Keith Seitz <keiths@onions.cygnus.com>
1753 * srcbar.tcl (GDBSrcBar: runstop trace): If running async'ly, set
1754 the run/stop button by calling _set_trace. Otherwise use _set_runstop.
1755 (create_menu_items): Add file command to open a new exe.
1756 (_open_file): New method to handle requests to open a new exe.
1758 * main.tcl (set_target): If this is the first time running,
1759 then show the download prefs dialog.
1761 Sat Mar 28 16:30:55 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1763 * tracedlg.tcl: (build_win) reinserted 'update idletasks' to
1764 display Actions frame properly.
1766 * actiondlg.tcl: (sort) moved "All Registers", "All Locals",
1767 "All Arguments" to beginning of list.
1769 * src.tcl: (line_is_executable) new method. Used in
1772 Sat Mar 28 10:58:04 1998 Keith Seitz <keiths@onions.cygnus.com>
1774 * tracedlg.tcl (gdb_edit_tracepoint): Don't let gdb_cmd call busy and
1776 (gdb_add_tracepoint): Ditto.
1778 * src.tcl (config_win): Change exit key binding from 'q' to 'x.'
1779 (goto_func): That's "file tail", not "file split."
1781 * srcbar.tcl (_set_stepi): Don't do anything if we're debugging
1784 Sat Mar 28 10:09:21 1998 Martin M. Hunt <hunt@cygnus.com>
1786 * toolbar.tcl (create_menu_items): Change "Close Debugger"
1787 menu item to "Exit".
1789 Sat Mar 28 02:38:51 1998 Martin M. Hunt <hunt@cygnus.com>
1791 * src_pref.tcl (build_win): Fix Save and Apply buttons.
1792 Change "Save" to "OK". Use standard_button_box.
1793 (save): New method, save and exit.
1794 (apply): New method; save and don't exit.
1795 (cancel): New method; cancel all changes.
1797 * src.tcl (reconfig): Reconfigure colors, too.
1799 * global_pref.tcl (Globalpref): Fix deiconify call.
1800 (build_win): Use standard_button_box. Set default to OK.
1801 Remove unused stuff. Cleanup display.
1803 * Makefile: Removed toolbar_pref.tcl.
1805 * tclIndex: Rebuilt.
1807 * srcbar.tcl (create_buttons): Make toolbar always attached
1810 * toolbar.tcl (build_win): Always display toolbar and
1811 menubar attached to source window.
1813 * prefs.tcl (pref_set_defaults): Removed toolbar prefs.
1815 * manage.tcl (manage_init): Remove hack to change preferences
1817 (manage_init): Remove toolbar and toolbar prefs code.
1818 (manage_create): Remove toolbar code.
1819 (manage_open): Remove toolbar code.
1820 (manage_find): Remove toolbar code.
1821 (manage_delete): Remove toolbar code.
1822 (manage_restart): Remove toolbar code.
1824 Fri Mar 27 19:52:53 1998 Keith Seitz <keiths@onions.cygnus.com>
1826 * toolbar.tcl (create_menu_items): Do not disable preferences.
1828 * src.tcl (reconfig): Rewrite to not destroy window.
1829 Symbolic fonts are a blessing!
1830 Pass the image handles for our breakdots to makeBreakDots.
1831 (file): Move breakpoint/tracepoint insertion to a separate function...
1832 (display_breaks): .... this one.
1833 (location): Move the block which fills combo boxes to top in
1834 case an error causes us to exit early.
1835 (makeBreakDot): Accept an optional image handler so that it can be
1836 configured instead of created.
1838 * global_pref.tcl (build_win): Carry around a list of all changable
1839 fonts in case more granularity is needed. (Windows cannot change
1840 menu font...) Disable menu font for windows.
1841 (ok): Check the list of changable fonts.
1842 (cancel): Check the list of changable fonts.
1843 (apply): Check the list of changable fonts.
1845 * console.tcl (reconfig): New (empty) method to handle preference
1848 Fri Mar 27 16:08:57 1998 Keith Seitz <keiths@onions.cygnus.com>
1850 * global_pref.tcl (ok): Must use preferences for comparison. Don't
1851 "manage restart" unless needed.
1852 (cancel): Don't configure the font -- changing the preference will do
1855 Fri Mar 27 14:21:02 1998 Keith Seitz <keiths@onions.cygnus.com>
1857 * toolbar.tcl (create_menu_items): Use gdbtk_quit to initiate a quit.
1859 * src.tcl (do_key): Use gdbtk_quit to initiate a quit.
1861 * prefs.tcl (pref_save): Set a default value for WIN.
1862 Don't "manage restart".
1863 (pref_set_defaults): Register a quit hook to save preferences.
1864 (pref_quit): Call pref_save to save all preferences when we quit.
1866 * manage.tcl (manage): Add "quit".
1867 (manage_init): Register a gdb_quit_hook.
1868 (manage_delete): Instead of guessing when and what to ask to confirm
1869 a quit, call gdbtk_quit.
1870 (manage_quit): New procedure. This is called from the gdb_quit_hook to save
1871 window active'ness and geometries by calling manage_save.
1873 * interface.tcl: Define "gdb_quit_hook".
1874 (gdbtk_quit): New procedure to call whenever a quit is requested.
1876 * global_pref.tcl (ok): Do not save preferences here.
1878 Fri Mar 27 12:21:07 1998 Keith Seitz <keiths@onions.cygnus.com>
1880 * tracedlg.tcl (TraceDlg): Wait until idle to deiconify ourselves.
1882 * global_pref.tcl (Globalpref): Withdraw window before creating and
1883 deiconify it when idle.
1884 (cancel): Let the window manager destroy us.
1885 (ok): Let the window manager destroy us.
1887 * target.tcl (GdbLoadPref::constructor): Withdraw window before creating
1888 and deiconfiy it when idle.
1890 * memory.tcl (MemWin::constructor): Withdraw window before going
1893 * register.tcl (RegWin::constructor): Withdraw window before going
1896 * src.tcl (SrcWin::constructor): Withdraw window before creating and
1897 deiconify it when idle.
1899 Fri Mar 27 10:52:30 1998 Martin M. Hunt <hunt@cygnus.com>
1901 * target.tcl: Fix entry for temotetcp.
1903 * main.tcl (set_target_name): Build correct gdb_target_cmd.
1905 Fri Mar 27 11:23:18 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1907 * target.tcl: (build_win) added call to change_target to
1908 get the correct entry widgets when the dialog is opened.
1910 Fri Mar 27 01:43:41 1998 Martin M. Hunt <hunt@cygnus.com>
1912 * target.tcl: Add simulator and remotetcp targets to
1913 target database. Change all the gdb/load/$target/foo
1914 preferences to gdb/load/$target-foo because the prefs
1915 code expects gdb/section/varname. The extra slash confuses
1917 (set_saved): Add saved_portname and saved_hostname for TCP.
1918 (write_saved): Add saved_portname and saved_hostname for TCP.
1919 (fill_rates): change states of hostname and portnum entry widgets.
1920 (fill_targets): Add fake remotetcp entry in target list.
1921 (change_baud): When switching between tcp and serial targets
1922 pack or forget the appropriate widgets.
1923 (build_win): Create hostname and port number entry widgets.
1924 (change_target): Update hostname and portnum widgets.
1926 * prefs.tcl (pref_save): Add 'load' as a section to be saved.
1927 Set gdb/load/target to 'exec'.
1929 * manage.tcl (_manage_null_handler): Deleted.
1931 * download.tcl (download_it): Don't call IDE functions
1932 unless GDTK_IDE is set.
1934 * main.tcl (gdbtk_tcl_preloop): Get name of executable
1935 if one was supplied on command line.
1936 (set_target_name): Save target name as preference.
1937 (run_executable): Call set_target.
1939 Fri Mar 27 00:23:46 1998 Keith Seitz <keiths@onions.cygnus.com>
1941 * src.tcl (location): Catch error of getting location of main.
1943 * prefs.tcl (pref_set_defaults): Add gdb/toolbar/active.
1944 Add trace for global/fixed font to update src-font.
1945 (pref_read): Add code to deal with global preferences.
1946 (pref_save): Add code to deal with global preferences.
1947 (pref_src-font_trace): Trace function which set src-font to global/fixed.
1949 * global_pref.tcl (build_win): Relayout font selectors and add a selections
1950 for menu and default fonts.
1951 Rename Save to OK and Quit to Cancel, renaming methods, too.
1952 (font_changed): Add arguments to facilitate multiple fonts.
1953 (reconfig): Define as empty.
1954 (ok): Rewrite to facilitate multiple fonts.
1955 (cancel): Rewrite to facilitate multiple fonts.
1956 (apply): Rewrite to facilitate multiple fonts.
1958 * manage.tcl (manage_restart): Call gdbtk_idle to reset the toolbar after
1961 Thu Mar 26 23:49:26 1998 Martin M. Hunt <hunt@cygnus.com>
1963 * tdump.tcl, tfind_args.tcl: New files.
1965 Thu Mar 26 22:29:28 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1967 * tracedlg.tcl: (config) commented out grab. Made window non-modal.
1968 (destructor) do not release grab.
1969 (done) do not reinstall grab.
1971 * toolbar.tcl: (create_buttons) changed buttons for the tracepoint
1972 case to open tdump window, and tracepoint window.
1973 (create_menu_items) change Run menu to do tstart, tstop for tracepoint
1974 case. Changed View menu to show tracepoint window for tracepoint case.
1975 Changed 'Control' menu to 'Trace' menu for tracepoint case, with
1978 * srcbar.tcl: (create_buttons) changed the buttons for the
1979 tracepoint case to do tfind commands.
1980 (_set_trace) new method. Toggles tstart/tstop button.
1982 * src.tcl: (config) decide defatul action for left click on
1983 source based on 'mode' preference.
1985 (config_win) modify pop upmenu on source window to display only
1988 * prefs.tcl: (pref_set_defaults) added preference gdb/mode for
1989 tracepoints or breakpoint display.
1991 * manage.tcl: (manage_init) added tracepoint window, args windows
1992 for tfind, tdump window.
1993 (manage_open) use eval in call to manage_create.
1995 * bp.tcl: (build_win) added PassCount to the display and modified
1996 the menus for the tracepoint case to display actions.
1997 (bp_add) display pass_count too in the tracepoint list.
1998 (bp_select) changed indexes of menu entries to be entries names.
1999 added field passcount to selection for tracepoints.
2000 (bp_modify) added passcount for tracepoints.
2001 (bp_delete) added passcount for tracepoints.
2002 (get_actions) new method
2003 Added new public member "tracepoints" to decide which kind of window
2004 needs to be displayed.
2006 * Makefile: added new files tfind_args.tcl and tdump.tcl.
2008 * tclIndex: regenerated
2010 Thu Mar 26 14:23:00 1998 Martin M. Hunt <hunt@cygnus.com>
2012 * main.tcl (set_target_name): Make target dialog always
2015 * target.tcl (build_win): Bind Return to save.
2016 (GdbLoadPref): Denter dialog on screen.
2018 Thu Mar 26 14:16:36 1998 Keith Seitz <keiths@onions.cygnus.com>
2020 * memory.tcl (update_address): Catch errors to update_addr so that
2021 we do not error and leave the GUI busy.
2023 Thu Mar 26 13:51:58 1998 Martin M. Hunt <hunt@cygnus.com>
2025 * toolbar.tcl (create_menu_items): Remove "Cygnus
2026 Foundry Tour" and "Submit a PR" from the menu.
2028 * src.tcl (file): Set title to GDB.
2030 * manage.tcl (manage_init): Set About name.
2032 * main.tcl (set_target): Set title to GDB.
2034 * interface.tcl (gdbtk_tcl_query): Set title correctly.
2036 * Makefile: Remove download_pref.tcl.
2038 Thu Mar 26 11:33:02 1998 Keith Seitz <keiths@onions.cygnus.com>
2040 * Makefile: Add target.tcl to list of sources.
2042 * tclIndex: Rebuilt.
2044 * target.tcl (GdbLoadPref): Trace changes to gdb_loaded.
2045 (target_trace): New procedure. This is invoked by a write trace
2048 * interface.tcl (gdbtk_busy): New procedure to run all busy hooks
2049 (gdbtk_update): New procedure to run all update hooks
2050 (gdbtk_idle): New procedure to run all idle hooks. Also runs the
2051 no inferior hooks if no inferior has been created.
2052 Rename old gdb_idle_hook to gdb_update_hook for clarity.
2053 Change all references of run_hooks to use gdbtk_busy, gdbtk_idle, and
2056 * download.tcl: Make busy/update/idle hook changes.
2058 * main.tcl: Make busy/update/idle hook changes.
2059 (set_exe): Clear gdb_loaded whenever a new exec file is selected.
2061 * manage.tcl: Make busy/update/idle hook changes.
2063 * mem_pref.tcl: Make busy/update/idle hook changes.
2065 * memory.tcl: Make busy/update/idle hook changes.
2067 * register.tcl: Make busy/update/idle hook changes.
2069 * src.tcl: Make busy/update/idle hook changes.
2071 * stack.tcl: Make busy/update/idle hook changes.
2073 * variables.tcl: Make busy/update/idle hook changes.
2075 Merged with Foundry 1.0:
2076 Wed Mar 25 14:22:28 1998 Keith Seitz <keiths@onions.cygnus.com>
2078 * register.tcl (reconfig): Call busy and idle hooks.
2080 * memory.tcl (update_address): Call busy and idle hooks.
2082 Wed Mar 25 11:38:49 1998 Martin M. Hunt <hunt@cygnus.com>
2084 * src.tcl (location): Fix typo.
2086 Tue Mar 24 21:03:01 1998 Martin M. Hunt <hunt@cygnus.com>
2088 * src.tcl (location): If gdb_listfuncs returns an error, display
2089 an error message that says the file was either not found or contained
2090 no debugging information.
2091 (location): When disassembling, put busy and idle calls before
2092 and after. Set "NoRun" to indicate the busy hook should not
2093 display the stop sign because the target isn't running, GDB may
2094 just take a few seconds to do the disassembly.
2095 (busy): Hack to support NoRun mode.
2097 * srcbar.tcl (_set_runstop): Add another case to disable the
2098 Run icon instead of changing it to a stop sign.
2100 * main.tcl (set_exe): If the file has no debugging information,
2101 display an error message and exit. This should only happen with
2102 intentionally stripped files.
2104 Tue Mar 24 17:04:36 1998 Keith Seitz <keiths@onions.cygnus.com>
2106 * mem_pref.tcl (build_win): Keep track of all widgets that should be
2108 (busy): New method which disables anything that could cause trouble.
2109 (idle): New method which re-enables anything that "busy" disables.
2110 (apply): Call busy and the busy hooks before doing update of memory
2111 window. Then call idle and the idle callbacks when we are done.
2113 Tue Mar 24 12:07:52 1998 Martin M. Hunt <hunt@cygnus.com>
2115 * src.tcl (location): Filter out .s and .S files because
2116 Foundry does not yet support assembly source debugging.
2118 Tue Mar 24 08:50:46 1998 Keith Seitz <keiths@onions.cygnus.com>
2120 * register.tcl (but3): Don't pop up the right-click menu if we are
2123 * download.tcl (download_it): Force an update so that all windows
2124 are created and get their busy hooks called.
2126 * console.tcl (invoke): Make sure we are not running.
2130 Mon Mar 23 15:00:57 1998 Drew Moseley <dmoseley@cygnus.com>
2132 * src.tcl: (location): Assume we are locating main() if the target is
2133 not running and we can't figure out which function we are in.
2135 * main.tcl (run_executable): Change to assembly mode when we try to
2136 load a blank file. This usually means that source level debugging
2137 was not enabled when this file was compiled.
2139 Reverse the parameters to src method::location() method invocation so
2140 they are in the correct order
2142 Mon Mar 23 12:04:23 1998 Martin M. Hunt <hunt@cygnus.com>
2144 * src.tcl (update): Comment out debug lines.
2146 * main.tcl (set_target_name): If the target name changes,
2147 force a new "file" command to be issued by setting
2150 Sat Mar 21 00:09:37 1998 Martin M. Hunt <hunt@cygnus.com>
2152 * download.tcl (download_it): Remove call to run_idle_hooks.
2154 * src.tcl (no_inferior): Call set_execution_status.
2156 * bp.tcl (bp_modify, bp_delete): Change to take an entry
2158 (update): Sometimes "create" calls are for existing
2159 breakpoints and should be "modified" calls. Detect this
2160 and pass the entry number to bp_delete or bp_modify.
2162 Fri Mar 20 22:50:55 1998 Tom Tromey <tromey@cygnus.com>
2164 * console.tcl (insert): Remove all \r characters from string to be
2167 Fri Mar 20 01:55:14 1998 Keith Seitz <keiths@cygnus.com>
2169 * watch.tcl (validateEntry): Fencepost for running.
2171 * variables.tcl (VariableWin): Use "add_hook_before".
2172 (idle_done): New gdb_idle_done_hook for this object.
2173 (update): Don't call enable_ui here.
2174 (enable_ui): Change cursor for this object.
2175 (disable_ui): Ditto.
2176 (no_inferior): Ditto.
2178 * toolbar.tcl (GDBToolBar): Use "add_hook_before".
2180 * stack.tcl (StackWin): Use "add_hook_before".
2181 (StackWin): Encapsulate creation of this object with
2182 busy and idle hooks so that the user gets some feedback and to
2183 prevent other widgets from attempting to update.
2184 (update): Add some sanity checking so that we do not update with
2185 garbage in the window.
2186 (idle_done): New gdb_idle_done_hook for this object.
2187 (change_frame): Fencepost for running.
2188 (busy): New gdb_busy_hook for this object.
2189 (no_inferior): New gdb_no_inferior_hook for this object.
2190 (cursor): New helper method to set the cursor of all subwindows.
2192 * src.tcl (SrcWin): Use "add_hook_before".
2193 (toggle_updates): Use "add_hook_before".
2194 (stack): Encapsulate creation of the stack object with
2195 busy and idle hooks so that the user gets some feedback and to
2196 prevent other widgets from attempting to update.
2197 (idle_done): New gdb_idle_done_hook for this object.
2198 (set_execution_status): When Program is Terminated..., reset
2200 (config_win): Pull mouse pointer cursor assignments in text widget
2201 out into a separate function.
2202 (bind_src_tags): New method to set the cursor for the window's text
2204 (disable_ui): Call bind_src_tags to change cursor to "watch".
2206 (no_inferior): Ditto.
2207 (cursor): New helper method to set the cursor of all subwindows.
2209 * register.tcl (RegWin): Encapsulate creation of this object with
2210 busy and idle hooks so that the user gets some feedback and to
2211 prevent other widgets from attempting to update.
2212 Use "add_hook_before".
2213 (reg_select_up): Fencepost for running.
2214 (reg_select_down): Fencepost for running.
2215 (reg_select_right): Fencepost for running.
2216 (reg_select_left): Fencepost for running.
2217 (reg_select): Fencepost for running.
2218 (edit): Fencepost for running.
2219 (idle_done): New gdb_idle_done_hook for this object.
2220 (busy): New gdb_busy_hook for this object.
2222 * memory.tcl (MemWin): Encapsulate creation of this object with
2223 busy and idle hooks so that the user gets some feedback and to
2224 prevent other widgets from attempting to update.
2225 Use "add_hook_before".
2226 (create_prefs): Fencepost for running.
2227 (idle_done): New gdb_idle_done_hook for this object.
2228 (edit): Fencepost for running.
2229 (newsize): Fencepost for running.
2230 (busy): New method to block UI while running inferior.
2231 (do_popup): Fencepost for running.
2232 (cursor): New method to change the cursor definition for this
2235 * manage.tcl (manage_init): Use "add_hook_before".
2237 * main.tcl (run_executable): Use "run_idle_hooks".
2239 * ide.tcl (gdbtk_ide_init): Don't create the source window here.
2241 * interface.tcl: Define new hook "gdb_idle_done_hook" -- to be called
2242 when the debugger does completely idle to allow input to objects
2244 (run_idle_hooks): New procedure to wrap the idle hooks.
2245 (gdbtk_tcl_idle): Split the idle callbacks into two parts: one that
2246 only updates widgets and one that tells widgets to accept input
2249 * download.tcl (Download): Use add_hook_before instead of add_hook.
2250 (download_it): Use run_idle_hooks instead running the idle hooks
2253 * bp.tcl (BpWin): Use add_hook_before instead of add_hook.
2255 Wed Mar 18 18:59:00 1998 Sean Mahan <smahan@cygnus.com>
2257 * download.tcl (download_hash): Added an 'update' so the
2258 status bar would work on an MBX board.
2260 Wed Mar 18 01:50:19 1998 Martin M. Hunt <hunt@cygnus.com>
2262 * prefs.tcl (pref_set_defaults): Define gdb/src/tab_size
2263 to default to a tab size of 4.
2265 * src.tcl (setTabs): Set up tabs correctly.
2267 * download.tcl (download_it): Set correct state after
2268 user cancels download.
2270 Tue Mar 17 12:30:23 1998 Tom Tromey <tromey@cygnus.com>
2272 * console.tcl (throttle): New public variable.
2273 (insert): Delete initial text when past the throttle limit.
2275 Tue Mar 17 13:31:38 1998 Keith Seitz <keiths@onions.cygnus.com>
2277 * ide.tcl (gdb_exit_check): Do not let gdb confirm the quit if we
2280 Tue Mar 17 13:25:22 1998 Keith Seitz <keiths@onions.cygnus.com>
2282 * console.tcl (insert): Force update of screen.
2284 Mon Mar 16 10:22:00 1998 Sean Mahan <smahan@cygnus.com>
2286 * toolbar.tcl (create_menu_items): Added 'Submit PR' to the
2287 help menu. For PR15334
2289 Sun Mar 15 15:01:27 1998 Tom Tromey <tromey@cygnus.com>
2291 * interface.tcl (gdbtk_tcl_fputs): Don't call update.
2293 * src.tcl (build_win): Changed capitalization on balloon help.
2295 Fri Mar 13 10:01:48 1998 Keith Seitz <keiths@onions.cygnus.com>
2297 * src.tcl (mode): Add a horizontal scrollbar to the assembly pane
2298 of SRC+ASM mode when necessary.
2300 Fri Mar 13 00:47:59 1998 Martin M. Hunt <hunt@cygnus.com>
2302 * main.tcl (run_executable): Don't force downloads for sim.
2304 * download.tcl (download_it): Don't bother calling calling set_baud
2307 * manage.tcl (manage_delete): Deregister the window before deleting
2308 it to prevent those annoying bgerror messages.
2310 Thu Mar 12 15:28:22 1998 Keith Seitz <keiths@onions.cygnus.com>
2312 * download.tcl (Download): Define a list of all sections.
2313 (update_download): Loop through the list of sections, updating the
2314 current section's progress and marking any previously loaded sections
2316 (do_download_hooks): New procedure.
2317 (download_hash): Use a timer to force update of GUI at regular
2318 intervals -- GUI should not update 10,000 times a second.
2320 Tue Mar 10 06:32:24 1998 Keith Seitz <keiths@onions.cygnus.com>
2322 * interface.tcl (gdbtk_tcl_query): Allow caller to specify the default
2323 button. If none is specified, it is set to 'yes'.
2325 * manage.tcl (manage_delete): While inferior is running, gdb_cmd returns
2326 immediately, so we need to manually ask the user if he wants to quit.
2328 Tue Mar 10 10:52:09 1998 Martin M. Hunt <hunt@cygnus.com>
2330 * download.tcl (download_it): Change where old breakpoints
2332 (done): Set focus on "OK" or delete.
2334 Tue Mar 10 05:23:42 1998 Keith Seitz <keiths@onions.cygnus.com>
2336 * src.tcl (do_key): New method to wrap all keypresses.
2337 (mode): Use do_key method.
2338 (config_win): Use do_key method.
2340 Mon Mar 9 23:06:21 1998 Martin M. Hunt <hunt@cygnus.com>
2342 * src.tcl (download_progress): Add an optional message
2343 parameter to the function for use with error messages.
2344 Don't set_status twice on cancel. Call update if
2347 * download.tcl (done): If 'msg' is set, it should be
2348 displayed and download has failed. Update all source
2350 (cancel): Don't delete window here. Let it get deleted
2351 after call to method 'done'.
2352 (download_it): If download failed, call done method
2353 with error message. Force reissue of target command.
2354 Handle set_target failures.
2356 * main.tcl (set_target): Check result of target command
2357 to see if the user cancelled the command.
2358 (run_executable): Use gdb_program_has_run instead of
2359 gdb_app_running, which was removed everywhere. Force
2360 download when gdb_program_has_run. If user cancels download
2361 before the download starts, preserve previous state.
2363 Mon Mar 9 15:06:21 1998 Martin M. Hunt <hunt@cygnus.com>
2365 * console.tcl (invoke): After gdb_immediate() finishes
2366 check to see if the window is still there.
2368 * main.tcl: Initialize gdbtk_state(console).
2370 * interface.tcl: Remove some unused globals. Replace gdb_console
2371 with gdbtk_state(console).
2372 (gdbtk_tcl_readline_*): Don't set gdbtk_state(console) every
2373 time. Let manage.tcl do it.
2375 * manage.tcl (manage_create): Replace gdb_console with
2376 gdbtk_state(console). Check for windows that were deleted,
2377 but not actually gone yet.
2378 (manage_delete): Replace gdb_console with gdbtk_state(console).
2380 Mon Mar 9 09:08:11 1998 Keith Seitz <keiths@onions.cygnus.com>
2382 * watch.tcl (build_win): Tweak layout of the entry and button,
2383 switching to grid geometry manager.
2385 Thu Mar 26 01:22:23 1998 Martin M. Hunt <hunt@cygnus.com>
2387 * target.tcl: New file. Implements target dialog.
2389 * srcbar.tcl (_set_run): Remove because it was no longer used.
2391 * util.tcl (freeze): Only call idewindow_freeze when
2394 * prefs.tcl (pref_set_defaults): Set default tab size to 4.
2396 * src.tcl (location): If gdb_listfuncs cannot find
2397 functions, display error message.
2398 (setTabs): Set real tabs according to gdb/src/tab_size.
2400 * main.tcl (set_exe): Check to see if file was stripped.
2401 Cannot debug without some symbols.
2402 (set_target_name): If target changes, set gdb_exe_changed
2403 so new "file" command will be sent. When not using IDE,
2404 display target requester.
2406 * manage.tcl: Set loadpref to GdbLoadPref.
2408 Wed Mar 25 14:13:52 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2410 * manage.tcl (manage_init) added tracedlg and actiondlg windows.
2412 Wed Mar 25 14:08:51 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2414 * interface.tcl (gdbtk_tcl_pre_add_symbol): New procedure.
2415 (gdbtk_tcl_post_add_symbol): New procedure.
2417 * src.tcl (set_execution_status): Use "set_status" to write to the
2418 status bar, not "set Status".
2420 Mon Mar 23 13:41:39 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2422 * memory.tcl: Changes to support new faster gdb_get_mem().
2423 (do_popup): Add "Go To" and Open New Window" to the popup
2426 Sat Mar 21 21:18:06 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2428 Merged changes from Foundry (list follows in reverse chronological
2431 Sean Mahan <smahan@cygnus.com>
2432 * download_pref.tcl (help): Added method to display context
2435 Keith Seitz <keiths@onions.cygnus.com>
2436 * src.tcl (bp_line): Don't insert breakpoints if we're running.
2437 (disable_ui): Disable selections. Workaround for TkTextDisplay bug.
2438 (enable_ui): Enable selections.
2439 (no_inferior): Enable selections.
2441 Tom Tromey <tromey@cygnus.com>
2442 * toolbar.tcl (create_menu_items): Use gdb_immediate, not gdb_cmd,
2443 so that output appears in console window.
2444 * src.tcl (bp_line): Use gdb_immediate when running "continue".
2445 (mode): Use gdb_immediate, not gdb_cmd, so that output appears in
2447 (config_win): Likewise.
2448 * srcbar.tcl (create_buttons): Use gdb_immediate, not gdb_cmd, so
2449 that output appears in console window.
2450 * console.tcl (lvarpush): Removed.
2451 (_insertion): New method.
2452 (_saved_insertion): New private variable.
2453 (constructor): Don't let user use mouse to put cursor outside
2455 * src.tcl (build_win): Use global/status font on status bar.
2456 * interface.tcl (gdbtk_tcl_query): Moved vwait out of `if'
2457 statement -- must vwait in all cases, not just in case when
2458 question is actually asked.
2460 Keith Seitz <keiths@onions.cygnus.com>
2461 * variables.tcl (deleteTree): Reset Locals and ChangeList, too.
2463 Martin M. Hunt <hunt@cygnus.com>
2464 * toolbar.tcl (enable_ui): Don't always set stepi and nexti
2467 Keith Seitz <keiths@onions.cygnus.com>
2468 * toolbar.tcl (no_inferior): Instead of enabling/disabling the
2469 individual menus on Windows, disable each menu's entries.
2470 (disable_ui): Ditto.
2473 Keith Seitz <keiths@onions.cygnus.com>
2474 * manage.tcl (manage_delete): Catch destruction of the src window when
2475 downloading and ask user if this is what he intends.
2476 (manage_init): Don't install idle, busy, and no_inferior hooks. Allow gdb
2477 to exit whenever the user wants to.
2478 * srcbar.tcl (cancel_download): download_cancel_ok is a global.
2480 Martin M. Hunt <hunt@cygnus.com>
2481 * ide.tcl (receive_file_changed): Minor fix when a new
2482 executable is built when GDB is running.
2484 Martin M. Hunt <hunt@cygnus.com>
2485 * bp.tcl (bp_delete): If a selected breakpoint is deleted,
2486 set "selected" to 0.
2488 Keith Seitz <keiths@onions.cygnus.com>
2489 * srcbar.tcl (cancel_download): New method to cancel downloads. Needed
2490 to cancel download dialog-enabled downloads.
2491 (_set_runstop): Call cancel_download.
2492 * download.tcl (Download::constructor): Make sure to set the toolbar
2493 properly so that the Stop/Cancel button cancels a download.
2494 (download_it): Force the CANCEL to all download_progress_hook's.
2495 * src.tcl (download_progress): Add special section identifier for
2497 (SrcWin::destructor): Pass the state_hook's command to remove_hook.
2499 Sean Mahan <smahan@cygnus.com>
2500 * toolbar.tcl (create_menu_items): Help menu follows "Help Topics"
2501 standard (PR 15082).
2503 Tom Tromey <tromey@cygnus.com>
2504 * interface.tcl (gdbtk_tcl_query): Consolidate Windows case; must
2505 `vwait' even when question is already being asked.
2507 Martin M. Hunt <hunt@cygnus.com>
2508 * interface.tcl (gdbtk_tcl_query): Only use ide_messageBox
2511 Martin M. Hunt <hunt@cygnus.com>
2512 * register.tcl: Catch several gdb_register commands
2513 so errors don't bother us.
2514 * variables.tcl (destructor): Remove all hooks.
2516 Martin M. Hunt <hunt@cygnus.com>
2517 * download.tcl (done): Don't let seconds be zero.
2518 * manage.tcl (manage_disable_all): Don't ever disable "."
2520 Martin M. Hunt <hunt@cygnus.com>
2521 * main.tcl (run_executable): Removed delete_breakpoints
2523 * download.tcl (download_it): Removed delete_breakpoints
2524 stuff. Clear any breakpoints at exit and main before
2525 restarting. They get set again automatically if the
2526 preferences say they should.
2527 (Download): Don't call freeze on download window, because
2528 it stops updating when we do.
2529 (update): Renamed to update_download to avoid confusion.
2530 * src.tcl (mode): When changing from SRC+ASM to another
2532 (bp_line): On a "Continue to Here" don't try to
2533 restore breakpoints that didn't exist before.
2535 Tom Tromey <tromey@cygnus.com>
2536 * interface.tcl (gdbtk_tcl_query): Set -parent on dialog.
2538 Martin M. Hunt <hunt@cygnus.com>
2539 * src.tcl (build_win): Set mode combobox width to 10.
2540 (goto_func): If a function name is an unmangled one,
2541 it is a C++ method so don't prepend filename when
2542 setting location. This is a kludge, but we are limited
2543 by the symtax the GDB command line parser will accept.
2544 (location): When loading function combobox,
2545 remember which names are unmangled. Change width of
2546 function combobox dynamically to better accomodate
2547 those long C++ names.
2549 Martin M. Hunt <hunt@cygnus.com>
2550 * src.tcl (bp_line): When doing a "continue to here",
2551 first save states of all breakpoints then restore
2553 (config_win): Uncomment "Continue to Here" menu item.
2555 Martin M. Hunt <hunt@cygnus.com>
2556 * src.tcl (location): Use ide_cygwin_path on Windows
2557 to change project root to the right format.
2559 Drew Moseley <dmoseley@cygnus.com>
2560 * main.tcl: (run_executable): Modified to call download_it
2561 with the parameter indicating whether to delete breakpoints.
2562 If GDB is loaded ($gdb_loaded == 1) and the app is running
2563 ($gdb_app_running == 1) then we don't delete the breakpoints.
2564 All other situations will require deleting the breakpoints.
2565 This allows us to redownload and run the same executable w/o
2566 losing the breakpoint information.
2567 * download.tcl: (download_it): Modified this routine to
2568 take a boolean parameter indicating whether to delete
2569 the breakpoints before downloading.
2571 Sean Mahan <smahan@cygnus.com>
2572 * toolbar.tcl (create_menu_items): Couldn't use 'helpdir'
2573 variable so used Paths(prefix) and added help.
2575 Martin M. Hunt <hunt@cygnus.com>
2576 * src.tcl (set_state): Turn off debugging.
2577 (location): Map windows pathnames into form GDB uses
2579 (bp_line): Use gdb_set_bp to set breakpoints on
2580 a specific line in a file.
2582 Martin M. Hunt <hunt@cygnus.com>
2583 * stack.tcl (update): Skip over any empty elements
2584 in parsing the stack line to get the correct PC.
2586 Keith Seitz <keiths@onions.cygnus.com>
2587 * download.tcl (download_it): Run gdb_busy_hook's.
2588 If anything fails, make sure that the no_inferior_hook's are run.
2589 Note errors that occur during downloading, ignoring the
2590 "cancelled download" message. If an error occurs, set the
2591 global gdb_download_error to the error message so that it can
2592 be shown to the user later. Don't run the idle hooks if nothing
2593 * src.tcl (download_progress): Do not rely on the value of
2594 "download_cancel_ok" -- it is cleared in download_it.
2595 Reorder code to take advantage of gdb_loaded and gdb_download_error
2596 to determine if a download was canceled, successful, or failed due
2597 to an error. Truncate the "DOWNLOAD FINISHED:" message so that it
2598 will fit into the status bar given the recent font changes.
2599 (busy): If gdb_loaded, set the status bar to read "Program is running."
2600 Otherwise, don't touch it.
2601 (config_win): Comment out "Continue to here" right-click menu item
2602 until it can properly preserve breakpoint state.
2603 (no_inferior): Configure the toolbar to -runstop 0. All of these
2604 toolbar references should be done via the busy hook by the SrcBar
2605 class itself someday...
2607 Sean Mahan <smahan@cygnus.com>
2608 * toolbar.tcl (create_menu_items): Added ability to launch
2609 the tour help file from the help menu.
2611 Martin M. Hunt <hunt@cygnus.com>
2612 * manage.tcl, ide.tcl: Disable some debugging messages.
2614 Martin M. Hunt <hunt@cygnus.com>
2615 * src.tcl (set_state): When loaded state changes, invalidate
2618 Martin M. Hunt <hunt@cygnus.com>
2619 * src.tcl (SrcWin): Change default title to "Foundry Debugger".
2620 (build_win): Change name and function combobox heights to 0.
2621 Set status bar font to src-font.
2622 (name): Rewrite to use _files array. This array allows us
2623 to map full pathnames with short names that are easily displayed.
2624 (file): Call set_name to update name combobox.
2625 (location): Call set_name to update name combobox. When setting
2626 the function combobox, adjust height to a maximum of 10. CLear
2627 filename combobox if there is no valid filename. When setting the
2628 filename combobox, adjust height to a maximum of 10. Create
2629 _files array mapping full pathnames to short names. For IDE, use
2630 vmake/source-files and project-root to build full pathnames.
2631 When changing mode, save current line. Don't mark current line
2632 with PC_TAG if gdb_running is 0.
2633 (set_name): New function. Update the name combobox, using
2634 the short name from _files if available.
2635 * bp.tcl (bp_modify, bp_add): Use short file name from
2636 _files global array.
2638 Keith Seitz <keiths@onions.cygnus.com>
2639 * variables.tcl (VariableWin): Add idle, busy, and no inferior hooks.
2640 (selectionChanged): Use Running fencepost.
2641 (updateNow): Use Running fencepost.
2642 (editEntry): Use Running fencepost.
2643 (postMenu): Use Running fencepost.
2644 (setDisplay): Use Running fencepost.
2645 (open): Use Running fencepost.
2646 (close): Use Running fencepost.
2647 (enable_ui): Define new procedure to install fencepost.
2648 (disable_ui): Define new procedure to remove fencepost.
2649 (no_inferior): Define new procedure to remove fencepost and clear tree.
2650 (Running): New protected data. This is used as a fencepost in this object.
2651 * main.tcl: Run gdb_no_inferior_hook's when done initializing.
2652 * src.tcl (disable_ui): Disable the combo boxes, too.
2653 (enable_ui): Enable the combo boxes, too.
2654 * download.tcl (download_it): Run gdb_no_inferior_hooks, too.
2656 Martin M. Hunt <hunt@cygnus.com>
2657 * main.tcl: Move IDE help initialization to ide.tcl.
2658 * ide.tcl (gdbtk_ide_init): Move help system
2659 initialization here.
2661 Sean Mahan <smahan@cygnus.com>
2662 * main.tcl: Initialized help sub-system for the ide.
2664 Tomy Hudson <thudson@thudson5.cygnus.com>
2665 * prefs.tcl: Changed COM1 back to com1 per Martins request.
2667 Martin M. Hunt <hunt@cygnus.com>
2668 * src.tcl (file): Call gdb_loadfile to do most of the
2671 Tomy Hudson <thudson@thudson5.cygnus.com>
2672 * prefs.tcl: Changed "com1" to "COM1"
2674 <dmoseley@cygnus.com>
2675 * main.tcl: (run_executable): Added code to test for app_running.
2676 If the app has been started and the user requests a "run", then
2677 we must redownload to ensure that the global initialized data is
2679 * download.tcl: (download_it): See above note.
2681 Sean Mahan <smahan@cygnus.com>
2682 * toolbar.tcl (create_menu_items): changed "Tutorial" to "Cygnus
2683 Foundry Tour" in the Help menu.
2685 Tom Tromey <tromey@cygnus.com>
2686 * memory.tcl (mem_del): "destroy forget" is invalid; use "destroy"
2688 * interface.tcl (gdbtk_tcl_query): Only ask each question once.
2690 Martin M. Hunt <hunt@cygnus.com>
2691 * manage.tcl (manage_init): Initialize new global
2692 _manage_enabled_flag to 1.
2693 (manage_disable_all): Only disable if
2694 _manage_enabled_flag is 1.
2695 (manage_enable_all): Only enable if _manage_enabled_flag
2698 Martin M. Hunt <hunt@cygnus.com>
2699 * manage.tcl (manage_iconify): Check for toplevel
2700 of "." before doing anything.
2701 * main.tcl (set_target_name): Use "pref getd" in
2702 case port is undefined.
2704 Keith Seitz <keiths@onions.cygnus.com>
2705 * toolbar.tcl (GDBToolBar::constructor): Add appropriate idle, busy, and
2706 no-inferior hooks for this class.
2707 (create_buttons): Add all buttons to two lists so we can disable or enable
2708 them according to the inferior's run state.
2709 (create_menu_items): Same with the menus.
2710 * srcbar.tcl (create_buttons): Add all buttons to two lists so we can disable
2711 or enable them according to the inferior's run state.
2712 (create_menu_items): Same with the menus.
2713 (_set_run): Don't do anything to disable UI elements: the idle, busy, and
2714 no_inferior hooks will take care of it.
2715 (_set_runstop): Don't do anything to disable UI elements: the idle, busy, and
2716 no_inferior hooks will take care of it.
2717 * manage.tcl (manage): Add two new manage protocols: enable_all and
2719 (manage_disable_all): New procedure to disable window manager functions
2720 such as window deletions.
2721 (manage_enable_all): New procedure to undo any changes made by
2723 (_manage_set_property): New helper procedure for above.
2724 (manage_init): Install this module's idle, busy, and no_inferior hooks.
2725 * src.tcl (SrcWin::constructor): Add new no_inferior hook.
2726 (disable_ui): New procedure to disable ui elements.
2727 (enable_ui): New procedure to enable_ui elements.
2728 (no_inferior): New procedure to reset GUI.
2729 (SrcWin::Running): New protected variable. A fencepost for the above
2731 (do_popup): Use above fencepost.
2732 (showBalloon): Use above fencepost.
2733 * main.tcl: Define new hook " gdb_no_inferior_hook".
2735 Martin M. Hunt <hunt@cygnus.com>
2736 * src.tcl (SrcWin): Immediately set title name
2739 Martin M. Hunt <hunt@cygnus.com>
2740 * download_pref.tcl (LoadPref): Make window transient.
2742 Martin M. Hunt <hunt@cygnus.com>
2743 * register.tcl (build_win): Set scrollbars to auto
2745 * stack.tcl (build_win): Set scrollbars to auto
2747 * memory.tcl (build_win): Restore proper resize
2748 functioning on Unix.
2749 * bp.tcl (build_win): Fix problem with merging Tom's
2750 sizebox change. Fix Tom's change so scrollbars aren't
2751 always on on Unix, at least.
2752 * interface.tcl (gdbtk_pc_changed): Called from GDB when
2753 the PC is changed with a "set $pc" command.
2754 (gdb_show_command, gdb_args, gdb_stack_trace,
2755 gdb_docstring,gdb_stack_depth, gdb_stack_frame): Removed.
2757 Martin M. Hunt <hunt@cygnus.com>
2758 * memory.tcl (destructor): Destroy memory prefs window
2760 (create_prefs): Make prefs window transient.
2761 * util.tcl (freeze): Make keep_raised an option.
2763 Martin M. Hunt <hunt@cygnus.com>
2764 * ide.tcl (receive_file_changed): Ignore object file
2765 changes. On source file changes, put up a messagebox
2766 warning the user. Change both messageboxes to be system
2767 modal, which seems to just mean they will be on top.
2769 Martin M. Hunt <hunt@cygnus.com>
2770 * download.tcl (download_it): Reset download_cancel flag.
2771 * src.tcl: Create "tagtype" as a protected variable
2772 containing the current tag mode; PC, BROWSE, or STACK.
2773 Change all functions to use it.
2774 (mode): Fix problem with changing modes
2775 while browsing stack functions.
2776 (name): Add good filenames to the combobox history.
2777 (SrcWin): Turn off automatic history in name combobox.
2778 (file): If filename is not found, but is part of sources,
2779 put it in combobox followed by "(not found)"
2780 (location): Reorder and restructure this function to
2781 be more robust when files cannot be found or mode changes
2782 are required. When stack browsing, highlight PC if it is
2783 in the displayed area, and fix the off-by-1 problem
2784 with PCs saved on the stack.
2785 (update): Use lassign and new tagtype variable.
2786 (set_execution_status): Change message formats for MIXED
2788 (mode): Update toolbar and mode display before calling
2789 location. Use tagtype so tag mode is preserved.
2790 * bp.tcl (bp_type): Deselect line before changing its
2793 Tom Tromey <tromey@cygnus.com>
2794 * bp.tcl (build_win): Use built-in sizebox of tixScrolledWindow.
2795 * watch.tcl (console): Set Sizebox to 0.
2796 * memory.tcl (build_win): Use built-in sizebox of
2798 * stack.tcl (build_win): Use built-in sizebox of
2800 * locals.tcl (build_win): Don't create sizebox.
2801 * variables.tcl (build_win): Use built-in sizebox of
2803 (Sizebox): New instance variable.
2804 * console.tcl (console): Use built-in sizebox of
2806 * register.tcl (build_win): Use built-in sizebox of
2809 Martin M. Hunt <hunt@cygnus.com>
2810 * main.tcl (set_target_name): Set port based on target
2812 (set_baud): Set baud rate based on target name.
2813 * srcbar.tcl: Change shortcuts to use () instead of <>.
2814 * download.tcl (download_it): Set download_verbose
2815 based on target name.
2816 * src.tcl (build_win): Set height to 0 for name and
2817 function comboboxes.
2818 (location): In IDE, use vmake/source-files property
2819 to fill name combobox.
2821 Keith Seitz <keiths@onions.cygnus.com>
2822 * variables.tcl (build_win): Set the variable window's
2823 default size to 40 chars.
2825 Martin M. Hunt <hunt@cygnus.com>
2826 * src.tcl (set_state): When loaded state changes,
2827 set program_has_run state to 0.
2829 Martin M. Hunt <hunt@cygnus.com>
2830 * src.tcl (set_status): Rewrite to handle temporary
2832 (set_execution_status): New function. Put a message
2833 about the current program status in the status bar.
2834 (trace_help): New function. Trace on changing ballon
2835 help messages. Write them in the status bar.
2836 * main.tcl (set_target): Comment out changing cursor.
2838 Martin M. Hunt <hunt@cygnus.com>
2839 * variables.tcl (changeValue): Trim string before
2842 Keith Seitz <keiths@onions.cygnus.com>
2843 * console.tcl (constructor): Set no wrap mode.
2844 * src.tcl (SrcWin::name): Make sure we ask gdb where the source file
2845 is before asking the source window to open it.
2846 (SrcWin::file): Do not ask gdb where the file is -- someone else
2847 already has. Set the file selector to the filename only once and
2848 only if successful finding the file.
2849 (SrcWin::location): Add flag idicating that a file load has failed.
2850 Resolves recursive loop with SrcWin::mode and SrcWin::location.
2851 Make sure the file and function selectors are filled only once.
2852 (SrcWin::mode): Add error flag to indicate that a file load failed.
2853 Resolves recursive loop with SrcWin::location.
2854 Make sure we exit with the proper mode set on the source window.
2855 (SrcWin::current_addr): Define a default value of 0x0.
2856 * console.tcl (invoke): Use new gdb_immediate command instead of
2858 (insert): Add all errors to the end of the text widget.
2859 Send errors to end of text widget, not insertion pt.
2860 (einsert): Send errors to end of text widget, not insertion pt.
2861 * interface.tcl (gdbtk_tcl_readline_begin): Insert message into
2862 command window so that the user sees messages like "Enter commands,
2863 one per line. Enter 'end' when finished."
2864 * main.tcl: Initialize gdbtk_state(readline).
2866 Tom Tromey <tromey@cygnus.com>
2867 * manage.tcl (manage_open): Force focus onto toplevel.
2868 * mem_pref.tcl (build_win): Don't put <Return> binding on
2869 toplevel; instead put focus on OK button.
2871 Martin M. Hunt <hunt@cygnus.com>
2872 * main.tcl (set_target_name): Replace "com1" with
2873 the port name we really want to use.
2874 * bp.tcl (build_win): Use place manager for sizebox
2875 so it doesn't go away when window is resized.
2876 * stack.tcl (build_win): Fix stack window.
2877 * memory.tcl: Back out previous changes.
2878 * locals.tcl (build_win): Use place manager for sizebox
2879 so it doesn't go away when window is resized.
2881 Tom Tromey <tromey@cygnus.com>
2882 * mem_pref.tcl (build_win): Make OK button default.
2883 * ide.tcl (gdbtk_ide_init): Set gdb_pretty_name. Track changes to
2884 target-pretty-name property.
2885 * src.tcl (update_title): Display pretty name for target.
2886 * main.tcl (set_target): Display pretty name for target.
2887 (gdb_pretty_name): New global.
2888 * ide.tcl (target_pretty_name_changed): New proc.
2889 (receive_file_changed): Display pretty name for target.
2890 * download.tcl (download_it): Display pretty name for target.
2891 (console): Likewise.
2893 Thomas Hudson <thudson@cygnus.com>
2894 * bp.tcl (build_win): Added frame and sizebox to bottom.
2895 Returned geometry management to previous packing style
2897 * stack.tcl (build_win): ditto
2898 * memory.tcl (build_win): ditto
2899 * watch.tcl (build_win): ditto
2900 * locals.tcl (build_win): ditto
2902 Martin M. Hunt <hunt@cygnus.com>
2903 * manage.tcl (manage_iconify): Catch iconify command.
2904 * download.tcl (download_it): If set_target fails,
2905 set gdb_downloading to 0 and return.
2906 * main.tcl (set_target): Handle target command timeouts.
2907 Pop up messagebox. Set cursor to "watch". Set title
2908 on source window. Return 0 on error.
2910 Martin M. Hunt <hunt@cygnus.com>
2911 * manage.tcl (manage_find): Fix to return a list of windows.
2912 * console.tcl (Console): Fix sizebox so it doesn't create
2913 a whole blank line and it doesn't mess up Unix.
2914 * register.tcl (build_win): Change "Show" to "Display".
2916 Tomy Hudson <thudson@cygnus.com>
2917 * console.tcl (build_win) Added frame and ide_sizebox to
2919 * stack.tcl (build_win) Added frame and ide_sizebox to
2921 * watch.tcl (build_win) Added frame and ide_sizebox to
2923 * locals.tcl (build_win) Added frame and ide_sizebox to
2926 Tom Tromey <tromey@cygnus.com>
2927 * memory.tcl (build_win): Updated -underline values.
2929 Martin M. Hunt <hunt@cygnus.com>
2930 * memory.tcl (init_addr_exp): New function. Set the
2931 initial address expression to the location of .data
2932 if it is defined. Otherwise use $pc.
2934 Tom Tromey <tromey@cygnus.com>
2935 * bp.tcl (build_win): Changed packing so content fills window.
2936 Removed `g' and `a' frames. Changed gridding on labels.
2937 (bp_add): Changed gridding on new entries.
2938 * memory.tcl (build_win): Put spaces in front of all menu labels.
2940 Martin M. Hunt <hunt@cygnus.com>
2941 * download.tcl (download_it): Change error to messagebox.
2943 Tom Tromey <tromey@cygnus.com>
2944 * register.tcl (reg_display_list): Initialize to empty list.
2945 (init_reg_display_vars): Don't unset reg_display_list; set it to
2947 (delete_from_display_list): Likewise.
2949 Martin M. Hunt <hunt@cygnus.com>
2950 * ide.tcl (ide_run_server, ide_do_run_server): Take
2951 an optional argument to indicate if program should be
2952 run or simply downloaded.
2953 * console.tcl (Console): Enable scrollbars in both
2955 * main.tcl: Moved keep_raised, sleep, and toggle_debug_mode
2957 (set_exe): If exe changed, set gdb_target_changed
2958 to force new target command to be sent.
2959 (set_target_name): Check to see if gdb_target_changed.
2960 (run_executable): If exe or target changed, set gdb_loaded to
2961 0, forcing a new download. If download only, try to
2962 display function main in source window.
2963 * util.tcl: New file.
2964 * hooks.tcl: Removed. Use version in libide.
2965 * Makefile: Add util.tcl.
2966 * download.tcl (Download): Call freeze to make modal window.
2968 (download_it): Call set_baud, then set_exe then set_target.
2969 * mem_pref.tcl (build_win): Set default number of bytes
2971 * memory.tcl (build_win): Enable horizontal scrollbar
2972 when in resize mode. Anchor to top-left. Use "nb" to
2973 count actual number of bytes displayed, instead of "numbytes"
2974 which will be 0 when in resize mode.
2975 (delete_prefs): Deleted.
2976 * src.tcl (mode): Update mode combobox with new mode name.
2977 (location): In SRC+ASM mode if we step into a function without
2978 source code, unhighlight everything in the source pane and let
2979 the assembly pane show our current location.
2980 (build_win): Enable scrollbars in both directions.
2981 (set_state): Call update_title.
2982 (update_title): Don't set title if the target or exe has changed.
2983 (trace_variable): Couldn't figure out what this did that
2984 could be useful so delete it and everything that references it.
2985 * watch.tcl: Add description and copyright.
2986 * variables.tcl, interface.tcl, locals.tcl: Add copyright.
2987 * prefs.tcl, register.tcl: Add copyright.
2989 Tomy Hudson <thudson@cygnus.com>
2990 * register.tcl (reg_select_): Modified reg_select_* movement
2991 methods to use the register display list instead of
2994 Tomy Hudson <thudson@cygnus.com>
2995 * register.tcl (unedit): Changed input focus to $ScrolledWin.$Editing
2996 in unedit. This allows arrow and tab key bindings to work
2999 Tomy Hudson <thudson@cygnus.com>
3000 * register.tcl (build_win): Added key bindings and support
3001 for tab and arrow keys, including four new methods;
3002 reg_select_up,reg_select_down, reg_select_left, reg_select_right
3003 * register.tcl (build_win): Added spacing frame and ide_sizebox
3004 to window. Changed geometry manager to grid.
3006 Martin M. Hunt <hunt@cygnus.com>
3007 * stack.tcl (update): Only insert entries that have
3008 length. Break when matching entry in listbox is found.
3009 * src.tcl (config_win): Fix control-v binding so
3010 it doesn't paste on Windows. Cancel <Delete>
3013 Martin M. Hunt <hunt@cygnus.com>
3014 * src.tcl (build_win): Force focus from toplevel
3015 down to text window.
3016 (mode): Restructure code to be clearer. Set focus
3019 Tomy Hudson <thudson@cygnus.com>
3020 * src.tcl (mode): Modified key bindings for MIXED mode
3021 to be the same as ASSEMBLY mode
3023 Martin M. Hunt <hunt@cygnus.com>
3024 * manage.tcl (manage_init): set bp-save to 1.
3025 * variables.tcl (changeValue): If new value is null,
3028 Tomy Hudson <thudson@cygnus.com>
3029 * memory.tcl (do_popup): Added method do_popup. Changed binding of
3030 button-3 to invoke popup menu.
3032 Tomy Hudson <thudson@cygnus.com>
3033 * src.tcl (do_popup): Removed check for space in variable name
3034 that disabled popup menu items. Only check now is for "".
3036 Tomy Hudson <thudson@cygnus.com>
3037 * src.tcl (do_popup): Removed variable name from
3038 popup menu items. Added check for sane variable in selection
3039 to disable menu items when appropriate.
3041 Martin M. Hunt <hunt@cygnus.com>
3042 * bp.tcl (bp_delete): Destroy widgets in deleted
3044 * srcbar.tcl (_set_run): Enable View menu items
3045 when download is finished.
3046 * download_pref.tcl (LoadPref): Call loadprefs
3047 with gdbrunning set to 1.
3049 Tom Tromey <tromey@cygnus.com>
3050 * ide.tcl (gdbtk_ide_init): Use property vmake/exelist, not
3053 Martin M. Hunt <hunt@cygnus.com>
3054 * variables.tcl (build_menu_helper): Comment-out
3056 (getVariables): Change variable name so it doesn't
3057 get confused with window variables.
3058 (postMenu): Comment-out Update entries.
3059 (UnEdit): Unbind keys when unediting.
3060 * memory.tcl (create_prefs): When prefs are already
3061 open, raise and focus the window.
3062 * bp.tcl (bp_type): Deselect current line when type changes.
3064 Martin M. Hunt <hunt@cygnus.com>
3065 * toolbar.tcl (create_menu_items): Call open_url for
3067 * src.tcl (name): When new file load fails, remove it
3068 from combobox. When load succeeds, clear status message.
3069 (location): Change how files are loaded into combobox.
3070 Call new gdb_listfiles function.
3072 Martin M. Hunt <hunt@cygnus.com>
3073 * manage.tcl (manage_create): Give newly created windows
3074 the focus on all platforms.
3075 * mem_pref.tcl (destructor): Notify parent when exiting.
3076 * srcbar.tcl (_set_run): Better state handling on
3077 pulldowns and icons.
3078 * src.tcl (build_win): Start with toolbar in right state.
3079 * memory.tcl (MemWin): Withdraw window until finished.
3080 (delete_prefs): New function.
3082 Martin M. Hunt <hunt@cygnus.com>
3083 * manage.tcl: For IDE, iconify all windows when source
3084 window is iconified.
3085 * mem_pref.tcl: Take out all the modal stuff.
3086 Leave this window non-modal.
3087 * download.tcl: Fix references to source window.
3088 (Download): Make window modal and always on top.
3089 * memory.tcl (destructor): Kill mem prefs window too.
3090 * variables.tcl (changeValue): Clean up.
3091 * register.tcl (acceptEdit): Change error messagebox.
3093 Martin M. Hunt <hunt@cygnus.com>
3094 * src.tcl (set_state): Disable items in breakpoint
3096 (config_win): Change capitalization in popups.
3098 Martin M. Hunt <hunt@cygnus.com>
3099 * main.tcl: Major rewrite. Simplify. Move IDE
3100 functions to new file. Add state variables and
3101 hooks. Add copyright.
3102 * ide.tcl: New file. IDE functions.
3103 * download.tcl (download_it): Use new state variables.
3104 * src.tcl: Use new state variables.
3105 (constructor): Add state hook.
3106 (set_state): Hook to enable/disable menus and icons.
3107 * srcbar.tcl (runstop): Renamed from "running"
3108 (running): Public variable to control icons.
3109 (_set_runstop): Change Running man to stop sign.
3110 (_set_run): Enable/disable icons depending on debugger
3112 * manage.tcl (create_closed): Deleted function.
3113 (manage_create): Remove visibility argumnet.
3114 (manage_delete): Remove special case for debugger prefs.
3115 * prefs.tcl (pref_set_defaults): Remove gdb/advanced.
3116 * hooks.tcl: Add copyright.
3117 * Makefile: Add ide.tcl.
3119 Tom Tromey <tromey@cygnus.com>
3120 * download_pref.tcl (LoadPref): Inherit from GdbLoadPref.
3121 (constructor): Rewritten.
3122 (build_win): Removed.
3123 (change_baud): Removed.
3127 (reconfig): Removed.
3129 Martin M. Hunt <hunt@cygnus.com>
3130 * main.tcl (target_name_changed): Append correct
3131 port name to target name.
3132 (gdbtk_ide_init): Don't initialize IDE preferences.
3133 Append port name to target name.
3134 * toolbar.tcl (create_menu_items): Add Debugger Preferences
3136 * pref.tcl: Remove all ide preferences functions.
3137 * prefs.tcl (pref_set_defaults): Define gdb/load/port.
3138 * download_pref.tcl: Added serial port selection.
3140 Martin M. Hunt <hunt@cygnus.com>
3141 * register.tcl (acceptEdit): Remove leading spaces from
3143 * src.tcl (config_win): New tag bp_tag. Like break_tag
3144 except used when a bp is set on that line. Bind new menu
3146 (insertBreakTag): Accept tag type. Remove old tag.
3147 (do_bp): When a breakpoint is set, use bp_tag.
3149 Tom Tromey <tromey@cygnus.com>
3150 * pref.tcl (pref_ide_proc): Withdraw the toplevel, not the
3153 Tom Tromey <tromey@cygnus.com>
3154 * tclIndex: Rebuilt.
3155 * mem_pref.tcl (build_win): Use standard_button_box.
3157 (constructor): Run _map on <Map> event.
3158 * pref.tcl (pref_ide_proc): Use idewindow_check_freeze.
3159 (pref_modal_dialog): Use idewindow_freeze and idewindow_thaw.
3160 * hooks.tcl: Removed.
3161 * Makefile (TCL): Removed hooks.tcl.
3163 Tom Tromey <tromey@cygnus.com>
3164 * main.tcl (ide_run_server): Quote call to ide_do_run_server.
3166 Tom Tromey <tromey@cygnus.com>
3167 * download_pref.tcl (build_win): Make OK button default. Invoke
3168 when Return pressed.
3169 * download_pref.tcl (build_win): Don't allow pref window to
3170 resize. Use standard_button_box to lay out buttons.
3171 * pref.tcl (pref_ide_proc): Handle window freezing.
3172 (pref_modal_dialog): Freeze and thaw window around the grab.
3173 (build_win): Use standard_button_box to lay out buttons. Don't
3174 allow pref window to resize.
3176 Ian Lance Taylor <ian@cygnus.com>
3177 * src.tcl (src_ide_proc): Download the file in an idle callback.
3178 Execute the idewindow command even if the download was cancelled.
3179 * library/main.tcl (ide_run_server): Do everything in an idle
3181 (ide_do_run_server): New procedure.
3183 Martin M. Hunt <hunt@cygnus.com>
3184 * src.tcl (bp_line): Use hasBP instead of validBPLine.
3185 Allow type TC even if BP set.
3186 (validBPLine): Renamed to hasBP.
3188 Tom Tromey <tromey@cygnus.com>
3189 * manage.tcl (manage_open): Special case "about" window when
3192 Martin M. Hunt <hunt@cygnus.com>
3193 * main.tcl (set_target): Set the target again if the
3194 executable has changed and executed a "file" command.
3195 * memory.tcl (update_address): Accept numerical entries
3197 * download.tcl (Download): Cancel button should call
3199 * main.tcl (run_executable): Fixed messageBox.
3201 Tom Tromey <tromey@cygnus.com>
3202 * floatbar.tcl (constructor): Added.
3203 * srcbar.tcl (constructor): Added.
3204 * toolbar.tcl (_ide_title): New instance variable.
3205 (create_menu_items): Pass _ide_title to idewindmenu.
3207 Martin M. Hunt <hunt@cygnus.com>
3208 * main.tcl (toggle_debug_mode): Fix typo and print
3209 debug message before disabling it.
3211 Martin M. Hunt <hunt@cygnus.com>
3212 * manage.tcl (manage_delete): Don't remove a window
3213 from the active list until after it has already deleted
3215 * toolbar.tcl (create_menu_items): Change Console shortcut
3217 * src.tcl (config_win): Change Console shortcut to Ctrl+N.
3219 Martin M. Hunt <hunt@cygnus.com>
3220 * src.tcl: (do_bp): Catch errors.
3221 (validBPLine): Valid lines have a "-" or an image.
3223 Martin M. Hunt <hunt@cygnus.com>
3224 * main.tcl (ide_run_server): Don't run executable if
3225 download was cancelled. Reset cancelled flag.
3226 (run_executable): Call download_it.
3227 (download): Renamed download_it and moved to download.tcl.
3228 (set_target): Don't set target if the name hasn't changed
3230 * register.tcl (reg_select): Catch errors.
3231 (delete_from_display_list): Enable menu item.
3232 * src.tcl (build_win): Add progress bar for downloads.
3233 (download_progress): New function. Callback to update
3235 (src_ide_proc): Don't open src window if download
3237 * toolbar.tcl (create_menu_items): Call download_it.
3238 * srcbar.tcl (_set_run): New mode. Sets run button to stop
3239 sign during downloads.
3240 * prefs.tcl (pref_set_defaults): Define gdb/load/verbose.
3241 * interface.tcl: Define new hook download_progress_hook.
3242 * floatbar.tcl (create_buttons): Call download_it.
3243 * download_pref.tcl: Add download dialog prefs.
3244 * download.tcl (Download): Change back to old dialog
3245 with each section listed seperately.
3246 (download_hash): Use a hook.
3247 (download_it): New function. Replaces old "download"
3248 from main.tcl. Now deletes all breakpoints before
3249 downloading and handles cancels correctly.
3251 Martin M. Hunt <hunt@cygnus.com>
3252 * main.tcl (download): Don't quote the executable name
3255 Tom Tromey <tromey@cygnus.com>
3256 * src.tcl (src_ide_proc): Exit gdb when destroy request seen.
3258 Ian Lance Taylor <ian@cygnus.com>
3259 * main.tcl (gdbtk_ide_init): Use src_ide_proc for the source
3260 window, rather than idewindow_proc. Remove extraneous line.
3261 * src.tcl (src_ide_proc): New procedure, replacing open_src. Only
3262 download if we are opening the source window.
3263 (src_no_save): New procedure.
3264 * main.tcl (gdbtk_ide_init): Initialize gdb_checking_for_exit.
3265 Register gdb_exit_check as the exit check procedure.
3266 (gdb_exit_check): New procedure.
3267 * interface.tcl (gdbtk_tcl_query): If gdb_checking_for_exit, use a
3268 system modal message box.
3269 * src.tcl (build_win): Create a FocusIn binding to push focus down
3271 * console.tcl: Change all control, alt, and unadorned character
3272 bindings to use bind_plain_key.
3273 * memory.tcl: Likewise.
3274 * src.tcl: Likewise.
3275 * variables.tcl: Likewise.
3276 * src.tcl: Use bind_plain_key rather than explicitly ignoring Alt
3278 * src.tcl (print): Call idewindow_freeze and idewindow_thaw around
3280 * srcbar.tcl (create_menu_items): Likewise, around call to page
3282 * main.tcl (gdbtk_ide_init): Use an underscore in generic window
3283 name, to set the accelerator key.
3284 (ide_run_server): Likewise.
3285 * toolbar.tcl (create_buttons): Likewise.
3287 Martin M. Hunt <hunt@cygnus.com>
3288 * register.tcl (acceptEdit): If no value is entered,
3291 Ian Lance Taylor <ian@cygnus.com>
3292 * src.tcl (config_win): Add ignored Alt bindings for all the
3293 unmodified key bindings.
3294 * download.tcl (constructor): Withdraw the window before doing
3295 anything. Set the width of the label. Don't try to center the
3296 window. Pass toplevels to wm transient. Run keep_raised after
3297 500. Don't call update.
3298 (done): Use after rather than a busy loop.
3299 (destructor): Cancel the after if it is defined.
3300 (after_id): New protected variable.
3301 * main.tcl (download): If download is already running, don't do
3302 anything. If .load0.load exists, delete it before calling manage
3304 * main.tcl (gdbtk_ide_init): Use pref_ide_proc rather than
3305 idewindow_proc when registering the preference window.
3306 * download_pref.tcl (save, cancel): Call pref_ide_finished.
3307 * pref.tcl (save, cancel): Likewise.
3308 (pref_ide_proc): New procedure.
3309 (pref_no_save): New procedure.
3310 (pref_modal_dialog): New procedure.
3311 (pref_ide_finished): New procedure.
3312 * tclIndex: Rebuild.
3313 * main.tcl (gdbtk_ide_init): Initialize gdb_download_cancelled.
3314 (run_executable): Put a trace on gdb_download_cancelled. Change
3315 the dialog box message. If the user cancels the download, clear
3316 gdb_run_pending and just return without running.
3317 (ide_do_run): Remove the traces on gdb_download_cancelled. If the
3318 user cancelled the download, just clear gdb_run_pending.
3319 (target_name_changed): Clear gdb_download_cancelled. Call
3321 (download): If the executable is not up to date, ask whether the
3322 user is really really sure. If the user cancels the download
3323 using the dialog button, set gdb_download_cancelled, and don't set
3324 the breakpoints or gdb_download_complete.
3325 (set_exe_name): Clear gdb_download_cancelled.
3326 (receive_file_changed): Ask whether we should download the new
3328 * src.tcl (open_src): Don't download the file if
3329 gdb_download_cancelled is set.
3330 * interface.tcl (gdbtk_tcl_query): Pass -modal task to
3332 * main.tcl (set_exe_name): Tell the src window to go back to
3333 looking at main if the file changes.
3334 * src.tcl (update): Catch errors when calling gdb_loc.
3335 * main.tcl (gdbtk_ide_init): Handle file-created, file-changed,
3336 file-removed, and file-deleted events rather than process-ended
3338 (set_exe_name): Call gdb_clear_file even if the file does not
3339 exist. Likewise for setting gdb_download_complete to zero.
3340 (receive_file_changed): Rename from receive_process_ended. Only
3341 check the executable mtime if the tail of the file name matches
3342 the executable name.
3344 Ian Lance Taylor <ian@cygnus.com>
3345 * srcbar.tcl (create_menu_items): Change ``Print Setup...'' to
3346 ``Page Setup...''. Pass -parent to ide_winprint page_setup.
3347 * src.tcl (print): Pass -parent to send_printer.
3349 Ian Lance Taylor <ian@cygnus.com>
3350 * main.tcl: Move initialization code to end of file, after all
3351 procedures have been defined.
3352 (gdbtk_ide_init): New procedure to handle IDE initialization.
3353 (gdbtk_tcl_preloop): Don't do anything if using the IDE.
3354 (ide_run_server): Error if file does not exist. Use
3355 idewindow_activate_by_name, rather than manage open. Do
3356 everything after idle.
3357 (run_executable): Clean up a bit. Consistently use ide_do_run.
3358 (target_name_changed): Rename from target_name. Rename parameter
3360 (download): Error if the file does not exist. Call set_exe_name.
3361 Don't set gdb_download_mtime. Don't check whether gdb_run_pending
3363 (exe_name_changed): Rename from exe_name.
3364 (set_exe_name): Set gdb_exe_mtime. Quote filename passed to
3366 (receive_process_ended): Don't check the data argument. Check
3367 gdb_exe_set rather than gdb_download_complete. Check
3368 gdb_exe_mtime rather than gdb_download_mtime.
3369 * src.tcl (open_src): Set the location to main as well as
3370 downloading the file. Don't set gdb_run_pending to 2.
3373 Tue Feb 10 17:50:37 1998 Keith Seitz <keiths@onions.cygnus.com>
3375 * bp.tcl (build_win): Do not set the disabled foreground for menus. Insert
3376 all tracepoints, too.
3377 (bp_add): Handle tracepoints.
3378 (bp_type): Handle tracepoints.
3379 (update): Handle tracepoints.
3380 (bp_all): Do tracepoints, too.
3381 (Index_to_bptype): New protected variable to index type of break (breakpoint
3382 or tracepoint) against index in window.
3383 (bp_select): Disable/Enable menu items based on type.
3384 (bp_able): Handle tracepoints.
3386 * src.tcl (do_bp): Handle disabled tracepoints.
3388 * actiondlg.tcl (change_other): Handle memranges and use info address to
3391 * tracedlg.tcl (edit): Handle memranges when formatting data for
3394 Mon Jan 26 11:44:39 1998 Keith Seitz <keiths@onions.cygnus.com>
3396 * src.tcl (fill_files): Don't check for file's existance -- let
3397 SrcWin::name do that.
3399 * actiondlg.tcl (change): Add everything that is specified, not
3400 just the things about which we know.
3402 Sun Jan 25 01:01:32 1998 Martin M. Hunt <hunt@cygnus.com>
3404 * stack.tcl (update): Only insert entries that have
3405 length. Break when matching entry in listbox is found.
3407 * src.tcl (fill_files): Don't call lsort. New listfiles
3408 command sorts for us.
3410 * variables.tcl (changeValue): If new value is null,
3412 (build_menu_helper): Comment-out Update menu.
3413 (getVariables): Change variable name so it doesn't
3414 get confused with window variables.
3415 (postMenu): Comment-out Update entries.
3416 (UnEdit): Unbind keys when unediting.
3418 Thu Jan 22 10:38:19 1998 Keith Seitz <keiths@cygnus.com>
3420 * toolbar.tcl (create_menu_items): Disable preferences.
3422 * prefs.tcl (pref_set_defaults): Attach the toolbar to the source window
3424 * src.tcl (SrcWin::build_win): Turn off history for the file selector.
3425 (SrcWin::name): Use SOURCEWIN_set_status to upate status.
3426 Make sure we ask gdb where the source file is before asking
3427 the source window to open it.
3428 (SrcWin::file): Do not ask gdb where the file is -- someone else already has.
3429 Set the file selector to the filename only once and only if
3430 successful finding the file.
3431 (SrcWin::fill_files): Sort the files before inserting into file selector.
3432 (SrcWin::location): Add flag idicating that a file load has failed. Resolves
3433 recursive loop with SrcWin::mode and SrcWin::location.
3434 Make sure the file and function selectors are filled only once.
3435 Use SOURCEWIN_set_status and SOURCEWIN_reset_status as appropriate.
3436 (SrcWin::set_status): Add verbatim flag to allow a generic message to be
3438 (SrcWin::mode): Add error flag to indicate that a file load failed. Resolves
3439 recursive loop with SrcWin::location.
3440 Make sure we exit with the proper mode set on the source window.
3441 (SrcWin::reset_status): New procedure.
3442 (SrcWin::current_addr): Define a default value of 0x0.
3443 (SrcWin::Status): New protected variable.
3444 (SrcWin::bp_line): Check if breakpoint set in assembly-mode, too.
3445 (SOURCEWIN_set_status): New procedure to temporarily set the status bar.
3446 (SOURCEWIN_reset_status): New procedure which is called after the status bar
3448 (SOURCEWIN_reinit): New procedure to reinitialize the source window. (To be
3449 called when new symbol files are added and like).
3451 * interface.tcl (gdbtk_tcl_query): Properly set the name of the
3453 (gdbtk_tcl_pre_add_symbol): Hook called from gdbtk.c to inform user that
3454 we are reading symbols.
3455 (gdbtk_tcl_post_add_symbol): Hook called from gdbtk.c to inform user that
3456 are finished reading symbols.
3458 * src.tcl (SOURCEWIN_reinit): New procedure which updates the source window with
3459 a default file, fills the file selectors, etc.
3460 (SOURCEWIN_set_status): New procedure which can be used to set the status bar
3461 on the source window.
3462 (set_status): Add flag for setting the status as-is.
3464 * main.tcl: Call SOURCEWIN_reinit to setup the source window on startup.
3467 Fri Jan 16 09:11:30 1998 Keith Seitz <keiths@onions.cygnus.com>
3469 * src.tcl (SOURCEWIN_set_status): New procedure to allow anyone to set the
3470 status bar text at the bottom of the source window.
3471 (fill_files): Use a little more full-proof method (if slower) for eliminating
3472 duplicates int the files combobox.
3474 * interface.tcl (gdbtk_tcl_pre_add_symbol): New procedure called prior to
3475 a symbol file is loaded.
3476 (gdbtk_tcl_post_add_symbol): New procedure called after a symbol file is
3479 Thu Jan 15 12:41:27 1998 Keith Seitz <keiths@onions.cygnus.com>
3481 * console.tcl (invoke): Use new gdb_immediate command instead of gdb_cmd.
3483 Wed Dec 31 16:50:26 1998 Keith Seitz (keiths@onions.cygnus.com)
3485 * actiondlg.tcl (change): handle '$' in register names.