1 2002-12-20 Martin M. Hunt <hunt@redhat.com>
3 * library/srcbar.itcl (SrcBar): Don't load vmake icon.
5 * library/images: Removed back.gif, build.gif, file.gif, fore.gif,
6 gdbtk.gif, opt.gif, tools.gif, tools2_3d.gif, and vmake.gif.
8 * library/images2: Removed back.gif, build.gif, file.gif, fore.gif,
9 gdbtk.gif, load.gif, opt.gif, tools.gif, tools2_3d.gif, and vmake.gif.
11 2002-12-18 Martin M. Hunt <hunt@redhat.com>
13 * library/main.tcl: Don't try to print errors to stderr on Windows.
15 2002-12-18 Martin M. Hunt <hunt@redhat.com>
17 * library/regwin.itb (RegWin::update): When updating, check
18 that a cell still exists before checking its value.
19 (RegWin::_select_group): Clear cells with changed values before
20 changing group. After new group is selected, highlight any changed
23 2002-12-17 Martin M. Hunt <hunt@redhat.com>
25 * library/interface.tcl (gdbtk_tcl_fputs_target_err):
27 (gdbtk_tcl_fputs_target): Open console window if it is
29 (gdbtk_gets): New function.
30 Opens a console window if necessary and calls Console::gets.
32 * library/console.ith (gets): Declare method.
33 (_input_mode): New private variable.
34 (_input_result): Ditto.
35 (_input_error): Ditto.
36 (_cancel): New private method
39 * library/console.itb (_setprompt): Allow setting prompt
40 to nothing. Delete to beginning of line before writing prompt.
41 (gets): New public method to prompt user for input.
42 (_cancel): New private method to handle ^C when inputting data.
43 (invoke): Check for ^d when in input mode.
45 2002-12-17 Martin M. Hunt <hunt@redhat.com>
47 * library/regwin.itb (_load_prefs): Get list of registers from
49 (_build_win): Remove old menu system. Replace with an optionmenu
50 that contains all the valid group names for this architecture.
51 (_layout_table): No need to update old menu.
52 (_but3): Add "Close" to popup menu.
53 (_delete_from_display): No need to update old menu.
54 (_display_all): Ditto.
55 (_post_menu): Deleted.
56 (_select_group): New method. Callback for group optionmenu.
58 * library/regwin.ith: New private variable _group.
59 New private method _select_group. Removed _post_menu.
61 * generic/gdbtk-register.c: Include reggroups.h.
62 (gdb_register_info): Add "group" and "grouplist".
63 (gdb_regformat): Fix Tcl_WrongNumArgs call so it doesn't crash.
64 (gdb_reggrouplist): New function. Returns the names of the
66 (gdb_reggroup): New function. Returns the register numbers of the
69 2002-12-06 Andrew Cagney <ac131313@redhat.com>
71 * generic/gdbtk-cmds.c (gdb_update_mem): Don't add a 0x prefix.
73 2002-12-05 Martin M. Hunt <hunt@redhat.com>
75 * library/regwin.itb (update): Revert previous patch to this
76 function. But also don't tag blank cells.
77 (_but3): Fix help call.
79 2002-12-04 Martin M. Hunt <hunt@redhat.com>
81 * library/regwin.itb (_but3): Fix help call.
83 * library/helpviewer.tcl (open_help): Fix KDE apps list.
85 * library/debugwin.itb (build_win): Fix help call.
87 * library/regwin.itb (update): Remove some old code
88 that marked registers as changed when the target started.
89 (_build_win): Make changed registers more visible by
90 changing their bg to Colors(change).
92 * library/prefs.tcl (pref_set_option_db): Create a new
93 Color(change) which is the color of text indicating a change.
94 Current default is green.
96 * library/vartree.itb (_init_data): Make changed values
97 Color(change). Can't change bg, so we change fill color.
99 2002-12-04 Keith Seitz <keiths@redhat.com>
101 * generic/gdbtk-hooks.c: Include tcl.h and tk.h to pull
102 in declarations for some Tk functions used in this file.
103 * generic/gdbtk-cmds.c: Likewise.
105 2002-12-03 Martin M. Hunt <hunt@redhat.com>
107 * library/vartree.itb (_but3): Add popup menu item to dump
108 memory at the value of the variable.
110 * library/vartree.itb (buildlayer): Check for error when updating
114 * library/srcpref.itb: Latest tk doesn't support
115 "-col" as a grid option. Use "-column".
117 * library/regwin.itb: Ditto.
119 * library/main.tcl: Require package "debug". Make
120 package loading a bit more robust.
122 2002-11-30 Andrew Cagney <ac131313@redhat.com>
124 * generic/gdbtk-stack.c: Replace selected_frame with
125 deprecated_selected_frame.
126 * generic/gdbtk-register.c: Ditto.
127 * generic/gdbtk-cmds.c (gdb_loc): Replace selected_frame with
128 deprecated_selected_frame. Use get_frame_pc and find_frame_sal.
130 2002-11-27 Martin M. Hunt <hunt@redhat.com>
132 * generic/gdbtk.c (gdbtk_init): Don't call Tix_Init.
135 * generic/gdbtk-hooks.c: Don't include tix.h.
137 * generic/gdbtkj-cmds.c: Don't include tix.h.
139 2002-11-27 Andrew Cagney <cagney@redhat.com>
141 * generic/gdbtk-stack.c (get_frame_name): Use get_frame_type
142 instead of deprecated_frame_in_dummy.
143 * generic/gdbtk-cmds.c (gdb_loc): Ditto.
145 2002-11-19 Andrew Cagney <ac131313@redhat.com>
147 * generic/gdbtk-stack.c (gdb_selected_frame): Use get_frame_base
148 instead of FRAME_FP. Mention that get_frame_id() should be used.
150 2002-11-19 Andrew Cagney <ac131313@redhat.com>
152 * generic/gdbtk-cmds.c (gdb_loc): Use get_frame_type instead of
153 ->signal_handler_caller.
154 * generic/gdbtk-stack.c (get_frame_name): Ditto.
155 (get_frame_name): Ditto.
157 2002-11-12 Andrew Cagney <ac131313@redhat.com>
159 From 2002-11-11 David Carlton <carlton@math.stanford.edu>
160 * generic/gdbtk-stack.c (get_frame_name): Replace call to
161 frame_in_dummy with one to deprecated_frame_in_dummy.
162 * generic/gdbtk-cmds.c (gdb_loc): Ditto.
164 2002-11-11 Martin M. Hunt <hunt@redhat.com>
166 * library/srctextwin.itb (do_key): Add arg to
169 2002-11-11 Martin M. Hunt <hunt@redhat.com>
171 * library/data.ith: Deleted.
172 * library/data.itb: Deleted.
174 2002-11-11 Martin M. Hunt <hunt@redhat.com>
176 * library/memwin.itb: Supply arg to _update_address.
178 2002-11-11 Martin M. Hunt <hunt@redhat.com>
180 * library/toolbar.tcl: Deleted this obsolete file.
181 * library/tclIndex: Rebuilt.
183 2002-11-11 Martin M. Hunt <hunt@redhat.com>
185 * library/srcbar.itcl (create_help_menu): For unix systems,
186 if compatibility is set to KDE or GNOME, put the help menu
187 in the right place. Otherwise put it on the far right, like
190 2002-11-11 Martin M. Hunt <hunt@redhat.com>
192 * library/helpviewer.tcl: New file. Finds
193 an appropriate help browser and displays the help files.
195 * library/vartree.itb: Fix open_help calls.
197 * library/helpviewer.ith: Deleted.
198 * library/helpviewer.itb: Deleted.
200 * library/prefs.tcl (pref_set_defaults): Remove
201 pref gdb/help/browser. Add pref gdb/help/browsername.
202 We couldn't simply rename because it would break older
203 versions of Insight that expect gdb/help/browser to be
206 2002-11-08 Martin M. Hunt <hunt@redhat.com>
208 * library/prefs.tcl (pref_save): Fix GDBtkInitVersion.
209 (pref_save): Check that value is not null before writing.
211 2002-11-07 Martin M. Hunt <hunt@redhat.com>
213 * library/util.tcl (CygScrolledListbox): Delete.
215 * library/srctextwin.itb: Change from CygScrolledListbox
216 to iwidgets::scrolledlistbox. Set foreground and background.
217 Center popup over source window.
219 2002-11-06 Martin M. Hunt <hunt@redhat.com>
221 * library/locals.tcl (build_win): Fix so window opens
224 2002-11-06 Martin M. Hunt <hunt@redhat.com>
225 * library/debugwin.itb: Remove VariableWin. Add VarTree.
227 2002-11-06 Martin M. Hunt <hunt@redhat.com>
228 * library/watch.tcl: Completely rewritten to use VarTree.
229 * library/locals.tcl: Completely rewritten to use VarTree.
230 * library/variables.tcl: Deleted.
231 * library/vartree.ith: New file.
232 * library/vartree.itb: New file. Implements a variable
234 * library/tclIndex: Rebuilt.
236 2002-11-06 Martin M. Hunt <hunt@redhat.com>
237 * library/globalpref.itb (_build_win): Add radiobox
238 to select KDE/GNOME/default for pref gdb/compat. Remove
241 * library/regwin.itb (build_win): Colors(hbg) has been
242 removed so use Colors(bg) instead.
244 * library/prefs.tcl (pref_set_defaults): Add a new
245 preference "gdb/compat" which can be set to KDE, GNOME,
246 Windows or default. This allows us to change Insight's
247 behavior based on windowing system.
248 (pref_set_colors): Attempt to read in .gtkrc files.
249 Do different things for KDE vs GNOME.
250 (pref_load_default): New function. Load default colors.
251 (pref_load_gnome): New function. Find and open GNOME file.
252 (load_gnome_file): New function. Loads GNOME file.
253 (pref_set_option_db): New function. Set option database.
255 2002-11-06 Martin M. Hunt <hunt@redhat.com>
256 * generic/gdbtk-varobj.c: Remove FREEIF and replace with xfree.
257 Make format_string static.
258 (variable_update): Return an object
259 with "-1" in it on error.
261 2002-11-06 Keith Seitz <keiths@redhat.com>
263 * generic/gdbtk-hooks.c (gdbtk_call_command): Make a null
264 cleanup and run it after every issued gdb command. Apparently
265 some commands depend on this. [This should really be part of
268 2002-10-15 Martin M. Hunt <hunt@redhat.com>
270 * library/tclIndex: Rebuilt.
272 * library/* : auto_mkindex cannot rebuild
273 tclIndex because it does not recognize the namespace
274 import in main.tcl. To get it to work again, rename the
277 configbody -> itcl::configbody
280 2002-10-10 Martin M. Hunt <hunt@redhat.com>
282 * generic/gdbtk-cmds.c (gdb_update_mem): No results
283 were being returned. Append results to result_ptr_obj_ptr.
285 2002-10-10 Martin M. Hunt <hunt@redhat.com>
287 * library/session.tcl (save): Save target_cmd,
288 attach, load, run, and cont as session prefs.
289 (notice_file_change): Load in above session
292 * library/interface.tcl (set_target): Set icons busy
293 before attempting target command and set back to idle after.
294 (run_executable): Return on ATTACH_ERROR.
295 (gdbtk_run): If run button is hit when a program
296 is currently being debugged, put up a dialog allowing
297 user to continue or cancel.
299 2002-10-09 Martin M. Hunt <hunt@redhat.com>
301 * library/targetselection.itb (init_target_db): Add gdbserver
303 (get_target_list): Always add "gdbserver" to list of valid
305 (valid_target): Always allow "gdbserver".
307 2002-09-27 Keith Seitz <keiths@redhat.com>
309 * generic/gdbtk-hooks.c (gdbtk_add_hooks): Add gdbtk_annotate_signal
310 as annotate_signalled_hook.
312 2002-09-26 Andrew Cagney <ac131313@redhat.com>
314 From Grace Sainsbury <graces@redhat.com>:
315 * generic/gdbtk-main.c: New file.
317 2002-09-24 Martin M. Hunt <hunt@redhat.com>
319 * library/srctextwin.itb (FillMixed): Fix debug
320 statement for 64-bit.
321 (_highlightAsmLine): Fix 64-bit arithmetic.
323 2002-09-19 Martin M. Hunt <hunt@redhat.com>
325 * library/srctextwin.itb (FillAssembly): Fix debug
326 statement for 64-bit addresses.
327 (showBPBalloon): Fix for 64-bit addresses.
329 * library/memwin.itb (incr_addr): Fix 64-bit addresses.
331 2002-09-18 Keith Seitz <keiths@redhat.com>
333 * library/console.itb (_build_win): Bind control-c and control-v
336 2002-08-15 Keith Seitz <keiths@redhat.com>
338 * README: Massive update.
340 2002-08-14 Keith Seitz <keiths@redhat.com>
342 * README.GDBTK: Updated and renamed to README.
343 * README: "New" file.
345 2002-08-14 Keith Seitz <keiths@redhat.com>
347 * library/srcbar.itcl (create_plugin_menu): Deal with
348 multi plugin directories.
349 Catch any errors that might occur reading plugin.tcl.
350 * library/main.tcl: Add plugins from new default directory.
351 (INSIGHT_PLUGINS): New environment variable to point to other
354 2002-08-14 Keith Seitz <keiths@redhat.com>
356 * library/plugins: Removed.
357 * plugins/: New folder to hold plugins.
358 * Makefile.am, Makefile.in, aclocal.m4, configure,
359 configure.in: New files.
361 2002-08-14 Keith Seitz <keiths@redhat.com>
363 * generic/gdbtk.c (view_command): New function to display
364 location in source window.
365 (gdbtk_init): Add new gdb "view" command.
367 2002-08-06 Keith Seitz <keiths@redhat.com>
369 * library/srcwin.itb (_build_win): Anchor status label so that
370 text appears at left instead of centered.
372 2002-08-03 Andrew Cagney <ac131313@redhat.com>
374 * generic/gdbtk-bp.c: Include "gdb_string.h".
375 * generic/gdbtk-register.c: Ditto.
376 * generic/gdbtk-varobj.c: Ditto.
378 2002-08-01 Keith Seitz <keiths@redhat.com>
380 * library/prefs.tcl (pref_read): Don't suppress setting the default
381 colors if the user has suppressed reading the preferences file.
383 2002-07-31 Keith Seitz <keiths@redhat.com>
385 * library/browserwin.itb (_full_funcs_combo): Remove "-modal"
386 option from tk_messageBox call. It was redhat-local in tk8.0,
387 but is no longer in tk8.3.
388 * library/download.itb (download_it): Likewise.
389 * library/interface.tcl (gdbtk_tcl_query): Likewise.
390 (show_warning): Likewise.
392 (set_target): Likewise.
393 * library/memwin.itb (error_dialog): Likewise.
394 * library/srcwin.itb (fillFuncCB): Likewise.
395 * library/util.tcl (tfind_cmd): Likewise.
397 2002-07-03 Martin M. Hunt <hunt@redhat.com>
399 * generic/gdbtk-hooks.c (gdbtk_call_command): Use cmd_func().
401 2002-06-12 Keith Seitz <keiths@redhat.com>
403 * library/gdbmenubar.itcl (add): Add new "cascade" type.
404 (menubar_add_cascade): New method to build cascading menus.
406 2002-06-07 Martin M. Hunt <hunt@redhat.com>
408 * library/prefs.tcl (pref_set_colors): New function. Set up colors
409 from Windows system colors or X resource database. Save in array.
410 (pref_set_defaults): Remove gdb/font/normal_fg, etc.
411 (pref_read): Call pref_set_colors.
413 * library/main.tcl: Remove call to "tix resetoptions TixGray".
415 * library/bpwin.itb, library/browserwin.itb, library/console.itb,
416 library/globalpref.itb, library/memwin.itb, library/process.itb,
417 library/regwin.itb, library/srcpref.itb, library/srctextwin.itb,
418 library/stackwin.itb, library/tdump.tcl, library/tracedlg.tcl,
419 library/variables.tcl: Replace calls to [pref get gdb/fonts/*]
420 for colors with references to Color array. Remove all tixOptions calls.
421 Fix up colors as necessary.
423 2002-05-31 Martin M. Hunt <hunt@redhat.com>
425 * library/prefs.tcl (pref_read): If the regular expression
426 cannot parse line, print debug message and skip it.
428 2002-05-15 Martin M. Hunt <hunt@redhat.com>
430 * library/help/register.html: Rewrite docs.
432 * library/regwin.ith (_types): New private variable array to save
433 the possible types for each register.
434 (_type): New private variable array to save the selected type for
436 (_rows): New private variable. Number of rows in the table.
437 (_cols): New private variable. Number of cols in the table.
438 (_load_prefs): New private method.
439 (_open_memory): New private method.
440 (_edit_menu): Deleted:
442 (_change_format): Add optional type argument.
444 * library/regwin.itb (RegWin::_load_prefs): New method. Collects
445 all the prefs stuff here instead of in _layout_table. Prefs
446 code was all rewritten to handle new types and formats.
447 (RegWin::_build_win): Disable Double-1 binding. Bind
448 button 1 to edit the cell. Don't make an Edit menu item.
449 Remove Natural, Binary, Octal, and Raw formats. Add "Open
450 Memory Window" menu item.
451 (RegWin::_dimensions): This function was being abused so I removed
452 it. Replaced with inline code in _layout_table which saves its
453 computed values so it doesn't have to be recalculated unless
455 (RegWin::_layout_table): Rewritten to be more efficient. Grabs
456 all values in one call to gdb_reginfo instead of one for each register.
457 Uses new types and formats. Calls _load_prefs.
458 (RegWin::_accept_edit): Use type information when setting value.
459 When done, call _unedit to remove tags.
460 (RegWin::_open_memory): Open memory window with initial value
461 set to the value of a register.
462 (RegWin::_but3): Add types menu items. Limit format options
463 to reasonable ones. Add "Open Memory Window". Add "Help"
464 (RegWin::_edit): Just call _select_cell.
465 (RegWin::_edit_menu): Deleted.
466 (RegWin::_move): Don't recompute rows and cols; use _rows and
467 _cols computed by _layout_table.
468 (RegWin::_post_menu): Update types and formats. Disable "Open Memory
469 Window" if register is not integer. Remove Edit.
470 (RegWin::_select): Deleted.
471 (RegWin::_select_cell): Tag cell as being edited. Then
472 call focus, which is a workaround for a TkTable glitch where
473 the insertion bar sometimes disappeared.
474 (RegWin::_unedit): Clear selection. Call focus. Don't change
476 (RegWin::_get_value): Eliminate previous crap and just call
478 (RegWin::_change_format): Add optional type arg. Call
479 "gdb_reginfo format".
480 (RegWin::_update): Get a list of all the changed registers
481 instead of checking one at a time.
483 * generic/gdbtk-register.c (Gdbtk_Register_Init): Don't
484 create gdb_pc_reg. It is not used. Call register_gdbarch_swap
485 with regformat and regtype.
486 (gdb_register_info): Add "type" and "format" options.
487 (get_pc_register): Delete.
488 (get_register_types): New function. Returns list of valid types
489 for a list of registers.
490 (get_register): Use saved format and type for each register. Check if
491 there are any registers yet (target not running). Use mem_file
492 to collect output. Append output to a list.
493 (map_arg_registers): If passed a list, iterate though each element
494 and build a list of values to return.
495 (setup_architecture_data): Memory was not being initialized, so
496 use xcalloc(). Allocate memory for regformat and regtype.
497 (gdb_regformat): New function called by "gdb_reginfo format".
499 2002-05-15 Martin M. Hunt <hunt@redhat.com>
501 * generic/gdbtk-cmds.c (gdb_eval): For mem_file stuff, delete
502 the file when done and free memory.
504 2002-05-06 Martin M. Hunt <hunt@redhat.com>
506 * library/session.tcl (notice_file_change): Catch the
507 directory change, in case the directory no longer exists.
509 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
511 * generic/gdbtk-register.c (get_register, register_changed_p):
512 Don't depend on variable-sized automatic arrays.
514 2002-05-04 Andrew Cagney <ac131313@redhat.com>
516 * generic/gdbtk-wrapper.h (GDB_select_frame): Delete declaration.
517 * generic/gdbtk-wrapper.c (GDB_select_frame): Delete function.
518 (wrap_select_frame): Delete function.
520 2002-04-26 Martin M. Hunt <hunt@redhat.com>
522 * library/interface.tcl (gdbtk_force_quit): New function.
523 Closes source windows then calls gdb_force_quit.
524 (gdbtk_quit): Call gdbtk_force_quit.
526 2002-04-24 Keith Seitz <keiths@redhat.com>
528 * library/managedwin.ith (_ignore_on_save): New protected method.
529 * library/managedwin.itb (shutdown): If _ignore_on_save, don't
530 save this window to the active window list in the preferences
532 * library/debugwin.ith (DebugWin::_ignore_on_save): Don't save
533 this window to preferences active list.
534 (DebugWinDOpts::_ignore_on_save): Likewise.
535 * library/pluginwin.itcl (_ignore_on_save): Likewise.
536 * library/download.ith (_ignore_on_save): Likewise.
538 2002-04-22 Keith Seitz <keiths@redhat.com>
540 * generic/gdbtk-stack.c (Gdbtk_Stack_Init): Don't link
541 selected_frame_level directly.
542 * generic/gdbtk-hooks.c (gdbtk_selected_frame_changed): Set
543 the global "gdb_selected_frame_level" directly.
545 2002-04-21 Andrew Cagney <ac131313@redhat.com>
547 * generic/gdbtk-wrapper.c (GDB_find_frame_addr_in_frame_chain):
549 (wrap_find_frame_addr_in_frame_chain): Delete function.
550 * generic/gdbtk-wrapper.h (GDB_find_frame_addr_in_frame_chain):
553 2002-04-17 Andrew Cagney <cagney@redhat.com>
555 * generic/gdbtk.c (gdbtk_init): Use error or throw_exception to
558 2002-04-12 Andrew Cagney <cagney@redhat.com>
560 * generic/gdbtk-register.c (register_changed_p): Use
561 frame_register_read instead of read_relative_register_raw_bytes.
562 (get_register): Delete out-of-date comment.
564 2002-04-08 Andrew Cagney <ac131313@redhat.com>
566 * generic/gdbtk-wrapper.c (wrap_get_frame_block): Add missing NULL
567 parameter. Match recent get_frame_block changes.
569 2002-04-05 Keith Seitz <keiths@redhat.com>
571 * generic/gdbtk-stack.c (gdb_block_vars): Update get_frame_block to
572 match recent gdb changes.
573 (gdb_get_blocks): Likewise.
574 (gdb_get_vars_command): Likewise.
575 (gdb_selected_block): Likewise.
577 2002-04-04 Keith Seitz <keiths@redhat.com>
579 * library/download.itb (constructor): Set feedback meter
581 Remove "steps" array.
582 (update_download): Use fractional completions for feedback.
584 * library/download.ith (protected variable steps): Remove.
586 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
588 * generic/gdbtk-cmds.c (gdb_disassemble_driver): Skip
589 end-of-function markers in the line table.
591 2002-04-01 Keith Seitz <keiths@redhat.com>
593 * generic/gdbtk-cmds.c (gdb_load_disassembly): Use string_to_core_addr
594 instead of parse_and_eval_address.
595 Use xfree instead of free.
597 2002-03-25 Elena Zannoni <ezannoni@redhat.com>
599 * generic/gdbtk-hooks.c: Include cli/cli-decode.h for
602 2002-03-25 Alexandre Oliva <aoliva@redhat.com>
604 * generic/gdbtk.c (HAS_STDARG): Define.
605 * generic/gdbtk-cmds.c (HAS_STDARG): Likewise.
606 * generic/gdbtk-hooks.c (HAS_STDARG): Likewise.
608 2002-03-14 Keith Seitz <keiths@redhat.com>
610 * library/bpwin.itb (constructor): Set some sane initial
613 2002-03-07 Martin M. Hunt <hunt@redhat.com>
615 * library/srctextwin.itb (SrcTextWin::showBPBalloon): Put
616 linefeeds between multiple breakpoints.
618 2002-03-06 Martin M. Hunt <hunt@redhat.com>
620 * library/srctextwin.itb (SrcTextWin::showBPBalloon):
621 Reformat output. Add conditions, ignore count, commands.
623 * library/interface.tcl (gdbtk_tcl_readline): Remove
624 call to "command::insert" and instead insert the command
625 into the console window.
626 (gdbtk_tcl_readline_end): Catch the unsets and do not call
627 non-existent function command::end_multi_line_input.
629 2002-03-06 Martin M. Hunt <hunt@redhat.com>
631 * library/bpwin.itb: Left-justify the labels in
634 2002-03-06 Keith Seitz <keiths@redhat.com>
636 * generic/gdbtk-cmds.c: Include "ctype.h" if available.
637 (gdb_get_mem): Renamed to gdb_update_mem.
638 (gdb_update_mem): Take array as first tcl argument. This
639 array will hold the data for the table, which is now stuffed
641 (gdb_eval): Use our own ui-file instead of gdb_stdout.
642 * library/memwin.ith (_update_address): New method.
643 (update_address): Address expression is no longer optional.
644 * library/memwin.itb (build_win): Use _update_address instead of
646 (toggle_enabled): Ditto.
647 (newsize): Use _update_address instead of update_addr.
648 (update_address_cb): Use _update_address instead of update_address.
649 (do_popup): Likewise.
651 (incr_addr): Use _update_address instead of update_addr.
652 (edit): Use gdb_update_mem instead of gdb_get_mem.
653 (update_addr): use gdb_update_mem to do all the window updating.
655 2002-03-06 Martin M. Hunt <hunt@redhat.com>
657 * library/srcwin.itb: Don't try to set balloon help
658 for search widget; it moved to srcbar.
660 2002-03-05 Martin M. Hunt <hunt@redhat.com>
662 * library/prefs.tcl (pref_read): If a preference specifies
663 "src-font", substitute "global/fixed".
664 (pref_set_defaults): Change defaults from "src-font" to
665 "global/fixed". Do not create font object "src-font". Do
666 not add hook to trace its changes.
667 (pref_src-font_trace): Remove.
669 * library/console.itb (Console::_update_option): Remove
670 font update because this happens automatically.
672 * library/globalpref.itb: No need to set
673 changed flag for fonts; updates happen automatically
674 when prefs are updated.
676 * library/bpwin.itb: Replaced src-font with global/fixed.
677 * library/browserwin.itb: Ditto.
678 * library/mempref.itb: Ditto.
679 * library/memwin.itb: Ditto.
680 * library/process.itb: Ditto.
681 * library/regwin.itb: Ditto.
682 * library/srcbar.itcl: Ditto.
683 * library/srcpref.itb: Ditto.
684 * library/srctextwin.itb: Ditto.
685 * library/srcwin.itb: Ditto.
686 * library/stackwin.itb: Ditto.
687 * library/tdump.tcl: Ditto.
688 * library/tracedlg.tcl: Ditto.
689 * library/variables.tcl: Ditto.
690 * library/watch.tcl: Ditto.
692 2002-03-01 Keith Seitz <keiths@redhat.com>
694 * generic/gdbtk-register.c (register_changed_p): Don't use REGISTER_BYTES.
695 There is no guarantee anymore that REGISTER_BYTES contains
696 NUM_REGS+NUM_PSEUDO_REGS registers.
697 (setup_architecture_data): Likewise.
699 2002-02-25 Ian Roxborough <irox@redhat.com>
701 * library/srcbar.itcl (SrcBar::create_buttons): Added
702 "Search in source file" entry box and label to the top
704 * library/srcwin.itb (SrcWin::_build_win): Removed
705 "Search in source file" entry box.
706 (SrcWin::_search): Renamed to "search", add string
707 parameter and cleaned up.
708 * library/srcwin.ith (SrcWin): Removed private
709 method "_search" and added public method "search".
711 2002-02-17 Tom Tromey <tromey@redhat.com>
713 * library/tclIndex: Updated.
714 * library/srcbar.itcl (SrcBar): Use new Session namespace.
715 * library/main.tcl: Use new Session namespace.
716 * library/interface.tcl (gdbtk_tcl_preloop): Use new Session
718 (gdbtk_cleanup): Likewise.
719 (_close_file): Likewise.
720 * library/session.tcl: Use a namespace. Renamed all functions.
722 2002-02-13 Martin M. Hunt <hunt@redhat.com>
724 * generic/gdbtk-hooks.c (gdbtk_print_frame_info): Don't
725 set GDB globals current_source_symtab and current_source_line.
728 2002-02-13 Keith Seitz <keiths@redhat.com>
730 * library/managedwin.itb (_create): If given a transient window,
731 make sure that the SrcWin that is to become its master exists;
734 2002-02-12 Keith Seitz <keiths@redhat.com>
736 From Don Bowman <don@sandvine.com>:
737 * library/targetselection.itb (init_target_db): Add target
741 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
743 * generic/gdbtk-cmds.c (gdb_listfuncs): Don't call
745 * library/browserwin.itb (BrowserWin::_fill_funcs_combo): Sort
746 the output of gdb_listfuncs.
748 2002-02-07 Martin M. Hunt <hunt@redhat.com>
750 * generic/gdbtk.c, generic/gdbtk-bp.c, generic/gdbtk-cmds.c,
751 generic/gdbtk-hooks.c, generic/gdbtk-stack.c: Cleanup includes.
753 2002-02-06 Martin M. Hunt <hunt@redhat.com>
755 * generic/gdbtk.c, generic/gdbtk-bp.c, generic/gdbtk-cmds.c,
756 generic/gdbtk-hooks.c, generic/gdbtk-register.c,
757 generic/gdbtk-stack.c, generic/gdbtk-varobj.c,
758 generic/gdbtk-wrapper.c: Cleanup. Fix indentation. Fix
759 function declarations. Remove unused variables. Add 2002
762 2002-02-06 Keith Seitz <keiths@redhat.com>
764 * library/images/cygnus.gif: Remove.
765 * library/images2/cygnus.gif: Remove.
767 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
769 * generic/gdbtk-cmds.c (gdbtk_load_asm, gdbtk_print_asm): Use
770 TARGET_PRINT_INSN instead of tm_print_insn.
772 2002-01-18 Keith Seitz <keiths@redhat.com>
774 * library/console.ith (get_text): Delete.
775 (test): New public method.
776 * library/console.itb (get_text): Delete.
777 (test): New public method.
779 2002-01-15 Keith Seitz <keiths@redhat.com>
781 * generic/gdbtk-varobj.c (variable_value): When varobj_get_value
782 fails, use error_last_message to return the error to tcl land.
783 This allows us to display nice messages about why "0xdeadbeef" is
786 2002-01-11 Martin M. Hunt <hunt@redhat.com>
788 * library/memwin.itb (idle): Check for existence of window.
789 Prevents race-condition error.
791 * library/srctextwin.itb (enable): Check for existence of $twin.
793 * library/interface.tcl (gdbtk_tcl_exec_file_display):
794 Set pathname in host-independent manner using "file" and
795 gdb_current_directory.
797 2002-01-10 Keith Seitz <keiths@redhat.com>
799 * library/Makefile (ITCL_SH): Renamed to "ITCLSH".
800 (tclIndex): We no longer have an Itcl shell, so we must use
801 "package require Itcl".
803 2002-01-08 Keith Seitz <keiths@redhat.com>
805 * generic/gdbtk-cmds.c (gdb_find_file_command): If the symtab
806 doesn't have the filename's fullname, look it up with
809 2002-01-08 Keith Seitz <keiths@redhat.com>
811 * library/srcwin.itb (location): Fix typo. It's "addr" not
814 2002-01-08 Tom Tromey <tromey@redhat.com>
816 * library/interface.tcl (gdbtk_tcl_preloop): Use current directory
819 2002-01-07 Ian Roxborough <irox@redhat.com>
821 * library/srcbar.itcl (SrcBar::create_buttons): Line number
822 and address fields have been removed and added to the
824 * library/srcwin.itb (SrcWin::_build_win): Add address and
825 line number fields to status bar. Moved download progress
827 (SrcWin::download_progress): Use canvas on status bar.
828 Remember to adjust width of 64-bit address.
829 (SrcWin::location): Set line number and address on status bar.
830 * library/srcwin.ith (SrcWin): Added new private variable.
832 2002-01-04 Andrew Cagney <ac131313@redhat.com>
834 * generic/gdbtk-cmds.c (gdb_disassemble_driver): Replace
835 LITTLE_ENDIAN with BFD_ENDIAN_LITTLE.
836 * generic/gdbtk-register.c (get_register): Ditto.
838 2002-01-04 Andrew Cagney <ac131313@redhat.com>
840 * generic/gdbtk-wrapper.h: Add typedef value_ptr.
842 2002-01-03 Martin M. Hunt <hunt@redhat.com>
844 * library/session.tcl (SESSION_serialize_bps): Ignore
845 breakpoints set on internal_error and info_command because
846 these are set by .gdbinit and will be recreated by it.
847 This is a bit of a hack and should be fixed properly
850 * library/debugwin.itb: Fix incorrect button names
851 so they will be enabled/disabled properly.
853 * library/srctextwin.itb: Set focus on srcwin only
854 if another window doesn't have the focus.
856 2002-01-02 Keith Seitz <keiths@redhat.com>
858 * library/interface.tcl (set_exe): Allow users to debug
859 executables with no debug information.
861 2002-01-02 Keith Seitz <keiths@redhat.com>
863 * library/console.ith (insert): Add tag parameter.
865 * library/console.itb: (insert): Add tag parameter.
867 * library/interface.tcl (gdbtk_tcl_fputs): Use Console::insert.
868 (gdbtk_tcl_fputs_error): Likewise.
869 (gdbtk_tcl_fputs_log): Likewise.
870 (gdbtk_tcl_fputs_target): Likewise.
871 (set_target): Likewise.
873 2002-01-02 Ian Roxborough <irox@redhat.com>
875 * library/managedwin.itb (ManagedWin::_create): When
876 making a modal window transient, use the source window
877 as the master and not ".".