OSDN Git Service

* dll_init.cc (dll_global_dtors): Add an additional test to avoid walking the
[pf3gnuchains/pf3gnuchains4x.git] / gdb / gdbtk / ChangeLog-2001
1 2001-12-21  Tom Tromey  <tromey@redhat.com>
2
3         * generic/gdbtk-cmds.h (full_lookup_symtab): Don't declare.
4         * generic/gdbtk-cmds.c (gdb_find_file_command): Use
5         lookup_symtab.
6         (gdb_listfuncs): Likewise.
7         (gdb_loadfile): Likewise.
8         (full_lookup_symtab): Removed.
9         * generic/gdbtk-bp.c (gdb_find_bp_at_line): Use lookup_symtab.
10         (gdb_set_bp): Likewise.
11
12 2001-12-21  Keith Seitz  <keiths@redhat.com>
13
14         * library/bpwin.ith (_select_and_popup): New private method.
15         * library/bpwin.itb (bp_select): Don't bind to Button-3.
16         (build_win): Bind Button-3 to _select_and_popup.
17         (_select_and_popup): New private method.
18
19 2001-12-18  Keith Seitz  <keiths@redhat.com>
20
21         * library/memwin.itb (incr_addr): Fix typo.
22
23 2001-12-16  Andrew Cagney  <ac131313@redhat.com>
24
25         * generic/gdbtk-cmds.c (hex2bin): Replace LITTLE_ENDIAN with
26         BFD_ENDIAN_LITTLE.
27
28 2001-12-10  Ian Roxborough  <irox@redhat.com>
29
30         * library/interface.tcl (set_target_name): Call "pref getd"
31         instead of "pref get" to avoid undefined preference error
32         message for default-hostname.
33
34 2001-12-07  Keith Seitz  <keiths@redhat.com>
35
36         * library/managedwin.itb (shutdown): Don't save geometry for
37         plugins, either.
38
39 2001-12-05  Keith Seitz  <keiths@redhat.com>
40
41         * library/console.itb (busy): Set the cursor to the watch.
42         (idle): Reset cursor to normal.
43
44 2001-11-30  Martin M. Hunt  <hunt@redhat.com>
45
46         * library/interface.tcl (gdbtk_eval): Remove
47         undocumented debug function.
48
49 2001-11-21  Tom Tromey  <tromey@redhat.com>
50
51         * library/interface.tcl (gdbtk_tcl_preloop): Override session's
52         command-line arguments if required.
53
54 2001-11-20  Keith Seitz  <keiths@redhat.com>
55
56         * generic/gdbtk.c (gdbtk_init): If DISPLAY is not set on Unix,
57         clear the init_ui_hook so that gdb will properly initialize
58         the cli.
59
60 2001-11-08  Martin M. Hunt  <hunt@redhat.com>
61         * generic/gdbtk-cmds.c (gdb_eval): Add an optional
62         format argument.
63         (hex2bin): Swap bytes around if target is little endian.
64         Fix loop count.
65         (gdb_incr_addr): New function to do address arithmetic.
66         Needed because some addresses are 64-bits and tcl can't
67         deal with them, except as strings.
68
69         * library/memwin.itb (MemWin::build_win): Add a label
70         to indicate the target endianess.
71         (MemWin::edit): Use gdb_incr_addr.
72         (MemWin::busy): The constructor calls gdbtk_busy which
73         calls this before the window has finished drawing, so
74         don't disable items that don't exist yet.
75         (MemWin::update_address): Set a flag, bad_expr, if the
76         expression does not evaluate. Call gdb_eval with 'x' flag
77         to force the result to be hex.
78         (MemWin::BadExpr): Set bad_expr.
79         (MemWin::incr_addr): Use gdb_incr_addr.
80         (MemWin::update_addr): Return is bad_expr is set. Use
81         gdb_incr_addr.
82         (MemWin::goto): Call update_address.
83         * library/memwin.itb: Declare private variable bad_expr.
84         
85         * library/util.tcl (gdbtk_endian): New procedure. Returns
86         BIG or LITTLE to indicate target endianess.
87
88 2001-11-08  Martin M. Hunt  <hunt@redhat.com>   
89         * library/managedwin.itb (ManagedWin::shutdown): Fix
90         typo in class name DebugWinDOpts.
91
92         * library/debugwin.itb: Add MemWin to _classes.
93
94 2001-11-05  Martin M. Hunt  <hunt@redhat.com>
95         * generic/gdbtk-cmds.h (gdbtk_set_result): Declare.
96         A printf-like function to return error messages.
97         * generic/gdbtk-cmds.c (gdbtk_set_result): New
98         function.
99         (gdb_cmd): Use gdbtk_set_result.
100         (gdb_immediate_command): Ditto.
101         (gdb_load_info): Ditto.
102         (gdb_find_file_command): Ditto.
103         (gdb_listfuncs): Ditto.
104         (gdb_load_disassembly): Ditto.
105         (gdb_loc): Ditto.
106         (gdb_set_mem): Ditto.
107         (gdb_get_mem): Ditto.
108         (gdb_loadfile): Ditto.
109         * generic/gdbtk-varobj.c (variable_format): Ditto.
110         (variable_value): Ditto.
111         * generic/gdbtk-stack.c (gdb_get_vars_command): Ditto.
112         * generic/gdbtk-bp.c (gdb_get_breakpoint_info): Ditto.
113         (gdb_set_bp): Ditto.
114         (gdb_set_bp_addr): Ditto.
115         (gdb_get_tracepoint_info): Ditto.
116
117 2001-11-05  Martin M. Hunt  <hunt@redhat.com>
118
119         * library/stackwin.itb (StcakWin::reconfig): Destroy sbox 
120         if it exists.
121
122         * library/process.itb (ProcessWin::reconfig): Destroy sbox 
123         if it exists. This fixes reconfig failures on Windows. Also 
124         destroy slbox.
125
126         * library/bpwin.itb (BpWin::reconfig): Destroy sbox if 
127         it exists.This fixes reconfig failures on Windows. Also 
128         destroy sf
129         
130         * library/tdump.tcl (TdumpWin::reconfig): Delete sbox
131         and stext then rebuild window.
132
133 2001-11-05  Martin M. Hunt  <hunt@redhat.com>   
134
135         * library/debugwin.itb (DebugWin::build_win): 
136         Initialize gdbtk_de(ERRORS_ONLY) and gdbtk_de(filter_var)
137         (DebugWin::puts): Rewrite filter to handle new options.
138         (DebugWinDOpts::build_win): Update list of classes. Change 
139         filter dialog so we can not display only errors and warnings
140         or choose between displaying ALL classes except those selected
141         or only selected classes. Fix "OK" button to apply
142         changes before closing dialog.
143         DebugWinOpts::_apply): Now takes an agrument that
144         indicates if dialog should exit after applying filter.
145         
146         * library/debugwin.ith (_apply): Now takes an arg.
147
148         * library/main.tcl: If GDBTK_DEBUGFILE is not set,
149         use "insight.log" as the default. If GDBTK_DEBUG is set
150         and nonzero, start logging debug messages to
151         GDBTK_DEBUGFILE immediately. Never open the debug window
152         automatically.
153
154         * library/managedwin.itb (ManagedWin::shutdown): Don't 
155         save debug window options dialog on active list
156         
157         * library/srcwin.itb: Remove troublesome debug line.
158
159 2001-11-05  Martin M. Hunt  <hunt@redhat.com>
160         * library/globalpref.itb (GlobalPref::_init_var):
161         New method to initialize _saved and _new arrays.
162         (GlobalPref::constructor): Call _init_var.
163         (GlobalPref::_buildwin): Use _new array for prefs
164         variables. Font optimizations. Remove troublesome
165         fonts and sort the list.
166         (GlobalPref::toggle_tracing_mode): Removed.  Some
167         functionality moved to _apply and _cancel.
168         (GlobalPref::_apply): Set prefs with values from the
169         _new array.
170         (SrcPref::_cancel): Reset prefs with values from _saved.
171         * library/globalpref.ith: Changed private variables
172         and methods to start with underscore.
173         (tracing_cb): Removed.
174         (_init): Changed from proc to method.
175
176 2001-11-01  Keith Seitz  <keiths@redhat.com>
177
178         * library/memwin.itb (update_addr): Evaluate the address
179         to be sent to gdb_get_mem to prevent passing error strings
180         to string_to_coreaddr in gdb_get_mem.
181
182 2001-10-29  Martin M. Hunt  <hunt@redhat.com>   
183
184         * library/debugwin.itb: Don't increment number of
185         TopLevelWins. 
186
187         * library/managedwin.itb: Don't save DebugWins to
188         active list.
189
190 2001-10-29  Martin M. Hunt  <hunt@redhat.com>           
191
192         * generic/gdbtk-bp.c (gdb_set_bp_addr): When setting
193         the bp addr_string, use the string the function was called
194         with instead of using sprintf to write a new one. This
195         avoids a problem with truncating 64-bit addresses.
196
197         * library/srcbar.itcl (SrcBar::create_buttons) Don't
198         set width of address label.
199         (SrcBar::address) When the address changes, recompute
200         width of address label.  If it is more than 10, force it
201         to 18, otherwise use 10.
202         
203 2001-10-29  Martin M. Hunt  <hunt@redhat.com>   
204
205         * generic/gdbtk-bp.c (gdb_find_bp_at_addr): Use
206         string_to_core_addr to read address so 64 bits will work.
207         (gdb_set_bp): Set error message with Tcl_SetObjResult()
208         so it will be displayed.
209         (gdb_set_bp_addr):Use string_to_core_addr to read address.
210         Set error message with Tcl_SetObjResult().
211
212         * generic/gdbtk-cmds.c (gdb_get_mem): :Use string_to_core_addr 
213         to read address. Set error message with Tcl_SetObjResult() or
214         Tcl_WrongNumArgs.
215         
216 2001-10-27  Tom Tromey  <tromey@redhat.com>
217
218         * tclIndex: Updated.
219         * library/main.tcl: Add session_notice_file_change to
220         file_changed_hook.
221         * library/session.tcl (session_load): Only load the executable.
222         (session_notice_file_change): New proc.
223         (SESSION_exe_name): New proc.
224         (session_save): Use it.
225         (session_notice_file_change): Likewise.
226         * library/interface.tcl (gdbtk_tcl_exec_file_display): Don't call
227         session_save.
228         (gdbtk_tcl_preloop): Don't set executable name or try to find
229         main.  Notice a new session if required.
230         
231 2001-10-18  Martin M. Hunt  <hunt@redhat.com>
232         
233         * library/srcpref.itb (SrcPref::contructor): Move array
234         initialization to _init_var.
235         (SrcPref::_init_var): New method to initialize _saved and 
236         _new arrays.
237         (SrcPref::buildwin): Rename to _buildwin. Have widgets use 
238         _new instead of [pref varname ...].  Set initial value of
239         tab size spinint.
240         (SrcPref::_apply): Set prefs with values from the _new array.
241         (SrcPref::_cancel): Reset disassembly flavor and don't call 
242         _save because nothing is saved unless OK is selected.
243         (SrcPref::set_flavor): Rename to _set_flavor.
244         (SrcPref::_pick): Just set _new, not prefs.
245         
246         * library/srcpref.ith: Add private variable _new and
247         private method cancel. Rename others with leading underscore.
248
249 2001-10-16  Andrew Cagney  <ac131313@redhat.com>
250
251         From 2001-08-29 John Moore <jmoore@redhat.com>:
252         * gdbtk/generic/gdbtk-cmds.c (gdb_disassemble): Replaced
253         parse_and_eval_address() with string_to_core_addr().
254         (gdb_load_disassembly): Same.
255         (gdb_set_mem): Ditto.
256         * gdbtk/generic/gdbtk-stack.c (gdb_block_vars): Ditto.
257         * gdbtk/generic/gdbtk-varobj.c (variable_create): Same.
258
259 2001-10-17  Tom Tromey  <tromey@cygnus.com>
260
261         * console.itb (Console::_build_win): Handle bindings which
262         are ";".  Also, completely override underlying Text binding.
263
264 2001-10-12  Tom Tromey  <tromey@redhat.com>
265
266         * library/console.itb (Console::_build_win): Bind Control-m and
267         Control-j.
268
269 2001-10-12  Daniel Jacobowitz  <drow@mvista.com>
270
271         * generic/gdbtk-cmds.c (gdb_listfuncs): Use ALL_BLOCK_SYMBOLS.
272         * generic/gdbtk-stack.c (gdb_block_vars): Likewise.
273         (gdb_get_blocks): Likewise.
274         (gdb_get_vars_command): Likewise.
275
276 2001-10-10  Ian Roxborough  <irox@redhat.com>
277
278         * library/gdbtoolbar.itcl (GDBToolBar::add): Add option
279         for "custom" type. 
280         (GDBToolBar::toolbar_add_custom): new method.
281
282 2001-10-06  Tom Tromey  <tromey@redhat.com>
283
284         * library/session.tcl (SESSION_recreate_bps): Use
285         gdb_run_readline_command_no_output to recreate breakpoints.
286         * library/interface.tcl (gdb_run_readline_command): Set
287         readlineShowUser element of gdbtk_state.
288         (gdb_run_readline_command_no_output): New proc.
289         (initialize_gdbtk): Initialize readlineShowUser element.
290         (gdbtk_tcl_readline_begin): Use readlineShowUser element.
291         (gdbtk_tcl_readline): Likewise.
292
293 2001-10-05  Keith Seitz  <keiths@redhat.com>
294
295         * generic/gdbtk-bp.c (get_breakpoint_commands): New function.
296         (gdb_get_breakpoint_info): Use gdb_breakpoint_commands to
297         assemble breakpoint commands information.
298
299 2001-10-02  Tom Tromey  <tromey@redhat.com>
300
301         * library/tclIndex: Updated.
302         * library/prefs.tcl (pref_set_defaults): Define gdb/editor
303         preference.
304         * library/srcpref.itb (SrcPref::constructor): Save gdb/editor
305         preference.
306         (SrcPref::build_win): Added external editor control.
307         * library/srctextwin.itb (SrcTextWin::do_source_popup): Always
308         enable external editor.  Use `code' instead of `list'.
309         * library/srcwin.itb (SrcWin::edit): Use Editor::edit.
310         * library/editor.tcl: New file.
311         * generic/gdbtk.c (enable_external_editor): Removed.
312         (external_editor_command): Default to NULL.
313         (gdbtk_init): Don't set enable_external_editor.  Free external
314         editor command when finished with it.
315
316 2001-09-28  Tom Tromey  <tromey@redhat.com>
317
318         * library/console.itb (Console::_operate_and_get_next): New method.
319         (Console::_setprompt): Insert next history element if requested.
320         (Console::_build_win): Bind C-o to _operate_and_get_next.
321         * library/console.ith (_operate_and_get_next): Declare.
322         (_pendingHistElement): New variable.
323
324 2001-09-27  Elena Zannoni  <ezannoni@redhat.com>
325
326         * library/targetselection.itb (build_win, default_port): Handle
327         hpux 11.00.
328
329 2001-09-27  Keith Seitz  <keiths@redhat.com>
330
331         * library/prefs.tcl (escape_value): Update to work
332         with Tcl's new and old syntax.
333
334 2001-09-19  Keith Seitz  <keiths@redhat.com>
335
336         * library/main.tcl: Append iwidgets library path, if needed.
337         * generic/gdbtk.c (gdbtk_init): Add TCLLIBPATH to iwidgets
338         package index.
339         Define IWIDGETS_LIBRARY in interpreter so that we can add
340         this path to the auto_path at the right time later.
341
342 2001-09-10  Ian Roxborough <irox@redhat.com>
343
344         * generic/gdbtk.c (gdbtk_init): Set IWIDGETS_LIBRARY if
345         Insight is launched from within the build directory.
346         * library/util.tcl (find_iwidgets_library): Removed.
347         * library/main.tcl: Don't call find_iwidgets_library, do a 
348         package require instead.
349
350 2001-08-28  Keith Seitz  <keiths@redhat.com>
351
352         * library/bpwin.itb (bp_select): Use standard preferences
353         for selection fg & bg, not tixOption database.
354
355         * process.itb, tracedlg.tcl: Remove all traces of those
356         three evil little letters, "t", "i", "x".
357
358 2001-08-28  Keith Seitz  <keiths@redhat.com>
359
360         * library/tracedlg.tcl (build_win): Use libgui's
361         Labelledframe instead of tixLabelFrame.
362         Use iwidgets::scrolledlistbox instead of tixScrolledListbox.
363         (edit): Check if there is a selection in the listbox
364         before proceeding.
365         Escape method callbacks before passing to ActionDlg.
366
367         * library/actiondlg.tcl (constructor): Use "gdb_reginfo"
368
369 2001-08-28  Keith Seitz  <keiths@redhat.com>
370
371         * library/tdump.tcl (class TdumpWin): Inherit from GDBWin
372         and ManagedWin.
373         (constructor): Remove old itcl2 handling code and name the
374         window.
375         (build_win): Use iwidgets::scrolledtext instead of
376         tixScrolledText.
377         (twin): Remove unused variable. Use itk_component(stext)
378         instead.
379         (maxwidth): Remove unused variable.
380         (destructor): Remove unused method.
381         (config): Ditto.
382
383 2001-08-28  Keith Seitz  <keiths@redhat.com>
384
385         * library/srcpref.itb (build_win): Use iwidgets::spinint
386         instead of tixControl.
387
388 2001-08-28  Keith Seitz  <keiths@redhat.com>
389
390         * library/process.ith (top): Remove unused protected variable.
391         Use GDBWin::_top instead.
392         (lb): Remove unused variable.
393         (change_context): Remove parameter. It's not needed.
394         * library/process.itb (constructor): Don't set the variable
395         "top". It isn't needed. GDBWin has this information.
396         (buildwin): Get rid of tixScrolledListbox. Use
397         iwidgets::scrolledlistbox instead.
398         Loose the balloon help. It annoys more than helps.
399         (update): Use new scrolledlistbox component.
400         Split the list of threads BEFORE doing llength. Someone
401         shoot me if this has to be fixed one more time...
402         (change_context): Update definition and usage.
403         (cursor): Use GDBWin::_top instead of our own private copy.
404
405 2001-08-28  Keith Seitz  <keiths@redhat.com>
406
407         * generic/gdbtk-cmds.c (gdb_disassemble_driver): We should be
408         looking for "thread", not "threads" to determine if we have
409         a multi-threaded child process.
410
411 2001-08-28  Keith Seitz  <keiths@redhat.com>
412
413         * library/bpwin.itb (build_win): Get rid of tixScrolledWindow
414         and use iwidgets::scrolledframe until something better comes
415         along.
416
417 2001-08-23  Tom Tromey  <tromey@redhat.com>
418
419         * library/srcwin.itb (SrcWin::fillFuncCB): Sort function names.
420
421 2001-08-23  Martin M. Hunt  <hunt@redhat.com>
422
423         * library/targetselection.itb: Added PMON and DDB targets.
424
425 2001-08-22  Tom Tromey  <tromey@redhat.com>
426
427         * library/prefs.tcl (pref_read): Version number appears in
428         comment.
429
430 2001-08-21  Keith Seitz  <keiths@redhat.com>
431
432         * generic/gdbtk.c (gdbtk_init): Gdb just fixed this. No
433         need for the workaround I just checked in anymore.
434
435 2001-08-21  Keith Seitz  <keiths@redhat.com>
436
437         * generic/gdbtk.c (gdbtk_init): Reinitialize disassemle info's
438         stream parameter: we just deleted the one it saved when we
439         re-routed gdb_stdout to our own gdb_stdout.
440
441 2001-08-20  Keith Seitz  <keiths@redhat.com>
442
443         * library/stackwin.itb (build_win): Use iwidget's scrolled listbox
444         instead of tix scrolled list box.
445         (update): Update to use iwidget's scrolled list box.
446         (change_frame): Ditto.
447         Remove parameters.
448         * library/stackwin.ith (change_frame): Remove all parameters.
449
450 2001-08-20  Keith Seitz  <keiths@redhat.com>
451
452         * generic/gdbtk-cmds.c (gdb_load_disassembly): Save the original
453         address from parse_and_eval_address: if find_pc_partial_function
454         errors, we will lose our original address.
455         If find_pc_partial_function does error, print out both
456         the address we thought we were disassembling at AND the address
457         we actually did disassemble at. This should help elide address-
458         to-pointer and pointer-to-address problems.
459         * library/srctextwin.itb (FillAssembly): When gdb_load_disassembly
460         fails, use its error message instead of the cooked "Unable to
461         Read insturctions..." message.
462         (UnLoadFromCache): If oldpane is empty, don't try show it,
463         don't try to set our view to it, don't do anything but
464         erase the given pane.
465
466 2001-08-17  Keith Seitz  <keiths@redhat.com>
467
468         * generic/gdbtk-varobj.c (variable_obj_command): Pass pointer
469         to varobj* when calling variable_update (API changed).
470         (variable_create): Don't pass varobj* to install_variable. It's
471         not used.
472         (variable_children): Likewise.
473         (variable_update): Change parameters to accept pointer to
474         varobj*. Matches API change in varobj_update.
475         (install_variable): Remove unused "var" parameter.
476
477 2001-08-16  Keith Seitz  <keiths@redhat.com>
478
479         * generic/gdbtk.c (gdbtk_init): Revert change from earlier.
480         It is insufficient. We must get the absolute pathname
481         from autoconf.
482         Don't bother setting TCL_LIBRARY: it must be set already
483         in order for us to execute a script.
484
485 2001-08-16  Keith Seitz  <keiths@redhat.com>
486
487         * library/globalpref.ith (_change_font, _change_size): New
488         private methods.
489         (_size): New private variable.
490         (font_changed, wfont_changed): Removed.
491         * library/globalpref.itb (make_font_item): Change combobox
492         callback to use _change_font.
493         Replace tixControl with iwidgets::spinint.
494         (font_changed, wfont_changed): Removed.
495         (_change_font, _change_size): New private methods.
496         * tclIndex: Regenerate.
497
498 2001-08-16  Keith Seitz  <keiths@redhat.com>
499
500         * generic/gdbtk.c (gdbtk_init): Make sure we're working with
501         absolute pathnames in the *_LIBRAY variables.
502
503 2001-08-16  Keith Seitz  <keiths@redhat.com>
504
505         From Ian Roxborough  <irox@redhat.com>
506         * generic/gdbtk-hooks.c (x_event): Deal with Tcl API insanity
507         for Tcl_ObjGetVar2 or Tcl_GetObjVar2.
508         (gdbtk_trace_find): Likewise for Tcl_GlobalEvalObj
509         or Tcl_EvalObj (TCL_EVAL_GLOBAL).
510
511 2001-08-15  Keith Seitz  <keiths@redhat.com>
512
513         * generic/gdbtk.c (gdbtk_init): Don't assume a particular
514         layout for the source directory, let the Makefile tell us
515         where the real source directory is.
516         When compiling under Cygwin, convert the (posix) path to a
517         win32 path, which is what tcl really wants.
518
519 2001-08-15  Ian Roxborough  <irox@redhat.com>
520
521         * generic/gdbtk.c (gdbtk_init): If Insight isn't
522         executed from inside a directory called "bin",
523         assume that we are being running from the build
524         directory and set the *_LIBRARY variables to point
525         to (hopefully) the correct source directory.
526
527 2001-08-13  Keith Seitz  <keiths@redhat.com>
528
529         * library/regwin.ith: Rewrite.
530         * library/regwin.itb: Rewrite.
531         * library/tclIndex: Regenerate.
532
533 2001-08-13  Keith Seitz  <keiths@redhat.com>
534
535         * generic/gdbtk-register.c (gdb_register_info): New function.
536         Consolidates all register handling.
537         (get_register_size): New function.
538         (gdb_changed_register_list, gdb_fetch_registers,
539         gdb_regnames): Deprecate.
540         (setup_architecture_data): Free old register cache
541         when necessary.
542
543 2001-08-13  Keith Seitz  <keiths@redhat.com>
544
545         * generic/gdbtk-hooks.c (gdbtk_add_hooks): Register
546         architecture_changed event handler.
547         (gdbtk_architecture_changed): New function.
548         * library/gdbevent.ith (class ArchChangdEvent): New event.
549         * library/ehandler.ith (arch_changed): New method. Handler
550         for ArchChangedEvents.
551         * library/interface.tcl (gdbtk_tcl_architecture_changed): New
552         proc to handle architecture change events.
553
554 2001-08-09  Keith Seitz  <keiths@redhat.com>
555
556         * library/prefs.tcl (pref_set_defaults): Add new font
557         color defaults for highlighting, headers, selecting, and "normal".
558         Get rid of gdb/variable/highlight_fg and gdb/reg/highlight_fg.
559         * library/variables.tcl (build_win): Use gdb/font/highlight_fg
560         and gdb/font/highilght_bg to set highlight style.
561         * library/memwin.itb (build_win): Use header_fg and header_bg.
562
563 2001-08-03  Keith Seitz  <keiths@redhat.com>
564
565         * library/srcbar.itcl (_post): New method.
566         (_update_file_menu): New method.
567         (create_file_menu): Move the guts to _update_file_menu.
568         Add a post command to the menu.
569         * library/interface.tcl (gdbtk_tcl_file_changed): Catch the
570         call to run_hooks.
571         (gdbtk_tcl_exec_file_display): Save the new session, too.
572         (set_exe_name): Don't bother saving the session here.
573         (_close_file): Save the session here, too.
574         (gdbtk_clear_file): Catch the call to run_hooks, too.
575         * library/gdbmenubar.itcl (menubar_new_menu): Allow caller
576         to specify optional arguments to be passed to Tk when
577         creating the menu.
578         Tk's "menu add" command returns an empty string. Save the
579         menu's index in the parent instead. This is what all
580         the menu subcommands want.
581
582 2001-08-02  Keith Seitz  <keiths@redhat.com>
583
584         * generic/gdbtk-bp.c (gdb_get_breakpoint_info): Update
585         with recent breakpoint structure changes in gdb.
586         (gdb_set_bp_addr): Likewise.
587         (gdb_get_tracepoint_info): Update with recent tracepoint
588         structure changes in gdb.
589
590 2001-07-31  Elena Zannoni  <ezannoni@redhat.com>
591
592         * generic/gdbtk-cmds.c: Don't include regcache.h.
593         * generic/gdbtk-register.c: Include regcache.h.
594         
595 2001-07-26  Jonathan Larmour  <jlarmour@redhat.com>
596
597         * library/prefs.tcl (pref_set_defaults): Add additional entry
598         points for eCos if main is not present.
599
600 2001-07-21  Martin M. Hunt  <hunt@redhat.com>
601
602         * library/interface.tcl (gdbtk_locate_main): Fix function 
603         so that it returns either a null string or a valid location,
604         as documented.
605
606         * library/variables.tcl (build_menu_helper): Set
607         the Format menu option to "disabled" initially.
608
609 2001-07-20  Martin M. Hunt  <hunt@redhat.com>
610
611         * library/managedwin.itb: Revert to global to properly
612         initialize geometry with some window managers.
613         * library/managedwin.ith (shutdown): Remove _geometry.
614
615         * library/memwin.itb: Fix syntax to open a new window
616         using the "-force" flag.
617
618         * generic/gdbtk-register.c (gdb_regnames): Fix 'if'
619         statement so count is decremented only if "-numbers"
620         is the first arg.
621
622 2001-07-18  Martin M. Hunt  <hunt@redhat.com>
623
624         * library/util.tcl (find_iwidgets_library): Look
625         for iwidgets3* so we don't accidently find iwidgets2.x.
626
627 2001-07-16  Nick Duffek  <nsd@redhat.com>
628
629         * library/regwin.itb (RegWin::build_win): Add radio button
630         for unsigned register format.
631         (RegWin::reg_select): Iterate through 8 rather than 7 formats.
632         (RegWin::but3): Add menu option for unsigned register format.
633
634 2001-07-13  Keith Seitz  <keiths@redhat.com>
635
636         * library/download.itb (constructor): Use the iwidgets
637         feedback widget instead of tixMeter.
638         Pack all the topmost widgets together -- don't use grid.
639         (update_download): Support the feedback widget.
640         (done): Ditto.
641
642         * library/download.ith (steps): New private variable.
643         (num_steps): New common.
644
645 2001-07-12  Keith Seitz  <keiths@redhat.com>
646
647         * library/srcbar.itcl (create_trace_buttons): Fix
648         syntax errors.
649
650         * library/tracedlg.tcl: Update to work with Itcl3.0
651         and ManagedWin.
652
653         * library/actiondlg.tcl: Update to work with Itcl3.0
654         and ManagedWin.
655         (build_win): Use iwidgets scrolled listbox instead
656         of the tix one.
657
658 2001-07-05  Keith Seitz  <keiths@redhat.com>
659
660         * library/managedwin.itb (_create): Don't pass "-over"
661         to center_window unless we really are asked to put the
662         window over another!
663
664 2001-06-18  Keith Seitz  <keiths@redhat.com>
665
666         * library/managedwin.itb (_create): When creating a
667         window over another, be sure to center on the window,
668         not the object.
669
670 2001-06-13  Keith Seitz  <keiths@redhat.com>
671
672         * generic/gdbtk-bp.c (gdbtk_tracepoint_create): Change
673         parameter to int to match breakpoint notifications.
674         (gdbtk_tracepoint_modify): Ditto.
675         (gdbtk_tracepoint_delete): Ditto.
676         (tracepoint_notify): Ditto.
677         * generic/gdbtk-hooks.c (gdbtk_add_hooks): Remove
678         tracepoint hooks and install tracepoint event handlers.
679
680 2001-06-11  Tom Tromey  <tromey@redhat.com>
681
682         * library/help/session.html: New file.
683         * library/help/index.html: Added link.
684
685         * library/session.tcl (session_save): Save breakpoints.
686         (SESSION_serialize_bps): New proc.
687         (SESSION_recreate_bps): New proc.
688         (session_load): Recreate breakpoints.
689         * library/util.tcl (bp_exists): Expect user specification in
690         breakpoint info.
691         * library/srctextwin.itb (SrcTextWin::showBPBalloon): Expect user
692         specification in breakpoint info.
693         * library/gdbevent.itb (BreakpointEvent::_init): Initialize
694         _user_specification.
695         (BreakpointEvent::get): Handle user_specification.
696         * library/gdbevent.ith (BreakpointEvent): Added
697         _user_specification field.
698         * library/bpwin.itb (BpWin::bp_store): Expect user specification
699         and use it when saving.
700         (BpWin::bp_type): Expect user specification.
701         * generic/gdbtk-bp.c (BREAKPOINT_IS_WATCHPOINT): New macro.
702         (gdb_get_breakpoint_info): Added `user specification' to result.
703
704 2001-06-11  Keith Seitz  <keiths@redhat.com>
705
706         * generic/gdbtk-stack.c (gdb_stack): Return TCL_ERROR if
707         we are unable to get the current frame. get_current_frame
708         may have output an error message.
709
710 2001-06-07  Keith Seitz  <keiths@redhat.com>
711
712         * generic/gdbtk-hooks.c (x_event): Remove unused variable "count".
713         (tracepoint_notify): Remove superfluous declaration. This funtion
714         was moved to gdbtk-bp.c.
715
716         * generic/gdbtk-bp.c (gdb_find_bp_at_addr): Remove unused variable
717         "b".
718         (gdb_set_bp): Remove unused variable "cmd".
719         (gdb_set_bp_addr): Remove unused variables "cmd" and "filename".
720
721         * generic/gdbtk.c (gdbtk_init): Remove unused variables
722         "auto_path_name", "auto_path_elem", and "found_main".
723
724 2001-06-05  Martin Hunt  <hunt@redhat.com>                                    
725
726         * generic/gdbtk.c (_initialize_gdbtk): Don't close console yet.
727         (gdbtk_init): Wait until after tcl/tk stuff is all initialized
728         to close console (on Windows) and redirect ouput.
729         
730 2001-06-05  Martin Hunt  <hunt@redhat.com>
731
732         * library/globalpref.itb(build_win): Don't change directory
733         before building icon combobox.  Add debug lines.
734
735 2001-06-04  Keith Seitz  <keiths@redhat.com>
736
737         * library/srcbar.itcl (constructor): Set the toolbar's initial
738         state.
739
740 2001-06-04  Keith Seitz  <keiths@redhat.com>
741
742         * library/interface.tcl (gdb_update_hook): Mark as deprecated.
743         (gdbtk_update): Dispatch and UpdateEvent, too.
744         * library/ehandler.ith (update): New event handler.
745         * library/gdbevent.ith (UpdateEvent): New event.
746         * library/gdbevent.itb (UpdateEvent::constructor): New method.
747         (UpdateEvent::get): New method.
748         * library/kod.ith (udpate): Match event handler definition.
749         * library/kod.itb (update): Ditto.
750         (build_win): Pass dummy argument to update method.
751         (top): Ditto.
752         (up): Ditto.
753         (set_variable): Ditto.
754         * library/memwin.ith (update): Match event handler definition.
755         * library/memwin.itb (update): Ditto.
756         (constructor): Remove gdb_update_hook.
757         (destructor): Ditto.
758         * library/process.ith (update): Match event handler definition.
759         * library/process.itb (update): Ditto.
760         (constructor): Remove gdb_update_hook.
761         (destructor): Ditto.
762         (build_win): Pass dummy argument to update method.
763         * library/regwin.ith (update): Match event handler definition.
764         * library/regwin.itb (update): Ditto.
765         (constructor): Remove gdb_update_hook.
766         (destructor): Ditto.
767         (build_win): Pass dummy argument to update method.
768         (but3): Ditto.
769         (unedit): Ditto.
770         * library/stackwin.ith (update): Match event handler definition.
771         * library/stackwin.itb (update): Ditto.
772         (constructor): Remove gdb_update_hook.
773         (destructor): Ditto.
774         (build_win): Pass dummy argument to update method.
775         * library/tdump.tcl (update): Match event handler definition.
776         (constructor): Remove gdb_update_hook.
777         (destructor): Ditto.
778         (build_win): Pass dummy argument to update method.
779         * library/variables.tcl (update): Match event handler definition.
780         (build_win): Pass dummy argument to update method.
781         * library/locals.tcl (update): Match event handler definition.
782         (constructor): Pass dummy argument to update method.
783         * library/watch.tcl (update): Match event handler definition.
784         Pass dummy argument to VariableWin::update.
785         (add): Pass dummy argument to update method.
786         * library/srcwin.ith (update): New method.
787         (update_hook_init): Remove.
788         * library/srcwin.itb (update): New method.
789         (constructor): Remove gdb_update_hook.
790         (destructor): Ditto.
791         * tclIndex: Regenerate.
792
793 2001-06-01  Keith Seitz  <keiths@redhat.com>
794
795         * library/console.itb (constructor): Pass dummy argument
796         to idle method.
797         (destructor): Ditto.
798
799 2001-05-31  Keith Seitz  <keiths@redhat.com>
800
801         * library/interface.tcl (gdbtk_idle): Run hooks, too,
802         until they're all gone.
803
804 2001-05-31  Keith Seitz  <keiths@redhat.com>
805
806         * library/interface.tcl (gdb_idle_hook): Mark as deprecated.
807         (gdbtk_idle): Dispatch an IdleEvent. gdb_idle_hook is gone.
808         * library/ehandler.ith (idle): New event handler.
809         * library/gdbevent.ith (IdleEvent): New event.
810         * library/console.ith (idle): Match event handler definition.
811         * library/console.itb (idle): Ditto.
812         (constructor): Remove gdb_idle_hook.
813         (destructor): Ditto.
814         * library/kod.ith (idle): Match event handler definition.
815         * library/kod.itb (idle): Ditto.
816         (constructor): Remove gdb_idle_hook.
817         (destructor): Ditto.
818         * library/memwin.ith (idle): Match event handler definition.
819         * library/memwin.itb (idle): Ditto.
820         (constructor): Remove gdb_idle_hook.
821         (destructor): Ditto.
822         * library/pluginwin.itcl (stopped): Rename to "idle" and
823         match event handler definition.
824         Fix misleading comments.
825         * library/process.ith (idle): Match event handler definition.
826         * library/process.itb (idle): Ditto.
827         (constructor): Remove gdb_idle_hook.
828         (destructor): Ditto.
829         * library/regwin.ith (idle): Match event handler definition.
830         * library/regwin.itb (idle): Ditto.
831         (constructor): Remove gdb_idle_hook.
832         (destructor): Ditto.
833         * library/srcbar.itcl (idle): New method.
834         (constructor): Remove gdb_idle_hook.
835         (destructor): Ditto.
836         * library/srcwin.ith (idle): Match event handler definition.
837         * library/srcwin.itb (idle): Ditto.
838         (constructor): Remove gdb_idle_hook.
839         (destructor): Ditto.
840         * library/stackwin.ith (idle): Match event handler definition.
841         * library/stackwin.itb (idle): Ditto.
842         (constructor): Remove gdb_idle_hook.
843         (destructor): Ditto.
844         * library/variables.tcl (idle): Match event handler definition.
845         (constructor): Remove gdb_idle_hook.
846         (destructor): Ditto.
847         * library/plugins/rhabout/rhabout.itcl (stopped): Rename
848         to "idle" and match new event handler definition.
849         * library/tclIndex: Regenerated.
850
851 2001-05-31  Keith Seitz  <keiths@redhat.com>
852
853         * library/interface.tcl (gdb_busy_hook): Deprecate.
854         (gdbtk_busy): Create and dispatch a BusyEvent instead
855         of running hooks.
856         * library/ehandler.ith (busy): New event handler.
857         * library/gdbevent.ith (BusyEvent): New event class.
858         * library/console.ith: Inherit from GDBEventHandler.
859         (busy): Match event handler definition.
860         * library/console.itb (busy): Ditto.
861         (constructor): Remove gdb_busy_event.
862         (destructor): Ditto.
863         * library/kod.ith (busy): Match event handler definition.
864         * library/kod.itb (busy): Ditto.
865         (constructor): Remove gdb_busy_hook.
866         (destructor): Ditto.
867         * library/memwin.ith (busy): Match event handler definition.
868         * library/memwin.itb (busy): Ditto.
869         (constructor): Remove gdb_busy_hook.
870         (destructor): Ditto.
871         * library/pluginwin.itcl (running): Rename to "busy" and
872         match event handler definition.
873         (consturctor): Remove gdb_busy_hook.
874         (destructor): Ditto.
875         * library/process.ith (busy): Match event handler definition.
876         * library/process.itb (busy): Ditto.
877         (constructor): Remove gdb_busy_hook.
878         (destructor): Ditto.
879         * library/regwin.ith (busy): Match event handler definition.
880         * library/regwin.itb (busy): Ditto.
881         (constructor): Remove gdb_busy_hook.
882         (destructor): Ditto.
883         * library/srcbar.itcl (constructor): Remove gdb_busy_hook.
884         (destructor): Ditto.
885         (busy): New method.
886         * library/srcwin.ith (busy): Match event handler definition.
887         * library/srcwin.itb (busy): Ditto.
888         Only do the "busy" stuff if do_updates is set.
889         (toggle_updates): Remove gdb_busy_hook.
890         (constructor): Ditto.
891         (destructor): Ditto.
892         * library/stackwin.ith (busy): Match event handler definition.
893         * library/stackwin.itb (busy): Ditto.
894         (constructor): Remove gdb_busy_hook.
895         (destructor): Ditto.
896         * library/variables.tcl (constructor): Ditto.
897         (destructor): Ditto.
898         (disable_ui): Rename to "busy" and match event handler
899         definition.
900         * library/plugins/rhabout/rhabout.itcl (running): Rename
901         to "busy" and match new event handler definition.
902         * library/tclIndex: Regenerated.
903
904 2001-05-25  Keith Seitz  <keiths@cygnus.com>
905
906         * generic/gdbtk-cmds.c (bin2hex): New function.
907         (fromhex): New function.
908         (gdb_set_mem): New function.
909         (Gdbtk_Init): Add new command, "gdb_set_mem".
910         * library/memwin.itb (edit): Use "gdb_set_mem" to set
911         memory, not some gdb_cmd contrivance.
912         When sending data to gdb_set_mem, make sure that it
913         is properly zero-padded.
914
915 2001-05-22  Keith Seitz  <keiths@cygnus.com>
916
917         * memwin.ith (error_dialog): Declare public method.
918         * memwin.itb (error_dialog): Define.
919         (edit): When attempting to set memory, post an error dialog
920         if gdb told us an error occurred while writing the memory.
921
922 2001-05-22  Keith Seitz  <keiths@cygnus.com>
923
924         * library/interface.tcl (gdbtk_tcl_file_changed): Handle
925         the case of empty-string files, sent by gdb when the
926         user requests to reset the file.
927         (_close_file): New proc to deal with closing an exe.
928         * library/srcbar.itcl (create_file_menu): Add "Close" menu
929         option.
930         (create_view_menu): Change key binding for Watch Window to
931         Ctrl+T to accomodate "Close" going to Ctrl+W.
932         * library/srctextwin.itb (config_win): Update key binding
933         for Watch Window.
934         Add key binding for Close.
935         (do_key): Add "close".
936         (_clear_cache): Finally implement. I think this works now.
937
938 2001-05-22  Keith Seitz  <keiths@cygnus.com>
939
940         * library/variables.tcl (postMenu): Add mysterious workaround
941         for popup menu bug in Tk for windows.
942         Highlight the selection, too.
943
944 2001-05-21  Keith Seitz  <keiths@cygnus.com>
945
946         * library/managedwin.itb (_create): Check the geometry of
947         any window we create. Don't create a window that is
948         bigger than the screen.
949
950 2001-05-18  Keith Seitz  <keiths@cygnus.com>
951
952         * library/managedwin.ith (_geometry): Use a protected variable
953         instead of a global from ManagedWin::reveal.
954         (open): Make arg list reflect managedwin.itb.
955         * library/managedwin.itb (window_name): Use class variable
956         _top instead of recomputing the toplevel every time.
957         (reveal): Ditto.
958         Use class variable "_geometry" instead of global variable.
959         (shutdown): Do not save ModalDialogs.
960         (_create): If centering the new window, use libgui's
961         center_window to do it.
962
963 2001-05-18  Keith Seitz  <keiths@cygnus.com>
964
965         * generic/gdbtk-hooks.c (gdbtk_wait): Change integer pid
966         argument to match gdb's new "ptid_t" pids.
967
968 2001-05-14  Keith Seitz  <keiths@cygnus.com>
969
970         * library/interface.tcl (gdbtk_quit_check): Don't save sessions
971         here. It doesn't work for the Console Window.
972         (gdbtk_cleanup): Save session information here.
973         (gdbtk_tcl_exec_file_display): When files are loaded,
974         get the full pathname to the exe.
975
976 2001-05-11  Tom Tromey  <tromey@redhat.com>
977
978         * library/prefs.tcl (pref_save): Fix bug when key in gdb space has
979         extra `/' in it.
980
981 2001-05-11  Kevin Buettner  <kevinb@redhat.com>
982
983         * generic/gdbtk-bp.c (set_raw_breakpoint): Revise declaration
984         to match the recently changed declaration in breakpoint.c. 
985         Update all callers.
986
987 2001-05-11  Keith Seitz  <keiths@cygnus.com>
988
989         * generic/gdbtk-bp.c (gdbtk_create_breakpoint): Safe guard
990         against "invalid" (internal) breakpoint numbers.
991         (gdbtk_modify_breakpoint): Ditto.
992         (gdbtk_delete_breakpoint): Ditto.
993
994 2001-05-10  Keith Seitz  <keiths@cygnus.com>
995
996         * generic/gdbtk-bp.c (gdb_set_bp): Generate a breakpoint event
997         when we create a breakpoint. The hook is no longer used.
998         (gdb_set_bp_addr): Ditto.
999
1000 2001-05-10  Keith Seitz  <keiths@cygnus.com>
1001
1002         * generic/gdbtk-bp.c (breakpoint_list, breakpoint_list_size): New
1003         variables. Gdb is forcing us to maintain our own breakpoint
1004         database.
1005         (Gdbtk_Breakpoint_Init): Initialize our breakpoint database.
1006         (gdb_find_bp_at_addr): Use our breakpoint database.
1007         (gdb_find_bp_at_line): Ditto.
1008         (gdb_get_breakpoint_list): Ditto.
1009         (gdb_get_breakpoint_info): Remove deleted breakpoint hack.
1010         (gdbtk_create_breakpoint): Moved here from gdbtk-hooks.c.
1011         Add breakpoint to our breakpoint database.
1012         (gdbtk_modify_breakpoint): Ditto the move.
1013         (gdbtk_delete_breakpoint): Ditto the move.
1014         Remove breakpoint from our database.
1015         (gdb_get_tracepoint_info): Remove delete tracepoint hack.
1016         It's not needed for tracepoints: they were implemented properly.
1017         (gdbtk_create_tracepoint): Moved here from gdbtk-hooks.c.
1018         (gdbtk_modify_tracepoint): Ditto.
1019         (gdbtk_delete_tracepoint): Ditto.
1020         * generic/gdbtk-hooks.c: Include "gdb-events.h".
1021         (gdbtk_create_breakpoint): Moved to gdbtk-bp.c
1022         (gdbtk_modify_breakpoint): Ditto.
1023         (gdbtk_delete_breakpoint): Ditto.
1024         (breakpoint_notify): Ditto.
1025         (gdbtk_create_tracepoint): Ditto.
1026         (gdbtk_modify_tracepoint): Ditto.
1027         (gdbtk_delete_tracepoint): Ditto.
1028         (tracepoint_notify): Ditto.
1029         (report_error): No longer static.
1030         (gdbtk_add_hooks): Create our own event handler
1031         vector and register breakpoint_create, breakpoint_modify,
1032         and breakpoint_delete handlers in gdbtk-bp.c.
1033
1034 2001-05-10  Keith Seitz  <keiths@cygnus.com>
1035
1036         * generic/gdbtk-cmds.c: Put on diet. All breakpoint-,
1037         tracepoint-, register-, and stack-related functions moved
1038         into separate files.
1039         (call_wrapper): Renamed to "gdbtk_call_wrapper" and export.
1040         Update all callers.
1041         * generic/gdbtk.h: Move all breakpoint-related stuff into
1042         gdbtk-bp.c.
1043         Remove declaration for "call_wrapper". Now in gdbtk-cmds.h
1044         (and called "gdbtk_call_wrapper").
1045         * generic/gdbtk-varobj.c: Include "gdbtk-cmds.h".
1046         * generic/gdbtk-cmds.h: New file.
1047         * generic/gdbtk-bp.c: New file.
1048         * generic/gdbtk-register.c: New file.
1049         * generic/gdbtk-stack.c: New file.
1050
1051 2001-05-09  Keith Seitz  <keiths@cygnus.com>
1052
1053         * library/interface.tcl (gdb_quit_hook): Remove. It's unused.
1054         (gdbtk_quit): Do no shutdown window manager and save
1055         preferences here.
1056         (gdbtk_cleanup): This is the proper place to do those
1057         things.
1058
1059 2001-05-07  Keith Seitz  <keiths@cygnus.com>
1060
1061         * library/globalpref.itb (build_win): Preserve the
1062         current working directory.
1063
1064 2001-05-06  Kevin Buettner  <kevinb@redhat.com>
1065
1066         * generic/gdbtk-cmds.c (gdb_target_has_execution_command)
1067         (get_clear_file): Use ptid_equal() for comparing ptid values. 
1068         Use ``null_ptid'' instead of 0 in comparisons against
1069         ``inferior_ptid''.
1070
1071         From Phil Edwards <pedwards@disaster.jaj.com>:
1072         * generic/gdbtk-cmds.c (gdb_target_has_execution_command)
1073         (get_clear_file): Rename ``inferior_pid'' to ``inferior_ptid''.
1074
1075 2001-05-01  Keith Seitz  <keiths@cygnus.com>
1076
1077         * gdbtk.c (gdbtk_init): Include the command "warp_pointer"
1078         for all platforms. Used for testing ONLY.
1079
1080         * util.tcl (gdbtk_read_defs): If there is an error reading
1081         the testsuite definition file, print the error message to
1082         stderr, not stdout. This will allow tcl to know that an error
1083         has occurred.
1084         (find_iwidgets_library): Make it work for running testsuites
1085         from installed directory.
1086
1087         * main.tcl: If we failed to find iwidgets, check if the
1088         testsuite is running. If it is running, do not pop up
1089         a dialog box: just print out the error and exit.
1090         Initialize _test(verbose) for the testsuite.
1091
1092 2001-04-23  Keith Seitz  <keiths@cygnus.com>
1093
1094         * generic/gdbtk-cmds.c (gdb_get_breakpoint_info): If unable
1095         to find the requested breakpoint for lookup, check if
1096         it is about to be deleted and return information about
1097         that breakpoint.
1098         (gdb_get_tracepoint_info): Ditto for tracepoints.
1099         * generic/gdbtk-hooks.c (gdbtk_deleted_bp): New global.
1100         (gdbtk_delete_breakpoint): Remember the deleted breakpoint
1101         for gdb_get_breakpoint_info, in case it is called during
1102         the event notification.
1103         (gdbtk_delete_tracepoints): Ditto for tracepoints.
1104
1105         * generic/gdbtk-cmds.c (gdb_entry_point): Return an empty
1106         string when there is no active target (i.e., there is no
1107         entry point to return yet).
1108
1109 2001-04-20  Keith Seitz  <keiths@cygnus.com>
1110
1111         * library/srctextwin.ith (handle_set_hook): Rename to set_variable.
1112         * library/srctextwin.itb (set_variable): Handle SetVariableEvent.
1113         (constructor): Remove gdb_set_hook.
1114         (destructor): Ditto.
1115         * library/srcbar.itcl: Inherit from GDBEventHandler.
1116         (set_hook): Rename to set_variable and handle SetVariableEvent.
1117         (constructor): Remove gdb_set_hook.
1118         (destructor): Ditto.
1119         * library/regwin.ith (handle_set_hook): Renamed to set_variable.
1120         * library/regwin.itb (set_variable): Handle SetVariableEvent.
1121         (constructor): Remove gdb_set_hook.
1122         (destructor): Ditto.
1123         * library/kod.ith (set_os): Renamed to "set_variable".
1124         * library/kod.itb (set_variable): Handle SetVariableEvent.
1125         (constructor): Remove gdb_set_hook.
1126         (destructor): Ditto.
1127         * library/tclIndex: Regenerated.
1128
1129 2001-04-20  Keith Seitz  <keiths@cygnus.com>
1130
1131         * library/interface.tcl (gdbtk_tcl_set_variable): New proc.
1132         * library/gdbevent.ith (SetVariableEvent): New event.
1133         * library/gdbevent.itb (SetVariableEvent::get): Override
1134         GDBEvent::get.
1135         * library/ehandler.ith (set_variable): New public method.
1136         * generic/gdbtk-hooks.c (gdbtk_set_hook): Let inteface function
1137         gdbtk_tcl_set_variable do all the work.
1138         * tclIndex: Regenerated.
1139
1140 2001-04-19  Keith Seitz  <keiths@cygnus.com>
1141
1142         * library/gdbevent.ith: New file. Defines new event model.
1143         * library/gdbevent.itb: New file. Implements new event
1144         model.
1145         * library/ehandler.ith: New file. Defines new event model.
1146         * library/ehandler.itb: New file. Implements new event
1147         model.
1148         * library/gdbwin.ith: Inherit from GDBEventHandler.
1149         (update): Delete unused method.
1150         (_state): Delete unused variable.
1151         * library/tclIndex: Regenerated.
1152
1153         * generic/gdbtk-cmds.c (gdb_set_bp): Use create_breakpoint_hook
1154         to notify gui of changes.
1155         (gdb_set_bp_addr): Ditto.
1156         (gdb_get_breakpoint_info): Update comments to match reality.
1157         * generic/gdbtk-hooks.c (breakpoint_notify): Only pass the
1158         breakpoint number which generated the event.
1159         (tracepoint_notify): Ditto for tracepoints.
1160         * library/interface.tcl (gdb_breakpoint_change_hook): Mark
1161         as deprecated and comment out definition.
1162         (gdbtk_tcl_breakpoint): Use new GDBEvent event "breakpoint"
1163         to notify rest of UI about breakpoint event.
1164         (gdbtk_tcl_tracepoint): Ditto for "tracepoint" event.
1165         * library/bpwin.ith (update): Renamed to "breakpoint".
1166         (breakpoint): New public method.
1167         (tracepoint): New public method.
1168         (bp_add): Take event as argument instead of number.
1169         (bp_modify): Ditto.
1170         (bp_delete): Ditto.
1171         * library/bpwin.itb (constructor): Remove
1172         gdb_breakpoint_changed_hook.
1173         (destructor): Ditto.
1174         (build_win): Insert any existing breakpoints by
1175         making BreakpointEvents for them.
1176         (breakpoint): Renamed from "update" to handle
1177         breakpoint events.
1178         Remove code to deal with tracepoints.
1179         (tracepoint): New method to handle tracepoint
1180         events.
1181         (bp_add): Deal with breakpoint events, not breakpoint
1182         numbers.
1183         (bp_modify): Ditto.
1184         (bp_delete): Ditto.
1185         * library/srctextwin.ith: Inherit from GDBWin.
1186         (breakpoint): New public method.
1187         (tracepoint): New public method.
1188         * library/srctextwin.itb (constructor): Remove
1189         gdb_breakpoint_changed_hook.
1190         (destructor): Ditto.
1191         (breakpoint): New method to handle breakpoint event.
1192         (tracepoint): New method to handle tracepoint event.
1193         (do_bp): Handle duplicate breakpoints for asm, too.
1194         (remove_bp_at_line): Delete breakpoints by number, not
1195         linespec. clear_command removes breakpoints from the
1196         breakpoint_chain BEFORE deleting the breakpoint. delete_command
1197         does this afterward (so we can call gdb_get_breakpoint_info on
1198         an about-to-be-deleted breakpoint).
1199
1200 2001-04-18  Martin M. Hunt  <hunt@redhat.com>
1201         
1202         * generic/gdbtk.c (gdbtk_init): Initialize uiout.
1203
1204 2001-04-18  Tom Tromey  <tromey@redhat.com>
1205
1206         * library/interface.tcl (run_executable): Use
1207         gdb_set_inferior_args.
1208         * library/session.tcl (session_load): Use gdb_set_inferior_args.
1209         * generic/gdbtk-cmds.c (Gdbtk_Init): Register
1210         gdb_set_inferior_args.
1211         (gdb_get_inferior_args): New function.
1212
1213 2001-04-17  Tom Tromey  <tromey@redhat.com>
1214
1215         * library/session.tcl (session_save): Use gdb_get_inferior_args.
1216         * generic/gdbtk-cmds.c (inferior_args): Removed.
1217         (Gdbtk_Init): Don't register gdb_inferior_args variable.  Do
1218         register gdb_get_inferior_args function.
1219         (gdb_get_inferior_args): New function.
1220
1221 2001-04-17  Fernando Nasser  <fnasser@redhat.com>
1222
1223         * library/variables.tcl (update): Temporary fix to the detection of
1224         "type_changed" condition.  Proper fix will require that this condition
1225         is properly reported by the underlying code.
1226
1227 2001-04-12  Nicholas Duffek  <nsd@redhat.com>
1228
1229         * generic/gdbtk-cmds.c (gdb_entry_point): New TCL command.
1230         * library/interface.tcl (gdbtk_locate_main): Try the program's
1231         entry point if no main function is found.
1232
1233 2001-04-10  Keith Seitz  <keiths@cygnus.com>
1234
1235         From Tom Tromey (tromey@redhat.com):
1236         * library/managedwin.itb (reveal): We actually do want to force
1237         the focus for Windows.
1238
1239 2001-04-09  Martin M. Hunt  <hunt@redhat.com>
1240
1241         * library/managedwin.itb (ManagedWin::reveal): After
1242         deiconifying window for the first time, set its geometry
1243         again, if the platform is unix. This fixes a problem with kde.
1244         (ManagedWin::_create): Set a variable with the initial
1245         geometry.
1246
1247 2001-04-04  Christopher Faylor  <cgf@redhat.com>
1248
1249         * generic/gdbtk.c: Add __CYGWIN__ conditional to WIN32 test.
1250
1251 2001-04-04  Martin M. Hunt  <hunt@redhat.com>
1252
1253         * generic/gdbtk-hooks.c (gdbtk_fileopen): New function.
1254         Initialize ui_file stuff for gdbtk.
1255         (gdbtk_fputs): Don't print if gdbtk_disable_fputs. Send
1256         stdlog and stdtarg to their handler functions.
1257
1258         * generic/gdbtk.c (Gdbtk_Init): Don't set gdb_stdlog 
1259         and gdb_stdtarg to gdb_stdout, 
1260         (gdbtk_init): Unset gdbtk_disable_fputs
1261         when ready to accept output from gdb. Remove references to
1262         fputs_unfiltered_hook.
1263         
1264         * generic/gdbtk.h: Declare new flag gdbtk_disable_fputs.
1265
1266         * generic/gdbtk-cmds.c (gdb_restore_fputs): Instead of setting
1267         fputs_unfiltered_hook, set the new flag gdbtk_disable_fputs.
1268
1269         * library/prefs.tcl (pref_set_defaults): Add defaults
1270         for log_fg and target_fg.
1271
1272         * library/interface.tcl (gdbtk_tcl_fputs_error): Use
1273         err_tag.
1274         (gdbtk_tcl_fputs_log): New function. Write log messages
1275         to console.
1276         (gdbtk_tcl_fputs_target): New function. Write target
1277         IO to console.
1278
1279         * library/console.ith (einsert): Add tag parameter.
1280         
1281         * library/console.itb (_build_win): Add new tags for log 
1282         and target IO.
1283         (einsert): Add tag parameter.
1284
1285 2001-04-02  Martin M. Hunt  <hunt@redhat.com>
1286
1287         * generic/gdbtk-cmds.c (gdb_loadfile): Adjust size of text_argv
1288         array to prevent writing out of range. Remove unused variables.
1289         Fix formatting.
1290         (gdb_get_tracepoint_info): Remove unused variable "fname".
1291         (gdb_load_disassembly): Remove unused variable "widget".
1292         (gdb_loc): Remove unused variable "sym".
1293         (gdb_set_bp_addr): Remove unused variable "line".
1294         (gdb_get_breakpoint_info): Remove unused variable "sym".
1295         (get_frame_name): Remove unused variable "name".
1296
1297 2001-03-29  Fernando Nasser  <fnasser@redhat.com>
1298
1299         * library/variables.tcl (update): Cope with varobj type changes.
1300
1301 2001-03-29  Fernando Nasser  <fnasser@redhat.com>
1302
1303         * library/variables.tcl (destructor): Remove file_changed_hook hook.
1304
1305 2001-03-29  Fernando Nasser  <fnasser@redhat.com>
1306
1307         * generic/gdbtk-varobj.c (variable_obj_command): Do not cache varobj
1308         handles as they may change -- use varobj_get_handle() instead.
1309
1310 2001-03-15  Martin Hunt  <hunt@redhat.com>
1311         * library/browserwin.itb: Change all references to freeze_me,
1312         thaw_me and Top to _freeze_me, _thaw_me, and _top to match 
1313         changes to managedwin.
1314         
1315         * library/kod.itb: Ditto.  
1316
1317 2001-03-15  Tom Tromey  <tromey@redhat.com>
1318
1319         * library/mempref.itb (MemPref::build_win): Correctly set initial
1320         value of combobox.
1321         * library/memwin.itb: Added copyright header.
1322         (MemWin::constructor): Set defaults from preference database.
1323         (MemWin::reconfig): Update preference database.
1324         * library/prefs.tcl (pref_save): Save `mem' preferences.
1325         (pref_set_defaults): Define default memory preferences.
1326
1327 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
1328
1329         * generic/gdbtk-cmds.c (map_arg_registers): Use REG_NUM instead of
1330         ARCH_REG_NUM.
1331
1332 2001-03-01  Nicholas Duffek  <nsd@redhat.com>
1333
1334         * README.GDBTK: Minor spelling, grammar, and formatting fixes.
1335
1336 2001-03-01  Keith Seitz  <keiths@cygnus.com>
1337
1338         * library/managedwin.ith: Move all implementations into
1339         managedwin.itb.
1340         (public variable nosize): Delete.
1341         (freeze_me, thaw_me, make_icon_window): Prepend with
1342         underscore to remind people these are not public
1343         methods/procs.
1344         (protected variable Top, screenwidth, screenheight): Ditto
1345         for these variables.
1346         (protected common manage_active, mainwindow): Delete.
1347         (enable): Delete.
1348         (reconfig): Add empty body.
1349         * library/managedwin.itb: Move all implementations from
1350         header here.
1351         Update all references to renamed variables/methods/procs.
1352         (destructor, restart, shutdown, _open, find) Let
1353         Itcl tell us which ManagedWins we have lying around.
1354         (enable): Delete.
1355         (reconfig): It's empty. Moved empty body to header.
1356
1357 2001-03-01  Nicholas Duffek  <nsd@redhat.com>
1358
1359         * library/managedwin.itb (ManagedWin::shutdown): Save each
1360         managed window's geometry as a preference.
1361         * library/managedwin.ith (ManagedWin::destructor): Don't save
1362         managed windows' geometries as preferences.
1363
1364 2001-03-01  Nicholas Duffek  <nsd@redhat.com>
1365
1366         * library/srctextwin.itb (SrcTextWin::location): Clear previous
1367         pane's cursor after switching panes.
1368
1369 2001-03-01  Nicholas Duffek  <nsd@redhat.com>
1370
1371         * library/srctextwin.itb (config_win): Give focus to $win.
1372
1373 Tue Feb 27 23:56:23 2001  Andrew Cagney  <ac131313@redhat.com>
1374
1375         * generic/gdbtk-cmds.c: Include recently created "regcache.h"
1376
1377 2001-02-27  Keith Seitz  <kseitz@nwlink.com>
1378
1379         * generic/gdbtk-cmds.c (gdb_fetch_registers): Mark
1380         the result as generating a list only if it really does
1381         generate a list.
1382
1383 2001-02-21  Fernando Nasser  <fnasser@redhat.com>
1384
1385         * TODO: New file.  Initial version of the TODO file, as posted to the
1386         insight list circa October 2000.
1387
1388 2001-02-14  Fernando Nasser  <fnasser@redhat.com>
1389
1390         From 2001-02-09  Martin Hunt  <hunt@redhat.com>
1391         * generic/gdbtk-cmds.c (gdb_load_disassembly): In mixed
1392         mode, source lines should be tagged with source_tag2.
1393
1394 2001-02-08  Fernando Nasser  <fnasser@redhat.com>
1395
1396         From 2001-02-06  Martin Hunt  <hunt@redhat.com>
1397         * library/debugwin.itb: Change window name to "Insight Debug"
1398         * library/embeddedwin.ith: Fix debug messages.
1399         * library/locals.tcl: Ditto.
1400         * library/watch.tcl (postMenu): Ditto.
1401         * library/variables.tcl: Ditto.
1402         * library/interface.tcl: Ditto.
1403         * library/regwin.itb: Ditto.
1404         * library/gdbwin.ith: Ditto.
1405         * library/srcbar.itcl: Ditto.
1406
1407 2001-02-06  Fernando Nasser  <fnasser@redhat.com>
1408
1409         Originally from Martin Hunt <hunt@redhat.com>, with modifications
1410         * library/srcwin.itb (_name): Check for errors when invoking
1411         gdb_find_file.
1412         * library/srctextwin.itb (_mtime_changed, location): Ditto.
1413         * generic/gdbtk-cmds.c (gdb_find_file_command): Better error checking.
1414         (full_lookup_symtab): Fix misleading comment.
1415
1416 2001-02-04  Fernando Nasser  <fnasser@redhat.com>
1417
1418         * library/plugins/plugins.tcl: Fix typos and remove "-transient"
1419         parameter from open command.
1420         * library/plugins/HOW-TO: New file.  Describes how to add a plug-in
1421         window to Insight.
1422
1423 2001-02-01  Fernando Nasser  <fnasser@redhat.com>
1424
1425         * library/images/insight.gif: New splash screen/about graphics.
1426         * library/images2/insight.gif: New splash screen/about graphics.
1427         * library/about.tcl: Update copyright, window title and change colors
1428         to match new splash screen/about images.
1429
1430 2001-02-01  Fernando Nasser  <fnasser@redhat.com>
1431
1432         * library/gdbtoolbar.itcl (add): New method.  Emulate the style of the
1433         toolbar iwidget commands.
1434         (toolbar_show): Old name.
1435         (show): New name.
1436         (toolbar_create_button): Old name.
1437         (create): New name.
1438         (toolbar_configure_button): Old name.
1439         (itemconfigure): New name.
1440         (toolbar_bind_button): Old name.
1441         (itembind): New name.
1442         (toolbar_set_button_balloon): Old name.
1443         (itemballoon): New name.
1444         (toolbar_add_button): Make private.
1445         (toolbar_add_label): Ditto.
1446         (toolbar_add_button_separator): Ditto.
1447         (toolbar_remove_button): Ditto.
1448         (tollbar_insert_button): Ditto.
1449         * library/srcbar.itcl: Adjust to the above syntax.
1450         * library/plugins/rhabout/rhabout.itcl: Ditto.
1451
1452 2001-02-01  Fernando Nasser  <fnasser@redhat.com>
1453
1454         * library/gdbmenubar.itcl (constructor): Remove unused code.
1455         (add): New method.  Emulate the style of the menubar iwidget commands.
1456         (menubar_show): Old name.
1457         (show): New name.
1458         (menubar_menu_exists): Old name.
1459         (exists): New name.
1460         (menubar_clear_menu): Old name.
1461         (clear): New name.
1462         (menubar_delete_menu): Old name.
1463         (delete): New name.
1464         (menubar_new_menu): Make private.  Does not return anything.
1465         (menubar_add_menu_command): Make private.
1466         (menubar_add_menu_separator): Ditto.
1467         (menubar_change_menu_state): Ditto.
1468         * library/srcbar.itcl: Adjust to the above syntax.
1469         * library/plugins/plugins.tcl: Ditto.
1470         * library/plugins/rhabout/rhabout.itcl: Ditto.
1471
1472 2001-02-01  Fernando Nasser  <fnasser@redhat.com>
1473
1474         * library/pluginwin.itcl (contrucdtor, destructor): Use "code" to
1475         specify callbacks.
1476         (running, stopped, no_inferior): Make it a protected method.
1477         (childsite): Explicitly mark as a public method.
1478         * library/plugins/rhabout/rhabout.itcl (constructor): Add a label
1479         widget to show status messages.
1480         (running, stopped): Overload versions of the base class; display
1481         status messages as an example.
1482
1483 2001-01-31  Fernando Nasser  <fnasser@redhat.com>
1484
1485         * library/pluginwin.itcl: New file.  Implements the PluginWindow
1486         class that provides some basic functionality for plug-ins.
1487         * library/plugins/rhabout/rhabout.itcl: Inherit from the new
1488         PluginWindow class.  Remove code dependent on ModalDlg.
1489         (constructor): Creates menus and a toolbar to show how these
1490         PluginWindow components are used.
1491         * library/tclIndex: Regenerate.
1492
1493 2001-01-31  Fernando Nasser  <fnasser@redhat.com>
1494
1495         * library/plugins/rhabout.tcl: Add load for optional sample C command 
1496         procedure.
1497         * library/plugins/rhabout/rhabout.itcl (constructor): Try calling
1498         optional sample C command procedure rhabout_extra_text.
1499         * library/plugins/rhabout/rhabout.c: New file. Implement an example
1500         plug-in shared library with a sample C command procedure.
1501         * library/plugins/rhabout/Makefile: New file. Makefile for the sample
1502         shared library above (Linux only).
1503
1504 2001-01-28  Fernando Nasser  <fnasser@redhat.com>
1505
1506         * library/plugins: New directory.  Sample plug-in directory to help
1507         developers of Insight plug-ins.  See README file in that directory.
1508         * library/plugins/plugins.tcl: New file. Sample version of a code
1509         fragment file which adds entries to the PlugIn menu of the Source
1510         Window to activate custom plug-in windows.
1511         * library/plugins/pkgIndex.tcl: New file.  Sample version of a file
1512         with package information for the installed plug-ins.
1513         * library/plugins/rhabout.tcl: New file. Sample file providing a
1514         plug-in package.
1515         * library/plugins/rhabout: New directory.  Sample plug-in.
1516         * library/plugins/rhabout/rhabout.itcl: New file.  Sample class
1517         implementing a plug-in window.
1518         * library/plugins/rhabout/tclIndex: New file.  Tcl index for the sample
1519         plug-in implementation.
1520
1521 2001-01-28  Fernando Nasser  <fnasser@redhat.com>
1522
1523         * library/main.tcl: Add plugin subdirectory, if existent, to auto_path.
1524         * library/srcbar.itcl (create_plugin_menu): New method.  Create a pull
1525         down menu for plugins if there are any for this target configuration.
1526         (create_menu_items): Invoke the new method above.
1527
1528 2001-01-28  Fernando Nasser  <fnasser@redhat.com>
1529
1530         * library/gdbmenubar.itcl (menubar_new_menu): Save lable of a menu to
1531         use as index.
1532         (menubar_delete_menu): New function.  Delete a menu.
1533
1534 2001-01-28  Fernando Nasser  <fnasser@redhat.com>
1535
1536         * library/gdbmenubar.itcl (menu_list): Add missing declararion for
1537         global variable.
1538
1539 2001-01-28  Fernando Nasser  <fnasser@redhat.com>
1540
1541         * library/gdbmenubar.itcl (set_class_state): Turn off verbose debug
1542         messages.
1543         * library/gdbtoolbar.itcl (set_class_state): Ditto.
1544
1545 2001-01-26  Fernando Nasser  <fnasser@redhat.com>
1546
1547         * generic/gdbtk-cmds.c (gdb_clear_file): Call exec_file_clear() and
1548         symbol_file_clear() instead of exec_file_command() and
1549         symbol_file_command().
1550         (gdb_find_file_command): Return the proper error text.
1551
1552 2001-01-25  Fernando Nasser  <fnasser@redhat.com>
1553
1554         * library/srcbar.itcl: New file. Implement SrcBar, a menu and toolbar
1555         for the Source Window (code previously in srcmenubar.itcl and
1556         srctoolbar.itcl).
1557         * library/srcmenubar.itcl: Remove obsolete file.
1558         * library/srctoolbar.itcl: Remove obsolete file.
1559         * library/srcbar.tcl: Remove obsolete file.
1560         * library/gdbmenubar.itcl (menubar_show): New method. Associate the
1561         menu with the toplevel window.
1562         * library/srcwin.itb (_build_win): Use SrcBar.
1563         * library/tclIndex: Regenerate.
1564
1565 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
1566
1567         From  Martin Hunt  <hunt@cygnus.com>
1568         * generic/gdbtk-cmds.c (gdb_set_bp_addr, gdb_set_bp): Change
1569         strsave() to xstrdup().
1570
1571 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
1572
1573         From  Martin Hunt  <hunt@cygnus.com>
1574         * generic/gdbtk-cmds.c (gdbtk_dis_asm_read_memory): Fix call
1575         to xfer_memory().
1576
1577 2001-01-19  Fernando Nasser  <fnasser@redhat.com>
1578
1579         * library/prefs.tcl (pref_set_defaults): Set default value of
1580         gdb/src/top_control to place the source window controls at the top.
1581
1582 2001-01-18  Fernando Nasser  <fnasser@redhat.com>
1583
1584         * library/srctextwin.itb (_highlightAsmLine): Add missing FUNCNAME
1585         parameter.
1586         (FillAssembly, FillMixed): Pass the FUNCNAME parameter that is
1587         needed by the above method.
1588         * library/srctextwin.ith (_highlightAsmLine): Add FUNCNAME parameter
1589         to method definition.
1590
1591 2001-01-17  Fernando Nasser  <fnasser@redhat.com>
1592
1593         * library/srctextwin.itb (_highlightAsmLine): Add missing FILENAME
1594         parameter.
1595         (FillAssembly, FillMixed): Pass the FILENAME parameter that is
1596         needed by the above method.
1597         * library/srctextwin.ith (_highlightAsmLine): Add FILENAME parameter
1598         to method definition.
1599
1600 2001-01-15  Fernando Nasser  <fnasser@redhat.com>
1601
1602         * srcwin.itb (clear_file): Pass the appropriate value to the GO 
1603         argument of mode() so it does not try to read a source file when
1604         no executable is loaded.
1605
1606 2001-01-09  Fernando Nasser  <fnasser@redhat.com>
1607
1608         * library/srcmenubar.itcl (create_file_menu): Add missing incr for
1609         session numbers.
1610
1611 2001-01-04  Fernando Nasser  <fnasser@redhat.com>
1612
1613         The following changes fix the problem of having to click on a splash
1614         window to make it disapear.
1615         * modal.tcl (post): Take as an argument "expire", the time a modal
1616         window is displayed.
1617         * managedwin.itb (open): Check for an "expire" argument and pass the
1618         value down to modal post method.
1619
1620 2001-01-04  Fernando Nasser  <fnasser@redhat.com>
1621
1622         * library/gdbmenubar.itcl (set_class_state): New public method.
1623         Standard method to control state by class.
1624         (menubar_menu_class_find): Delete public accessor method.
1625         (menubar_change_menu_state): Change the state of a menu item
1626         not of a whole class list.
1627         * library/srcmenubar.itcl (enable_ui): Use set_class_state instead
1628         of prying into base class internal data.
1629         * library/gdbtoolbar.itcl (set_class_state): New public method.
1630         Standard method to control state by class.
1631         (toolbar_button_class_find): Delete public accessor method.
1632         * library/srctoolbar.itcl (enable_ui): Use set_class_state instead
1633         of prying into base class internal data.
1634
1635 2001-01-04  Fernando Nasser  <fnasser@redhat.com>
1636
1637         * library/interface.tcl (gdbtk_connect): New proc. Connects to ai
1638          remote target (code previously at library/gdbmenubar.itcl).
1639         (disconnect): Rename to...
1640         (gdbtk_disconnect): New name for proc disconnect.
1641         * library/srcmenubar.itcl (do_connect): Remove the code mentioned
1642         above and call the new interface proc gdbtk_connect.
1643         Also, call ::update idletasks after changing the state of the
1644         menu entries.
1645         (do_detach): Call gdbtk_disconnect, not ::disconnect (old name).
1646         (do_disconnect): Call gdbtk_disconnect, not disconnect (old name).
1647
1648 2001-01-03  Fernando Nasser  <fnasser@redhat.com>
1649
1650         * library/prefs.tcl (pref_set_defaults): Define gdb/src/top_control
1651         to allow the source window controls to be placed at the top.
1652         * library/srcwin.itb (_build_win): Test for gdb/src/top_control
1653         and place the controls accordingly.
1654
1655 2001-01-02  Fernando Nasser  <fnasser@redhat.com>
1656
1657         * library/gdbmenubar.itcl: New file. Define the GDBMenuBar class,
1658         a generic menubar building facility for Insight windows (WIP).
1659         * library/gdbtoolbar.itcl: New file. Define the GDBToolBar class,
1660         a generic toolbar building facility for Insight windows (WIP).
1661         * library/srcmenubar.itcl: New file. Define the SrcMenuBar class,
1662         which implements the Source Window menubar (inherits GDBMenuBar).
1663         * library/srctoolbar.itcl: New file. Define the SrcToolBar class,
1664         which implements the Source Window toolbar (inherits GDBToolBar).
1665         * library/srcwin.itb (_build_win): Use SrcMenuBar and SrcToolBar
1666         instead of the obsolete GDBSrcBar.
1667         * library/srcbar.tcl: Mark as OBSOLETE.
1668         * library/toolbar.tcl: Mark as OBSOLETE. Rename class GDBToolBar
1669         to avoid conflict with new class with the same name.
1670         * library/Makefile (TCL): Include .itcl files.
1671         * library/tclIndex: Regenerate.
1672
1673 2001-01-02  Fernando Nasser  <fnasser@redhat.com>
1674
1675         * library/srcwin.itb (_build_win): If gdb is running a program, load
1676         the window with source for that location (if available).
1677         (download_progress): Calls to "update" must refer to the global
1678         namespace.
1679
1680 2001-01-02  Fernando Nasser  <fnasser@redhat.com>
1681
1682         * library/interface.tcl (gdbtk_quit_check): Save session whenever
1683         possible.
1684
1685 2001-01-01  Fernando Nasser  <fnasser@redhat.com>
1686
1687         * library/ChangeLog-2000: New file. Entries dated 2000 moved here
1688         from library/ChangeLog.
1689         * library/ChangeLog: Removed. 
1690         * generic/ChangeLog-2000: New file. Entries dated 2000 moved here
1691         from library/ChangeLog.
1692         * generic/ChangeLog: Removed.
1693
1694 2000-12-14  Fernando Nasser  <fnasser@redhat.com>
1695
1696         * library/ChangeLog-1999: New file. Entries dated 1999 moved here
1697         from library/ChangeLog.
1698         * library/ChangeLog-1998: New file.  Similar change for 1998.
1699         * library/ChangeLog-1997: New file.  Similar change for 1997.
1700         * library/ChangeLog: Removed entries previous to 2000.
1701         * generic/ChangeLog-1999: New file. Entries dated 1999 moved here
1702         from library/ChangeLog.
1703         * generic/ChangeLog-1998: New file.  Similar change for 1998.
1704         * generic/ChangeLog-1997: New file.  Similar change for 1997.
1705         * generic/ChangeLog: Removed entries previous to 2000.
1706
1707 2000-04-17  Jonathan Larmour  <jlarmour@redhat.co.uk>
1708
1709         * ChangeLog-gdbtk: Renamed to ChangeLog
1710         * ChangeLog: New file
1711         * README.GDBTK: No need for changelog-default-name hint for Emacs now
1712
1713 Sat Feb  5 00:14:30 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1714
1715         * gdb.rc, gdbtool.ico, README.GDBTK: To here from top level GDB
1716         directory.
1717         * gdb/gdbtcl2: Directory moved to gdbtk/library.
1718         * gdb/gdbtk/generic: New directory.
1719