1 Mon Jun 15 13:18:21 1998 Jim Ingham <jingham@cygnus.com>
3 * gdbtk.c (gdbtk_init): Add elements to the auto_path AS LIST
4 ELEMENTS. This allows gdbtk to work when installed in a directory
5 which has a space in the path. D. Moseley pointed out the bug.
8 Tue Jun 9 14:10:46 1998 Keith Seitz <keiths@cygnus.com>
10 * gdbtk.c (gdb_get_vars_command): Return static variables and
11 variables stored in registers.
13 * main.c (main): Call pre/post_add_symbol_hook's when loading
14 executables and symbol files.
16 Fri Jun 5 00:16:22 1998 Martin M. Hunt <hunt@cygnus.com>
18 * gdbtk.c (gdbtk_init): Change all references to
19 GDBTK_IDE to IDE_ENABLED.
21 Thu Jun 4 18:31:53 1998 Martin M. Hunt <hunt@cygnus.com>
23 * gdbtk.c (gdbtk_init): Initialize tkTable.
25 Thu Jun 4 10:15:03 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
29 - Elena Zannoni <ezannoni@kwikemart.cygnus.com>
30 (call_obj_wrapper): in case of error, copy the
31 error message from the result to the error_string.
32 (gdbtk_fputs): add comments.
33 (gdb_actions_command): call validate_actionline when installing the
34 tracepoint, to do the syntax checking of the actions for us.
35 - Elena Zannoni <ezannoni@kwikemart.cygnus.com>
36 (gdb_get_trace_frame_num): new function to get the
37 trace frame number from gdb.
38 (gdbtk_init): added new command gdb_get_trace_frame_num.
39 - Jim Blandy <jimb@zwingli.cygnus.com>
40 (struct wrapped_call_objs): Change the `func' member to
41 be a Tcl_ObjCmdProc, not an Tcl_CmdProc, since it accepts a vector
42 of objects as arguments. Change the object vector to be const,
43 since that's what all the users of this structure seem to expect.
44 (call_obj_wrapper): Cast clientData properly before storing it in
45 the wrapped_args structure.
47 Thu May 28 17:19:14 1998 Keith Seitz <keiths@cygnus.com>
49 * gdbtk.c (_initialize_gdbtk): Get rid of the console. Patch from
50 Chris Faylor (cgf@cygnus.com).
52 * configure.in: Link cygwin32 with subsystem console.
54 * configure: Regenerated
56 Sun May 24 14:00:24 1998 Keith Seitz <keiths@cygnus.com>
58 * ser-unix.c (wait_for): Do not reset timeout_remaining for cygwin32 so that
59 we can use this member to track real timeouts.
60 (hardwire_readchar): Modify for cygwin32 so that we only ever use a real
61 system timeout of one second. Track the "real" timeout as a series of these
63 Call ui_loop_hook to keep the gui alive.
65 * top.c: Define new hook for cygwin32, "ui_loop_hook".
67 * gdbtk.c (gdbtk_init): Add ui_loop_hook for CygWin32 to work around
70 Thu May 21 13:56:24 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
72 * gdbtk.c: reinserted the changes that were accidentally deleted:
73 (_initialize_gdbtk): Use correct device names in
74 cygwin-specific call (cosmetic change).
75 (gdbtk_ignorable_warning): removed va_list parameter,
77 (_initialize_gdbtk): add cygwin32 specific code to
78 allow `gdb -nw' to work when specified specified from a windows
79 console-mode command line.
81 Wed May 13 11:12:58 1998 James Ingham <jingham@leda.cygnus.com>
83 * gdbtk.c: Fixed a goof in the definition of the gdb_get_args &
84 gdb_get_locals Tcl commands. Moved the previous ChangeLog entry
85 from ChangeLog to ChangeLog-gdbtk (here)...
87 Tue May 12 13:29:20 1998 Jeff Holcomb <jeffh@cygnus.com>
89 * Makefile.in (install-only): Add images/icons.txt and
90 images2/icons.txt to files that need to be installed.
92 Tue May 12 12:03:16 1998 James Ingham <jingham@leda.cygnus.com>
94 * gdbtk.c: Add an object call wrapper for the new Tcl_Obj based
95 commands. This way the obj commands will also go through
96 catch_errors. This is just a bandaid while I rewrite the
97 string-based commands to use the object format.
99 Tue May 5 09:30:25 1998 Christopher Faylor <cgf@cygnus.com>
101 * gdbtk.c (_initialize_gdbtk): Use correct device names in
102 cygwin-specific call (cosmetic change).
104 Wed Apr 29 15:53:16 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
106 * gdbtk.c (gdbtk_ignorable_warning): removed va_list parameter,
109 Thu Apr 23 19:01:05 1998 Keith Seitz <keiths@onions.cygnus.com>
111 * Makefile.in (install-only): Install help files.
113 Wed Apr 22 21:17:35 1998 Christopher Faylor <cgf@cygnus.com>
115 * gdbtk.c (_initialize_gdbtk): add cygwin32 specific code to
116 allow `gdb -nw' to work when specified specified from a windows
117 console-mode command line.
119 Wed Apr 15 11:23:53 1998 Stan Shebs <shebs@andros.cygnus.com>
121 * gdbtcl: Remove directory and contents, this version of
122 the interface is obsolete.
124 Mon Apr 13 16:17:52 1998 Martin M. Hunt <hunt@cygnus.com>
126 * gdbtk.c (gdb_loadfile): Change fstat() call to stat().
127 Needed because you can't convert a FILE* to an fd.
129 Mon Apr 13 16:28:07 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
131 * gdbtk.c: (perror_with_name_wrapper) new function to call
132 perror_with_name safely.
133 (gdb_loadfile) added source vs. executable time stamp check.
134 (gdbtk_warning) new function to pass a warning message to the gui.
135 (gdbtk_ignorable_warning) new function to pass a warning
136 to the gui. Used only for the src. vs. exec check.
137 (gdbtk_init) added warning_hook
138 added include <sys/stat.h>
140 Mon Apr 13 12:58:26 1998 Keith Seitz <keiths@onions.cygnus.com>
142 * gdbtk.c (gdbtk_start_timer): Include on all platforms. Decrease
143 timer interval a little.
144 (gdbtk_stop_timer): Include on all platforms.
145 (gdbtk_wait): No more signals! Use a timer on all platforms to keep the
147 (gdbtk_init): Remove FIOASYNC and all x_fd references. Now using timers
150 Fri Apr 10 15:48:10 1998 Jason Molenda (crash@bugshack.cygnus.com)
152 * gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.
154 Thu Apr 9 14:20:59 1998 Martin M. Hunt <hunt@cygnus.com>
156 * gdbtk.c (gdbtk_init): Remove redundant variable "IDE".
158 Tue Apr 7 15:13:58 1998 Stan Shebs <shebs@andros.cygnus.com>
160 * gdbtk.tcl: Remove, no longer used.
162 Tue Apr 7 12:49:45 1998 Keith Seitz <keiths@onions.cygnus.com>
164 * gdbtk.c (gdb_cmd): NEVER call the busy, update, and idle hooks.
166 Tue Mar 31 15:42:06 1998 Keith Seitz <keiths@onions.cygnus.com>
168 * gdbtk.c (gdb_loadfile): Don't use the return result from
169 sprintf, which returns a char * under SunOS4.
171 Tue Mar 31 17:18:43 1998 Ian Lance Taylor <ian@cygnus.com>
173 * configure.in: Add $(LIBIDETCL) as well as $(LIBIDE) if
175 * Makefile.in (IDE_CFLAGS_X): Add -I for libidetcl/src.
177 * configure: Rebuild.
179 Sun Mar 29 21:19:46 1998 Keith Seitz <keiths@onions.cygnus.com>
181 * gdbtk.c (gdb_get_tracepoint_info): Change formatting of address.
182 (tracepoint_exists): Remove code which confuses assembly traces.
184 Sat Mar 28 12:13:23 1998 Keith Seitz <keiths@onions.cygnus.com>
186 * gdbtk.c (gdb_cmd): If argc > 2, assume that the busy and idle hooks
187 should not be called.
189 Thu Mar 26 22:29:28 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
191 * gdbtk.c: (gdb_trace_status) new function.
192 (gdbtk_init) added command "gdb_is_tracing".
193 (tracepoint_notify) added passcount information.
195 Thu Mar 26 12:00:35 1998 Martin M. Hunt <hunt@cygnus.com>
197 * gdbtk.c (gdbtk_fputs): Insert fencepost.
198 (gdb_loc): Correct pc calculation.
199 (gdb_immediate_command): Return if a load is in progress.
200 (gdb_cmd): Return if a load is in progress.
201 (target_stop_wrapper): New function.
202 (gdb_stop): Call target_stop_wrapper.
203 (x_event): Add fencepost and optimize load cancel check.
204 (gdbtk_start_timer): Set up structs only once.
205 (gdbtk_stop_timer): Just use preset structs to set timer parameters.
206 (gdb_loadfile): If file cannot be loaded, return error message.
207 (gdb_loadfile): Add space before tab so that lines without
208 a '-' can later be changed to have one.
210 Wed Mar 25 14:08:51 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
212 * gdbtk.c (gdbtk_pre_add_symbol): Use Tcl_merge to form Tcl commands.
214 Mon Mar 23 13:41:39 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
216 * gdbtk.c (gdb_get_mem): Rewrite to fetch entire contents
217 of the memory window at once.
219 Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
221 Merged changes from Foundry: list follows by author:
223 - Tom Tromey <tromey@cygnus.com>
225 * Makefile.in (gdbres.o): New target.
226 (WINDRES): New define.
227 * configure: Rebuilt.
228 * configure.in (WINDRES): Define.
229 (CONFIG_OBS): Include gdbres.o on Windows.
230 * gdbtool.ico: New file.
232 * gdbtk.c (gdbtk_init): Call ide_create_messagebox_command.
233 (gdbtk_cleanup): Call ide_interface_deregister_all.
234 (gdbtk_init): Pass event handle to cleanup.
235 (TclDebug): Use Tcl_Merge to construct command.
236 (gdbtk_init): Call ide_create_cygwin_path_command.
238 - Martin M. Hunt <hunt@cygnus.com>
240 * gdbtk.c (gdb_set_bp): Set addr_string for bp.
241 (gdb_get_breakpoint_info): Demangle function
242 names in breakpoint info.
243 Include "demangle.h".
244 (gdb_loc, gdb_listfuncs): Demangle C++
246 (gdb_set_bp): Properly quote filename to fix
247 problems with spaces. Send pc back as a hex string.
248 (gdb_listfuncs): Remove debugging line.
249 Turn off some debugging lines.
250 (breakpoint_notify): Return correct line number.
251 (gdb_get_breakpoint_info): Return correct line number.
252 (gdb_set_bp): New function to provide a better way to
254 (gdbtk_readline, gdbtk_readline_begin): Memory
255 allocated by tcl needs to be freed by Tcl_Free().
256 (find_file_in_dir): Deleted.
257 (gdb_find_file_command): Call full_lookup_symtab().
258 (gdb_listfuncs): Call full_lookup_symtab().
259 (full_lookup_symtab): New function. Like lookup_symtab
260 except handles multiple files with the same basename,
261 full pathnames, and always sets symtab->fullname.
262 (gdb_loadfile): Call full_lookup_symtab(). Clear
264 (gdb_loadfile): Don't tag lines without source.
265 Tag source lines with source_tag.
266 (gdb_find_file_command, find_file_in_dir):
267 Rewrite. Now searches symtabs and psymtabs for a match
268 on the partial or full filename. Returns the full pathname.
269 (gdb_loadfile): Realloc additional memory
270 if someone loads in a file with more than 160,000
271 lines. I don't know if this really works because
272 I don't have enough memory to test it.
273 (gdb_sourcelines): Deleted.
274 (gdb_loadfile): New function. Takes a text widget
275 and loads it with the contents of a file. Marks
276 and tags source lines.
277 (pc_changed): New function.
278 (get_pc_register): Returns the value of
280 (gdb_loc): If looking on the stack, return
281 real pc along with calling source line.
282 (gdb_loc): Return "" instead of "N/A" if
283 filename is not found.
284 (gdb_get_breakpoint_info): Same.
285 (get_register): For Natural mode, set format to 0.
286 Minor bugfixes from keiths.
287 (TclDebug): New function for debugging use.
288 (gdb_loc): Return correct PC for frames
289 that are not the innermost frame.
290 (gdb_listfiles): Rewritten to use object
291 API. Now takes an optional dirname which will cause
292 only files in that directory or its subdirectories
293 to be returned. Now returns basenames instead of
295 (gdb_cmd): Set/reset load_in_progress flag.
296 (call_wrapper): Don't pop up dialog for errors in
297 downloads; just abort download.
298 (gdbtk_load_hash): Set return value correctly.
300 - Keith Seitz <keiths@onions.cygnus.com>
302 * gdbtk.c (gdbtk_init): Define the ui_loop_hook so that it can be
303 called by routines which might block, allowing us to update the GUI.
304 (gdbtk_wait): Move timer calls to annotation hooks.
305 (gdbtk_init): Define the annotation hooks.
306 (gdbtk_annotate_starting): New function for cygwin32 hosts.
307 (gdbtk_annotate_stopped): New function for cygwin32 hosts.
308 (gdbtk_annotate_exited): New function for cygwin32 hosts.
309 (gdbtk_annotate_signalled): New function. for cygwin32 hosts.
310 (gdbtk_init): Use gdbtk_print_frame_info hook.
311 (gdbtk_print_frame_info): New function which sets current_source_symtab
312 based on the given symtab and line info.
313 (gdb_immediate_command): New function which does
315 output. (Contrast to gdb_cmd.)
316 (gdb_prompt_command): New function to return gdb's prompt.
317 (find_file_in_dir): New functon which searches source paths
318 for a given filename.
319 (gdb_find_file): New function which returns path to given file -- uses
321 (gdbtk_init): Install "gdb_immediate", "gdb_find_file", and
323 commands into interpreter.
325 - Ian Lance Taylor <ian@cygnus.com>
327 * gdbtk.c (gdbtk_timer_going): If __CYGWIN32__, new static
329 (gdb_cmd): If __CYGWIN32__, if executing the load command, call
330 gdbtk_start_timer and gdbtk_stop_timer.
331 (call_wrapper): If __CYGWIN32__, if the timer is going, turn it
332 off. Clear load_in_progress.
333 (x_event): If load_in_progress, quit if download_cancel_ok.
334 (gdbtk_start_timer): Set gdbtk_timer_going.
335 (gdbtk_stop_timer): Clear gdbtk_timer_going.
336 (gdbtk_wait): Call x_event.
337 (gdbtk_init): Call ide_create_win_grab_command if
339 (gdb_clear_file): Clear stop_pc.
342 Tue Feb 10 17:50:37 1998 Keith Seitz <keiths@onions.cygnus.com>
344 * gdbtk.c (gdbtk_modify_tracepoint): Define new tracepoint modification hook.
345 (gdbtk_print_frame_info): Define this hook so that current_source_symtab
347 (gdb_actions_command): Use free_actions () from tracepoint.c/h.
349 Mon Jan 26 11:37:55 1998 Keith Seitz <keiths@onions.cygnus.com>
351 * gdbtk.c (gdb_actions_command): Make note of next action
352 before freeing all references to it.
354 Sat Jan 24 23:52:08 1998 Martin M. Hunt <hunt@cygnus.com>
356 * gdbtk.c: Merge from Foundry branch.
357 (TclDebug): New debugging function.
358 (gdb_loc): For frames, find address of calling function
359 instead of whatever is on the stack (usually the next
361 (gdb_listfiles): Takes an optional pathname argument and
362 returns an alphabetized list of basenames of files in the
365 Wed Jan 22 10:37:02 1998 Keith Seitz <keiths@onions.cygnus.com>
367 * symfile.c: Define two new hooks for symbol reading:
368 "pre_add_symbol_hook" and "post_add_symbol_hook". These hooks
369 are called before we begin reading symbols, and after we finish.
370 (generic_load): Use new symbol reading hooks and get rid of
373 * gdbtk.c (gdbtk_init): Add hooks for pre- and post-symbol reading.
374 (gdbtk_pre_add_symbol): New function: the pre-add-symbol hook.
375 (gdbtk_post_add_symbol): New function: the post-add-symbol hook.
376 (find_file_in_dir): New function. Moved the guts of gdb_find_file_command
377 into here to allow its use by others.
378 (gdb_loc): Use find_file_in_dir to return the real path to the file
379 (or "N/A" if we can't find it).
381 * configure.in (TIX_LIB_EXT): Define new variable for those special cases
382 when TCL_SHLIB_SUFFIX is not enough to specify the dependency.
384 * configure: Regenerate.
386 Fri Jan 23 07:47:06 1998 Fred Fish <fnf@cygnus.com>
388 * Makefile.in (uninstall): Remove installed gdbtcl dir, if one
391 Thu Jan 15 12:42:28 1998 Keith Seitz <keiths@onions.cygnus.com>
393 * gdbtk.c (gdb_immediate_command): New function which does not buffer any
394 output. (Contrast to gdb_cmd.)
395 (gdbtk_init): Install "gdb_immediate" command into interpreter.
397 Wed Jan 14 16:38:44 1998 Keith Seitz <keiths@pizza.cygnus.com>
399 * configure.in (--enable-gdbtk): If tcl was built with --enable-shared,
400 use TCL_SHLIB_SUFFIX to specify the suffix of the library file so that
401 we don't expect to see "libfoo.a" instead of "libfoo.{so,sl, etc}".
403 * configure: Regenerate.
405 Wed Dec 31 16:50:26 1998 Keith Seitz (keiths@onions.cygnus.com)
407 * gdbtk.c (gdb_actions_command): extract and save step count
408 from "while-stepping" command
410 Tue Dec 16 21:16:42 1997 Ian Lance Taylor <ian@cygnus.com>
412 * Makefile.in (LIBGUI): New variable.
413 (GUI_CFLAGS_X): New variable.
414 (IDE_CFLAGS): Add $(GUI_CFLAGS_X).
415 * configure.in: Add $(LIBGUI) to TCL_LIBS and CONFIG_DEPS.
416 * configure: Rebuild.
418 Wed Dec 10 13:16:45 1997 Keith Seitz <keiths@onions.cygnus.com>
420 * gdbtk.c (gdb_get_tracepoint_info): Use info in struct
421 symtab_and_line (not struct tracepoint) so that we get the
422 real line info for an address. Arrange data more like
423 gdb_get_breakpoint_info.
424 (tracepoint_notify): Use info in struct symtab_and_line again.
425 (gdbtk_init): Add command "gdb_get_tracepoint_list" into
427 (gdb_get_tracepoint_list): New function that aids the source
428 window in displaying tracepoints when the file changes.
430 Fri Dec 5 10:31:23 1997 Keith Seitz <keiths@pizza.cygnus.com>
432 * gdbtk.c (gdbtk_init): Add gdb_find_file into interpreter.
433 (gdb_find_file_command): New function which searches source path
434 to find the real full filename of a file.
436 Mon Dec 1 10:19:44 1997 Keith Seitz <keiths@onions.cygnus.com>
438 * gdbtk.c: Move include of "guitcl.h" back out of IDE ifdef.
439 (gdbtk_init): Move ide_initialize_paths out of IDE ifdef.
441 * configure.in (TCL_LIBS, CONFIG_DEPS): Add IDE libraries for all
443 (CONFIG_OBS): Remove tracepoint.o, which should always be included.
445 * configure: regenerate
447 * Makefile.in (install-only): ALWAYS install the new gdbtk
448 (REMOTE_OBS): add tracepoint.o
450 Thu Nov 27 09:07:18 1997 Michael Meissner <meissner@cygnus.com>
452 * configure.in ({TCL_LIBS,CONFIG_DEPS}): Don't add IDE libraries
454 (CONFIG_OBS): Add tracepoint.o to list if --enable-gdbtk.
455 * configure: Regenerate.
457 * gdbtk.c (gdb_get_breakpoint_info): Add missing filename
459 (toplevel): Move include of guitcl.h into #ifdef IDE region.
460 (gdbtk_init): Move ide_initialize_paths call into #ifdef IDE
463 * Makefile.in (gdbtk.o): Update dependencies.
465 Wed Nov 26 15:02:43 1997 Keith Seitz <keiths@onions.cygnus.com>
467 * gdbtk.c (gdb_loc): symtab_to_filename can return NULL.
468 (breakpoint_notify): Ditto.
469 (gdb_get_breakpoint_info): Ditto.
471 Wed Nov 26 11:33:09 1997 Keith Seitz <keiths@onions.cygnus.com>
473 Merge in code from Foundry branch:
475 * Makefile.in (install-only): install the new gdbtk, not the old
477 * gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
479 (gdbtk_init): Add new commands "gdb_get_locals", "gdb_get_args",
480 "gdb_get_function", "gdb_get_line", "gdb_get_file",
481 "gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
483 (gdb_get_vars_command): New function.
484 (gdb_get_line_command): New.
485 (gdb_get_file_command): New.
486 (gdb_get_function_command): New.
487 (gdb_get_tracepoint_info): New.
488 (gdbtk_create_tracepoint): New.
489 (gdbtk_delete_tracepoint): New.
490 (tracepoint_notify): New.
491 (tracepoint_exists): New.
492 (gdb_actions_command): New.
493 (gdb_tracepoint_exists_command): New.
494 (gdb_prompt_command): New.
496 Thu Nov 13 18:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
498 * gdbtk.c: Move include of gdbcore.h to top of file.
499 (close_bfds): New static function if _WIN32.
500 (gdbtk_readline): Call close_bfds.
501 (call_wrapper, tk_command_loop): Likewise.
502 (gdb_clear_file): New static function.
503 (gdbtk_init): Create gdb_clear_file Tcl command.
505 Wed Nov 12 14:58:39 1997 Jeff Holcomb <jeffh@cygnus.com>
507 * gdbtk.c: gdbtk_load_hash and ui_load_progress_hook return an
509 (gdbtk_load_hash): download hash routine returns an int result.
511 Mon Nov 10 15:11:51 1997 Ian Lance Taylor <ian@cygnus.com>
513 * gdbtk.c (gdbtk_init): Call ide_create_shell_execute_command if
515 * configure.in: Add -lshell32 to WIN32LIBS on cygwin32.
516 * configure: Rebuild.
518 Sun Nov 9 16:25:34 1997 Tom Tromey <tromey@cygnus.com>
520 * gdbtk.c (gdbtk_init): Run ide_create_help_command.
522 Tue Oct 28 17:31:47 1997 Martin M. Hunt <hunt@cygnus.com>
524 * gdbtk.c (gdbtk_init): Call ide_create_winprint_command.
526 Thu Oct 23 15:53:37 1997 Ian Lance Taylor <ian@cygnus.com>
528 * configure.in: Add -lgdi32 to WIN32LIBS when linking gdbtk on
530 * configure: Rebuild.
532 Wed Oct 22 21:32:54 1997 Martin M. Hunt <hunt@cygnus.com>
534 * gdbtk.c (gdbtk_init): Create sizebox command on Windows.
536 Thu Oct 9 14:33:21 1997 Ian Lance Taylor <ian@cygnus.com>
538 * gdbtk.c (gdbtk_init): Remove assertion argument from call to
539 ide_create_window_register_command.
541 Wed Oct 1 11:09:52 1997 Tom Tromey <tromey@cygnus.com>
543 * gdbtk.c (gdbtk_init): Pass name of restore interface to
544 ide_create_window_register_command.
546 Fri Sep 26 21:08:22 1997 Keith Seitz <keiths@pizza.cygnus.com>
548 * gdbtk.c (gdbtk_init): Initialize ui_load_progress_hook.
550 Thu Sep 25 03:05:00 1997 Martin M. Hunt <hunt@cygnus.com>
552 * gdbtk.c (gdb_load_info): New function. Returns a list
553 of section names and sizes for an executable.
554 (gdbtk_load_hash): Stub function to call tcl function
557 Tue Sep 23 01:29:00 1997 Martin M. Hunt <hunt@cygnus.com>
559 * gdbtk.c (gdb_get_mem): Fix compiler warning.
561 Sun Sep 21 00:15:00 1997 Martin M. Hunt <hunt@cygnus.com>
563 * gdbtk.c (gdb_get_mem): Fix problem with ASCII dump.
565 Tue Sep 16 18:07:17 1997 Martin M. Hunt <hunt@cygnus.com>
567 * gdbtk.c (gdb_get_mem): New function. Returns
568 a formatted memory dump with optional ASCII dump.
570 Mon Sep 8 12:48:50 1997 Ian Lance Taylor <ian@cygnus.com>
572 * gdbtk.c: Include ilutk.h if IDE.
573 (gdb_confirm_quit, gdb_force_quit): New static functions.
574 (gdbtk_init): Add Tcl commands gdb_confirm_quit and
577 Mon Sep 8 03:05:33 1997 Martin M. Hunt <hunt@cygnus.com>
579 * gdbtk.c (gdb_get_breakpoint_info): Now returns the
580 function a breakpoint is in.
582 Fri Sep 5 20:23:58 1997 Ian Lance Taylor <ian@cygnus.com>
584 * gdbtk.c (gdbtk_init): Call ide_create_exit_command.
586 Wed Sep 3 19:39:15 1997 Ian Lance Taylor <ian@cygnus.com>
588 * gdbtk.c: Include guitcl.h.
589 (gdbtk_init): Always call ide_initialize_paths. Set the Tcl
590 variable IDE to 1 when using the IDE. Always try using auto path
592 * Makefile.in (IDE_CFLAGS_X): Always include libide.
593 (LIBIDE): New variable.
595 (IDE_DEPS): Omit libide.
596 * configure.in: Add LIBIDE to TCL_LIBS and CONFIG_DEPS.
597 * configure: Rebuild.
599 Mon Aug 25 02:28:55 1997 Keith Seitz <keiths@pizza.cygnus.com>
601 * gdbtk.c: (gdb_target_has_inferior) check if inferior_pid is non-zero
602 before assuming that the inferior is running.
604 Mon Aug 25 01:06:48 1997 Ian Lance Taylor <ian@cygnus.com>
606 * gdbtk.c (gdbtk_start_timer): Pass third argument to setitimer.
607 (gdbtk_stop_timer): Likewise.
609 Mon Aug 25 00:23:08 1997 Keith Seitz <keiths@pizza.cygnus.com>
611 * gdbtk.c: (gdbtk_init) create new command "gdb_target_has_execution"
612 (gdb_target_has_execution_command) new function
614 Sun Aug 24 20:27:22 1997 Ian Lance Taylor <ian@cygnus.com>
616 * gdbtk.c (gdb_loc): If there are no symbols, just bail
618 (tk_command_loop): Print errors encountered while running
621 Sun Aug 24 13:44:03 1997 Tom Tromey <tromey@cygnus.com>
623 * gdbtk.c (gdbtk_init): Run ide_create_build_command.
625 Sat Aug 23 21:53:39 1997 Ian Lance Taylor <ian@cygnus.com>
627 * gdbtk.c: If CYGWIN32, include <sys/time.h>.
628 (x_fd): Don't define if WINNT.
629 (gdbtk_start_timer, gdbtk_stop_timer): New static functions if
631 (gdbtk_wait): Don't set up signal handling if WINNT. If CYGWIN32,
632 call gdbtk_start_timer and gdbtk_stop_timer.
633 (gdbtk_init): Don't set up signal handling or make x_fd
634 asynchronous if CYGWIN32.
636 Fri Aug 22 15:23:15 1997 Ian Lance Taylor <ian@cygnus.com>
638 * gdbtk.c (error_string_ptr): New static variable.
639 (gdbtk_fputs): If result_ptr is NULL, and error_string_ptr is not
640 NULL, and we're outputting to stderr, append string to
641 error_string_ptr rather than calling gdbtk_tcl_fputs.
642 (call_wrapper): Set up error_string_ptr. Put both error string
643 and normal string in Tcl result.
645 * gdbtk.c (gdbtk_init): Don't call ide_run_server_init until after
648 Thu Aug 21 19:14:38 1997 Ian Lance Taylor <ian@cygnus.com>
650 * gdbtk.c: If _WIN32, include winuser.h.
651 (gdbtk_init): If _WIN32, use MessageBox to display an error
654 Thu Aug 21 00:48:00 1997 Martin M. Hunt <hunt@pern.cygnus.com>
656 * gdbtk.c (gdbtk_init): Add call to ide_run_server_init().
657 (gdb_cmd): For the load command, don't buffer the I/O.
659 Wed Aug 20 11:41:22 1997 Martin M. Hunt <hunt@cygnus.com>
661 * gdbtk.c (gdbtk_query): Chaneg free() call to Tcl_Free().
663 Tue Aug 19 17:09:19 1997 Ian Lance Taylor <ian@cygnus.com>
665 * Makefile.in (TCL_DEPS, TK_DEPS): New variables.
666 (ITCL_DEPS, TIX_DEPS): New variables.
667 (IDE_DEPS): New variable.
668 (CDEPS): Include @CONFIG_DEPS@.
669 * configure.in: Set and substitute CONFIG_DEPS and TIX_DEPS.
670 * configure: Rebuild.
672 Sun Aug 17 00:42:11 1997 Martin M. Hunt <hunt@cygnus.com>
674 * gdbtk.c (gdb_listfuncs): New function that returns
675 a list of all the functions in a source file.
677 Tue Aug 12 16:35:21 1997 Ian Lance Taylor <ian@cygnus.com>
679 * Makefile.in (install-only): Install tclIndex if ENABLE_IDE.
681 Mon Aug 11 10:43:04 1997 Tom Tromey <tromey@cygnus.com>
683 * gdbtk.c (gdbtk_init): Use ide_event_init_from_environment.
685 Fri Aug 8 15:59:24 1997 Ian Lance Taylor <ian@cygnus.com>
687 * gdbtk.c (gdbtk_init): Change gdbtk_lib_tmp and gdbtk_file to be
688 dynamically allocated, rather than fixed size. Pass "gdbtcl" to
689 ide_initialize_paths to match installed directory name. If IDE,
690 use auto_path to search for main.tcl.
691 * Makefile.in (install-only): If ENABLE_IDE, install from gdbtcl2
694 * gdbtk.c (gdbtk_cleanup): New static function.
695 (gdbtk_init): Add gdbtk_cleanup as a final cleanup. Uncomment
696 call to ide_initialize_paths. If we can't initialize the event
697 system, set GDBTK_IDE to 0 in the Tcl interpreter. Create the
698 ide_window_register and the ide_window commands. Initialize tk,
699 itcl, and tix after initializing the IDE.
701 * configure.in (tixdir): Update for cygwin32 case for Tcl 8.0.
702 * configure: Rebuild.
704 Fri Aug 8 00:13:32 1997 Martin M. Hunt <hunt@cygnus.com>
706 * gdbtk.c (breakpoint_notify): Change buffer size from 100
707 to 256 to avoid memory corruption with very long pathnames.
709 Thu Aug 7 14:08:23 1997 Martin M. Hunt <hunt@cygnus.com>
711 * configure.in: Change required Tix version to 4.1.8.0 .
712 * configure: Rebuilt.
714 Fri Aug 1 15:21:44 1997 Ian Lance Taylor <ian@cygnus.com>
716 * gdbtk.c (Tcl_Alloc): Don't provide our own version of this if
718 (Tcl_Realloc, Tcl_Free): Likewise.
719 * configure.in: Check for cygwin32 environment. Define and
720 substitute WIN32LIBS and WIN32LDAPP. Always set configdir to
721 unix; setting it to win was for an old Tcl/Tk configuration
723 * aclocal.m4 (CY_AC_LOAD_TKCONFIG): Substitute TK_BUILD_INCLUDES.
724 * Makefile.in (TK_CFLAGS): Add @TK_BUILD_INCLUDES@.
725 (WIN32LDAPP, WIN32LIBS): Define.
726 (CLIBS): Add $(WIN32LIBS).
727 (gdb): Use $(WIN32LDAPP).
728 * configure: Rebuild.
730 Tue Jul 22 19:45:37 1997 Martin M. Hunt <hunt@cygnus.com>
732 * configure.in, aclocal.m4: Another fix to find the
733 correct Tix library name.
735 * configure: Rebuilt.
737 Mon Jul 21 22:24:07 1997 Martin M. Hunt <hunt@cygnus.com>
739 * aclocal.m4: Search for the correct tix library.
741 Thu Jul 10 00:02:41 1997 Martin M. Hunt <hunt@cygnus.com>
743 * Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and
744 IDE configuration information.
746 * gdbtk.c (breakpoint_notify): Send address, linenumber and
747 filename when a breakpoint is set. Avoids call to bp_info.
748 (gdbtk_init): Call Tcl_FindExecutable(). Add code to handle
749 Itcl, Tix and IDE initialization.
751 * configure: Regenerated.
753 Fri Jun 13 10:28:09 1997 Fred Fish <fnf@cygnus.com>
755 * gdbtk.c (gdbtk_init): Make truth value test explicit.
756 Remove unused static variable "Gdbtk_Library".
758 Sat Jun 7 02:34:19 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
760 * gdbtk.c (gdb_get_breakpoint_info): Add string for new
761 enumeration del_at_next_stop to bpdisp array.
763 Tue Jun 3 15:46:51 1997 Tom Tromey <tromey@cygnus.com>
765 * Makefile.in (LIB_RUNTIME_DIR): New variable.
767 Wed May 7 19:10:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
769 * gdbtk.c (wrapped_call): New function - make actual call to tk
771 (call_wrapper): Rewrite to use top.c:catch_errors.
773 * gdbtk.c (gdb_stop): If No target_stop set quit flag and hope for
776 Mon Apr 21 14:00:08 1997 Doug Evans <dje@canuck.cygnus.com>
778 * gdbtk.c (gdb_disassemble): Store endian-ness in `di'.
780 Wed Apr 16 12:33:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
782 * Makefile.in (install-only): Make list of gdbtcl files to install
783 explicit - was picking up files such as ChangeLog etc.
784 (install-only): Don't blindly create the directory.
786 Tue Apr 1 15:04:21 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
788 * configure.in (gdbtcl): Create soft-link for gdbtcl/ directory
789 instead of gdbtk.tcl.
791 Fri Mar 28 17:04:02 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
793 * Makefile.in (gdbtk.o): look for GDBTK_LIBRARY in $(datadir) by
794 default, not $(srcdir).
796 Wed Mar 19 15:16:17 1997 Martin M. Hunt <hunt@onions.cygnus.com>
798 * Makefile.in: Install gdbtcl dir instead of gdbtk.tcl.
800 * gdbtk.c: Added some ifdefs for Windows. Changed GDBTK_FILENAME
801 to GDBTK_LIBRARY, which is now a path to search.
802 (gdb_path_conv): New function. Convert Cygwin32 pathname to
805 * {aclocal.m4,configure.in}: Changes for Windows builds.
807 * configure: Rebuilt.
809 Fri Mar 14 10:01:29 1997 Tom Tromey <tromey@cygnus.com>
811 * configure: Regenerated.
812 * configure.in (LIBS): Re-reverse order of TCL_LIBS and TK_LIBS.
814 Wed Mar 12 14:29:52 1997 Tom Tromey <tromey@cygnus.com>
816 * gdbtk.c (x_event): Use Tcl_DoOneEvent, TCL_DONT_WAIT,
819 * configure: Regenerated.
820 * configure.in (ENABLE_GDBTK): Put TCL_LIBS after TK_LIBS in
823 Mon Feb 10 13:50:53 1997 Stu Grossman (grossman@critters.cygnus.com)
825 * gdbtk.c (call_wrapper): Clear running_now if an error occurs.
827 Wed Dec 11 18:51:35 1996 Mark Alexander <marka@cygnus.com>
829 * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
831 Tue Nov 19 09:26:14 1996 Tom Tromey <tromey@cygnus.com>
833 * gdbtk.c (gdbtk_readline): Fix memory leak.
835 Mon Nov 18 23:43:05 1996 Tom Tromey <tromey@cygnus.com>
837 Fixes for Tcl 7.6 / Tk 4.2:
838 * gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
839 Remove old fileselect code.
840 * gdbtk.c (Tcl_Alloc): Rename from Tcl_Malloc.
842 Fri Sep 27 10:25:30 1996 Fred Fish <fnf@cygnus.com>
844 * gdbtk.tcl (create_copyright_window): Increase timeout from
845 15 seconds to 30 seconds.
847 Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
849 * configure configure.in: Add host *windows* to list of hosts
850 that don't support GDBtk.
852 Fri Aug 23 00:44:57 1996 Fred Fish <fnf@cygnus.com>
854 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
855 gracefully degrade to using command line interface if none is
858 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
860 * Makefile.in (LIB_INSTALL_DIR): New macro.
861 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
863 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
865 * gdbtk.c (mainWindow): Deleted.
866 (cleanup_init): Don't destroy main window.
867 (gdbtk_init): Main window now created by Tk_Init.
869 * configure.in: Most X checks now handled automatically by Tk.
870 Use new macros to find Tcl/Tk.
871 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
872 * config.in, configure: Regenerated.
874 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
875 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
877 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
879 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
881 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
883 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
885 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
887 * gdbtk.c (null_routine): Ditto.
888 (gdbtk_flush): Ditto.
889 (gdbtk_fputs): Ditto.
890 (gdbtk_query): Ditto.
891 (gdbtk_readline): Ditto.
892 (gdbtk_readline_end): Ditto.
893 (gdb_get_breakpoint_list): Ditto.
894 (gdb_get_breakpoint_info): Ditto.
895 (breakpoint_notify): Ditto.
896 (gdbtk_create_breakpoint): Ditto.
897 (gdbtk_delete_breakpoint): Ditto.
898 (gdbtk_modify_breakpoint): Ditto.
901 (gdb_sourcelines): Ditto.
902 (map_arg_registers): Ditto.
903 (get_register_name): Ditto.
904 (gdb_regnames): Ditto.
905 (get_register): Ditto.
906 (gdb_fetch_registers): Ditto.
907 (register_changed_p): Ditto.
908 (gdb_changed_register_list): Ditto.
910 (call_wrapper): Ditto.
911 (gdb_listfiles): Ditto.
913 (gdbtk_dis_asm_read_memory): Ditto.
914 (compare_lines): Ditto.
915 (gdb_disassemble): Ditto.
917 (cleanup_init): Ditto.
918 (gdbtk_interactive): Ditto.
921 (gdbtk_call_command): Ditto.
922 (tk_command_loop): Ditto.
925 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
927 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
929 * gdbtk.tcl (files_command): Reorder the binding tags for
930 the listbox widget to avoid referencing the listbox after
931 the containing widget has been destroyed by the action of
934 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
936 * gdbtk.tcl (delete_expr): Unset corresponding element of
937 expr_update_list when destroying an expression.
938 (create_expr_window): Initialize expr_num, delete_expr_num,
939 and expr_update_list here when each new expression window
940 is created, rather than once at startup.
942 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
944 * gdbtk.c (gdb_disassemble): Setup di.mach from
945 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
947 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
949 * gdbtk.tcl (create_register_windows): Include missing '$'s.
950 Add global declarations for various reg_format_* variables.
951 * gdbtk.tcl (populate_register_window): Make initial window one
952 line taller to account for new column header line.
954 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
956 * gdbtk.c (get_register): Support for printing raw formats.
957 * gdbtk.tcl: Add hint for using debug_interface.
958 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
959 Enclose arg in braces for consistency.
960 (create_registers_window, populate_reg_window, update_registers):
961 Major rewrite to support displaying multiple formats in the register
963 (init_reg_info): New function.
964 (recompute_reg_display_list): Reset reg_display_list, start
965 register display lines at line 2.
967 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
969 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
970 avoid backing up over prompt. At every input, make sure insert
971 point is at least after command start, handle control-u to delete
973 (tclsh): Handle backspace to avoid backing up over prompt. Handle
974 control-u to delete current input line.
976 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
978 * configure.in: disable gdbtk for *cygwin32* hosted compiles
979 * configure: regenerated with autoconf 2.8
981 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
983 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
985 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
986 (gdbtk_init): Set readline_begin_hook, readline_hook,
987 and readline_end_hook.
988 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
989 gdbtk_tcl_readline_end): New functions.
990 (tclsh): Pack scroll bar on right side of window, not left.
992 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
994 * gdbtk.tcl (create_command_window): Change a misspelled "get"
995 to the intended "cget".
996 (delete_line): Fix so it deletes the current line at the
999 Thu May 16 19:20:29 1996 Fred Fish <fnf@cygnus.com>
1001 * gdbtk.tcl (gdb_prompt): Set this early on.
1002 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1003 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1004 (tclsh): If an evaluation window already exists, just bring it
1005 to the front instead of trying to create another.
1006 * gdbtk.c (tk_command_loop): New function.
1007 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1009 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
1011 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1012 implement a tcl evaluation window for gdbtk maintainers to use.
1014 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1016 * gdbtk.tcl (files_command): Correctly insert list of files into
1019 * gdbtk.tcl (files_command): listbox command no longer accepts
1022 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1024 * gdbtk.tcl (create_command_window): If command window's buffer
1025 is disabled, don't execute any of the key bindings.
1027 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
1029 * gdbtk.c (tk_command): Catch case where no argument is given
1030 since this will cause the tcl interpreter to dump core.
1032 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
1034 * gdbtk.c: Fix a couple of misspellings.
1036 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
1038 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1039 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1040 (file_popup_menu): Delete, never used.
1041 (listing_window_popup): Rename from listing_window_button_1,
1042 remove breakpoint toggling code.
1043 (toggle_breakpoint): New procedure.
1044 (create_file_win): Bind popup menu to button 2, toggle breakpoints
1045 with button 1 in breakpoint area, add display of tagged areas if
1048 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
1050 * gdbtk.c (running_now): New global variable.
1051 (gdb_cmd): Test it before executing any command.
1052 (gdbtk_call_command): Set it when inferior is running.
1053 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
1054 disable interaction with command window's text appropriately.
1056 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1058 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
1059 some versions of the kernel don't support it.
1061 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
1063 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
1064 double-clicking will work again.
1065 (create_asm_win): Put "break" at end of all B1 bindings.
1066 (create_file_win): Lower "sel" tag, don't raise it.
1067 (ensure_line_visible): New proc.
1068 (update_listing, update_assembly): Use it.
1069 (create_copyright_window): Destroy window on Leave event.
1070 (create_command_window): Put "break" at end of all B2 bindings.
1072 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
1074 * gdbtk.tcl, gdbtk.c: Updated copyrights.
1076 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
1078 * configure: Rebuilt.
1080 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
1082 * gdbtk.c (gdb_disassemble): Pass fprintf_unfiltered to
1083 INIT_DISASSEMBLE_INFO.
1085 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
1087 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
1088 (add_expr): Changes from create_expr_window.
1089 (create_command_window): Set focus.
1090 (delete_expr): Rewrote.
1091 (expr_update_button): New proc.
1092 (add_expr): Put bindings on FocusIn, FocusOut.
1093 Don't allow .file_popup to be torn off.
1095 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
1097 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
1098 (update_listing): Use lassign. Use "see" to scroll. Don't need
1099 screen_top, screen_bot, screen_height.
1100 (update_assembly): Use "see" to scroll.
1101 (textscrollproc): Removed.
1102 (create_file_win): Don't use textscrollproc.
1103 (asmscrollproc): Removed.
1104 (create_asm_window): Don't use asmscrollproc.
1105 (create_asm_win): Ditto.
1106 (screen_height, screen_top, screen_bot): Removed.
1107 (run_editor): New proc.
1108 (build_framework): Use it.
1109 (create_file_win, create_source_window): Don't use textscrollproc.
1110 (create_breakpoints_window): Set -xscrollcommand on canvas.
1111 (not_implemented_yet): Default button is 0.
1112 (delete_char): Don't use tk_textBackspace.
1113 (create_command_window): Allow Tk bindings to fire after deleting
1115 (create_command_window): Make Delete delete left, not right.
1117 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
1119 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
1121 Changes in sync with expect:
1122 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
1124 * aclocal.m4: Replaced with version from expect.
1125 * configure: Regenerated.
1127 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
1129 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
1130 gdbtk_tcl_flush): Use "see", not "yview".
1131 (gdbtk_tcl_query): Use questhead bitmap.
1132 various: Always wrap condition of 'if' in {...}.
1133 (add_breakpoint_frame): Set -value on radiobuttons.
1134 (lassign): New proc.
1135 (add_breakpoint_frame): Use lassign, not series of assignments.
1136 (decr): Made faster.
1137 (interactive_cmd): Use "see", not "yview".
1138 (not_implemented_yet): Use warning bitmap.
1139 (update_expr): Don't allow $expr to be evalled by Tcl.
1140 (create_expr_window): Don't use "focus".
1141 (delete_char, delete_line): Define globally.
1142 (delete_line, delete_char, create_command_window, update_autocmd,
1143 build_framework, create_asm_win, create_file_win): Use "see", not
1145 (create_copyright_window, center_window, bind_widget_after_class):
1147 (FSBox,create_command_window, create_autocmd_window): Binding
1149 (textscrollproc): Define globally.
1150 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
1151 Home, End, Up, and Down are all defined by Tk.
1152 (apply_filespec): Use error bitmap in dialog.
1153 (files_command): Don't use tk_listboxSingleSelect.
1154 (files_command): Don't use "uniq" to remove duplicates from a
1156 (update_assembly): Use lassign.
1157 (create_asm_win): Removed redundant bindings.
1158 (listing_window_button_1, file_popup_menu): Use tk_popup.
1159 (ButtonRelease-1 binding): Just remove tag from window; rest
1162 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
1163 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
1164 (gdbtk_call_command): Ditto.
1166 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
1168 * configure configure.in: Make --enable-gdbtk be the default.
1170 Thu Dec 28 15:10:49 1995 Stan Shebs <shebs@andros.cygnus.com>
1172 * README.GDBTK: Polish introductory paragraph.
1174 Mon Oct 16 11:27:06 1995 Stu Grossman (grossman@cygnus.com)
1176 * gdbtk.c (gdb_disassemble): Use fprintf_unfiltered instead of
1179 Tue Oct 10 15:26:39 1995 Fred Fish <fnf@cygnus.com>
1181 * README.GDBTK: Updated for version 4.15.
1183 Sat Aug 19 17:20:22 1995 Michael Tiemann <tiemann@axon.cygnus.com>
1185 * gdbtk.tcl: ENABLE comes back as "1" or "0", not "enable" or
1187 Also, wire up the breakpoint window so that it can be demo'd.
1189 Tue Aug 1 11:44:53 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1191 * gdbtk.c: Include "gdb_string.h" instead of <string.h>.
1193 Tue Jun 20 10:19:40 1995 Stu Grossman (grossman@cygnus.com)
1195 * gdbtk.c: Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.
1197 * gdbtk.tcl (add_breakpoint_frame): Add more fields.
1198 * (create_file_win create_asm_win build_framework): Create null
1199 bindings for meta keys to keep window from dropping down to
1200 insertion point when meta is pressed by itself. New bindings:
1201 Up/Down - Scroll up/down one line at a time
1202 Next/Prior - Scroll up/down one page at a time
1203 Home/End - Warp to current pc/end of file
1204 * (build_framework): Turn on breakpoint menu.
1205 * (create_command_window): Implement tab completion. Add binding
1206 for ^C to stop target.
1208 Fri May 19 06:15:40 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1210 * gdbtk.c: Conditionalize use of stdarg rather than varargs on
1211 ANSI_PROTOTYPES not __STDC__; it must match the definition of
1214 Thu May 18 15:58:46 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1216 * gdbtk.c (gdbtk_query): Use stdarg.h macros when compiling with
1219 Sat Apr 15 13:52:24 1995 Stan Shebs <shebs@andros.cygnus.com>
1221 * gdbtk.c (gdb_disassemble): Read from inferior if connected
1222 to a VxWorks target.
1224 Fri Apr 14 10:18:20 1995 Stu Grossman (grossman@cygnus.com)
1226 * README.GDBTK: New file. Contains the obvious.
1228 Tue Apr 11 11:07:12 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1230 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
1231 F_SETOWN is, use that.
1233 Thu Apr 6 17:00:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1235 * Makefile.in (X11_INCLUDES): Define as empty.
1236 (X11_CFLAGS): Define as including $(X11_INCLUDES).
1237 (X11_LIB_SWITCHES): Define as empty.
1238 (X11_LIBS): Define as -lX11.
1240 * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
1241 and --x-libraries switches, setting the X11_INCLUDES and
1242 X11_LIB_SWITCHES respectively. Instead of using a hardcoded -lX11
1243 in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
1245 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
1246 it. This means that the stop button doesn't work, but is better
1249 Wed Mar 29 17:09:29 1995 Stu Grossman (grossman@cygnus.com)
1251 * Makefile.in (gdbtk.o): Use X11_CFLAGS to provide alternate
1252 locations (per-host) for X11 include files.
1253 * config/pa/hppahpux.mh (XM_CLIBS): Add -L/usr/lib/X11R5 to force
1255 (X11_CFLAGS): Add this to indicate the locs
1256 of the R5 include files.
1258 Wed Mar 8 16:12:21 1995 Stu Grossman (grossman@cygnus.com)
1260 * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
1261 type is not bp_breakpoint.
1263 Tue Feb 14 17:16:41 1995 Stu Grossman (grossman@cygnus.com)
1266 * gdbtk.c: General cleanups, get rid of unused variables. Redo
1267 handling of stdout/stderr to just return output as the result of
1268 the tcl command that caused the output. Cleanup -Wall stuff.
1269 * (breakpoint_notify): Now returns just action and breakpoint
1271 * (gdb_get_breakpoint_list): New routine. Does the obvious.
1272 * (gdb_get_breakpoint_info): Mostly derived from the old
1273 breakpoint_notify, but returns lots more info.
1274 * (dsprintf_append_element): Helper routine, works like printf,
1275 but appends a tcl element onto the specified DString. Good for
1276 building up lists as return values.
1277 * (gdbtk_enable/disable_breakpoint): Go away. Replaced with
1278 gdbtk_modify_breakpoint.
1279 * (*many routines*): Use new result protocol.
1280 * (call_wrapper): Make sure that recursive calls don't trash results.
1281 * gdbtk.tcl: New windows, autocmd, and breakpoints.
1282 * (gdbtk_tcl_fputs): Don't use $current_output_win redirection
1283 anymore. It's not needed (in fact, this routine may not be needed
1285 * (gdbtk_tcl_breakpoint): Change to reflect new breakpoint
1286 notification protocol.
1287 * (gdbtk_tcl_busy gdbtk_tcl_idle): Straighten out buttons, remove
1289 * (interactive_cmd): Use this wrapper around button invocations
1290 of many commands. This will catch errors and put the results into
1291 the command window. It also updates all the other windows.
1292 * Also, change reliefs of most things to sunken. This actually
1294 * (create_file_win): Fix margin binding to allow breakpoints to
1296 * (create_asm_win): Use return value of gdb_disassemble instead
1297 of implicit I/O to the command window.
1298 * (create_command_window): Use new result protocol to get output
1301 Sun Feb 5 20:32:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1303 * gdbtk.c (gdb_disassemble): Deference pointer to function before
1304 calling it (pre-ANSI compilers generally require this).
1306 Fri Feb 3 11:19:20 1995 Stu Grossman (grossman@cygnus.com)
1308 * gdbtk.c (gdb_disassemble): Get rid of
1309 dis_asm_read_memory_hook. We can now call the disassemblers
1310 directly and have no need for this hook anymore.
1312 Mon Jan 30 17:34:24 1995 Stu Grossman (grossman@cygnus.com)
1314 * gdbtk.tcl (create_file_win): Disable old popup menu for source
1317 Wed Jan 25 18:23:46 1995 Stu Grossman (grossman@cygnus.com)
1319 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
1321 * gdbtk.tcl: Initialize expr_update_list() to prevent errors when
1322 popping up expression window for the first time.
1324 Tue Jan 24 12:10:28 1995 Stu Grossman (grossman@cygnus.com)
1326 * gdbtk.tcl (create_registers_window): Work around a radiobutton
1327 widget bug to make Options|Natural button work.
1329 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
1330 g++ caused by out-of-order pc's.
1331 * gdbtk.tcl (files_command): Remove duplicate file names. Also,
1334 Mon Jan 23 17:21:09 1995 Stu Grossman (grossman@cygnus.com)
1336 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
1339 Thu Jan 12 15:02:40 1995 Stu Grossman (grossman@cygnus.com)
1341 * gdbtk.c, gdbtk.tcl: Update/add copyright.
1342 * gdbtk.tcl (build_framework): Several fixes for filespec widget,
1343 including dismiss button, and better error handling.
1344 * (create_command_win): Bind button 2 to retrieve selection.
1346 Wed Jan 11 17:06:55 1995 Stu Grossman (grossman@cygnus.com)
1348 * gdbtk.tcl: Add button to control mixed source disassembly.
1349 Use text widgets in expr window. The give me more control over
1351 Add auto-updating of exprs in expression window.
1352 Handle expressions out of scope a bit better.
1353 Make selected window pop up to the top when invoked via the
1355 Make copyright message have raised relief.
1357 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
1360 Thu Jan 5 17:38:29 1995 Stu Grossman (grossman@cygnus.com)
1362 * gdbtk.c (finish_saving_output): Don't do anything if not saving
1364 * (breakpoint_notify): Don't send null filename to tcl.
1365 * (gdb_eval): New tcl command to eval an expression.
1366 * (gdb_disassemble): New tcl command to do disassembly. This
1367 allows tcl code to choose between exec file and target memeory,
1368 and can also do mixed source and assembly.
1369 * (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
1370 that more of the environment is set up. Also, create link between
1371 gdb and tcl vars disassemble{-_}from{-_}exec.
1373 * gdbtk.tcl: New expression window support.
1374 * Make assembly window be 80 columns wide.
1375 * Use new disassembly method. Add menu items to select
1376 disassembly from exec file or target.
1377 * Change View menubar item to Options.
1379 * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
1380 since they don't exist yet.
1382 * Pop up a copyright window on startup.
1384 Wed Jan 4 19:49:10 1995 Stan Shebs <shebs@andros.cygnus.com>
1386 * gdbtk.tcl (build_framework): Add standard commands menu, more
1387 windows to standard windows menu.
1388 (not_implemented_yet): Clarify message.
1390 Fri Dec 30 15:49:00 1994 Stan Shebs <shebs@andros.cygnus.com>
1392 * gdbtk.tcl (FSBox): New proc, File Selection Box code from exmh.
1393 (not_implemented_yet): New proc.
1394 (build_framework): Add various file commands to file menu.
1396 Fri Dec 23 16:18:50 1994 Stu Grossman (grossman@cygnus.com)
1398 * gdbtk.c (gdbtk_wait gdbtk_init): Portability improvements for
1401 Mon Dec 19 09:55:47 1994 Stu Grossman (grossman@cygnus.com)
1403 * gdbtk.tcl (update_assembly): Force update to make sure that pc
1404 is visible when creating new assembly windows.
1406 Sun Dec 18 23:31:20 1994 Stu Grossman (grossman@cygnus.com)
1408 * gdbtk.c (gdbtk_wait gdbtk_init): Use different method of
1409 enabling I/O interrupts for SVR4 (streams).
1410 * (start_saving_output save_output get_saved_output
1411 finish_saving_output flush_holdbuf gdbtk_flush gdbtk_fputs
1413 Totally revamp to use TCLs dynamic string functions. Also, quote
1414 all data passed back to TCL to prevent errors with unmatched
1415 braces, odd characters, etc... This fixes several wierd problems
1416 with outputting strings containing unmatched braces.
1417 * (breakpoint_notify gdb_loc): Use long hex format to output
1418 addresses of breakpoints and PCs. This fixes some Alpha problems.
1419 * (breakpoint_notify): Add stream arg to call to gdbtk_fputs.
1420 * (gdb_listfiles): Also, go through the symtabs when looking for
1421 files. This makes xcoff work (sort of), but probably breaks
1423 * (gdb_stop): Return TCL_OK instead of nothing. This fixes odd
1424 TCL errors when hitting stop button.
1425 * (tk_command): Don't pass interp->result on to Tcl_{Var}Eval, as
1426 that will trash the result. strdup the result instead and pass
1427 that on. Improve error handling as well.
1429 * gdbtk.tcl (gdbtk_tcl_flush): Use global def of
1430 current_output_win. Makes flushing actually work!
1431 * (asm_win_name create_asm_win update_assembly): Bunch of fixes
1432 to make assembly windows stop flashing when loading a new file.
1433 * (gdbtk_tcl_busy gdbtk_tcl_idle): Use catch to prevent gdb_cmd
1434 errors from losing control.
1435 * (create_source_window): Add source file selection to View menu.
1436 * (create_command_window (<Key-Return> binding): Quote text fed
1437 into gdb_cmd to prevent eval errors.
1439 Thu Dec 15 16:40:10 1994 Stu Grossman (grossman@cygnus.com)
1441 * gdbtk.c: Improve mechanism for capturing output values.
1442 (full_filename): Remove.
1443 (gdb_cmd call_wrapper gdbtk_init): Protect all calls from tcl land
1444 with call_wrapper. This prevents longjmps (usually via error())
1445 from jumping out of tcl/tk and leaving things in an indeterminate
1447 (gdbtk_fputs): Differentiate stdout from stderr when passing text
1449 * gdbtk.tcl: New view option to disable line numbers. Put catch
1450 around most uses of gdb_cmd. Add update button to reg config
1451 window. Stop doing immediate updates when selecting registers.
1452 Change register view values into checkbuttons.
1454 Mon Dec 12 16:59:29 1994 Stu Grossman (grossman@cygnus.com)
1456 * gdbtk.tcl (reg_config_menu create_registers_window
1457 recompute_reg_display_list): Use array instead of individual vars
1458 for register display list.
1459 * (recompute_reg_display_list update_registers): Fix bug with not
1460 displaying all registers.
1462 Mon Dec 12 12:22:21 1994 Stu Grossman (grossman@cygnus.com)
1464 * gdbtk.c: New tcl commands: gdb_fetch_registers,
1465 gdb_changed_register_list, and gdb_regnames.
1466 * gdbtk.tcl: Use monochrome color model for now.
1467 * (delete_breakpoint_tag create_file_win): Add breakdot support.
1468 * (create_file_win create_asm_win update_listing build_framework
1469 create_source_window create_command_window): Re-org window
1470 creation to give all windows consistent look and feel.
1471 * (update_listing update_asm): Change pc pointer to '->'.
1472 * (registers_command reg_config_menu create_registers_window
1473 populate_reg_window update_registers): Revamp register window.
1474 Allow selection of registers to be displayed. Highlight changed
1477 Mon Nov 28 09:17:20 1994 Stu Grossman (grossman@cygnus.com)
1479 * gdbtk.tcl (build_framework): Fix bug with setting window titles.
1481 * gdbtk.tcl (build_framework): Add "Report bug" to help menu.
1483 * gdbtk.tcl: Re-arrange windows using new, consistent layout. Clean
1484 up lots of code and centralize framework initialization.
1486 Wed Nov 16 15:28:29 1994 Rob Savoye (rob@cygnus.com)
1488 * Makefile.in: Fix the test for installing gdbtk.
1490 Mon Nov 14 08:51:29 1994 Stu Grossman (grossman@cygnus.com)
1492 * Makefile.in: Install gdbtk.tcl.
1493 * configure.in: Add ENABLE_GDBTK flag.
1494 * gdbtk.c (gdb_sourcelines): Returns list of source lines
1495 containing code. (gdb_regnames): Returns list of register names.
1497 Thu Nov 3 14:25:24 1994 Stu Grossman (grossman@cygnus.com)
1499 * gdbtk.c (gdb_stop): Switch to target_stop().
1501 Tue Nov 1 16:41:12 1994 Stu Grossman (grossman@cygnus.com)
1503 * Makefile.in: Use $(objdir)/tcl and $(objdir)/tk if they are
1505 * configure.in (ENABLE_CLIBS): Use $(TCL) and $(TK) instead of
1507 * gdbtk.c: Get rid of lots of unnecessary #includes.
1508 * (gdbtk_init): Use ConnectionNumber macro instead of referencing
1509 Display structure directly.
1510 * gdbtk.tcl: Change exit button to quit button.
1512 Wed Oct 26 15:41:07 1994 Stu Grossman (grossman@cygnus.com)
1514 * gdbtk.c: Change sense and name of no_windows variable. Now
1515 called use_windows, and defaults to off (for compatibility).
1517 Thu Oct 20 17:35:45 1994 Stu Grossman (grossman@cygnus.com)
1519 * gdbtk.c (gdb_cmd): Force GUI into idle mode when errors occur.
1520 * (gdb_stop): New tcl command to stop the target process.
1521 * (x_event, gdbtk_wait): Allow GUI to interrupt gdb out of target
1523 * (gdbtk_call_command): Wrapper around command processing to
1524 alert GUI of target state changes.
1525 * (gdbtk_init): Get the fd of X server for doing async
1526 notification of X events (via x_event). Setup new hooks.
1527 * gdbtk.tcl: Add scrollbars to assembly and command windows.
1528 * Change window foreground & background colors.
1529 * Create margin tag for breakpoints in source and assembly windows.
1530 * Add new routines to be invoked when target state changes to/from
1532 * Add start of expression window.
1533 * Change bindings of mouse button 1 in assembly and source window
1534 to just set or clear breakpoints when in the margin tag.
1535 * Change shape of register window to be more vertical to better
1536 reflect its contents.
1538 * Cleanup some code around command window bindings.
1540 Sat Sep 17 17:05:14 1994 Stu Grossman (grossman@cygnus.com)
1542 * gdbtk.tcl: Let ^U delete lines in the command window.
1544 Fri Sep 16 15:40:34 1994 Stu Grossman (grossman@cygnus.com)
1546 * gdbtk.c: Replace calls to full_filename with symtab_to_filename.
1547 * gdbtk.tcl: New routine pc_to_line replaces in line code. New
1548 routine decr replaces in line code.
1549 * (create_file_win): Use catch to handle open failures more
1550 elegantly. Also, create special window to display file open
1551 failure message. Move opening of file prior to creation of text
1553 * (create_asm_win): Add PC as argument. We now base disassembly
1554 on PC instead of function name, since function names can be
1555 ambiguous (usually seen with shared libs). Also, use catch to
1556 simplify code where we don't care about failures.
1558 Wed Sep 14 00:55:26 1994 Stu Grossman (grossman@cygnus.com)
1560 * gdbtk.tcl: Add ref counts to breakpoint tags.
1561 * Put quotes around function name in disassemble command to better
1562 handle assembler names containing `.'.
1563 * Make pclist element 0 be filler to avoid off-by-one problem with
1565 * Set names of top-level windows.
1566 * Add register display window.
1567 * Add PC to label of assembly window.
1569 Tue Sep 13 08:59:04 1994 Stu Grossman (grossman@cygnus.com)
1571 * gdbtk.c (gdbtk_flush gdbtk_fputs): Buffer up output to make
1572 disassembly more efficient.
1573 * (breakpoint_notify): Include pc in gdbtk_tcl_breakpoint
1575 * (gdb_loc): Include pc in return value. Also, return function
1576 name if arg was specified.
1577 * (gdb_cmd_stub): Call gdb_flush to drain internal GDB buffers
1578 after command completes.
1579 * (gdbtk_init): Improve error handling.
1581 * gdbtk.tcl: Add lots of comments. Clean up code.
1582 * (gdbtk_tcl_fputs): Make output window redirectable.
1583 * Add assembly window, and breapoint support.
1584 * Make button 1 in margin toggle breakpoints.
1585 * Use stippling to indicate breakpoint disabling.
1587 Fri Sep 2 19:11:40 1994 Stu Grossman (grossman@cygnus.com)
1589 * configure.in: Don't symlink to gdbtk.tcl if it's already there.
1591 Thu Jul 28 14:37:36 1994 Stu Grossman (grossman@cygnus.com)
1594 * Makefile.in: Add rule for gdbtk.o.
1595 * configure.in: Add support for --enable-gdbtk.
1596 * gdbtk.c: New file. Contains support routines for TK interface.
1597 * gdbtk.tcl: New file. Implements GUI policy.
1604 version-control: never