OSDN Git Service

e44f3fc7a2a3515d20a1bc51f5803d3bc6296200
[pf3gnuchains/pf3gnuchains4x.git] / gdb / gdbtk / library / ChangeLog-1998
1 Mon Dec 21 14:12:14 1998  Keith Seitz  <keiths@cygnus.com>
2
3         * manage.tcl (manage_create): Set window geometry after window is
4         created.
5
6         * prefs.tcl (pref_save): Save out preferences for memory window, too.
7
8 Thu Dec 17 08:54:37 1998  Keith Seitz  <keiths@cygnus.com>
9
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.
14
15 Tue Dec 15 13:24:42 1998  Keith Seitz  <keiths@cygnus.com>
16
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..
21
22 Tue Dec 15 11:07:01 1998  Keith Seitz  <keiths@cygnus.com>
23  
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.
27  
28         * stack.tcl (build_win): Ditto.
29  
30 Mon Dec 14 15:53:38 1998  Keith Seitz  <keiths@cygnus.com>
31  
32         * watch.tcl (update): Catch errors to getLocals, which could error
33         if no symbol table is loaded.
34  
35         * locals.tcl (update): Ditto.
36  
37 1998-11-17  Fernando Nasser  <fnasser@totem.to.cygnus.com>
38
39         * kod.tcl: fix <Double-1> command spec for listbox.
40
41 1998-11-13  Martin M. Hunt  <hunt@cygnus.com>
42
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.
47
48 1998-11-12  Martin M. Hunt  <hunt@cygnus.com>
49
50         * srctextwin.tcl (do_bp): Fix multiple assembly
51         breakpoints mapping to the same line number.
52
53 Thu Nov 12 15:20:15 1998  Jim Ingham   <jingham@cygnus.com>
54
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.
58
59         * interface.tcl (gdbtk_tcl_tstart, gdbtk_tcl_tstop): Run the
60         src window's do_tstop method rather than manipulating the 
61         widgets by hand.
62
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.
66
67         * srcbar.tcl (do_tstop): Added a mode that just changes the
68         GUI, which can be called from console hooks.
69
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.
77         
78         * toolbar.tcl (insert_buttons): Added a little more error-checking.
79
80 Wed Nov 11 08:40:04 1998  Fernando Nasser  <fnasser@cygnus.com>
81
82         * kod.c: adjusted sizes and packing options of widgets
83
84 1998-11-10  Fernando Nasser  <fnasser@totem.to.cygnus.com>
85
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
88
89 Mon Nov  9 17:00:45 1998  Fernando Nasser  <fnasser@cygnus.com>
90
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
99         * tclIndex: regen
100
101 Mon Nov  9 12:09:48 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
102
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.
107
108 Wed Nov  4 12:41:42 1998  Jim Ingham  <jingham@cygnus.com>
109
110         * actiondlg.tcl: Get the stack collect string from an instance 
111         variable.  Need to implement some way to get this from the
112         target settings...
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.
129
130 1998-11-03  Keith Seitz  <keiths@cygnus.com>
131
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
138         frame.
139
140         * main.tcl (set_target_name): Add ice target.
141         (set_target): If an "after_attaching" preference exists,
142         run it.
143         
144 Mon Nov  2 13:24:10 1998  Jim Ingham  <jingham@cygnus.com>
145
146         * bp.tcl (update): The hook function was passing more
147         arguments than this function expected.
148
149 Mon Nov  2 11:16:10 1998  Jim Ingham  <jingham@cygnus.com>
150
151         * toolbar.tcl: Added Tdump image.       
152
153 Fri Oct 30 17:36:05 1998  Jim Ingham  <jingham@cygnus.com>
154
155         * src.tcl (set_execution_status): Changed status messages,
156         tracing is not the same as async debugging...
157
158 Fri Oct 30 17:06:31 1998  Jim Ingham  <jingham@cygnus.com>
159
160         * bp.tcl (bp_all): Only remove tracepoints in the tracepoint
161         window, and breakpoints in the breakpoint window.
162         
163 Fri Oct 30 11:22:23 1998  Jim Ingham  <jingham@cygnus.com>
164
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
177         more than one class.
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. 
185          
186 1998-10-29  Michael Snyder  <msnyder@demo-laptop2.cygnus.com>
187
188         * target.tcl: add /dev/cua0 for Linux.
189
190 Tue Oct 27 13:46:03 1998  Jim Ingham  <jingham@cygnus.com>
191
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
198         buttons on the fly.
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.
222
223 Wed Oct 28 16:19:57 1998  Martin M. Hunt  <hunt@cygnus.com>
224
225         * srctextwin.tcl: Changed the _map cache to use
226         the variable Cname instead of the kludgy upvar alias.
227
228 Mon Oct 26 21:08:54 1998  Martin M. Hunt  <hunt@cygnus.com>
229
230         * srctextwin.tcl (motion): Show breakpoint balloons
231         even when not running.
232         (showBPBalloon): Check for null before displaying.
233
234 Wed Oct 21 10:05:17 1998  Martin M. Hunt  <hunt@cygnus.com>
235
236         * images/kod.gif: Added temporary kernel object display icon.
237
238 Wed Oct 14 17:30:07 PDT 1998  Jim Ingham  <jingham@cygnus.com>
239
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
243         modal on windows.
244
245 Wed Oct 14 14:29:17 1998  Martin M. Hunt  <hunt@cygnus.com>
246
247         * target.tcl: Change default runlist for remote
248         targets to download.
249         (build_win): Add user-defined list of functions for
250         initial breakpoints.
251      
252         * main.tcl (run_executable): Set user-defined initial
253         breakpoints.
254
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.
258         
259 Sat Oct 10 00:21:44 1998  Martin M. Hunt  <hunt@cygnus.com>
260
261         * help/source.html: Add new images, add description of changes
262         to breakpoints and threads support.  Fix typos.
263
264         * help/memory.html: Cleanup and add new information.
265
266         * help/breakpoint.html: Reformat.
267         
268         * help/images: Add a bunch of new GIFs.
269
270 1998-10-08  Keith Seitz  <keiths@cygnus.com>
271
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.
276
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
285         gdbtk for this.
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.
292
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
296         doing the download!)
297
298 1998-10-08  Keith Seitz  <keiths@cygnus.com>
299
300         * variables.tcl (UnEdit): Fix quoting problems so that arrays may be
301         inspected/edited.
302         (edit): Ditto.
303
304 Wed Oct  7 16:03:00 1998  Martin M. Hunt  <hunt@cygnus.com>
305
306         * srctextwin.tcl (reconfig): Fix bindings.
307
308 Wed Oct  7 13:07:00 1998  Martin M. Hunt  <hunt@cygnus.com>
309
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.
316
317         * src.tcl (destructor): Destroy SrcTextWin too. 
318
319 Tue Oct  6 23:00:08 1998  Martin M. Hunt  <hunt@cygnus.com>
320
321         * src.tcl (set_status): Display only the first line of
322         the message.
323         (build_win): Configure status window to a height of 1.
324
325         * srcbar.tcl (create_menu_items): Change "Open..."
326         menu item to call _open_file proc. Remove old
327         _open_file method.
328
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.
333
334         * toolbar.tcl (create_menu_items): Add "..." to Source
335         and Global prefs menu item.
336
337 Mon Oct  5 21:10:30 1998 Jim Ingham    <jingham@cygnus.com>
338
339         * srctextwin.tcl (set_tracepoint):  The filename variable 
340         changed to current(filename) but this use was not updated.
341
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...
345
346         * util.tcl: Fixed the comments for the little debug
347         thingie.
348
349         * util.tcl (auto_step): Added a way to cancel the
350         auto_stepping.  This is not currently used, but with this
351         it could be...
352
353 Mon Oct  5 00:43:11 1998  Martin M. Hunt  <hunt@cygnus.com>
354
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
373         info in it.
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()
379         listbox.
380
381         * src_pref.tcl: Replace disabled color selector with thread
382         fg selector.  Disabled color should probably always be
383         black anyways.
384
385         * util.tcl (CygScrolledListbox): Temporary simple scrolled
386         listbox. Replace with a better one soon.
387
388         * prefs.tcl (pref_set_defaults): Set default for thread fg.
389
390         * bp.tcl (bp_add): For thread BPs, set the button color
391         correctly.
392
393         * tclIndex: Rebuilt.
394
395 Fri Oct  2 17:07:32 1998   Jim Ingham   <jingham@cygnus.com>
396
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.
402
403 Fri Oct  2 14:02:25 1998   Jim Ingham   <jingham@cygnus.com>
404
405         * main.tcl (gdbtk_tcl_preloop): Catch the error when no file
406         is given on the command line.
407
408 1998-10-02  Keith Seitz  <keiths@cygnus.com>
409
410         * srcbar.tcl (_open_file): Call SrcWin::point_to_main.
411         (_set_runstop): Catch the stop in case the user
412         aborts a session.
413
414         * srctextwin.tcl (destructor): New. Remove all previously added
415         hooks.
416         
417         * src.tcl (point_to_main): New function. I got tired of typing
418         the same five lines over and over again.
419
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.
424
425         * interface.tcl (gdbtk_tcl_pre_add_symbol): Use "update idletasks", not
426         just "update".
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.
433
434         * tclIndex: Regenerate.
435
436 Fri Oct  2 11:40:05 1998  Martin M. Hunt  <hunt@cygnus.com>
437
438         * Makefile (TCL): Add modal.tcl.
439
440         * tclIndex: Rebuilt.
441
442 1998-10-02  Keith Seitz  <keiths@cygnus.com>
443
444         * srcbar.tcl (_set_runstop): Catch the stop in case the user
445         aborts a session.
446
447 Thu Oct  1 18:58:11 1998 Jim Ingham    <jingham@cygnus.com>
448
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...      
453
454 Thu Oct  1 17:21:26 1998 Jim Ingham    <jingham@cygnus.com>
455
456         * download.tcl (download_it): One more place where we used
457         "Foundry_Debugger" unconditionally...  Stamped out.
458
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.
462
463 Wed Sep 30 21:32:39 1998 Jim Ingham    <jingham@cygnus.com>
464
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 
469         for all our uses.
470
471 Wed Sep 30 19:42:43 1998 Jim Ingham    <jingham@cygnus.com>
472
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.
477
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...
482
483 Wed Sep 30 16:55:53 1998  Martin M. Hunt  <hunt@cygnus.com>
484
485         * bp.tcl: Add optional "thread" column and menu items
486         to turn it on and off.
487
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).
491         
492 1998-09-28  Keith Seitz  <keiths@cygnus.com>
493
494         * download.tcl (download_it): Don't download if there is no executable...
495
496 Mon Sep 28 14:23:39 1998   Jim Ingham    <jingham@cygnus.com>
497
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.
506         * target.tcl: ditto.
507         * tclIndex: regenerate for the new class.
508
509 Fri Sep 25 19:01:32 1998   Jim Ingham    <jingham@cygnus.com>
510
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
522         freeze.
523
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.
528
529         * target.tcl: Add gdb_target entries for Angel and ARM Remote
530         protocols.
531
532 1998-09-18  Keith Seitz  <keiths@cygnus.com>
533
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.
536
537 1998-09-04  Keith Seitz  <keiths@cygnus.com>
538
539         * srctextwin.tcl (SrcTextWin::destructor): Define and remove
540         previously installed hooks.
541
542         * browser.tcl (get_selection): Listbox indices start at zero!
543         Clear the selection if the user clicks below the last visible
544         item in the listbox.
545
546 Thu Sep  3 16:43:43 1998  Jim Ingham   <jingham@leda.cygnus.com>
547
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 
553         the idle function.
554
555 Sun Aug 30 00:40:28 1998  Martin M. Hunt  <hunt@cygnus.com>
556
557         * process.tcl: New file.  Implement a process/thread selection
558         and display window.
559         
560         * srctextwin.tcl (do_key): Add entry for thread/process 
561         window.
562         (config_win): Bind "Thread List" to Control-H.
563         (FillSource): Fix bug when source is not found.
564         
565         * toolbar.tcl (create_menu_items): Add Thread List to menu
566         
567         * manage.tcl (manage_init): Add process window to
568         managed array.
569
570         * prefs.tcl (pref_save): Add "process" to window types to save.
571         
572         * Makefile: Add process.tcl
573
574         * tclIndex: Rebuilt
575         
576 1998-08-28  Keith Seitz  <keiths@cygnus.com>
577
578         * variables.tcl (edit): Format data so that C arrays are not
579         mistaken for tcl commands.
580         (UnEdit): Ditto.
581
582 Thu Aug 27 14:13:09 1998  Martin M. Hunt  <hunt@cygnus.com>
583
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.
587
588 Wed Aug 26 00:06:11 1998  Martin M. Hunt  <hunt@cygnus.com>
589
590         * src.tcl (mode): Set the mode widget using entryset.
591         (build_win): Use default combobox selectbackground.
592
593         * srctextwin.tcl (FillMixed): Better error handling.
594         (LoadFIle): Stop harrassing users with worthless dialog boxes.
595         
596         * main.tcl (run_executable): Set args when arguments are
597         given in the target dialog.
598
599         * helpViewer.tcl (insertHtml): Window may have been
600         closed while waiting for HTMLparse, so catch next commands
601         to prevent error message.
602
603         * images/stack.gif: Use the image from images2 because
604         it looks better.
605         
606 Tue Aug 25 16:09:02 1998  Martin M. Hunt  <hunt@cygnus.com>
607
608         * src.tcl (build_win): Change fonts on comboboxes to src-font.
609
610         * global_pref.tcl: Change to new combobox.
611
612 Tue Aug 25 11:41:43 1998  Martin M. Hunt  <hunt@cygnus.com>
613
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.
619
620 Fri Aug 21 12:44:25 1998  Martin M. Hunt  <hunt@cygnus.com>
621
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.
627
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.
632
633         * srctextwin.tcl (FillSource): Fix change mode call when
634         no source is found.
635
636 1998-08-20  Keith Seitz  <keiths@cygnus.com>
637
638         * srctextwin.tcl (print): New method. Moved from src.tcl.
639
640         * srcbar.tcl (create_menu_items): Add page setup for non-ide again..
641
642         * src.tcl (build_win): Fix balloon help for new comboboxes.
643         (print): Move guts to srctextwin and invoke that method.
644
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.
659
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).
668
669 1998-08-18  Keith Seitz  <keiths@cygnus.com>
670
671         * stack.tcl (update): Use new built-in command gdb_stack for
672         backtraces.
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
679         not updated twice.
680
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
685         is entered.
686
687 Mon Aug 17 14:27:54 1998  Martin M. Hunt  <hunt@cygnus.com>
688
689         * main.tcl (do_tstop): Require combobox package.
690
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.
700
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.
707
708 Mon Jul 27 12:35:31 1998  Martin M. Hunt  <hunt@cygnus.com>
709
710         * interface.tcl (gdbtk_tcl_tracepoint): Make function match C 
711         implementation by adding pass_count.
712
713 Sat Jul 25 22:40:49 1998  Martin M. Hunt  <hunt@cygnus.com>
714
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"
720
721 Fri Jul 24 14:37:49 1998  Keith Seitz  <keiths@cygnus.com>
722
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
731         browser.
732         * tclIndex: Regenerate.
733         
734 Fri Jul 24 00:53:28 1998  Martin M. Hunt  <hunt@cygnus.com>
735
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.
749
750         * src.tcl (FillNameCB): Call gdb_listfiles with [pwd].
751
752 Sat Jul 18 13:27:20 1998  Martin M. Hunt  <hunt@cygnus.com>
753
754         * src.tcl (location): Change BROWSE_TAG to STACK_TAG.
755
756         * interface.tcl (gdbtk_quit): New function.  Called by
757         cleanup code in GDB.
758
759 Fri Jul 17 00:03:43 1998  Martin M. Hunt  <hunt@cygnus.com>
760
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
769         is OK.
770         (BadExpr): When a bad expression is entered, create a
771         messagebox and set the table bg to gray.
772
773         * mem_pref.tcl (apply): Remove mystery debug line.
774         
775 Thu Jul 16 16:56:12 1998  Jim Ingham    <jingham@cygnus.com>
776
777         * download.tcl, ide.tcl, interface.tcl, main.tcl, manage.tcl
778         srcbar.tcl, toolbar.tcl: Merged the IDE changes back into devo.
779
780 Mon Jul 13 14:34:45 1998  Jim Ingham    <jingham@cygnus.com>
781
782         * mem_pref.tcl (destructor): Remember to delete the variable
783         trace that implements the  entry widget checking.
784
785 Fri Jul 10 19:17:53 1998  Jim Ingham    <jingham@cygnus.com>
786
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.
792
793 Wed Jul  8 23:20:33 1998  Martin M. Hunt  <hunt@cygnus.com>
794
795         * srctextwin.tcl (FillSource): Fix code that
796         detects when no line numbers are available and we must use
797         assembly mode.
798
799 Mon Jul  6 17:53:50 1998  Jim Ingham    <jingham@cygnus.com>
800
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 
805         you use:
806             expr {$foo + $bar}
807         instead of:
808             expr $foo + $bar
809         So I changed all the uses of expr to this form.
810
811
812 Mon Jul  6 15:19:59 1998  Martin M. Hunt  <hunt@cygnus.com>
813
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.       
817
818 Wed Jul  1 15:09:47 1998  Martin M. Hunt  <hunt@cygnus.com>
819
820         * srctextwin.tcl (location): Add missing parameter
821         to FillSource call in SRC+ASM.
822
823 Wed Jul  1 11:07:21 1998  Jim Ingham   <jingham@cygnus.com>
824
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.
829
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"
834         
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
842   
843 Wed Jul  1 12:21:55 1998  Martin M. Hunt  <hunt@cygnus.com>
844
845         * src.tcl (build_win): Remove incorrect runstop
846         argument for srcbar.
847
848 Wed Jul  1 11:25:48 1998  Martin M. Hunt  <hunt@cygnus.com>
849
850         * floatbar.tcl: Deleted.
851         * Makefile: Removed floatbar.tcl
852         * tclIndex: Rebuilt.
853
854 Wed Jul  1 11:19:05 1998  Martin M. Hunt  <hunt@cygnus.com>
855
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
861         to enable_ui.
862
863         * srcbar.tcl (_open_file): Fix for multiple source windows.
864
865 Wed Jul  1 01:40:52 1998  Martin M. Hunt  <hunt@cygnus.com>
866         * Makefile: Added srctextwin.tcl.
867         * tclIndex: Rebuilt.
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.
873
874         * src_pref.tcl (build_win): Add line number
875         checkbutton.  Layout needs changed.
876         * prefs.tcl (pref_set_defaults): Add linenum pref.
877         
878 Thu Jun 25 17:31:30 1998  Keith Seitz  <keiths@cygnus.com>
879
880         * toolbar.tcl (create_menu_items): Add Function Browser menu item.
881
882         * tclIndex: Regenerate.
883         
884         * Makefile: Add browser.tcl.
885
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
889         file
890
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 
897         window.
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
901         downloaded.
902         (bp): Do not special case tracepoint debugging.
903
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.
907
908         * prefs.tcl (pref_save): Add new preference category "search".
909         (pref_set_defaults): Add search preferences.
910
911         * tracedlg.tcl (TraceDlg::destructor): Destroy the actions dialog is
912         it exists.
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
915         necessary.
916         (done): Clear ActionsDlg when the actions dialog is destroyed.
917
918         * main.tcl (do_tstart): Do not disable the "Begin collection" menu
919         item when we issue a tstart.
920
921         * console.tcl (paste): New method which handles all Paste events for
922         this window.
923         (Console): Bind the middle mouse button on unix to generate a paste
924         event.
925         Override default binding for button-2 motion to allow easier pasting
926         into the window.
927         Bind the paste event to the method paste.
928  
929 Wed Jun 17 13:50:48 1998  Martin M. Hunt  <hunt@cygnus.com>
930
931         * src.tcl (reconfig): Recognize tab size changes.
932
933         * src_pref.tcl (build_win): Add tab control. Remove extra frame.
934         Justify variable ballons text. Set activebackgrounds on
935         color buttons.
936
937 Tue Jun  9 13:57:24 1998  Keith Seitz  <keiths@cygnus.com>
938
939         * helpViewer.tcl (HtmlViewer): Display appropriate help based on the
940         preference gdb/mode.
941
942         * help/trace: Add help files for tracing.
943
944         * main.tcl (gdbtk_tcl_preloop): Call gdbtk_update so that the
945         source window fills files into the combobox.
946
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,
950         too.
951
952         * interface.tcl (gdbtk_tcl_pre_add_symbol): Call the reset method
953         of the source window, too.
954
955         * src.tcl (reset): New method used to clear the source window
956         whenever multiple file commands are used.
957
958         * tdump.tcl (update): Erase the contents of the tdump window
959         when displaying a new dump.
960
961         * stack.tcl (update): Errors from the backtrace can contain
962         backtrace info, too, so make sure we print as much of that as
963         possible.
964
965         * register.tcl (build_win): Do not allow editing in tracing
966         mode.
967         (reg_select): Do not allow editing in tracing mode.
968         
969         * memory.tcl (update_address): Check that gdb's handling of chars and
970         char*s doesn't abort the update.
971
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
977         the regsub fails.
978
979 Tue Jun  9 00:00:18 1998  Martin M. Hunt  <hunt@cygnus.com>
980
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.
989
990 Mon Jun  8 16:15:33 1998  Martin M. Hunt  <hunt@cygnus.com>
991
992         * target.tcl (set_check_button): Check for existence of
993         button before trying to set its state.
994
995 Mon Jun  8 13:31:08 1998  Martin M. Hunt  <hunt@cygnus.com>
996
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
1002         is not zero.
1003         (update_address): Move gdbtk_idle and gdbtk_busy calls to 
1004         update_addr.
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.
1009
1010 Fri Jun  5 00:13:49 1998  Martin M. Hunt  <hunt@cygnus.com>
1011
1012         * Change all references to GDBTK_IDE to IDE_ENABLED.
1013
1014 Thu Jun  4 18:34:11 1998  Martin M. Hunt  <hunt@cygnus.com>
1015
1016         * memory.tcl: Complete rewrite. Added many new features
1017         and made it much faster.
1018
1019         * mem_pref.tcl (build_win): Set listbox width.
1020
1021         * images/check.gif: New image. Used in version of
1022         memory window without a menubar.
1023
1024 Thu Jun  4 10:53:33 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1025
1026         * tclIndex: regenerated.
1027         
1028         Merged (most recent first):
1029
1030         - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1031
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.
1035
1036         * bp.tcl (get_actions): invoke trace dialog from tracepoint window,
1037         passing filename and line as arguments, rather than address.
1038
1039         - Jeff Holcomb  <jeffh@cygnus.com>
1040
1041         * main.tcl (set_baud): Change gdb/load/$gdb_target_name/baud
1042         to gdb/load/${gdb_target_name}-baud.
1043
1044         - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1045
1046         * tdump.tcl (update): call tdump only if the current trace frame
1047         number is not -1.
1048
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 
1052         command.
1053         (gdbtk_tcl_warning): remove tdump warning message from list of not
1054         displayed messages.
1055
1056         * main.tcl (do_tstart): catch error output from tstart and display
1057         error dialog.
1058         (do_tstop): catch error output from tstop and display error dialog.
1059
1060         * bp.tcl (bp_add): align properly the bpnum and passcount fields,
1061         for the tracepoint window.
1062
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
1068         ask user for it.
1069         (async_connect): handle possible outcomes of set_target command,
1070         issue appropriate messages to user.
1071         Initialize file_done to 0.
1072
1073         * target.tcl (cancel): set gdb_target_name to CANCEL for use by
1074         set_target_name.
1075         Added public data 'exportcancel'.
1076
1077         * toolbar.tcl (do_async_connect): change menu items state only 
1078         if connect was successful.
1079
1080         * src.tcl (bp): modify condition for SOURCE case to display tp dot
1081         after connecting to target.
1082
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.
1092
1093         * tracedlg.tcl (gdb_add_tracepoint): call to gdb_actions is now
1094         catching the errors (in case of incorrect syntax) and displaying
1095         them to the user.
1096         
1097         * main.tcl (set_target): Changed text of error message to mention
1098         the Target Settings dialog.
1099         
1100         * prefs.tcl: Set default preference for gdb/load/check to 0.
1101
1102         * target.tcl (build_win): disable comparison with executable for
1103         'exec' targets.
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.
1108
1109         * stack.tcl: set initial window width value to 40, so that window
1110         looks better if opened before a stack exists.
1111
1112         - David Taylor  <taylor@texas.cygnus.com>
1113
1114         * main.tcl (async_connect): remote-compare is now compare-sections.
1115
1116         - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1117
1118         * warning.tcl (constructor): call destructor if dialog doesn't
1119         need to be displayed.
1120
1121         * console.tcl (invoke): make function get input and return if in 
1122         readline state, independently from the value of Running.
1123
1124         * src.tcl (set_state): set state of pop up menus only for synch
1125         mode.
1126
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 
1130         window.
1131
1132         * tfind_args.tcl (do_it): call the tfind_cmd procedure. 
1133
1134         * toolbar.tcl (create_menu_items): changed calls to tstart and tstop
1135         to use do_tstart and do_tstop.
1136
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.
1141
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.
1146
1147         * interface.tcl (gdbtk_tcl_tstart): new procedure to invoke
1148         the tstart command
1149         (gdbtk_tcl_tstop): new procedure to invoke the tstop command
1150
1151         * interface.tcl: (gdbtk_tcl_warning) do not display warning
1152         about no current trace frame upon opening of tdump window.
1153
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.
1160
1161         * prefs.tcl: added new preference gdb/load/check
1162
1163         * srcbar.tcl: (create_buttons) tfind commands now use tfind_cmd 
1164         function
1165
1166         * target.tcl: added new preference gdb/load/check to execute an
1167         automatic remote-compare command on connection to target in asynch 
1168         mode
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
1175
1176         * tdump.tcl: (update) changed check for no frame, since 0 is legal 
1177         trace frame number.
1178
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 
1184         async mode.
1185
1186         * util.tcl: (tfind_cmd): new proc to execute a tfind command on 
1187         the target      
1188
1189 Thu May 28 12:49:29 1998  Keith Seitz  <keiths@cygnus.com>
1190
1191         * target.tcl: Add sparclite target.
1192         (fill_targets): Add sparclite target.
1193
1194         * main.tcl (set_target_name): Rearrange so that the default behavior
1195         is to assume a remote-like target.
1196
1197         * src.tcl (browse_to): Helper function for BpWin::goto_bp which causes
1198         the source window to show the specified location.
1199
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.
1205
1206 Sun May 24 14:05:27 1998  Keith Seitz  <keiths@cygnus.com>
1207
1208         * src.tcl (reconfig): Remove the variable balloon selection in the text
1209         widget, too, when we are disabling varialbe balloons.
1210
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
1219         target name.
1220         (change_target): Use get_target to translate the "pretty-name" to the
1221         real target name.
1222         (save): Write out saved values, too.
1223         (get_target): New method to translate the "pretty-name" of a target into gdb's
1224         internal name/
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.
1231
1232         * src_pref.tcl (build_win): Use libgui's Labelledframe class instead of the
1233         Tix labeled frame.
1234         Remove the run button frame -- this has moved into the target selection dialog.
1235         (set_run): Moved to targets.tcl.
1236         
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.
1239
1240         * main.tcl (set_baud): Baud preferences are in TARGET-baud, not
1241         TARGET/baud.
1242         (run_executable): Remove special cases for exec targets.
1243         (native_debugging,valid_target): Move to target.tcl.
1244
1245         * images/more.gif, images/less.gif: New images for drop frames.
1246         
1247         * tclIndex: Regenerate.
1248         
1249 Wed May 20 13:43:00 1998  Martin M. Hunt  <hunt@cygnus.com>
1250
1251         * toolbar.tcl (create_menu_items): Remove register prefs.
1252
1253         * images/stop.gif: Set transparent bit.
1254         
1255 Tue May 19 12:34:11 1998  Keith Seitz  <keiths@cygnus.com>
1256
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.
1262
1263         * main.tcl (run_executable): Encapsulate all calls to debugger
1264         based on new run preferences.
1265
1266         * manage.tcl (manage_init): Change loadpref titles to "Target Selection"
1267
1268         * pref.tcl (build_win): Disable Help button until it works.
1269
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.
1273
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.
1281
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.
1290
1291         * stack.tcl (build_win): Use the source window's preferences to set colors.
1292
1293         * target.tcl (build_win): Disable Help button until it works.
1294
1295 Mon May 18 15:25:00 1998  Martin M. Hunt  <hunt@cygnus.com>
1296
1297         * html_library.tcl (HMstack): Remove stray 'g' that was
1298         preventing autoloading.
1299
1300 Mon May 18 13:17:30 1998  Keith Seitz  <keiths@cygnus.com>
1301
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.
1307
1308 Fri May 15 00:30:06 1998  Martin M. Hunt  <hunt@cygnus.com>
1309
1310         * memory.tcl (update_address): Source window was never being
1311         updated due to a faulty fencepost. I removed it.  Was it
1312         useful?
1313
1314 Tue May 12 11:47:11 PDT 1998  James Ingham  <jingham@leda.cygnus.com>
1315
1316         * helpViewer.tcl: Made the fonts for the viewer track the global
1317         font preferences
1318         *html_library.tcl: Use Tcl Font objects for the fonts rather than
1319         building up X Font Specs.
1320         
1321
1322 Thu May  7 16:03:32 1998  Keith Seitz  <keiths@cygnus.com>
1323
1324         * toolbar.tcl (create_menu_items): Remove automatic stepping.
1325         (create_menu_items): "Cygnus on the Web..." should point to GNUPro page...
1326
1327 Wed May  6 20:18:34 1998  Keith Seitz  <keiths@cygnus.com>
1328
1329         * main.tcl (set_target_name): Recognize d10v and m32r targets.
1330         (valid_target): Change test to recognize all tcp targets.
1331
1332         * target.tcl: Add m32r and d10v tcp targets.
1333
1334 Wed May  6 12:52:12 1998  Keith Seitz  <keiths@cygnus.com>
1335
1336         * srcbar.tcl (create_menu_items): Install a page setup menu item for
1337         non-ide debuggers.
1338
1339         * src.tcl (print): Don't call idewindow_freeze and idewindow_thaw
1340         the ide is not running
1341
1342 Wed May  6 10:41:30 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1343
1344         * bp.tcl (get_actions): set bpnum to be the real tracepoint number,
1345         not the selected row number.
1346
1347 Tue May  5 04:07:12 1998  Martin M. Hunt  <hunt@cygnus.com>
1348
1349         * target.tcl: Add D10V and M32R target.
1350
1351         * prefs.tcl (pref_set_defaults): Set debugging off
1352         by default.
1353
1354 Fri May  1 15:23:57 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1355
1356         * main.tcl (valid_target) make 'remotetcp' a valid
1357         target.
1358
1359 Fri May  1 11:50:40 1998  Jim Ingham  <jingham@leda.cygnus.com>
1360
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.
1365         
1366 Thu Apr 30 00:04:52 1998  Martin M. Hunt  <hunt@cygnus.com
1367
1368         * global_pref.tcl (change_icons): Remove debug line.
1369
1370         * toolbar.tcl: Change image names to end with _img
1371         so they don't conflist with command names.
1372         * srcbar.tcl: Same.
1373
1374 Tue Apr 28 16:51:09 1998  Jim Ingham <jingham@leda.cygnus.com>
1375
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.  
1380
1381 Tue Apr 28 16:51:09 1998  Jim Ingham <jingham@leda.cygnus.com>
1382
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.
1386
1387         * manage.tcl: Moved the wm withdraw of a new toplevel before the
1388         constructor is run in manage_create.  This avoids flashing.
1389
1390         * main.tcl: Changed the tk application name of gdbtk from tk
1391         to gdbtk.
1392         
1393 Mon Apr 27 14:18:01 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1394
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'.
1398
1399 Thu Apr 23 19:02:25 1998  Keith Seitz  <keiths@onions.cygnus.com>
1400
1401         * toolbar.tcl (create_menu_items): Use the new help viewer when not
1402         using the IDE.
1403
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.
1408
1409 Thu Apr 23 13:31:07 1998  Jim Ingham  <jingham@leda.cygnus.com>
1410
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.
1416   
1417 Mon Apr 20 11:14:17 1998  Keith Seitz  <keiths@onions.cygnus.com>
1418
1419         * global_pref.tcl (build_win): Add font selector for the status font.
1420
1421         * main.tcl (run_executable): Exec targets are always "loaded".
1422
1423 Sat Apr 18 02:11:04 1998  Martin M. Hunt  <hunt@cygnus.com>
1424
1425         * prefs.tcl (pref_read): Remove debug line.
1426
1427         * util.tcl (toggle_debug_mode): When enabling or
1428         disabling debugging, also enable or disable error
1429         reporting and stack traces.
1430
1431 Sat Apr 18 01:13:03 1998  Martin M. Hunt  <hunt@cygnus.com>
1432         
1433         * srcbar.tcl (_toggle_updates): Cleanup.
1434
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.
1439
1440         * toolbar.tcl (create_buttons): Bind button 3 to create
1441         new windows when possible.
1442
1443         * stack.tcl (StackWin): Fix broken deiconify call.
1444
1445         * images/[console.gif, reg.gif]: Update.
1446
1447 Fri Apr 17 10:34:23 1998  Martin M. Hunt  <hunt@cygnus.com>
1448
1449         * src.tcl (location): Don't look up the full pathname 
1450         of each file added to the combobox.
1451
1452 Fri Apr 17 09:58:59 1998  Keith Seitz  <keiths@onions.cygnus.com>
1453
1454         * target.tcl (default_port): New proc. Returns a default port
1455         based on host os.
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
1465         selection.
1466         (exportcancel): New public data.
1467         
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
1472         set it.
1473         Allow all set_target_name commands to cancel target selection.
1474         (run_executable): Allow all set_target_name commands to cancel
1475         target selection.
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
1480         target selection.
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,
1484         runnable target.
1485         (native_debugging): New proc. Returns true if this gdb is not a cross
1486         gdb.
1487         (startup code): Do not call set_target_name here -- let run_executable
1488         do it.
1489         
1490         * interface.tcl (gdbtk_tcl_query): Update the display when this dialog
1491         is dismissed.
1492         (gdbtk_tcl_warning): Always show warnings in the debug window.
1493
1494         * download.tcl (download_it): Move setting breaks at main,exit to
1495         run_executable in main.tcl.
1496
1497 Thu Apr 16 11:28:01 1998  Martin M. Hunt  <hunt@cygnus.com>
1498
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
1508         preferences.
1509
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.
1513
1514         * target.tcl (save): Set default target preference.
1515
1516 Wed Apr 15 11:29:47 1998  Martin M. Hunt  <hunt@cygnus.com>
1517
1518         * src.tcl (reconfig): Tell toolbar to reconfig.
1519
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.
1524
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.
1529
1530         * floatbar.tcl (create_buttons): Remove target image.
1531         Use global gdb_ImageDir.
1532         
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
1537         item to "Global".
1538         
1539         * prefs.tcl (pref_set_defaults): Save only basename in 
1540         gdb/ImageDir preference.  Initialize global gdb_ImageDir.
1541         (pref_read): Set gdb_ImageDir.
1542         
1543         * memory.tcl (build_win):  Use global gdb_ImageDir.
1544
1545         * manage.tcl (make_icon_window): Use global gdb_ImageDir.
1546
1547         * about.tcl (build_win): Use global gdb_ImageDir.
1548
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.
1555         
1556         * images2/icons.txt: New file; icon descriptions.
1557
1558         * toolbar_pref.tcl: Removed.
1559         
1560         * main.tcl (run_executable): If target is "exec" don't
1561         show target dialog unless the run command fails.
1562
1563 Wed Apr 15 13:15:22 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1564
1565         * interface.tcl: (gdbtk_tcl_warning) changed to selectively
1566         display warnings in the GUI.
1567         (show_warning) new procedure. Displays warning dialogs.
1568
1569 Wed Apr 15 07:13:04 1998  Keith Seitz  <keiths@onions.cygnus.com>
1570
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.
1573
1574 Mon Apr 13 16:00:06 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1575
1576         * warning.tcl: new file. Implements WarningDlg class, for warning
1577         dialogs.
1578
1579         * tclIndex: regenerated
1580
1581         * Makefile: added new file warning.tcl
1582
1583         * manage.tcl: added new window warningdlg, for ignorable warnings.
1584
1585         * interface.tcl: (gdbtk_tcl_warning) new procedure. Creates a warning
1586         dialog.
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.
1590
1591 Mon Apr 13 13:04:20 1998  Keith Seitz  <keiths@onions.cygnus.com>
1592
1593         * stack.tcl (StackWin::constructor): Withdraw toplevel before calling
1594         all busy hooks; then build the window, go idle and pop the window onto
1595         the screen.
1596
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.
1600
1601 Fri Apr 10 10:27:42 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1602
1603         * bp.tcl: changed default value of public var tracepoints to be 0.
1604
1605 Thu Apr  9 15:21:49 1998  Martin M. Hunt  <hunt@cygnus.com>
1606
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.
1610
1611         * src_pref.tcl (pick): When colors are changed, immediately
1612         update the dialog.
1613
1614 Thu Apr  9 04:03:27 1998  Martin M. Hunt  <hunt@cygnus.com>
1615         
1616         * target.tcl (build_win): Bind <Return> for cancel and help buttons.
1617
1618 Wed Apr  8 10:57:14 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1619
1620         * tdump.tcl: (update): show stuff on window only if current 
1621         trace frame is not null.
1622
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
1627
1628 Wed Apr  8 06:17:42 1998  Keith Seitz  <keiths@onions.cygnus.com>
1629
1630         * bp.tcl (get_actions): Open the trace dialog based on a tracepoint's
1631         number.
1632
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.
1636
1637 Tue Apr  7 12:49:45 1998  Keith Seitz  <keiths@onions.cygnus.com>
1638
1639         * variables.tcl (VariableWin): We should deiconify after withdrawing...
1640
1641         * tracedlg.tcl (gdb_edit_tracepoint): Make necessary gdb_cmd changes
1642         to support new API.
1643         (gdb_add_tracepoint): Make necessary gdb_cmd changes to support new
1644         API.
1645
1646         * tdump.tcl (update): Make necessary gdb_cmd changes to support new
1647         API.
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.
1651         
1652         * srcbar.tcl (_open_file): Make necessary gdb_cmd changes to support new
1653         API.
1654         (create_buttons): Change all tracing commands to use gdb_immediate.
1655
1656         * main.tcl (set_target_name): Add simulator target.
1657
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.
1665         
1666 Fri Apr  3 13:57:42 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1667
1668         * src.tcl: (do_key): added actions for key bindings in trace mode.
1669         (config_win): added key bindings for trace mode.
1670
1671         * srcbar.tcl: (_set_trace) changed balloon contents for tstart/
1672         tstop button.
1673
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
1678         'Target Settings'.
1679         Commented out Preference menu item 'Download'.
1680         (create_buttons): tdump button, inserted text 'Td' in place of missing
1681         icon.
1682         
1683
1684 Tue Mar 31 17:20:59 1998  Ian Lance Taylor  <ian@cygnus.com>
1685
1686         * Makefile (TCL): Add ide.tcl.
1687         * tclIndex: Rebuild.
1688
1689 Sun Mar 29 18:50:46 1998  Keith Seitz  <keiths@onions.cygnus.com>
1690
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.
1696
1697         * srcbar.tcl (_open_file): If main () exists, show it.
1698
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
1704         to set_tracepoint.
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.
1709
1710         * actiondlg.tcl (ActionDlg::constructor): Enable widget via address
1711         specification.
1712         (ActionDlg::Line): Default to empty list.
1713         (ActionDlg::Address): Add new memeber to enable assembly operation.
1714         
1715 Sun Mar 29 21:21:37 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1716
1717         * bp.tcl: add tracepoint number to tracepoint window.
1718         (build_win)(bp_add)(bp_select)(bp_modify)(bp_delete)
1719
1720         * manage.tcl: (manage_init) do not open windows not related to 
1721         current mode
1722
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
1726         gdb_cmd call
1727
1728 Sun Mar 29 15:01:03 1998  Keith Seitz  <keiths@onions.cygnus.com>
1729
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.
1734
1735         * src.tcl (set_execution_status): Change stop messages to support
1736         tracing.
1737         (tracepoint_range): Clear the selection when we set a range of
1738         tracepoints.
1739
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.
1744
1745 Sat Mar 28 15:50:01 1998  Keith Seitz  <keiths@onions.cygnus.com>
1746
1747         * srcbar.tcl (create_menu_items): Put menu items in proper order.
1748         (_open_file): Add exe file's directory to the default source
1749         search path.
1750
1751 Sat Mar 28 14:29:08 1998  Keith Seitz  <keiths@onions.cygnus.com>
1752
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.
1757
1758         * main.tcl (set_target): If this is the first time running,
1759         then show the download prefs dialog.
1760
1761 Sat Mar 28 16:30:55 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1762
1763         * tracedlg.tcl: (build_win) reinserted 'update idletasks' to
1764         display Actions frame properly.
1765
1766         * actiondlg.tcl: (sort) moved "All Registers", "All Locals", 
1767         "All Arguments" to beginning of list.
1768
1769         * src.tcl: (line_is_executable) new method. Used in 
1770         tracepoint_range.
1771
1772 Sat Mar 28 10:58:04 1998  Keith Seitz  <keiths@onions.cygnus.com>
1773
1774         * tracedlg.tcl (gdb_edit_tracepoint): Don't let gdb_cmd call busy and
1775         idle hooks.
1776         (gdb_add_tracepoint): Ditto.
1777
1778         * src.tcl (config_win): Change exit key binding from 'q' to 'x.'
1779         (goto_func): That's "file tail", not "file split."
1780         
1781         * srcbar.tcl (_set_stepi): Don't do anything if we're debugging
1782         asynchronously.
1783
1784 Sat Mar 28 10:09:21 1998  Martin M. Hunt  <hunt@cygnus.com>
1785
1786         * toolbar.tcl (create_menu_items): Change "Close Debugger"
1787         menu item to "Exit".
1788
1789 Sat Mar 28 02:38:51 1998  Martin M. Hunt  <hunt@cygnus.com>
1790         
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.
1796
1797         * src.tcl (reconfig): Reconfigure colors, too.
1798
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.
1802         
1803         * Makefile: Removed toolbar_pref.tcl.
1804
1805         * tclIndex: Rebuilt.
1806         
1807         * srcbar.tcl (create_buttons): Make toolbar always attached 
1808         to source window.
1809
1810         * toolbar.tcl (build_win): Always display toolbar and 
1811         menubar attached to source window.
1812         
1813         * prefs.tcl (pref_set_defaults): Removed toolbar prefs.
1814
1815         * manage.tcl (manage_init): Remove hack to change preferences
1816         names.
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.
1823
1824 Fri Mar 27 19:52:53 1998  Keith Seitz  <keiths@onions.cygnus.com>
1825
1826         * toolbar.tcl (create_menu_items): Do not disable preferences.
1827
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.
1837
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.
1844
1845         * console.tcl (reconfig): New (empty) method to handle preference
1846         changes.
1847
1848 Fri Mar 27 16:08:57 1998  Keith Seitz  <keiths@onions.cygnus.com>
1849
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
1853         it automagically.
1854
1855 Fri Mar 27 14:21:02 1998  Keith Seitz  <keiths@onions.cygnus.com>
1856
1857         * toolbar.tcl (create_menu_items): Use gdbtk_quit to initiate a quit.
1858
1859         * src.tcl (do_key): Use gdbtk_quit to initiate a quit.
1860
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.
1865
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.
1872
1873         * interface.tcl: Define "gdb_quit_hook".
1874         (gdbtk_quit): New procedure to call whenever a quit is requested.
1875
1876         * global_pref.tcl (ok): Do not save preferences here.
1877
1878 Fri Mar 27 12:21:07 1998  Keith Seitz  <keiths@onions.cygnus.com>
1879
1880         * tracedlg.tcl (TraceDlg): Wait until idle to deiconify ourselves.
1881
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.
1886
1887         * target.tcl (GdbLoadPref::constructor): Withdraw window before creating
1888         and deiconfiy it when idle.
1889
1890         * memory.tcl (MemWin::constructor): Withdraw window before going
1891         busy.
1892
1893         * register.tcl (RegWin::constructor): Withdraw window before going
1894         busy.
1895
1896         * src.tcl (SrcWin::constructor): Withdraw window before creating and
1897         deiconify it when idle.
1898
1899 Fri Mar 27 10:52:30 1998  Martin M. Hunt  <hunt@cygnus.com>
1900
1901         * target.tcl: Fix entry for temotetcp.
1902
1903         * main.tcl (set_target_name): Build correct gdb_target_cmd.
1904         
1905 Fri Mar 27 11:23:18 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1906
1907         * target.tcl: (build_win) added call to change_target to
1908         get the correct entry widgets when the dialog is opened.
1909
1910 Fri Mar 27 01:43:41 1998  Martin M. Hunt  <hunt@cygnus.com>
1911
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
1916         it.
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.
1925         
1926         * prefs.tcl (pref_save): Add 'load' as a section to be saved.
1927         Set gdb/load/target to 'exec'.
1928
1929         * manage.tcl (_manage_null_handler): Deleted.
1930
1931         * download.tcl (download_it): Don't call IDE functions
1932         unless GDTK_IDE is set.
1933
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.
1938
1939 Fri Mar 27 00:23:46 1998  Keith Seitz  <keiths@onions.cygnus.com>
1940
1941         * src.tcl (location): Catch error of getting location of main.
1942
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.
1948
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.
1957
1958         * manage.tcl (manage_restart): Call gdbtk_idle to reset the toolbar after
1959         it is recreated.
1960
1961 Thu Mar 26 23:49:26 1998  Martin M. Hunt  <hunt@cygnus.com>
1962
1963         * tdump.tcl, tfind_args.tcl: New files.
1964
1965 Thu Mar 26 22:29:28 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1966  
1967         * tracedlg.tcl: (config) commented out grab. Made window non-modal.
1968         (destructor) do not release grab.
1969         (done) do not reinstall grab.
1970  
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
1976         tfind commands.
1977  
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.
1981  
1982         * src.tcl: (config) decide defatul action for left click on
1983         source based on 'mode' preference.
1984         (bp_line) ditto.
1985         (config_win) modify pop upmenu on source window to display only
1986         'set tracepoint'.
1987  
1988         * prefs.tcl: (pref_set_defaults) added preference gdb/mode for
1989         tracepoints or breakpoint display.
1990  
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.
1994  
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.
2005  
2006         * Makefile: added new files tfind_args.tcl and tdump.tcl.
2007  
2008         * tclIndex: regenerated
2009  
2010 Thu Mar 26 14:23:00 1998  Martin M. Hunt  <hunt@cygnus.com>
2011
2012         * main.tcl (set_target_name): Make target dialog always
2013         on top.
2014
2015         * target.tcl (build_win): Bind Return to save.
2016         (GdbLoadPref): Denter dialog on screen.
2017
2018 Thu Mar 26 14:16:36 1998  Keith Seitz  <keiths@onions.cygnus.com>
2019
2020         * memory.tcl (update_address): Catch errors to update_addr so that
2021         we do not error and leave the GUI busy.
2022
2023 Thu Mar 26 13:51:58 1998  Martin M. Hunt  <hunt@cygnus.com>     
2024
2025         * toolbar.tcl (create_menu_items): Remove "Cygnus
2026         Foundry Tour" and "Submit a PR" from the menu.
2027
2028         * src.tcl (file): Set title to GDB.
2029
2030         * manage.tcl (manage_init): Set About name.
2031
2032         * main.tcl (set_target): Set title to GDB.
2033
2034         * interface.tcl (gdbtk_tcl_query): Set title correctly.
2035
2036         * Makefile: Remove download_pref.tcl.
2037
2038 Thu Mar 26 11:33:02 1998  Keith Seitz  <keiths@onions.cygnus.com>
2039
2040         * Makefile: Add target.tcl to list of sources.
2041
2042         * tclIndex: Rebuilt.
2043         
2044         * target.tcl (GdbLoadPref): Trace changes to gdb_loaded.
2045         (target_trace): New procedure. This is invoked by a write trace
2046         to gdb_loaded.
2047
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
2054         gdtk_update.
2055         
2056         * download.tcl: Make busy/update/idle hook changes.
2057
2058         * main.tcl: Make busy/update/idle hook changes.
2059         (set_exe): Clear gdb_loaded whenever a new exec file is selected.
2060         
2061         * manage.tcl: Make busy/update/idle hook changes.
2062
2063         * mem_pref.tcl: Make busy/update/idle hook changes.
2064
2065         * memory.tcl: Make busy/update/idle hook changes.
2066
2067         * register.tcl: Make busy/update/idle hook changes.
2068
2069         * src.tcl: Make busy/update/idle hook changes.
2070
2071         * stack.tcl: Make busy/update/idle hook changes.
2072
2073         * variables.tcl: Make busy/update/idle hook changes.
2074
2075         Merged with Foundry 1.0:
2076         Wed Mar 25 14:22:28 1998  Keith Seitz  <keiths@onions.cygnus.com>
2077
2078         * register.tcl (reconfig): Call busy and idle hooks.
2079
2080         * memory.tcl (update_address): Call busy and idle hooks.
2081
2082         Wed Mar 25 11:38:49 1998  Martin M. Hunt  <hunt@cygnus.com>
2083
2084         * src.tcl (location): Fix typo.
2085
2086         Tue Mar 24 21:03:01 1998  Martin M. Hunt  <hunt@cygnus.com>
2087
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.
2096
2097         * srcbar.tcl (_set_runstop): Add another case to disable the
2098         Run icon instead of changing it to a stop sign.
2099
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.
2103
2104         Tue Mar 24 17:04:36 1998  Keith Seitz  <keiths@onions.cygnus.com>
2105
2106         * mem_pref.tcl (build_win): Keep track of all widgets that should be
2107         disabled when busy.
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.
2112
2113         Tue Mar 24 12:07:52 1998  Martin M. Hunt  <hunt@cygnus.com>
2114
2115         * src.tcl (location): Filter out .s and .S files because
2116         Foundry does not yet support assembly source debugging.
2117
2118         Tue Mar 24 08:50:46 1998  Keith Seitz  <keiths@onions.cygnus.com>
2119
2120         * register.tcl (but3): Don't pop up the right-click menu if we are
2121         running.
2122
2123         * download.tcl (download_it): Force an update so that all windows
2124         are created and get their busy hooks called.
2125
2126         * console.tcl (invoke): Make sure we are not running.
2127         (busy): New method.
2128         (idle): New method.
2129
2130         Mon Mar 23 15:00:57 1998  Drew Moseley  <dmoseley@cygnus.com>
2131
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.
2134
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.
2138         
2139         Reverse the parameters to src method::location() method invocation so
2140         they are in the correct order
2141
2142         Mon Mar 23 12:04:23 1998  Martin M. Hunt  <hunt@cygnus.com>
2143
2144         * src.tcl (update): Comment out debug lines.
2145
2146         * main.tcl (set_target_name): If the target name changes,
2147         force a new "file" command to be issued by setting
2148         gdb_exe_changed.
2149
2150         Sat Mar 21 00:09:37 1998  Martin M. Hunt  <hunt@cygnus.com>
2151
2152         * download.tcl (download_it): Remove call to run_idle_hooks.
2153
2154         * src.tcl (no_inferior): Call set_execution_status.
2155
2156         * bp.tcl (bp_modify, bp_delete): Change to take an entry 
2157         number.
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.
2161
2162         Fri Mar 20 22:50:55 1998  Tom Tromey  <tromey@cygnus.com>
2163
2164         * console.tcl (insert): Remove all \r characters from string to be
2165         inserted.
2166
2167         Fri Mar 20 01:55:14 1998  Keith Seitz  <keiths@cygnus.com>
2168  
2169         * watch.tcl (validateEntry): Fencepost for running.
2170  
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.
2177  
2178         * toolbar.tcl (GDBToolBar): Use "add_hook_before".
2179  
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.
2191  
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
2199         gdb_running.
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
2203         widget tags.
2204         (disable_ui): Call bind_src_tags to change cursor to "watch".
2205         (enable_ui): Ditto.
2206         (no_inferior): Ditto.
2207         (cursor): New helper method to set the cursor of all subwindows.
2208  
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.
2221  
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
2233         object.
2234  
2235         * manage.tcl (manage_init): Use "add_hook_before".
2236  
2237         * main.tcl (run_executable): Use "run_idle_hooks".
2238  
2239         * ide.tcl (gdbtk_ide_init): Don't create the source window here.
2240  
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
2243         again.
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
2247         again.
2248  
2249         * download.tcl (Download): Use add_hook_before instead of add_hook.
2250         (download_it): Use run_idle_hooks instead running the idle hooks
2251         directly.
2252  
2253         * bp.tcl (BpWin):  Use add_hook_before instead of add_hook.
2254  
2255         Wed Mar 18 18:59:00 1998  Sean Mahan  <smahan@cygnus.com>
2256
2257         * download.tcl (download_hash): Added an 'update' so the
2258         status bar would work on an MBX board.
2259
2260         Wed Mar 18 01:50:19 1998  Martin M. Hunt  <hunt@cygnus.com>
2261
2262         * prefs.tcl (pref_set_defaults): Define gdb/src/tab_size
2263         to default to a tab size of 4.
2264
2265         * src.tcl (setTabs): Set up tabs correctly.
2266
2267         * download.tcl (download_it): Set correct state after
2268         user cancels download.
2269
2270         Tue Mar 17 12:30:23 1998  Tom Tromey  <tromey@cygnus.com>
2271
2272         * console.tcl (throttle): New public variable.
2273         (insert): Delete initial text when past the throttle limit.
2274
2275         Tue Mar 17 13:31:38 1998  Keith Seitz  <keiths@onions.cygnus.com>
2276
2277         * ide.tcl (gdb_exit_check): Do not let gdb confirm the quit if we
2278         are downloading.
2279
2280         Tue Mar 17 13:25:22 1998  Keith Seitz  <keiths@onions.cygnus.com>
2281
2282         * console.tcl (insert): Force update of screen.
2283
2284         Mon Mar 16 10:22:00 1998  Sean Mahan  <smahan@cygnus.com>
2285
2286         * toolbar.tcl (create_menu_items): Added 'Submit PR' to the
2287         help menu.  For PR15334
2288
2289         Sun Mar 15 15:01:27 1998  Tom Tromey  <tromey@cygnus.com>
2290
2291         * interface.tcl (gdbtk_tcl_fputs): Don't call update.
2292
2293         * src.tcl (build_win): Changed capitalization on balloon help.
2294
2295         Fri Mar 13 10:01:48 1998  Keith Seitz  <keiths@onions.cygnus.com>
2296
2297         * src.tcl (mode): Add a horizontal scrollbar to the assembly pane
2298         of SRC+ASM mode when necessary.
2299
2300         Fri Mar 13 00:47:59 1998  Martin M. Hunt  <hunt@cygnus.com>
2301
2302         * main.tcl (run_executable): Don't force downloads for sim.
2303
2304         * download.tcl (download_it): Don't bother calling calling set_baud 
2305         for sim.
2306
2307         * manage.tcl (manage_delete): Deregister the window before deleting
2308         it to prevent those annoying bgerror messages.
2309
2310         Thu Mar 12 15:28:22 1998  Keith Seitz  <keiths@onions.cygnus.com>
2311
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
2315         as done, if needed.
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.
2319
2320         Tue Mar 10 06:32:24 1998  Keith Seitz  <keiths@onions.cygnus.com>
2321
2322         * interface.tcl (gdbtk_tcl_query): Allow caller to specify the default
2323         button. If none is specified, it is set to 'yes'.
2324
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.
2327
2328         Tue Mar 10 10:52:09 1998  Martin M. Hunt  <hunt@cygnus.com>
2329
2330         * download.tcl (download_it): Change where old breakpoints
2331         are cleared.
2332         (done): Set focus on "OK" or delete.
2333
2334         Tue Mar 10 05:23:42 1998  Keith Seitz  <keiths@onions.cygnus.com>
2335
2336         * src.tcl (do_key): New method to wrap all keypresses.
2337         (mode): Use do_key method.
2338         (config_win): Use do_key method.
2339
2340         Mon Mar  9 23:06:21 1998  Martin M. Hunt  <hunt@cygnus.com>
2341
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
2345         load fails.
2346
2347         * download.tcl (done): If 'msg' is set, it should be
2348         displayed and download has failed. Update all source
2349         windows.
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.
2355
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.
2362
2363         Mon Mar  9 15:06:21 1998  Martin M. Hunt  <hunt@cygnus.com>     
2364
2365         * console.tcl (invoke): After gdb_immediate() finishes
2366         check to see if the window is still there.
2367
2368         * main.tcl: Initialize gdbtk_state(console).
2369
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.
2374
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).
2379
2380         Mon Mar  9 09:08:11 1998  Keith Seitz  <keiths@onions.cygnus.com>
2381
2382         * watch.tcl (build_win): Tweak layout of the entry and button, 
2383         switching to grid geometry manager.
2384
2385 Thu Mar 26 01:22:23 1998  Martin M. Hunt  <hunt@cygnus.com>
2386
2387         * target.tcl: New file. Implements target dialog.
2388         
2389         * srcbar.tcl (_set_run): Remove because it was no longer used.
2390
2391         * util.tcl (freeze): Only call idewindow_freeze when
2392         using the IDE.
2393
2394         * prefs.tcl (pref_set_defaults): Set default tab size to 4.
2395
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.
2399
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.
2405
2406         * manage.tcl: Set loadpref to GdbLoadPref.
2407         
2408 Wed Mar 25 14:13:52 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2409
2410         * manage.tcl (manage_init) added tracedlg and actiondlg windows.
2411
2412 Wed Mar 25 14:08:51 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2413
2414         * interface.tcl (gdbtk_tcl_pre_add_symbol): New procedure.
2415         (gdbtk_tcl_post_add_symbol): New procedure.
2416  
2417         * src.tcl (set_execution_status): Use "set_status" to write to the
2418         status bar, not "set Status".
2419
2420 Mon Mar 23 13:41:39 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2421
2422        * memory.tcl: Changes to support new faster gdb_get_mem().
2423        (do_popup): Add "Go To" and Open New Window" to the popup
2424        menu.
2425
2426 Sat Mar 21 21:18:06 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
2427
2428         Merged changes from Foundry (list follows in reverse chronological
2429         order)
2430
2431         Sean Mahan  <smahan@cygnus.com>
2432         * download_pref.tcl (help): Added method to display context 
2433         sensitive help.
2434
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.
2440
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
2446         console window.
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
2454         command line.
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.
2459
2460         Keith Seitz  <keiths@onions.cygnus.com>
2461         * variables.tcl (deleteTree): Reset Locals and ChangeList, too.
2462
2463         Martin M. Hunt  <hunt@cygnus.com>
2464         * toolbar.tcl (enable_ui): Don't always set stepi and nexti
2465         buttons on.
2466
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.
2471         (enable_ui): Ditto.
2472
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.
2479
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.
2483
2484         Martin M. Hunt  <hunt@cygnus.com>
2485         * bp.tcl (bp_delete): If a selected breakpoint is deleted, 
2486         set "selected" to 0.
2487
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
2496         canceled downloads.
2497         (SrcWin::destructor): Pass the state_hook's command to remove_hook.
2498
2499         Sean Mahan  <smahan@cygnus.com>
2500         * toolbar.tcl (create_menu_items): Help menu follows "Help Topics"
2501         standard (PR 15082).
2502
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.
2506
2507         Martin M. Hunt  <hunt@cygnus.com>
2508         * interface.tcl (gdbtk_tcl_query): Only use ide_messageBox
2509         on Windows.
2510
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.
2515
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 "."
2519
2520         Martin M. Hunt  <hunt@cygnus.com>
2521         * main.tcl (run_executable): Removed delete_breakpoints
2522         stuff.
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
2531         mode, unset "awin".
2532         (bp_line): On a "Continue to Here" don't try to
2533         restore breakpoints that didn't exist before.
2534
2535         Tom Tromey  <tromey@cygnus.com>
2536         * interface.tcl (gdbtk_tcl_query): Set -parent on dialog.
2537
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.
2548
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
2552         when finished.
2553         (config_win): Uncomment "Continue to Here" menu item.
2554
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.
2558
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.
2570
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.
2574
2575         Martin M. Hunt  <hunt@cygnus.com>
2576         * src.tcl (set_state): Turn off debugging.
2577         (location): Map windows pathnames into form GDB uses
2578         internally.
2579         (bp_line): Use gdb_set_bp to set breakpoints on
2580         a specific line in a file.
2581
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.
2585
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...
2606
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.
2610
2611         Martin M. Hunt  <hunt@cygnus.com>
2612         * manage.tcl, ide.tcl: Disable some debugging messages.
2613
2614         Martin M. Hunt  <hunt@cygnus.com>
2615         * src.tcl (set_state): When loaded state changes, invalidate
2616         current file.
2617
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.
2637
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.
2655
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.
2660
2661         Sean Mahan  <smahan@cygnus.com>
2662         * main.tcl: Initialized help sub-system for the ide.
2663
2664         Tomy Hudson   <thudson@thudson5.cygnus.com>
2665         * prefs.tcl: Changed COM1 back to com1 per Martins request.
2666
2667         Martin M. Hunt  <hunt@cygnus.com>
2668         * src.tcl (file): Call gdb_loadfile to do most of the
2669         work.
2670
2671         Tomy Hudson   <thudson@thudson5.cygnus.com>
2672         * prefs.tcl: Changed "com1" to "COM1"
2673
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
2678         handled properly.
2679         * download.tcl: (download_it): See above note.
2680
2681         Sean Mahan  <smahan@cygnus.com>
2682         * toolbar.tcl (create_menu_items): changed "Tutorial" to "Cygnus
2683         Foundry Tour" in the Help menu.
2684
2685         Tom Tromey  <tromey@cygnus.com>
2686         * memory.tcl (mem_del): "destroy forget" is invalid; use "destroy"
2687         instead.
2688         * interface.tcl (gdbtk_tcl_query): Only ask each question once.
2689
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
2696         is not 1.
2697
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.
2703
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
2718         disable_all.
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
2722         manage_disable_all.
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
2730         hooks.
2731         (do_popup): Use above fencepost.
2732         (showBalloon): Use above fencepost.
2733         * main.tcl: Define new hook " gdb_no_inferior_hook".
2734
2735         Martin M. Hunt  <hunt@cygnus.com>
2736         * src.tcl (SrcWin): Immediately set title name
2737         to "Debugger".
2738
2739         Martin M. Hunt  <hunt@cygnus.com>       
2740         * download_pref.tcl (LoadPref): Make window transient.
2741
2742         Martin M. Hunt  <hunt@cygnus.com>
2743         * register.tcl (build_win): Set scrollbars to auto
2744         on Unix.
2745         * stack.tcl (build_win): Set scrollbars to auto
2746         on Unix.
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. 
2756
2757         Martin M. Hunt  <hunt@cygnus.com>
2758         * memory.tcl (destructor): Destroy memory prefs window
2759         if one exists.
2760         (create_prefs): Make prefs window transient.
2761         * util.tcl (freeze): Make keep_raised an option.
2762         
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.
2768
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
2787         and SRC+ASM modes.
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
2791         type.
2792   
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
2797         tixScrolledWindow.
2798         * stack.tcl (build_win): Use built-in sizebox of
2799         tixScrolledWindow.
2800         * locals.tcl (build_win): Don't create sizebox.
2801         * variables.tcl (build_win): Use built-in sizebox of
2802         tixScrolledWindow.
2803         (Sizebox): New instance variable.
2804         * console.tcl (console): Use built-in sizebox of
2805         tixScrolledWindow.
2806         * register.tcl (build_win): Use built-in sizebox of
2807         tixScrolledWindow.
2808
2809         Martin M. Hunt  <hunt@cygnus.com>
2810         * main.tcl (set_target_name): Set port based on target
2811         name.
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.
2820
2821         Keith Seitz  <keiths@onions.cygnus.com>
2822         * variables.tcl (build_win): Set the variable window's 
2823         default size to 40 chars.
2824
2825         Martin M. Hunt  <hunt@cygnus.com>
2826         * src.tcl (set_state): When loaded state changes,
2827         set program_has_run state to 0.
2828
2829         Martin M. Hunt  <hunt@cygnus.com>
2830         * src.tcl (set_status): Rewrite to handle temporary
2831         status messages.
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.
2837
2838         Martin M. Hunt  <hunt@cygnus.com>
2839         * variables.tcl (changeValue): Trim string before
2840         comparing with "".
2841
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 
2857         gdb_cmd.
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).
2865         
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.
2870
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.
2880
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.
2892
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
2896         and window layout.
2897         * stack.tcl (build_win): ditto
2898         * memory.tcl (build_win): ditto
2899         * watch.tcl (build_win): ditto
2900         * locals.tcl (build_win): ditto 
2901
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.
2909
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".
2915
2916         Tomy Hudson <thudson@cygnus.com>
2917         * console.tcl (build_win) Added frame and ide_sizebox to
2918         bottom of window. 
2919         * stack.tcl (build_win) Added frame and ide_sizebox to
2920         bottom of window. 
2921         * watch.tcl (build_win) Added frame and ide_sizebox to
2922         bottom of window.
2923         * locals.tcl (build_win) Added frame and ide_sizebox to
2924         bottom of window.
2925
2926         Tom Tromey  <tromey@cygnus.com>
2927         * memory.tcl (build_win): Updated -underline values.
2928
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.
2933
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.
2939
2940         Martin M. Hunt  <hunt@cygnus.com>
2941         * download.tcl (download_it): Change error to messagebox.
2942
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
2946         empty list.
2947         (delete_from_display_list): Likewise.
2948
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 
2954         directions.
2955         * main.tcl: Moved keep_raised, sleep, and toggle_debug_mode
2956         to util.tcl.
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.
2967         (_map): Deleted.
2968         (download_it): Call set_baud, then set_exe then set_target.
2969         * mem_pref.tcl (build_win): Set default number of bytes
2970         to 128.
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.
2988
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
2992         a straight index.  
2993         
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
2997         after an edit.
2998         
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.
3005         
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>
3011         binding.
3012
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
3017         when done.
3018
3019         Tomy Hudson <thudson@cygnus.com>
3020         * src.tcl (mode): Modified key bindings for MIXED mode
3021         to be the same as ASSEMBLY mode
3022
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,
3026         cancel edit.
3027
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.
3031          
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 "".
3035                  
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.
3040         
3041         Martin M. Hunt  <hunt@cygnus.com>
3042         * bp.tcl (bp_delete): Destroy widgets in deleted
3043         line.
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.
3048
3049         Tom Tromey  <tromey@cygnus.com>
3050         * ide.tcl (gdbtk_ide_init): Use property vmake/exelist, not
3051         vmake-exelist.
3052
3053         Martin M. Hunt  <hunt@cygnus.com>
3054         * variables.tcl (build_menu_helper): Comment-out 
3055         Update menu.
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.
3063
3064         Martin M. Hunt  <hunt@cygnus.com>
3065         * toolbar.tcl (create_menu_items): Call open_url for
3066         web connections.
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.
3071
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.
3081
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.   
3092
3093         Martin M. Hunt  <hunt@cygnus.com>
3094         * src.tcl (set_state): Disable items in breakpoint
3095         popups.
3096         (config_win): Change capitalization in popups.
3097
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 
3111         state.
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.
3118
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.
3124         (save): Removed.
3125         (cancel): Removed.
3126         (config): Removed.
3127         (reconfig): Removed.
3128
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
3135         to File menu.
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.
3139
3140         Martin M. Hunt  <hunt@cygnus.com>
3141         * register.tcl (acceptEdit): Remove leading spaces from
3142         values.
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
3145         to bp_tag.
3146         (insertBreakTag):  Accept tag type.  Remove old tag.
3147         (do_bp): When a breakpoint is set, use bp_tag.
3148
3149         Tom Tromey  <tromey@cygnus.com>
3150         * pref.tcl (pref_ide_proc): Withdraw the toplevel, not the
3151         window.
3152
3153         Tom Tromey  <tromey@cygnus.com>
3154         * tclIndex: Rebuilt.
3155         * mem_pref.tcl (build_win): Use standard_button_box.
3156         (_map): New method.
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.
3162
3163         Tom Tromey  <tromey@cygnus.com>
3164         * main.tcl (ide_run_server): Quote call to ide_do_run_server.
3165
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.
3175
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
3180         callback.
3181         (ide_do_run_server): New procedure.
3182
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.
3187
3188         Tom Tromey  <tromey@cygnus.com>
3189         * manage.tcl (manage_open): Special case "about" window when
3190         running under IDE.
3191
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
3196         and catch errors.
3197         * download.tcl (Download): Cancel button should call
3198         cancel method.
3199         * main.tcl (run_executable): Fixed messageBox.
3200
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.
3206
3207         Martin M. Hunt  <hunt@cygnus.com>
3208         * main.tcl (toggle_debug_mode): Fix typo and print
3209         debug message before disabling it.
3210
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
3214         itself.
3215         * toolbar.tcl (create_menu_items): Change Console shortcut
3216         to Ctrl+N.
3217         * src.tcl (config_win): Change Console shortcut to Ctrl+N.
3218         
3219         Martin M. Hunt  <hunt@cygnus.com>       
3220         * src.tcl: (do_bp): Catch errors.
3221         (validBPLine): Valid lines have a "-" or an image.
3222         
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
3229         from the last time.
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
3234         progress meter.
3235         (src_ide_proc): Don't open src window if download
3236         cancelled.
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.
3250
3251         Martin M. Hunt  <hunt@cygnus.com>
3252         * main.tcl (download): Don't quote the executable name
3253         with single quotes.
3254
3255         Tom Tromey  <tromey@cygnus.com>
3256         * src.tcl (src_ide_proc): Exit gdb when destroy request seen.
3257
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
3270         from the top level.
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
3277         bindings.
3278         * src.tcl (print): Call idewindow_freeze and idewindow_thaw around
3279         call to print menu.
3280         * srcbar.tcl (create_menu_items): Likewise, around call to page
3281         setup menu.
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.
3286
3287         Martin M. Hunt  <hunt@cygnus.com>
3288         * register.tcl (acceptEdit): If no value is entered,
3289         set the cell to 0.
3290
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
3303         create.
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
3320         set_exe_name.
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
3327         executable.
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
3331         tk_messageBox.
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
3337         events.
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.
3343
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.
3348
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
3359         num to propset.
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
3362         is 2.
3363         (exe_name_changed): Rename from exe_name.
3364         (set_exe_name): Set gdb_exe_mtime.  Quote filename passed to
3365         gdb_cmd.
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.
3371
3372
3373 Tue Feb 10 17:50:37 1998  Keith Seitz  <keiths@onions.cygnus.com>
3374
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.
3385
3386         * src.tcl (do_bp): Handle disabled tracepoints.
3387
3388         * actiondlg.tcl (change_other): Handle memranges and use info address to
3389         validate entries.
3390
3391         * tracedlg.tcl (edit): Handle memranges when formatting data for
3392         action dialog.
3393
3394 Mon Jan 26 11:44:39 1998  Keith Seitz  <keiths@onions.cygnus.com>
3395
3396         * src.tcl (fill_files): Don't check for file's existance -- let
3397         SrcWin::name do that.
3398
3399         * actiondlg.tcl (change): Add everything that is specified, not
3400         just the things about which we know.
3401
3402 Sun Jan 25 01:01:32 1998  Martin M. Hunt  <hunt@cygnus.com>
3403
3404         * stack.tcl (update): Only insert entries that have
3405         length.  Break when matching entry in listbox is found.
3406
3407         * src.tcl (fill_files): Don't call lsort.  New listfiles
3408         command sorts for us.
3409
3410         * variables.tcl (changeValue): If new value is null,
3411         cancel edit. 
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.
3417         
3418 Thu Jan 22 10:38:19 1998  Keith Seitz  <keiths@cygnus.com>
3419
3420         * toolbar.tcl (create_menu_items): Disable preferences.
3421         
3422         * prefs.tcl (pref_set_defaults): Attach the toolbar to the source window
3423         by deafult.
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
3437         displayed.
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
3447         should be reset.
3448         (SOURCEWIN_reinit): New procedure to reinitialize the source window. (To be
3449         called when new symbol files are added and like).
3450
3451         * interface.tcl (gdbtk_tcl_query): Properly set the name of the
3452         query dialog.
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.
3457
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.
3463
3464         * main.tcl: Call SOURCEWIN_reinit to setup the source window on startup.
3465
3466
3467 Fri Jan 16 09:11:30 1998  Keith Seitz  <keiths@onions.cygnus.com>
3468
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.
3473
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
3477         loaded.
3478
3479 Thu Jan 15 12:41:27 1998  Keith Seitz  <keiths@onions.cygnus.com>
3480
3481         * console.tcl (invoke): Use new gdb_immediate command instead of gdb_cmd.
3482
3483 Wed Dec 31 16:50:26 1998  Keith Seitz  (keiths@onions.cygnus.com)
3484  
3485         * actiondlg.tcl (change): handle '$' in register names.
3486