1 2001-12-21 Tom Tromey <tromey@redhat.com>
3 * generic/gdbtk-cmds.h (full_lookup_symtab): Don't declare.
4 * generic/gdbtk-cmds.c (gdb_find_file_command): Use
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.
12 2001-12-21 Keith Seitz <keiths@redhat.com>
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.
19 2001-12-18 Keith Seitz <keiths@redhat.com>
21 * library/memwin.itb (incr_addr): Fix typo.
23 2001-12-16 Andrew Cagney <ac131313@redhat.com>
25 * generic/gdbtk-cmds.c (hex2bin): Replace LITTLE_ENDIAN with
28 2001-12-10 Ian Roxborough <irox@redhat.com>
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.
34 2001-12-07 Keith Seitz <keiths@redhat.com>
36 * library/managedwin.itb (shutdown): Don't save geometry for
39 2001-12-05 Keith Seitz <keiths@redhat.com>
41 * library/console.itb (busy): Set the cursor to the watch.
42 (idle): Reset cursor to normal.
44 2001-11-30 Martin M. Hunt <hunt@redhat.com>
46 * library/interface.tcl (gdbtk_eval): Remove
47 undocumented debug function.
49 2001-11-21 Tom Tromey <tromey@redhat.com>
51 * library/interface.tcl (gdbtk_tcl_preloop): Override session's
52 command-line arguments if required.
54 2001-11-20 Keith Seitz <keiths@redhat.com>
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
60 2001-11-08 Martin M. Hunt <hunt@redhat.com>
61 * generic/gdbtk-cmds.c (gdb_eval): Add an optional
63 (hex2bin): Swap bytes around if target is little endian.
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.
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
82 (MemWin::goto): Call update_address.
83 * library/memwin.itb: Declare private variable bad_expr.
85 * library/util.tcl (gdbtk_endian): New procedure. Returns
86 BIG or LITTLE to indicate target endianess.
88 2001-11-08 Martin M. Hunt <hunt@redhat.com>
89 * library/managedwin.itb (ManagedWin::shutdown): Fix
90 typo in class name DebugWinDOpts.
92 * library/debugwin.itb: Add MemWin to _classes.
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
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.
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.
114 (gdb_set_bp_addr): Ditto.
115 (gdb_get_tracepoint_info): Ditto.
117 2001-11-05 Martin M. Hunt <hunt@redhat.com>
119 * library/stackwin.itb (StcakWin::reconfig): Destroy sbox
122 * library/process.itb (ProcessWin::reconfig): Destroy sbox
123 if it exists. This fixes reconfig failures on Windows. Also
126 * library/bpwin.itb (BpWin::reconfig): Destroy sbox if
127 it exists.This fixes reconfig failures on Windows. Also
130 * library/tdump.tcl (TdumpWin::reconfig): Delete sbox
131 and stext then rebuild window.
133 2001-11-05 Martin M. Hunt <hunt@redhat.com>
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.
146 * library/debugwin.ith (_apply): Now takes an arg.
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
154 * library/managedwin.itb (ManagedWin::shutdown): Don't
155 save debug window options dialog on active list
157 * library/srcwin.itb: Remove troublesome debug line.
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
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.
176 2001-11-01 Keith Seitz <keiths@redhat.com>
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.
182 2001-10-29 Martin M. Hunt <hunt@redhat.com>
184 * library/debugwin.itb: Don't increment number of
187 * library/managedwin.itb: Don't save DebugWins to
190 2001-10-29 Martin M. Hunt <hunt@redhat.com>
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.
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.
203 2001-10-29 Martin M. Hunt <hunt@redhat.com>
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().
212 * generic/gdbtk-cmds.c (gdb_get_mem): :Use string_to_core_addr
213 to read address. Set error message with Tcl_SetObjResult() or
216 2001-10-27 Tom Tromey <tromey@redhat.com>
219 * library/main.tcl: Add session_notice_file_change to
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
228 (gdbtk_tcl_preloop): Don't set executable name or try to find
229 main. Notice a new session if required.
231 2001-10-18 Martin M. Hunt <hunt@redhat.com>
233 * library/srcpref.itb (SrcPref::contructor): Move array
234 initialization to _init_var.
235 (SrcPref::_init_var): New method to initialize _saved and
237 (SrcPref::buildwin): Rename to _buildwin. Have widgets use
238 _new instead of [pref varname ...]. Set initial value of
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.
246 * library/srcpref.ith: Add private variable _new and
247 private method cancel. Rename others with leading underscore.
249 2001-10-16 Andrew Cagney <ac131313@redhat.com>
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.
259 2001-10-17 Tom Tromey <tromey@cygnus.com>
261 * console.itb (Console::_build_win): Handle bindings which
262 are ";". Also, completely override underlying Text binding.
264 2001-10-12 Tom Tromey <tromey@redhat.com>
266 * library/console.itb (Console::_build_win): Bind Control-m and
269 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
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.
276 2001-10-10 Ian Roxborough <irox@redhat.com>
278 * library/gdbtoolbar.itcl (GDBToolBar::add): Add option
280 (GDBToolBar::toolbar_add_custom): new method.
282 2001-10-06 Tom Tromey <tromey@redhat.com>
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.
293 2001-10-05 Keith Seitz <keiths@redhat.com>
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.
299 2001-10-02 Tom Tromey <tromey@redhat.com>
301 * library/tclIndex: Updated.
302 * library/prefs.tcl (pref_set_defaults): Define gdb/editor
304 * library/srcpref.itb (SrcPref::constructor): Save gdb/editor
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.
316 2001-09-28 Tom Tromey <tromey@redhat.com>
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.
324 2001-09-27 Elena Zannoni <ezannoni@redhat.com>
326 * library/targetselection.itb (build_win, default_port): Handle
329 2001-09-27 Keith Seitz <keiths@redhat.com>
331 * library/prefs.tcl (escape_value): Update to work
332 with Tcl's new and old syntax.
334 2001-09-19 Keith Seitz <keiths@redhat.com>
336 * library/main.tcl: Append iwidgets library path, if needed.
337 * generic/gdbtk.c (gdbtk_init): Add TCLLIBPATH to iwidgets
339 Define IWIDGETS_LIBRARY in interpreter so that we can add
340 this path to the auto_path at the right time later.
342 2001-09-10 Ian Roxborough <irox@redhat.com>
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.
350 2001-08-28 Keith Seitz <keiths@redhat.com>
352 * library/bpwin.itb (bp_select): Use standard preferences
353 for selection fg & bg, not tixOption database.
355 * process.itb, tracedlg.tcl: Remove all traces of those
356 three evil little letters, "t", "i", "x".
358 2001-08-28 Keith Seitz <keiths@redhat.com>
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
365 Escape method callbacks before passing to ActionDlg.
367 * library/actiondlg.tcl (constructor): Use "gdb_reginfo"
369 2001-08-28 Keith Seitz <keiths@redhat.com>
371 * library/tdump.tcl (class TdumpWin): Inherit from GDBWin
373 (constructor): Remove old itcl2 handling code and name the
375 (build_win): Use iwidgets::scrolledtext instead of
377 (twin): Remove unused variable. Use itk_component(stext)
379 (maxwidth): Remove unused variable.
380 (destructor): Remove unused method.
383 2001-08-28 Keith Seitz <keiths@redhat.com>
385 * library/srcpref.itb (build_win): Use iwidgets::spinint
386 instead of tixControl.
388 2001-08-28 Keith Seitz <keiths@redhat.com>
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.
405 2001-08-28 Keith Seitz <keiths@redhat.com>
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.
411 2001-08-28 Keith Seitz <keiths@redhat.com>
413 * library/bpwin.itb (build_win): Get rid of tixScrolledWindow
414 and use iwidgets::scrolledframe until something better comes
417 2001-08-23 Tom Tromey <tromey@redhat.com>
419 * library/srcwin.itb (SrcWin::fillFuncCB): Sort function names.
421 2001-08-23 Martin M. Hunt <hunt@redhat.com>
423 * library/targetselection.itb: Added PMON and DDB targets.
425 2001-08-22 Tom Tromey <tromey@redhat.com>
427 * library/prefs.tcl (pref_read): Version number appears in
430 2001-08-21 Keith Seitz <keiths@redhat.com>
432 * generic/gdbtk.c (gdbtk_init): Gdb just fixed this. No
433 need for the workaround I just checked in anymore.
435 2001-08-21 Keith Seitz <keiths@redhat.com>
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.
441 2001-08-20 Keith Seitz <keiths@redhat.com>
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.
448 * library/stackwin.ith (change_frame): Remove all parameters.
450 2001-08-20 Keith Seitz <keiths@redhat.com>
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.
466 2001-08-17 Keith Seitz <keiths@redhat.com>
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
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.
477 2001-08-16 Keith Seitz <keiths@redhat.com>
479 * generic/gdbtk.c (gdbtk_init): Revert change from earlier.
480 It is insufficient. We must get the absolute pathname
482 Don't bother setting TCL_LIBRARY: it must be set already
483 in order for us to execute a script.
485 2001-08-16 Keith Seitz <keiths@redhat.com>
487 * library/globalpref.ith (_change_font, _change_size): New
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.
498 2001-08-16 Keith Seitz <keiths@redhat.com>
500 * generic/gdbtk.c (gdbtk_init): Make sure we're working with
501 absolute pathnames in the *_LIBRAY variables.
503 2001-08-16 Keith Seitz <keiths@redhat.com>
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).
511 2001-08-15 Keith Seitz <keiths@redhat.com>
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.
519 2001-08-15 Ian Roxborough <irox@redhat.com>
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.
527 2001-08-13 Keith Seitz <keiths@redhat.com>
529 * library/regwin.ith: Rewrite.
530 * library/regwin.itb: Rewrite.
531 * library/tclIndex: Regenerate.
533 2001-08-13 Keith Seitz <keiths@redhat.com>
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
543 2001-08-13 Keith Seitz <keiths@redhat.com>
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.
554 2001-08-09 Keith Seitz <keiths@redhat.com>
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.
563 2001-08-03 Keith Seitz <keiths@redhat.com>
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
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
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.
582 2001-08-02 Keith Seitz <keiths@redhat.com>
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.
590 2001-07-31 Elena Zannoni <ezannoni@redhat.com>
592 * generic/gdbtk-cmds.c: Don't include regcache.h.
593 * generic/gdbtk-register.c: Include regcache.h.
595 2001-07-26 Jonathan Larmour <jlarmour@redhat.com>
597 * library/prefs.tcl (pref_set_defaults): Add additional entry
598 points for eCos if main is not present.
600 2001-07-21 Martin M. Hunt <hunt@redhat.com>
602 * library/interface.tcl (gdbtk_locate_main): Fix function
603 so that it returns either a null string or a valid location,
606 * library/variables.tcl (build_menu_helper): Set
607 the Format menu option to "disabled" initially.
609 2001-07-20 Martin M. Hunt <hunt@redhat.com>
611 * library/managedwin.itb: Revert to global to properly
612 initialize geometry with some window managers.
613 * library/managedwin.ith (shutdown): Remove _geometry.
615 * library/memwin.itb: Fix syntax to open a new window
616 using the "-force" flag.
618 * generic/gdbtk-register.c (gdb_regnames): Fix 'if'
619 statement so count is decremented only if "-numbers"
622 2001-07-18 Martin M. Hunt <hunt@redhat.com>
624 * library/util.tcl (find_iwidgets_library): Look
625 for iwidgets3* so we don't accidently find iwidgets2.x.
627 2001-07-16 Nick Duffek <nsd@redhat.com>
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.
634 2001-07-13 Keith Seitz <keiths@redhat.com>
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.
642 * library/download.ith (steps): New private variable.
643 (num_steps): New common.
645 2001-07-12 Keith Seitz <keiths@redhat.com>
647 * library/srcbar.itcl (create_trace_buttons): Fix
650 * library/tracedlg.tcl: Update to work with Itcl3.0
653 * library/actiondlg.tcl: Update to work with Itcl3.0
655 (build_win): Use iwidgets scrolled listbox instead
658 2001-07-05 Keith Seitz <keiths@redhat.com>
660 * library/managedwin.itb (_create): Don't pass "-over"
661 to center_window unless we really are asked to put the
664 2001-06-18 Keith Seitz <keiths@redhat.com>
666 * library/managedwin.itb (_create): When creating a
667 window over another, be sure to center on the window,
670 2001-06-13 Keith Seitz <keiths@redhat.com>
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.
680 2001-06-11 Tom Tromey <tromey@redhat.com>
682 * library/help/session.html: New file.
683 * library/help/index.html: Added link.
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
691 * library/srctextwin.itb (SrcTextWin::showBPBalloon): Expect user
692 specification in breakpoint info.
693 * library/gdbevent.itb (BreakpointEvent::_init): Initialize
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.
704 2001-06-11 Keith Seitz <keiths@redhat.com>
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.
710 2001-06-07 Keith Seitz <keiths@redhat.com>
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.
716 * generic/gdbtk-bp.c (gdb_find_bp_at_addr): Remove unused variable
718 (gdb_set_bp): Remove unused variable "cmd".
719 (gdb_set_bp_addr): Remove unused variables "cmd" and "filename".
721 * generic/gdbtk.c (gdbtk_init): Remove unused variables
722 "auto_path_name", "auto_path_elem", and "found_main".
724 2001-06-05 Martin Hunt <hunt@redhat.com>
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.
730 2001-06-05 Martin Hunt <hunt@redhat.com>
732 * library/globalpref.itb(build_win): Don't change directory
733 before building icon combobox. Add debug lines.
735 2001-06-04 Keith Seitz <keiths@redhat.com>
737 * library/srcbar.itcl (constructor): Set the toolbar's initial
740 2001-06-04 Keith Seitz <keiths@redhat.com>
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.
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.
758 * library/process.ith (update): Match event handler definition.
759 * library/process.itb (update): Ditto.
760 (constructor): Remove gdb_update_hook.
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.
767 (build_win): Pass dummy argument to update method.
770 * library/stackwin.ith (update): Match event handler definition.
771 * library/stackwin.itb (update): Ditto.
772 (constructor): Remove gdb_update_hook.
774 (build_win): Pass dummy argument to update method.
775 * library/tdump.tcl (update): Match event handler definition.
776 (constructor): Remove gdb_update_hook.
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.
791 * tclIndex: Regenerate.
793 2001-06-01 Keith Seitz <keiths@redhat.com>
795 * library/console.itb (constructor): Pass dummy argument
799 2001-05-31 Keith Seitz <keiths@redhat.com>
801 * library/interface.tcl (gdbtk_idle): Run hooks, too,
802 until they're all gone.
804 2001-05-31 Keith Seitz <keiths@redhat.com>
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.
814 * library/kod.ith (idle): Match event handler definition.
815 * library/kod.itb (idle): Ditto.
816 (constructor): Remove gdb_idle_hook.
818 * library/memwin.ith (idle): Match event handler definition.
819 * library/memwin.itb (idle): Ditto.
820 (constructor): Remove gdb_idle_hook.
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.
829 * library/regwin.ith (idle): Match event handler definition.
830 * library/regwin.itb (idle): Ditto.
831 (constructor): Remove gdb_idle_hook.
833 * library/srcbar.itcl (idle): New method.
834 (constructor): Remove gdb_idle_hook.
836 * library/srcwin.ith (idle): Match event handler definition.
837 * library/srcwin.itb (idle): Ditto.
838 (constructor): Remove gdb_idle_hook.
840 * library/stackwin.ith (idle): Match event handler definition.
841 * library/stackwin.itb (idle): Ditto.
842 (constructor): Remove gdb_idle_hook.
844 * library/variables.tcl (idle): Match event handler definition.
845 (constructor): Remove gdb_idle_hook.
847 * library/plugins/rhabout/rhabout.itcl (stopped): Rename
848 to "idle" and match new event handler definition.
849 * library/tclIndex: Regenerated.
851 2001-05-31 Keith Seitz <keiths@redhat.com>
853 * library/interface.tcl (gdb_busy_hook): Deprecate.
854 (gdbtk_busy): Create and dispatch a BusyEvent instead
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.
863 * library/kod.ith (busy): Match event handler definition.
864 * library/kod.itb (busy): Ditto.
865 (constructor): Remove gdb_busy_hook.
867 * library/memwin.ith (busy): Match event handler definition.
868 * library/memwin.itb (busy): Ditto.
869 (constructor): Remove gdb_busy_hook.
871 * library/pluginwin.itcl (running): Rename to "busy" and
872 match event handler definition.
873 (consturctor): Remove gdb_busy_hook.
875 * library/process.ith (busy): Match event handler definition.
876 * library/process.itb (busy): Ditto.
877 (constructor): Remove gdb_busy_hook.
879 * library/regwin.ith (busy): Match event handler definition.
880 * library/regwin.itb (busy): Ditto.
881 (constructor): Remove gdb_busy_hook.
883 * library/srcbar.itcl (constructor): Remove gdb_busy_hook.
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.
892 * library/stackwin.ith (busy): Match event handler definition.
893 * library/stackwin.itb (busy): Ditto.
894 (constructor): Remove gdb_busy_hook.
896 * library/variables.tcl (constructor): Ditto.
898 (disable_ui): Rename to "busy" and match event handler
900 * library/plugins/rhabout/rhabout.itcl (running): Rename
901 to "busy" and match new event handler definition.
902 * library/tclIndex: Regenerated.
904 2001-05-25 Keith Seitz <keiths@cygnus.com>
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.
915 2001-05-22 Keith Seitz <keiths@cygnus.com>
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.
922 2001-05-22 Keith Seitz <keiths@cygnus.com>
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
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
934 Add key binding for Close.
935 (do_key): Add "close".
936 (_clear_cache): Finally implement. I think this works now.
938 2001-05-22 Keith Seitz <keiths@cygnus.com>
940 * library/variables.tcl (postMenu): Add mysterious workaround
941 for popup menu bug in Tk for windows.
942 Highlight the selection, too.
944 2001-05-21 Keith Seitz <keiths@cygnus.com>
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.
950 2001-05-18 Keith Seitz <keiths@cygnus.com>
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.
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.
963 2001-05-18 Keith Seitz <keiths@cygnus.com>
965 * generic/gdbtk-hooks.c (gdbtk_wait): Change integer pid
966 argument to match gdb's new "ptid_t" pids.
968 2001-05-14 Keith Seitz <keiths@cygnus.com>
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.
976 2001-05-11 Tom Tromey <tromey@redhat.com>
978 * library/prefs.tcl (pref_save): Fix bug when key in gdb space has
981 2001-05-11 Kevin Buettner <kevinb@redhat.com>
983 * generic/gdbtk-bp.c (set_raw_breakpoint): Revise declaration
984 to match the recently changed declaration in breakpoint.c.
987 2001-05-11 Keith Seitz <keiths@cygnus.com>
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.
994 2001-05-10 Keith Seitz <keiths@cygnus.com>
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.
1000 2001-05-10 Keith Seitz <keiths@cygnus.com>
1002 * generic/gdbtk-bp.c (breakpoint_list, breakpoint_list_size): New
1003 variables. Gdb is forcing us to maintain our own breakpoint
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.
1034 2001-05-10 Keith Seitz <keiths@cygnus.com>
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.
1041 * generic/gdbtk.h: Move all breakpoint-related stuff into
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.
1051 2001-05-09 Keith Seitz <keiths@cygnus.com>
1053 * library/interface.tcl (gdb_quit_hook): Remove. It's unused.
1054 (gdbtk_quit): Do no shutdown window manager and save
1056 (gdbtk_cleanup): This is the proper place to do those
1059 2001-05-07 Keith Seitz <keiths@cygnus.com>
1061 * library/globalpref.itb (build_win): Preserve the
1062 current working directory.
1064 2001-05-06 Kevin Buettner <kevinb@redhat.com>
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
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''.
1075 2001-05-01 Keith Seitz <keiths@cygnus.com>
1077 * gdbtk.c (gdbtk_init): Include the command "warp_pointer"
1078 for all platforms. Used for testing ONLY.
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
1084 (find_iwidgets_library): Make it work for running testsuites
1085 from installed directory.
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.
1092 2001-04-23 Keith Seitz <keiths@cygnus.com>
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
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.
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).
1109 2001-04-20 Keith Seitz <keiths@cygnus.com>
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.
1129 2001-04-20 Keith Seitz <keiths@cygnus.com>
1131 * library/interface.tcl (gdbtk_tcl_set_variable): New proc.
1132 * library/gdbevent.ith (SetVariableEvent): New event.
1133 * library/gdbevent.itb (SetVariableEvent::get): Override
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.
1140 2001-04-19 Keith Seitz <keiths@cygnus.com>
1142 * library/gdbevent.ith: New file. Defines new event model.
1143 * library/gdbevent.itb: New file. Implements new event
1145 * library/ehandler.ith: New file. Defines new event model.
1146 * library/ehandler.itb: New file. Implements new event
1148 * library/gdbwin.ith: Inherit from GDBEventHandler.
1149 (update): Delete unused method.
1150 (_state): Delete unused variable.
1151 * library/tclIndex: Regenerated.
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.
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
1178 Remove code to deal with tracepoints.
1179 (tracepoint): New method to handle tracepoint
1181 (bp_add): Deal with breakpoint events, not breakpoint
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).
1200 2001-04-18 Martin M. Hunt <hunt@redhat.com>
1202 * generic/gdbtk.c (gdbtk_init): Initialize uiout.
1204 2001-04-18 Tom Tromey <tromey@redhat.com>
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.
1213 2001-04-17 Tom Tromey <tromey@redhat.com>
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.
1221 2001-04-17 Fernando Nasser <fnasser@redhat.com>
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.
1227 2001-04-12 Nicholas Duffek <nsd@redhat.com>
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.
1233 2001-04-10 Keith Seitz <keiths@cygnus.com>
1235 From Tom Tromey (tromey@redhat.com):
1236 * library/managedwin.itb (reveal): We actually do want to force
1237 the focus for Windows.
1239 2001-04-09 Martin M. Hunt <hunt@redhat.com>
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
1247 2001-04-04 Christopher Faylor <cgf@redhat.com>
1249 * generic/gdbtk.c: Add __CYGWIN__ conditional to WIN32 test.
1251 2001-04-04 Martin M. Hunt <hunt@redhat.com>
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.
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.
1264 * generic/gdbtk.h: Declare new flag gdbtk_disable_fputs.
1266 * generic/gdbtk-cmds.c (gdb_restore_fputs): Instead of setting
1267 fputs_unfiltered_hook, set the new flag gdbtk_disable_fputs.
1269 * library/prefs.tcl (pref_set_defaults): Add defaults
1270 for log_fg and target_fg.
1272 * library/interface.tcl (gdbtk_tcl_fputs_error): Use
1274 (gdbtk_tcl_fputs_log): New function. Write log messages
1276 (gdbtk_tcl_fputs_target): New function. Write target
1279 * library/console.ith (einsert): Add tag parameter.
1281 * library/console.itb (_build_win): Add new tags for log
1283 (einsert): Add tag parameter.
1285 2001-04-02 Martin M. Hunt <hunt@redhat.com>
1287 * generic/gdbtk-cmds.c (gdb_loadfile): Adjust size of text_argv
1288 array to prevent writing out of range. Remove unused variables.
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".
1297 2001-03-29 Fernando Nasser <fnasser@redhat.com>
1299 * library/variables.tcl (update): Cope with varobj type changes.
1301 2001-03-29 Fernando Nasser <fnasser@redhat.com>
1303 * library/variables.tcl (destructor): Remove file_changed_hook hook.
1305 2001-03-29 Fernando Nasser <fnasser@redhat.com>
1307 * generic/gdbtk-varobj.c (variable_obj_command): Do not cache varobj
1308 handles as they may change -- use varobj_get_handle() instead.
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.
1315 * library/kod.itb: Ditto.
1317 2001-03-15 Tom Tromey <tromey@redhat.com>
1319 * library/mempref.itb (MemPref::build_win): Correctly set initial
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.
1327 2001-03-08 Andrew Cagney <ac131313@redhat.com>
1329 * generic/gdbtk-cmds.c (map_arg_registers): Use REG_NUM instead of
1332 2001-03-01 Nicholas Duffek <nsd@redhat.com>
1334 * README.GDBTK: Minor spelling, grammar, and formatting fixes.
1336 2001-03-01 Keith Seitz <keiths@cygnus.com>
1338 * library/managedwin.ith: Move all implementations into
1340 (public variable nosize): Delete.
1341 (freeze_me, thaw_me, make_icon_window): Prepend with
1342 underscore to remind people these are not public
1344 (protected variable Top, screenwidth, screenheight): Ditto
1345 for these variables.
1346 (protected common manage_active, mainwindow): Delete.
1348 (reconfig): Add empty body.
1349 * library/managedwin.itb: Move all implementations from
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.
1355 (reconfig): It's empty. Moved empty body to header.
1357 2001-03-01 Nicholas Duffek <nsd@redhat.com>
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.
1364 2001-03-01 Nicholas Duffek <nsd@redhat.com>
1366 * library/srctextwin.itb (SrcTextWin::location): Clear previous
1367 pane's cursor after switching panes.
1369 2001-03-01 Nicholas Duffek <nsd@redhat.com>
1371 * library/srctextwin.itb (config_win): Give focus to $win.
1373 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
1375 * generic/gdbtk-cmds.c: Include recently created "regcache.h"
1377 2001-02-27 Keith Seitz <kseitz@nwlink.com>
1379 * generic/gdbtk-cmds.c (gdb_fetch_registers): Mark
1380 the result as generating a list only if it really does
1383 2001-02-21 Fernando Nasser <fnasser@redhat.com>
1385 * TODO: New file. Initial version of the TODO file, as posted to the
1386 insight list circa October 2000.
1388 2001-02-14 Fernando Nasser <fnasser@redhat.com>
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.
1394 2001-02-08 Fernando Nasser <fnasser@redhat.com>
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.
1407 2001-02-06 Fernando Nasser <fnasser@redhat.com>
1409 Originally from Martin Hunt <hunt@redhat.com>, with modifications
1410 * library/srcwin.itb (_name): Check for errors when invoking
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.
1416 2001-02-04 Fernando Nasser <fnasser@redhat.com>
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
1423 2001-02-01 Fernando Nasser <fnasser@redhat.com>
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.
1430 2001-02-01 Fernando Nasser <fnasser@redhat.com>
1432 * library/gdbtoolbar.itcl (add): New method. Emulate the style of the
1433 toolbar iwidget commands.
1434 (toolbar_show): Old name.
1436 (toolbar_create_button): Old 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.
1452 2001-02-01 Fernando Nasser <fnasser@redhat.com>
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.
1458 (menubar_menu_exists): Old name.
1460 (menubar_clear_menu): Old name.
1462 (menubar_delete_menu): Old 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.
1472 2001-02-01 Fernando Nasser <fnasser@redhat.com>
1474 * library/pluginwin.itcl (contrucdtor, destructor): Use "code" to
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.
1483 2001-01-31 Fernando Nasser <fnasser@redhat.com>
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.
1493 2001-01-31 Fernando Nasser <fnasser@redhat.com>
1495 * library/plugins/rhabout.tcl: Add load for optional sample C command
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).
1504 2001-01-28 Fernando Nasser <fnasser@redhat.com>
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
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.
1521 2001-01-28 Fernando Nasser <fnasser@redhat.com>
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.
1528 2001-01-28 Fernando Nasser <fnasser@redhat.com>
1530 * library/gdbmenubar.itcl (menubar_new_menu): Save lable of a menu to
1532 (menubar_delete_menu): New function. Delete a menu.
1534 2001-01-28 Fernando Nasser <fnasser@redhat.com>
1536 * library/gdbmenubar.itcl (menu_list): Add missing declararion for
1539 2001-01-28 Fernando Nasser <fnasser@redhat.com>
1541 * library/gdbmenubar.itcl (set_class_state): Turn off verbose debug
1543 * library/gdbtoolbar.itcl (set_class_state): Ditto.
1545 2001-01-26 Fernando Nasser <fnasser@redhat.com>
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.
1552 2001-01-25 Fernando Nasser <fnasser@redhat.com>
1554 * library/srcbar.itcl: New file. Implement SrcBar, a menu and toolbar
1555 for the Source Window (code previously in srcmenubar.itcl and
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.
1565 2001-01-24 Fernando Nasser <fnasser@redhat.com>
1567 From Martin Hunt <hunt@cygnus.com>
1568 * generic/gdbtk-cmds.c (gdb_set_bp_addr, gdb_set_bp): Change
1569 strsave() to xstrdup().
1571 2001-01-24 Fernando Nasser <fnasser@redhat.com>
1573 From Martin Hunt <hunt@cygnus.com>
1574 * generic/gdbtk-cmds.c (gdbtk_dis_asm_read_memory): Fix call
1577 2001-01-19 Fernando Nasser <fnasser@redhat.com>
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.
1582 2001-01-18 Fernando Nasser <fnasser@redhat.com>
1584 * library/srctextwin.itb (_highlightAsmLine): Add missing FUNCNAME
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.
1591 2001-01-17 Fernando Nasser <fnasser@redhat.com>
1593 * library/srctextwin.itb (_highlightAsmLine): Add missing FILENAME
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.
1600 2001-01-15 Fernando Nasser <fnasser@redhat.com>
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.
1606 2001-01-09 Fernando Nasser <fnasser@redhat.com>
1608 * library/srcmenubar.itcl (create_file_menu): Add missing incr for
1611 2001-01-04 Fernando Nasser <fnasser@redhat.com>
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.
1620 2001-01-04 Fernando Nasser <fnasser@redhat.com>
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.
1635 2001-01-04 Fernando Nasser <fnasser@redhat.com>
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
1645 (do_detach): Call gdbtk_disconnect, not ::disconnect (old name).
1646 (do_disconnect): Call gdbtk_disconnect, not disconnect (old name).
1648 2001-01-03 Fernando Nasser <fnasser@redhat.com>
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.
1655 2001-01-02 Fernando Nasser <fnasser@redhat.com>
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.
1673 2001-01-02 Fernando Nasser <fnasser@redhat.com>
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
1680 2001-01-02 Fernando Nasser <fnasser@redhat.com>
1682 * library/interface.tcl (gdbtk_quit_check): Save session whenever
1685 2001-01-01 Fernando Nasser <fnasser@redhat.com>
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.
1694 2000-12-14 Fernando Nasser <fnasser@redhat.com>
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.
1707 2000-04-17 Jonathan Larmour <jlarmour@redhat.co.uk>
1709 * ChangeLog-gdbtk: Renamed to ChangeLog
1710 * ChangeLog: New file
1711 * README.GDBTK: No need for changelog-default-name hint for Emacs now
1713 Sat Feb 5 00:14:30 2000 Andrew Cagney <cagney@b1.cygnus.com>
1715 * gdb.rc, gdbtool.ico, README.GDBTK: To here from top level GDB
1717 * gdb/gdbtcl2: Directory moved to gdbtk/library.
1718 * gdb/gdbtk/generic: New directory.