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