* Sanitization fixes to retain new files.
[binutils-gdb.git] / gdb / ChangeLog-gdbtk
blob9a8ae4d615f338ba7a69cb922d58197d6ac988ae
1 Tue Dec 15 10:09:31 1998  Andrew Cagney  <cagney@b1.cygnus.com>
3         * gdbtk-cmds.c (gdb_disassemble): Fix typo.
5 Sun Dec 13 09:52:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
7         * gdbtk-cmds.c: Update TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN.
9 Fri Dec 11 09:52:04 1998  Andrew Cagney  <cagney@chook>
11         * gdbtk-cmds.c: Replace reg_name with REGISTER_NAME.
12         
13 Mon Dec 14 13:20:50 1998 Jim Ingham  <jingham@cygnus.com>
15         * Makefile.in, configure.in configure - add support for LIBGUI
16         outside the IDE context.
17         
18 Thu Nov 19 13:14:57 1998  Geoffrey Noer  <noer@cygnus.com>
20         * gdbtk-cmds.c: Can't start using new API names yet.  Switch back
21         to calling cygwin32_ funcs until some time has passed...
22         * gdbtk.c: Ditto.  Also, include sys/cygwin.h for Cygwin, instead
23         of providing own proto.
25 Fri Nov 13 00:15:08 1998  Geoffrey Noer  <noer@cygnus.com>
27         Changes to account for name change from cygwin32 to cygwin and
28         clean up Win32-related ifdefs.
29         
30         * gdbtk.c: lose "32" from cygwin_ func calls.  ifndef for
31         checking DISPLAY should be for _WIN32, not WINNT.
32         * gdbtk.h: pick GDBTK_PATH_SEP based on _WIN32, not WINNT.
33         * gdbtk-cmds.c (gdb_path_conv): lose "32" from cygwin_  func call,
34         change ifdef to __CYGWIN32__ instead of WINNT.
35         * {gdbtk.c, gdbtk-hooks.c}: __CYGWIN32__ refs drop the "32".
37 Thu Nov 12 15:20:15 1998  Jim Ingham   <jingham@cygnus.com>
39         * gdbtk-cmds.c (gdb_cmd): Added an optional second argument to the
40         gdb_cmd, which is from_tty.  This is passed to the gdb command
41         parser.  It is 0 by default, and the console window passes 1.
43         * gdbtk-cmds.c: moved disassemble_from_exec from gdbtk.c to gdbtk-cmds.c
44         with all the other link-var'ed variables
46         * gdbtk-hooks.c (gdbtk_trace_find): Only run the hook functions if 
47         we are called from_tty.
49         * gdbtk-hooks.c (gdbtk_trace_start_stop): Set the trace buttons
50         from a trace_start_command callback rather than doing it as a
51         special case in gdb_cmd.
53         * tracepoint.c (tstart_command, tstop_command): Add call to
54         trace_start_stop_hook here.
55         
56 Wed Nov  4 12:41:42 1998  Jim Ingham  <jingham@cygnus.com>
58         * gdbtk-cmds.c (gdb_set_bp_addr): Pass the type, enable & thread
59         to gdbtk_tcl_breakpoint.
60         * gdbtk-hooks.c (gdbtk_trace_find): Added this function.  It is
61         the hook function for tfind commands.
62         * tracepoint.c (trace_find_command): Added the trace_find_hook,
63         run when you do trace_find_command.
64         * tracepoint.h: Define the trace_find_hook.
66 1998-11-03  Keith Seitz  <keiths@cygnus.com>
68         * v850ice.c (do_gdb): New function.
69         (ice_stepi): Use do_gdb to step properly.
70         (ice_nexti): Use do_gdb to step properly.
71         (view_source): Correct call to src window's location for new version.
73 Mon Nov  2 11:16:10 1998  Jim Ingham  <jingham@cygnus.com>
75         * gdbtk-cmds (gdb_get_tracepoint_info): Demangle C++ function names.    
77 Fri Oct 30 11:22:23 1998  Jim Ingham  <jingham@cygnus.com>
79         * gdbtk-cmds (gdb_get_tracepoint_info): Fixed typo.
80         
81 Wed Oct 28 16:19:02 1998  Martin M. Hunt  <hunt@cygnus.com>
83         * gdbtk-cmds.c (gdb_set_bp_addr): For callback, send full 
84         pathname instead of just basename.
86 Wed Oct 28 10:14:33 1998  Jim Ingham   <jingham@cygnus.com>
88         * gdbtk-cmds.c: Made the bdtypes & bpdisp arrays shared so they
89         could be used in gdbtk-hooks.c (breakpoint_notify).
90         Also fixed a few error messages to actually print the bp number
91         rather that #%d...      
92         * gdbtk-hooks.c (breakpoint_notify): pass more of the information
93         about the breakpoint into the Tcl command, so it does not have to
94         try and guess about information we have on the C side.
95         * gdbtk.h: Export the bptypes & pbdisp arrays.
96         
97 1998-10-13  Jason Molenda  (jsm@bugshack.cygnus.com)
99         * gdbtk.c, gdbtk-cmds.c: Cast parameters passed to make_cleanup to
100         use the new make_cleanup_func typedef.
102 1998-10-08  Keith Seitz  <keiths@cygnus.com>
104         * gdbtk-hooks.c (gdbtk_add_hooks): Install a hook for
105         (new) file_changed_hook.
106         (gdbtk_exec_file_changed): Rename to gdbtk_exec_file_display
107         to mimic hook's name.
108         (gdbtk_file_changed): New hook function.
109         
110 Tue Oct  6 22:57:13 1998  Andrew Cagney  <cagney@b1.cygnus.com>
112         * configure.in (links): Link gdbtcl2 directory instead of gdbtcl.
114 Mon Oct  5 00:34:00 1998  Martin M. Hunt  <hunt@cygnus.com>
116         * gdbtk-cmds.c (gdb_set_bp_addr): New command. Sets a
117         breakpoint at an address. Use this instead of gdb_cmd "break"
118         because the syntax of the break command is broken and doesn't
119         allow you to create a thread-specific BP at an address.  Also
120         this is faster.
122 Sun Oct  4 22:35:47 1998  Martin M. Hunt  <hunt@cygnus.com>
124         * gdbtk-cmds.c (gdb_set_bp): Add an optional thread number.
125         (gdb_find_bp_at_line): New function. Returns a list of bpnums 
126         at the specified line number.
127         (gdb_find_bp_at_addr): New function. Returns a list of bpnums 
128         at an address..
130 1998-10-02  Keith Seitz  <keiths@cygnus.com>
132         * gdbtk-hooks.c (gdbtk_exec_file_changed): New function which handles
133         exec_file changes.
134         (gdbtk_add_hooks): Define exec_file_display_hook (to gdbtk_exec_file_changed)
136         * gdbtk-cmds.c (gdb_stop): target_stop is ALWAYS defined, so
137         compare against something a little more meaningful (target_ignore).
139 1998-09-24  Keith Seitz  <keiths@cygnus.com>
141         * gdbtk.c (gdbtk_wait): Don't run the timer for ice targets.
143         * v850ice.c (WM_ADDR_TO_SYM): New message.
144         (v850ice_wndproc): Add handler for WM_SOURCE.
145         (v850ice_wait): Call the ui_loop_hook occasionally.
146         (ice_cont): Acknowledge message before doing anything.
147         (ice_stepi): Ack message and let gdbtk do stepping.
148         (ice_nexti): Ack message and let gdbtk do stepping.
149         (view_source): New function ICE calls to display source code.
151 start-sanitize-ide
152 Mon Sep 21 13:33:27 1998  Drew Moseley  <dmoseley@cygnus.com>
154         * Makefile.in: Added sanitize markers around IDE code
155         * configure.in (host_libs): Added sanitize markers around IDE code
156         * configure: Regenerated configure from configure.in
158 end-sanitize-ide
159 1998-09-18  Keith Seitz  <keiths@cygnus.com>
161         * gdbtk-cmds.c (get_frame_name): Demangle function names, too.
163 Thu Sep 10 22:10:29  1998 Jim Ingham <jingham@cygnus.com>
165         *gdbtk-cmds.c (gdb_disassemble): Make sure the symtab's linetable is not
166         null before trying to use it...
167         
168 1998-09-02  Keith Seitz  <keiths@cygnus.com>
170         * gdbtk-cmds.c (gdb_cmd): Do not run the timer when downloading --
171         the ui_progress_hook that has been installed will actually
172         update the gui for us.
174 Mon Aug 31 15:42:10 1998  Tom Tromey  <tromey@cygnus.com>
176         * gdbtk-hooks.c (context_hook): Don't define.
178 1998-08-31  Keith Seitz  <keiths@cygnus.com>
180         * gdbtk-cmds.c (gdb_listfuncs): When stripping out "global destructors"
181         and "global constructors", do not append any elements to the result.
183 Sun Aug 30 00:49:18 1998  Martin M. Hunt  <hunt@cygnus.com>
185         * gdbtk-cmds.c (Gdbtk_Init): Link C variable gdb_context
186         with tcl variable gdb_context_id.
188         * gdbtk-hooks.c (gdbtk_context_change): Implement new hook called 
189         context_hook.  Called when threads change.
191         * gdbtk.c: Initialize gdb_context.
193         * gdbtk.h: Declare gdb_context.
195         * infrun (wait_for_inferior): Call context_hook.
197         * thread.c (thread_command): Call context_hook.
199         * defs.h: Declare context_hook.
200         
201 Fri Aug 28 12:14:49 1998  Martin M. Hunt  <hunt@cygnus.com>
203         * gdbtk-cmds.c (gdb_loadfile): Open the file after doing
204         the symtab lookup and calling symtab_to_filename(). This
205         makes GDBtk work with the GDB "dir" command.
207 1998-08-18  Keith Seitz  <keiths@cygnus.com>
208         
209         * gdbtk-hooks.c (gdbtk_add_hooks): Set selected_frame_level_changed_hook.
210         (gdbtk_selected_frame_changed): New function.
212         * gdbtk-cmds.c (Gdbtk_Init): Add command gdb_stack into interpreter.
213         Link gdb's global selected_frame_level with interpreter global
214         gdb_selected_frame_level.
215         (gdb_stack): New function to faciltate speedier backtraces from
216         gdbtk.
217         (get_frame_name): New helper function for gdb_stack.
219 Tue Aug 18 15:42:40 1998  Martin M. Hunt  <hunt@cygnus.com>
221         * gdbtk-cmds.c (gdb_listfuncs): Strip out global constructors
222         and destructors from the function list.
224 start-sanitize-ide
225 Thu Aug 13 15:15:59 1998  Drew Moseley  <dmoseley@cygnus.com>
227         * Makefile.in (FOUNDRY_LIB_BASE): Added the Foundry SDK code that allows
228         gdbtk to be linked with the Foundry libraries provided by a prebuilt/released
229         binary version of Foundry.  The libraries and header files need to come from
230         the installed location of Foundry rather than the devo subdirectories.
231         * configure.in (ENABLE_IDE): Foundry SDK additions.  Added the "with-foundry-libs"
232         configure option.
233         * configure: Foundry SDK additions.  Regenerated from configure.in.
234         
235 end-sanitize-ide
236 Thu Aug 13 15:09:59 1998  Drew Moseley  <dmoseley@cygnus.com>
238         * gdbtk.c (gdbtk_cleanup): added a scope-level around the contents
239         of the #ifdef so that the variable declarations in there would not
240         be illegal in a C compilation.
242 Mon Jul 27 13:07:16 1998  Martin M. Hunt  <hunt@cygnus.com>
244         * gdbtk.c (gdbtk_call_command): Removed because it is now
245         in gdbtk-hooks.c
246         (null_routine): Removed.
248         * gdbtk-hooks.c (tracepoint_notify): Fix sprintf to
249         match number of arguments.
251         * gdbtk-cmds.c (gdb_loc): When calling gdb_loc with an
252         argument, call find_pc_line() to get a complete
253         symtab_and_line struct.
255 Fri Jul 24 14:25:43 1998  Keith Seitz  <keiths@cygnus.com>
257         * gdbtk-cmds.c (gdb_search): Add missing NULL to switches.
258         Add missing flags to result_ptr.
259         Pass along any errors caused by getting the list of files from
260         tcl.
261         Allocate correct amount of memory for the file list.
262         Don't do any unecessary cleanups.
264 Fri Jul 24 01:08:37 1998  Martin M. Hunt  <hunt@cygnus.com>
266         * gdbtk-cmds.c (gdb_loadfile): When there are no
267         linenumbers, use only one tab.
269 Sat Jul 18 12:28:39 1998  Martin M. Hunt  <hunt@cygnus.com>
271         * gdbtk.c (gdbtk_cleanup): Add call to tcl function
272         gdbtk_cleanup. We need this so the GUI gets to clean
273         up no matter how GDB exits.
275 Wed Jul  1 13:10:58 1998  Jim Ingham   <jingham@cygnus.com>
277         * Moved gdbtk_hooks.c & gdbtk_cmds.c to gdbtk-hooks.c &
278         gdbtk-cmds.c to comply with the gdb conventions.  Changed the
279         configure & makefile to reflect the change...
280         
281 Wed Jul  1 11:07:21 1998  Jim Ingham   <jingham@cygnus.com>
283         * gdbtk.c: removed all the commands and hooks from this file so
284         now it contains only the startup code.
285         * gdbtk.c (gdbtk_init): Fixed a bug in the startup code on Windows 
286         that caused gdbtk not to find the share directory unless
287         GDBTK_LIBRARY was set.
288         * gdbtk_cmds.c: New file - this contains all the Tcl commands that
289         gdb defines.  All the old commands were moved here, the
290         string-based commands were converted to object commands, and the
291         object-based commands were all converted to uniformly use the
292         call_wrapper.  A new function, Gdbtk_Init was added to centralize
293         initializing the gdb package.
294         * gdbtk_hooks.c: New file - All the hooks were moved here, and a new
295         function, gdbtk_add_hooks was added to centralize adding all these 
296         hook functions.  gdbtk_fputs was also modified to handle the new
297         result_ptr structure.  See the comments in gdbtk.h for more
298         details.
299         * gdbtk.h: New file - this contains all the defines and globals
300         shared by gdbtk.c, gdbtk_cmds.c & gdbtk_hooks.c
301         * Makefile.in, configure.in & configure: mutatis mutandi for the
302         new files.
303         
305 Mon Jun 29 11:49:17 1998  Keith Seitz  <keiths@cygnus.com>
307         * main.c (main): Don't include gdbtk test code if GDBTK is
308         not defined by configure.
310         * configure.in: When enabling gdbtk, add "-DGDBTK" to ENABLE_CFLAGS.
312         * configure: Regenerate.
313         
314 Fri Jun 26 13:56:07 1998  Keith Seitz  <keiths@cygnus.com>
316         * gdbtk.c: Change all references to static global "interp" to
317         "gdbtk_interp" and export this global.
318         (gdbtk_init): If gdbtk_source_filename is not NULL, source this file
319         into the interpreter when it goes idle.
320         Add new command "gdb_search".
321         (gdb_search): New function which searches the symbol table.
322         (gdbtk_test): New function called by main when the --tclcommand
323         option is used.
325         * main.c (main): Add a new option "--tclcommand" which is used
326         by the testsuite to source a file into the interpreter when it
327         goes idle.
329 Sun Jun 21 09:31:12 1998  Ron Unrau  (runrau@cygnus.com)
331         * gdbtk.c (gdb_set_bp): Use new interface.
333 Wed Jun 17 19:12:23 1998  Jeff Holcomb  <jeffh@cygnus.com>
335         * Makefile.in (install-only): Install tracing help files.
337 Mon Jun 15 13:18:21 1998  Jim Ingham <jingham@cygnus.com>
339         * gdbtk.c (gdbtk_init): Add elements to the auto_path AS LIST
340         ELEMENTS.  This allows gdbtk to work when installed in a directory 
341         which has a space in the path.  D. Moseley pointed out the bug.
344 Tue Jun  9 14:10:46 1998  Keith Seitz  <keiths@cygnus.com>
346         * gdbtk.c (gdb_get_vars_command): Return static variables and
347         variables stored in registers.
349         * main.c (main): Call pre/post_add_symbol_hook's when loading
350         executables and symbol files.
351         
352 Fri Jun  5 00:16:22 1998  Martin M. Hunt  <hunt@cygnus.com>
354         * gdbtk.c (gdbtk_init): Change all references to
355         GDBTK_IDE to IDE_ENABLED.
357 Thu Jun  4 18:31:53 1998  Martin M. Hunt  <hunt@cygnus.com>
359         * gdbtk.c (gdbtk_init): Initialize tkTable.
361 Thu Jun  4 10:15:03 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
363         * gdbtk.c: merged:
364         
365         - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
366         (call_obj_wrapper): in case of error, copy the
367         error message from the result to the error_string.
368         (gdbtk_fputs): add comments.
369         (gdb_actions_command): call validate_actionline when installing the
370         tracepoint, to do the syntax checking of the actions for us.
371         - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
372         (gdb_get_trace_frame_num): new function to get the
373         trace frame number from gdb.
374         (gdbtk_init): added new command gdb_get_trace_frame_num.
375         - Jim Blandy  <jimb@zwingli.cygnus.com>
376         (struct wrapped_call_objs): Change the `func' member to
377         be a Tcl_ObjCmdProc, not an Tcl_CmdProc, since it accepts a vector
378         of objects as arguments.  Change the object vector to be const,
379         since that's what all the users of this structure seem to expect.
380         (call_obj_wrapper): Cast clientData properly before storing it in
381         the wrapped_args structure.
382         
383 Thu May 28 17:19:14 1998  Keith Seitz  <keiths@cygnus.com>
385         * gdbtk.c (_initialize_gdbtk): Get rid of the console. Patch from
386         Chris Faylor (cgf@cygnus.com).
388         * configure.in: Link cygwin32 with subsystem console.
390         * configure: Regenerated
391         
392 Sun May 24 14:00:24 1998  Keith Seitz  <keiths@cygnus.com>
394         * ser-unix.c (wait_for): Do not reset timeout_remaining for cygwin32 so that
395         we can use this member to track real timeouts.
396         (hardwire_readchar): Modify for cygwin32 so that we only ever use a real
397         system timeout of one second. Track the "real" timeout as a series of these
398         one second timeouts.
399         Call ui_loop_hook to keep the gui alive.
401         * top.c: Define new hook for cygwin32, "ui_loop_hook".
403         * gdbtk.c (gdbtk_init): Add ui_loop_hook for CygWin32 to work around
404         update problems.
406 Thu May 21 13:56:24 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
407        
408         * gdbtk.c: reinserted the changes that were accidentally deleted:
409         (_initialize_gdbtk): Use correct device names in
410         cygwin-specific call (cosmetic change). 
411         (gdbtk_ignorable_warning): removed va_list parameter,
412         which was unused.
413         (_initialize_gdbtk): add cygwin32 specific code to
414         allow `gdb -nw' to work when specified specified from a windows
415         console-mode command line.
417 1998-05-19  Jim Blandy  <jimb@zwingli.cygnus.com>
419         * gdbtk.c (struct wrapped_call_objs): Change the `func' member to
420         be a Tcl_ObjCmdProc, not an Tcl_CmdProc, since it accepts a vector
421         of objects as arguments.  Change the object vector to be const,
422         since that's what all the users of this structure seem to expect.
423         (call_obj_wrapper): Cast clientData properly before storing it in
424         the wrapped_args structure.
426 Wed May 13 11:12:58 1998  James Ingham  <jingham@leda.cygnus.com>
428         * gdbtk.c: Fixed a goof in the definition of the gdb_get_args &
429         gdb_get_locals Tcl commands.  Moved the previous ChangeLog entry
430         from ChangeLog to ChangeLog-gdbtk (here)...
431         
432 Tue May 12 13:29:20 1998  Jeff Holcomb  <jeffh@cygnus.com>
434         * Makefile.in (install-only): Add images/icons.txt and
435         images2/icons.txt to files that need to be installed.
437 Tue May 12 12:03:16 1998  James Ingham  <jingham@leda.cygnus.com>
439         * gdbtk.c: Add an object call wrapper for the new Tcl_Obj based
440         commands.  This way the obj commands will also go through
441         catch_errors.  This is just a bandaid while I rewrite the
442         string-based commands to use the object format.
444 Tue May  5 09:30:25 1998  Christopher Faylor <cgf@cygnus.com>
446         * gdbtk.c (_initialize_gdbtk): Use correct device names in
447         cygwin-specific call (cosmetic change). 
449 Wed Apr 29 15:53:16 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
451         * gdbtk.c (gdbtk_ignorable_warning): removed va_list parameter,
452         which was unused.
454 Tue Apr 28 19:41:33 1998  Tom Tromey  <tromey@cygnus.com>
456         * Makefile.in (GDBTKLIBS): New macro.
457         (INSTALLED_LIBS): Include GDBTKLIBS.
458         (CLIBS): Likewise.
459         * configure: Rebuilt.
460         * configure.in: Put Tcl/Tk libs into GDBTKLIBS, not LIBS.
461         (GDBTKLIBS): AC_SUBST.
463 Thu Apr 23 19:01:05 1998  Keith Seitz  <keiths@onions.cygnus.com>
465         * Makefile.in (install-only): Install help files.
467 Wed Apr 22 21:17:35 1998  Christopher Faylor <cgf@cygnus.com>
469         * gdbtk.c (_initialize_gdbtk): add cygwin32 specific code to
470         allow `gdb -nw' to work when specified specified from a windows
471         console-mode command line.
473 Wed Apr 15 11:23:53 1998  Stan Shebs  <shebs@andros.cygnus.com>
475         * gdbtcl: Remove directory and contents, this version of
476         the interface is obsolete.
478 Mon Apr 13 16:17:52 1998  Martin M. Hunt  <hunt@cygnus.com>
480         * gdbtk.c (gdb_loadfile): Change fstat() call to stat().
481         Needed because you can't convert a FILE* to an fd.
483 Mon Apr 13 16:28:07 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
484         
485         * gdbtk.c: (perror_with_name_wrapper) new function to call 
486         perror_with_name safely.
487         (gdb_loadfile) added source vs. executable time stamp check.
488         (gdbtk_warning) new function to pass a warning message to the gui.
489         (gdbtk_ignorable_warning) new function to pass a warning
490         to the gui. Used only for the src. vs. exec check.
491         (gdbtk_init) added warning_hook 
492         added include <sys/stat.h>
494 Mon Apr 13 12:58:26 1998  Keith Seitz  <keiths@onions.cygnus.com>
496         * gdbtk.c (gdbtk_start_timer): Include on all platforms. Decrease
497         timer interval a little.
498         (gdbtk_stop_timer): Include on all platforms.
499         (gdbtk_wait): No more signals! Use a timer on all platforms to keep the
500         GUI alive.
501         (gdbtk_init): Remove FIOASYNC and all x_fd references. Now using timers
502         on all platforms.
503         
504 Fri Apr 10 15:48:10 1998  Jason Molenda  (crash@bugshack.cygnus.com)
506         * gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.
508 Thu Apr  9 14:20:59 1998  Martin M. Hunt  <hunt@cygnus.com>
510         * gdbtk.c (gdbtk_init): Remove redundant variable "IDE".
512 Tue Apr  7 15:13:58 1998  Stan Shebs  <shebs@andros.cygnus.com>
514         * gdbtk.tcl: Remove, no longer used.
516 Tue Apr  7 12:49:45 1998  Keith Seitz  <keiths@onions.cygnus.com>
518         * gdbtk.c (gdb_cmd): NEVER call the busy, update, and idle hooks.
520 Tue Mar 31 15:42:06 1998  Keith Seitz  <keiths@onions.cygnus.com>
522         * gdbtk.c (gdb_loadfile): Don't use the return result from
523         sprintf, which returns a char * under SunOS4.
525 Tue Mar 31 17:18:43 1998  Ian Lance Taylor  <ian@cygnus.com>
527         * configure.in: Add $(LIBIDETCL) as well as $(LIBIDE) if
528         --enable-ide.
529         * Makefile.in (IDE_CFLAGS_X): Add -I for libidetcl/src.
530         (LIBIDETCL): Define.
531         * configure: Rebuild.
533 Sun Mar 29 21:19:46 1998  Keith Seitz  <keiths@onions.cygnus.com>
535         * gdbtk.c (gdb_get_tracepoint_info): Change formatting of address.
536         (tracepoint_exists): Remove code which confuses assembly traces.
538 Sat Mar 28 12:13:23 1998  Keith Seitz  <keiths@onions.cygnus.com>
540         * gdbtk.c (gdb_cmd): If argc > 2, assume that the busy and idle hooks
541         should not be called.
543 Thu Mar 26 22:29:28 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
545         * gdbtk.c: (gdb_trace_status) new function.
546         (gdbtk_init) added command "gdb_is_tracing".
547         (tracepoint_notify) added passcount information.
549 Thu Mar 26 12:00:35 1998  Martin M. Hunt  <hunt@cygnus.com>
551         * gdbtk.c (gdbtk_fputs): Insert fencepost.
552         (gdb_loc): Correct pc calculation.
553         (gdb_immediate_command): Return if a load is in progress.
554         (gdb_cmd): Return if a load is in progress.
555         (target_stop_wrapper): New function.
556         (gdb_stop): Call target_stop_wrapper.
557         (x_event): Add fencepost and optimize load cancel check.
558         (gdbtk_start_timer): Set up structs only once.
559         (gdbtk_stop_timer): Just use preset structs to set timer parameters.
560         (gdb_loadfile): If file cannot be loaded, return error message.
561         (gdb_loadfile): Add space before tab so that lines without
562         a '-' can later be changed to have one.
564 Wed Mar 25 14:08:51 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
566         * gdbtk.c (gdbtk_pre_add_symbol): Use Tcl_merge to form Tcl commands.
568 Mon Mar 23 13:41:39 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
570         * gdbtk.c (gdb_get_mem): Rewrite to fetch entire contents
571         of the memory window at once.
573 Sat Mar 21 19:34:49 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
575         Merged changes from Foundry: list follows by author:
576         
577         - Tom Tromey  <tromey@cygnus.com>
579         * Makefile.in (gdbres.o): New target.
580         (WINDRES): New define.
581         * configure: Rebuilt.
582         * configure.in (WINDRES): Define.
583         (CONFIG_OBS): Include gdbres.o on Windows.
584         * gdbtool.ico: New file.
585         * gdb.rc: New file.
586         * gdbtk.c (gdbtk_init): Call ide_create_messagebox_command.
587         (gdbtk_cleanup): Call ide_interface_deregister_all.
588         (gdbtk_init): Pass event handle to cleanup.
589         (TclDebug): Use Tcl_Merge to construct command.
590         (gdbtk_init): Call ide_create_cygwin_path_command.
592         - Martin M. Hunt  <hunt@cygnus.com>
594         * gdbtk.c (gdb_set_bp): Set addr_string for bp.
595         (gdb_get_breakpoint_info): Demangle function 
596         names in breakpoint info.
597         Include "demangle.h".
598         (gdb_loc, gdb_listfuncs): Demangle C++ 
599         function names.
600         (gdb_set_bp): Properly quote filename to fix
601         problems with spaces. Send pc back as a hex string.
602         (gdb_listfuncs): Remove debugging line.
603          Turn off some debugging lines.
604         (breakpoint_notify): Return correct line number.
605         (gdb_get_breakpoint_info): Return correct line number.
606         (gdb_set_bp): New function to provide a better way to
607         set breakpoints.
608         (gdbtk_readline, gdbtk_readline_begin): Memory 
609         allocated by tcl needs to be freed by Tcl_Free().
610         (find_file_in_dir): Deleted.
611         (gdb_find_file_command): Call full_lookup_symtab().
612         (gdb_listfuncs): Call full_lookup_symtab().
613         (full_lookup_symtab): New function.  Like lookup_symtab
614         except handles multiple files with the same basename,
615         full pathnames, and always sets symtab->fullname.
616         (gdb_loadfile): Call full_lookup_symtab(). Clear
617         realloc'd memory.
618         (gdb_loadfile):  Don't tag lines without source.
619         Tag source lines with source_tag.
620         (gdb_find_file_command, find_file_in_dir):
621         Rewrite.  Now searches symtabs and psymtabs for a match
622         on the partial or full filename.  Returns the full pathname.
623         (gdb_loadfile): Realloc additional memory
624         if someone loads in a file with more than 160,000
625         lines.  I don't know if this really works because
626         I don't have enough memory to test it.
627         (gdb_sourcelines): Deleted.
628         (gdb_loadfile): New function. Takes a text widget
629         and loads it with the contents of a file.  Marks
630         and tags source lines.
631         (pc_changed): New function.
632         (get_pc_register): Returns the value of
633         the PC to GDB.
634         (gdb_loc): If looking on the stack, return
635         real pc along with calling source line.
636         (gdb_loc): Return "" instead of "N/A" if
637         filename is not found.
638         (gdb_get_breakpoint_info): Same.
639         (get_register): For Natural mode, set format to 0.
640          Minor bugfixes from keiths.
641         (TclDebug): New function for debugging use.
642         (gdb_loc): Return correct PC for frames
643         that are not the innermost frame.
644         (gdb_listfiles): Rewritten to use object
645         API.  Now takes an optional dirname which will cause
646         only files in that directory or its subdirectories
647         to be returned.  Now returns basenames instead of
648         full pathnames.
649         (gdb_cmd): Set/reset load_in_progress flag.
650         (call_wrapper): Don't pop up dialog for errors in
651         downloads; just abort download.
652         (gdbtk_load_hash): Set return value correctly.
654         -  Keith Seitz  <keiths@onions.cygnus.com>
656         * gdbtk.c (gdbtk_init): Define the ui_loop_hook so that it can be
657         called by routines which might block, allowing us to update the GUI.
658         (gdbtk_wait): Move timer calls to annotation hooks.
659         (gdbtk_init): Define the annotation hooks.
660         (gdbtk_annotate_starting): New function for cygwin32 hosts.
661         (gdbtk_annotate_stopped): New function for cygwin32 hosts.
662         (gdbtk_annotate_exited): New function for cygwin32 hosts.
663         (gdbtk_annotate_signalled): New function. for cygwin32 hosts.
664         (gdbtk_init): Use gdbtk_print_frame_info hook.
665         (gdbtk_print_frame_info): New function which sets current_source_symtab
666         based on the given symtab and line info.
667         (gdb_immediate_command): New function which does 
668         not buffer any
669         output. (Contrast to gdb_cmd.)
670         (gdb_prompt_command): New function to return gdb's prompt.
671         (find_file_in_dir): New functon which searches source paths 
672         for a given filename.
673         (gdb_find_file): New function which returns path to given file -- uses
674         find_file_in_dir.
675         (gdbtk_init): Install "gdb_immediate", "gdb_find_file", and 
676         "gdb_prompt"
677         commands into interpreter.
679         -  Ian Lance Taylor  <ian@cygnus.com>
681         * gdbtk.c (gdbtk_timer_going): If __CYGWIN32__, new static
682         variable.
683         (gdb_cmd): If __CYGWIN32__, if executing the load command, call
684         gdbtk_start_timer and gdbtk_stop_timer.
685         (call_wrapper): If __CYGWIN32__, if the timer is going, turn it
686         off.  Clear load_in_progress.
687         (x_event): If load_in_progress, quit if download_cancel_ok.
688         (gdbtk_start_timer): Set gdbtk_timer_going.
689         (gdbtk_stop_timer): Clear gdbtk_timer_going.
690         (gdbtk_wait): Call x_event.
691         (gdbtk_init): Call ide_create_win_grab_command if
692         __CYGIN32__.
693         (gdb_clear_file): Clear stop_pc.
695 Wed Mar  4 16:50:18 1998  Jason Molenda  (crash@bugshack.cygnus.com)
697         * gdbtk.c (gdb_listfiles): Fix thinko in last change.
699 Wed Mar  4 15:34:49 1998  Jason Molenda  (crash@bugshack.cygnus.com)
701         * gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.
703 Tue Feb 10 17:50:37 1998  Keith Seitz  <keiths@onions.cygnus.com>
705         * gdbtk.c (gdbtk_modify_tracepoint): Define new tracepoint modification hook.
706         (gdbtk_print_frame_info): Define this hook so that current_source_symtab
707         is set properly.
708         (gdb_actions_command): Use free_actions () from tracepoint.c/h.
709         
710 Mon Jan 26 11:37:55 1998  Keith Seitz  <keiths@onions.cygnus.com>
712         * gdbtk.c (gdb_actions_command): Make note of next action
713         before freeing all references to it.
715 Sat Jan 24 23:52:08 1998  Martin M. Hunt  <hunt@cygnus.com>
717         * gdbtk.c: Merge from Foundry branch.
718         (TclDebug): New debugging function.
719         (gdb_loc): For frames, find address of calling function
720         instead of whatever is on the stack (usually the next
721         instruction).
722         (gdb_listfiles): Takes an optional pathname argument and 
723         returns an alphabetized list of basenames of files in the
724         path.
726 Wed Jan 22  10:37:02 1998  Keith Seitz  <keiths@onions.cygnus.com>
728         * symfile.c: Define two new hooks for symbol reading: 
729         "pre_add_symbol_hook" and "post_add_symbol_hook". These hooks 
730         are called before we begin reading symbols, and after we finish.
731         (generic_load): Use new symbol reading hooks and get rid of 
732         compiler warning.
734         * gdbtk.c (gdbtk_init): Add hooks for pre- and post-symbol reading.
735         (gdbtk_pre_add_symbol): New function: the pre-add-symbol hook.
736         (gdbtk_post_add_symbol): New function: the post-add-symbol hook.
737         (find_file_in_dir): New function. Moved the guts of gdb_find_file_command
738         into here to allow its use by others.
739         (gdb_loc): Use find_file_in_dir to return the real path to the file
740         (or "N/A" if we can't find it).
742         * configure.in (TIX_LIB_EXT): Define new variable for those special cases
743         when TCL_SHLIB_SUFFIX is not enough to specify the dependency.
745         * configure: Regenerate.
747 Fri Jan 23 07:47:06 1998  Fred Fish  <fnf@cygnus.com>
749         * Makefile.in (uninstall): Remove installed gdbtcl dir, if one
750         was installed.
752 Thu Jan 15 12:42:28 1998  Keith Seitz  <keiths@onions.cygnus.com>
754         * gdbtk.c (gdb_immediate_command): New function which does not buffer any
755         output. (Contrast to gdb_cmd.)
756         (gdbtk_init): Install "gdb_immediate" command into interpreter.
758 Wed Jan 14 16:38:44 1998  Keith Seitz  <keiths@pizza.cygnus.com>
760         * configure.in (--enable-gdbtk): If tcl was built with --enable-shared,
761         use TCL_SHLIB_SUFFIX to specify the suffix of the library file so that
762         we don't expect to see "libfoo.a" instead of "libfoo.{so,sl, etc}".
764         * configure: Regenerate.
765         
766 Wed Dec 31 16:50:26 1998  Keith Seitz  (keiths@onions.cygnus.com)
768         * gdbtk.c (gdb_actions_command): extract and save step count
769         from "while-stepping" command
771 Tue Dec 16 21:16:42 1997  Ian Lance Taylor  <ian@cygnus.com>
773         * Makefile.in (LIBGUI): New variable.
774         (GUI_CFLAGS_X): New variable.
775         (IDE_CFLAGS): Add $(GUI_CFLAGS_X).
776         * configure.in: Add $(LIBGUI) to TCL_LIBS and CONFIG_DEPS.
777         * configure: Rebuild.
779 Wed Dec  10 13:16:45 1997  Keith Seitz  <keiths@onions.cygnus.com>
781         * gdbtk.c (gdb_get_tracepoint_info): Use info in struct 
782         symtab_and_line (not struct tracepoint) so that we get the
783         real line info for an address. Arrange data more like
784         gdb_get_breakpoint_info.
785         (tracepoint_notify): Use info in struct symtab_and_line again.
786         (gdbtk_init): Add command "gdb_get_tracepoint_list" into
787         interpreter.
788         (gdb_get_tracepoint_list): New function that aids the source
789         window in displaying tracepoints when the file changes.
790         
791 Fri Dec  5 10:31:23 1997  Keith Seitz  <keiths@pizza.cygnus.com>
793         * gdbtk.c (gdbtk_init): Add gdb_find_file into interpreter.
794         (gdb_find_file_command): New function which searches source path
795         to find the real full filename of a file.
797 Mon Dec  1 10:19:44 1997  Keith Seitz  <keiths@onions.cygnus.com>
799         * gdbtk.c: Move include of "guitcl.h" back out of IDE ifdef.
800         (gdbtk_init): Move ide_initialize_paths out of IDE ifdef.
802         * configure.in (TCL_LIBS, CONFIG_DEPS): Add IDE libraries for all
803         builds.
804         (CONFIG_OBS): Remove tracepoint.o, which should always be included.
806         * configure: regenerate
808         * Makefile.in (install-only): ALWAYS install the new gdbtk
809         (REMOTE_OBS): add tracepoint.o
810         
811 Thu Nov 27 09:07:18 1997  Michael Meissner  <meissner@cygnus.com>
813         * configure.in ({TCL_LIBS,CONFIG_DEPS}): Don't add IDE libraries
814         if not --enable-ide.
815         (CONFIG_OBS): Add tracepoint.o to list if --enable-gdbtk.
816         * configure: Regenerate.
818         * gdbtk.c (gdb_get_breakpoint_info): Add missing filename
819         argument.
820         (toplevel): Move include of guitcl.h into #ifdef IDE region.
821         (gdbtk_init): Move ide_initialize_paths call into #ifdef IDE
822         section.
824         * Makefile.in (gdbtk.o): Update dependencies.
826 Wed Nov 26 15:02:43 1997  Keith Seitz  <keiths@onions.cygnus.com>
828         * gdbtk.c (gdb_loc): symtab_to_filename can return NULL.
829         (breakpoint_notify): Ditto.
830         (gdb_get_breakpoint_info): Ditto.
832 Wed Nov 26 11:33:09 1997  Keith Seitz  <keiths@onions.cygnus.com>
834         Merge in code from Foundry branch:
835         
836         * Makefile.in (install-only): install the new gdbtk, not the old
838         * gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
839         commands
840         (gdbtk_init): Add new commands "gdb_get_locals", "gdb_get_args",
841         "gdb_get_function", "gdb_get_line", "gdb_get_file",
842         "gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
843         and "gdb_prompt".
844         (gdb_get_vars_command): New function.
845         (gdb_get_line_command): New.
846         (gdb_get_file_command): New.
847         (gdb_get_function_command): New.
848         (gdb_get_tracepoint_info): New.
849         (gdbtk_create_tracepoint): New.
850         (gdbtk_delete_tracepoint): New.
851         (tracepoint_notify): New.
852         (tracepoint_exists): New.
853         (gdb_actions_command): New.
854         (gdb_tracepoint_exists_command): New.
855         (gdb_prompt_command): New.
857 Thu Nov 13 18:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
859         * gdbtk.c: Move include of gdbcore.h to top of file.
860         (close_bfds): New static function if _WIN32.
861         (gdbtk_readline): Call close_bfds.
862         (call_wrapper, tk_command_loop): Likewise.
863         (gdb_clear_file): New static function.
864         (gdbtk_init): Create gdb_clear_file Tcl command.
866 Wed Nov 12 14:58:39 1997  Jeff Holcomb  <jeffh@cygnus.com>
868         * gdbtk.c: gdbtk_load_hash and ui_load_progress_hook return an
869         int result.
870         (gdbtk_load_hash): download hash routine returns an int result.
872 Mon Nov 10 15:11:51 1997  Ian Lance Taylor  <ian@cygnus.com>
874         * gdbtk.c (gdbtk_init): Call ide_create_shell_execute_command if
875         __CYGWIN32__.
876         * configure.in: Add -lshell32 to WIN32LIBS on cygwin32.
877         * configure: Rebuild.
879 Sun Nov  9 16:25:34 1997  Tom Tromey  <tromey@cygnus.com>
881         * gdbtk.c (gdbtk_init): Run ide_create_help_command.
883 Tue Oct 28 17:31:47 1997  Martin M. Hunt  <hunt@cygnus.com>
885         * gdbtk.c (gdbtk_init): Call ide_create_winprint_command.
887 Thu Oct 23 15:53:37 1997  Ian Lance Taylor  <ian@cygnus.com>
889         * configure.in: Add -lgdi32 to WIN32LIBS when linking gdbtk on
890         cygwin32.
891         * configure: Rebuild.
893 Wed Oct 22 21:32:54 1997  Martin M. Hunt  <hunt@cygnus.com>
895         * gdbtk.c (gdbtk_init): Create sizebox command on Windows.
897 Thu Oct  9 14:33:21 1997  Ian Lance Taylor  <ian@cygnus.com>
899         * gdbtk.c (gdbtk_init): Remove assertion argument from call to
900         ide_create_window_register_command.
902 Wed Oct  1 11:09:52 1997  Tom Tromey  <tromey@cygnus.com>
904         * gdbtk.c (gdbtk_init): Pass name of restore interface to
905         ide_create_window_register_command.
907 Fri Sep 26 21:08:22 1997  Keith Seitz  <keiths@pizza.cygnus.com>
909         * gdbtk.c (gdbtk_init): Initialize ui_load_progress_hook.
911 Thu Sep 25 03:05:00 1997  Martin M. Hunt  <hunt@cygnus.com>
913         * gdbtk.c (gdb_load_info): New function.  Returns a list
914         of section names and sizes for an executable.
915         (gdbtk_load_hash): Stub function to call tcl function
916         download_hash.
918 Tue Sep 23 01:29:00 1997  Martin M. Hunt  <hunt@cygnus.com>     
920         * gdbtk.c (gdb_get_mem): Fix compiler warning.
922 Sun Sep 21 00:15:00 1997  Martin M. Hunt  <hunt@cygnus.com>
924         * gdbtk.c (gdb_get_mem): Fix problem with ASCII dump.
926 Tue Sep 16 18:07:17 1997  Martin M. Hunt  <hunt@cygnus.com>     
928         * gdbtk.c (gdb_get_mem): New function.  Returns
929         a formatted memory dump with optional ASCII dump.
931 Mon Sep  8 12:48:50 1997  Ian Lance Taylor  <ian@cygnus.com>
933         * gdbtk.c: Include ilutk.h if IDE.
934         (gdb_confirm_quit, gdb_force_quit): New static functions.
935         (gdbtk_init): Add Tcl commands gdb_confirm_quit and
936         gdb_force_quit.
938 Mon Sep  8 03:05:33 1997  Martin M. Hunt  <hunt@cygnus.com>
940         * gdbtk.c (gdb_get_breakpoint_info): Now returns the
941         function a breakpoint is in.
943 Fri Sep  5 20:23:58 1997  Ian Lance Taylor  <ian@cygnus.com>
945         * gdbtk.c (gdbtk_init): Call ide_create_exit_command.
947 Wed Sep  3 19:39:15 1997  Ian Lance Taylor  <ian@cygnus.com>
949         * gdbtk.c: Include guitcl.h.
950         (gdbtk_init): Always call ide_initialize_paths.  Set the Tcl
951         variable IDE to 1 when using the IDE.  Always try using auto path
952         to find main.tcl.
953         * Makefile.in (IDE_CFLAGS_X): Always include libide.
954         (LIBIDE): New variable.
955         (IDE_X): Omit -lide.
956         (IDE_DEPS): Omit libide.
957         * configure.in: Add LIBIDE to TCL_LIBS and CONFIG_DEPS.
958         * configure: Rebuild.
960 Mon Aug 25 02:28:55 1997  Keith Seitz  <keiths@pizza.cygnus.com>
962         * gdbtk.c: (gdb_target_has_inferior) check if inferior_pid is non-zero
963         before assuming that the inferior is running.
965 Mon Aug 25 01:06:48 1997  Ian Lance Taylor  <ian@cygnus.com>
967         * gdbtk.c (gdbtk_start_timer): Pass third argument to setitimer.
968         (gdbtk_stop_timer): Likewise.
970 Mon Aug 25 00:23:08 1997  Keith Seitz  <keiths@pizza.cygnus.com>
972         * gdbtk.c: (gdbtk_init) create new command "gdb_target_has_execution"
973         (gdb_target_has_execution_command) new function
975 Sun Aug 24 20:27:22 1997  Ian Lance Taylor  <ian@cygnus.com>
977         * gdbtk.c (gdb_loc): If there are no symbols, just bail
978         immediately.
979         (tk_command_loop): Print errors encountered while running
980         gdbtk_tcl_preloop.
982 Sun Aug 24 13:44:03 1997  Tom Tromey  <tromey@cygnus.com>
984         * gdbtk.c (gdbtk_init): Run ide_create_build_command.
986 Sat Aug 23 21:53:39 1997  Ian Lance Taylor  <ian@cygnus.com>
988         * gdbtk.c: If CYGWIN32, include <sys/time.h>.
989         (x_fd): Don't define if WINNT.
990         (gdbtk_start_timer, gdbtk_stop_timer): New static functions if
991         CYGWIN32.
992         (gdbtk_wait): Don't set up signal handling if WINNT.  If CYGWIN32,
993         call gdbtk_start_timer and gdbtk_stop_timer.
994         (gdbtk_init): Don't set up signal handling or make x_fd
995         asynchronous if CYGWIN32.
997 Fri Aug 22 15:23:15 1997  Ian Lance Taylor  <ian@cygnus.com>
999         * gdbtk.c (error_string_ptr): New static variable.
1000         (gdbtk_fputs): If result_ptr is NULL, and error_string_ptr is not
1001         NULL, and we're outputting to stderr, append string to
1002         error_string_ptr rather than calling gdbtk_tcl_fputs.
1003         (call_wrapper): Set up error_string_ptr.  Put both error string
1004         and normal string in Tcl result.
1006         * gdbtk.c (gdbtk_init): Don't call ide_run_server_init until after
1007         gdb has initialized.
1009 Thu Aug 21 19:14:38 1997  Ian Lance Taylor  <ian@cygnus.com>
1011         * gdbtk.c: If _WIN32, include winuser.h.
1012         (gdbtk_init): If _WIN32, use MessageBox to display an error
1013         evaluating main.tcl.
1015 Thu Aug 21 00:48:00 1997  Martin M. Hunt  <hunt@pern.cygnus.com>
1017         * gdbtk.c (gdbtk_init): Add call to ide_run_server_init().
1018         (gdb_cmd): For the load command, don't buffer the I/O.
1020 Wed Aug 20 11:41:22 1997  Martin M. Hunt  <hunt@cygnus.com>
1022         * gdbtk.c (gdbtk_query): Chaneg free() call to Tcl_Free().
1023         
1024 Tue Aug 19 17:09:19 1997  Ian Lance Taylor  <ian@cygnus.com>
1026         * Makefile.in (TCL_DEPS, TK_DEPS): New variables.
1027         (ITCL_DEPS, TIX_DEPS): New variables.
1028         (IDE_DEPS): New variable.
1029         (CDEPS): Include @CONFIG_DEPS@.
1030         * configure.in: Set and substitute CONFIG_DEPS and TIX_DEPS.
1031         * configure: Rebuild.
1033 Sun Aug 17 00:42:11 1997  Martin M. Hunt  <hunt@cygnus.com>
1035         * gdbtk.c (gdb_listfuncs): New function that returns
1036         a list of all the functions in a source file.
1038 Tue Aug 12 16:35:21 1997  Ian Lance Taylor  <ian@cygnus.com>
1040         * Makefile.in (install-only): Install tclIndex if ENABLE_IDE.
1042 Mon Aug 11 10:43:04 1997  Tom Tromey  <tromey@cygnus.com>
1044         * gdbtk.c (gdbtk_init): Use ide_event_init_from_environment.
1046 Fri Aug  8 15:59:24 1997  Ian Lance Taylor  <ian@cygnus.com>
1048         * gdbtk.c (gdbtk_init): Change gdbtk_lib_tmp and gdbtk_file to be
1049         dynamically allocated, rather than fixed size.  Pass "gdbtcl" to
1050         ide_initialize_paths to match installed directory name.  If IDE,
1051         use auto_path to search for main.tcl.
1052         * Makefile.in (install-only): If ENABLE_IDE, install from gdbtcl2
1053         rather than gdbtcl.
1055         * gdbtk.c (gdbtk_cleanup): New static function.
1056         (gdbtk_init): Add gdbtk_cleanup as a final cleanup.  Uncomment
1057         call to ide_initialize_paths.  If we can't initialize the event
1058         system, set GDBTK_IDE to 0 in the Tcl interpreter.  Create the
1059         ide_window_register and the ide_window commands.  Initialize tk,
1060         itcl, and tix after initializing the IDE.
1062         * configure.in (tixdir): Update for cygwin32 case for Tcl 8.0.
1063         * configure: Rebuild.
1065 Fri Aug  8 00:13:32 1997  Martin M. Hunt  <hunt@cygnus.com>
1067         * gdbtk.c (breakpoint_notify): Change buffer size from 100
1068         to 256 to avoid memory corruption with very long pathnames.
1070 Thu Aug  7 14:08:23 1997  Martin M. Hunt  <hunt@cygnus.com>
1072         * configure.in: Change required Tix version to 4.1.8.0 .
1073         * configure: Rebuilt.
1075 Fri Aug  1 15:21:44 1997  Ian Lance Taylor  <ian@cygnus.com>
1077         * gdbtk.c (Tcl_Alloc): Don't provide our own version of this if
1078         _WIN32.
1079         (Tcl_Realloc, Tcl_Free): Likewise.
1080         * configure.in: Check for cygwin32 environment.  Define and
1081         substitute WIN32LIBS and WIN32LDAPP.  Always set configdir to
1082         unix; setting it to win was for an old Tcl/Tk configuration
1083         scheme.
1084         * aclocal.m4 (CY_AC_LOAD_TKCONFIG): Substitute TK_BUILD_INCLUDES.
1085         * Makefile.in (TK_CFLAGS): Add @TK_BUILD_INCLUDES@.
1086         (WIN32LDAPP, WIN32LIBS): Define.
1087         (CLIBS): Add $(WIN32LIBS).
1088         (gdb): Use $(WIN32LDAPP).
1089         * configure: Rebuild.
1091 Tue Jul 22 19:45:37 1997  Martin M. Hunt  <hunt@cygnus.com>
1093         * configure.in, aclocal.m4: Another fix to find the
1094         correct Tix library name.
1096         * configure: Rebuilt.
1097         
1098 Mon Jul 21 22:24:07 1997  Martin M. Hunt  <hunt@cygnus.com>
1100         * aclocal.m4: Search for the correct tix library. 
1102 Thu Jul 10 00:02:41 1997  Martin M. Hunt  <hunt@cygnus.com>
1104         * Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and 
1105         IDE configuration information.
1107         * gdbtk.c (breakpoint_notify): Send address, linenumber and 
1108         filename when a breakpoint is set.  Avoids call to bp_info.
1109         (gdbtk_init): Call Tcl_FindExecutable(). Add code to handle 
1110         Itcl, Tix and IDE initialization.
1112         * configure: Regenerated.
1114 Fri Jun 13 10:28:09 1997  Fred Fish  <fnf@cygnus.com>
1116         * gdbtk.c (gdbtk_init): Make truth value test explicit.
1117         Remove unused static variable "Gdbtk_Library".
1119 Sat Jun  7 02:34:19 1997  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
1121         * gdbtk.c (gdb_get_breakpoint_info):  Add string for new
1122         enumeration del_at_next_stop to bpdisp array.
1124 Tue Jun  3 15:46:51 1997  Tom Tromey  <tromey@cygnus.com>
1126         * Makefile.in (LIB_RUNTIME_DIR): New variable.
1128 Wed May  7 19:10:19 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1130         * gdbtk.c (wrapped_call): New function - make actual call to tk
1131         worker function.
1132         (call_wrapper): Rewrite to use top.c:catch_errors.
1134         * gdbtk.c (gdb_stop): If No target_stop set quit flag and hope for
1135         best.
1137 Mon Apr 21 14:00:08 1997  Doug Evans  <dje@canuck.cygnus.com>
1139         * gdbtk.c (gdb_disassemble): Store endian-ness in `di'.
1141 Wed Apr 16 12:33:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1143         * Makefile.in (install-only): Make list of gdbtcl files to install
1144         explicit - was picking up files such as ChangeLog etc.
1145         (install-only): Don't blindly create the directory.
1147 Tue Apr  1 15:04:21 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
1149         * configure.in (gdbtcl): Create soft-link for gdbtcl/ directory
1150         instead of gdbtk.tcl.
1152 Fri Mar 28 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
1154         * Makefile.in (gdbtk.o): look for GDBTK_LIBRARY in $(datadir) by
1155         default, not $(srcdir).
1157 Wed Mar 19 15:16:17 1997  Martin M. Hunt  <hunt@onions.cygnus.com>
1159         * Makefile.in:  Install gdbtcl dir instead of gdbtk.tcl.
1160         
1161         * gdbtk.c: Added some ifdefs for Windows.  Changed GDBTK_FILENAME
1162         to GDBTK_LIBRARY, which is now a path to search.
1163         (gdb_path_conv): New function.  Convert Cygwin32 pathname to
1164         DOS-style pathname.
1166         * {aclocal.m4,configure.in}: Changes for Windows builds.
1168         * configure: Rebuilt.
1170 Fri Mar 14 10:01:29 1997  Tom Tromey  <tromey@cygnus.com>
1172         * configure: Regenerated.
1173         * configure.in (LIBS): Re-reverse order of TCL_LIBS and TK_LIBS.
1175 Wed Mar 12 14:29:52 1997  Tom Tromey  <tromey@cygnus.com>
1177         * gdbtk.c (x_event): Use Tcl_DoOneEvent, TCL_DONT_WAIT,
1178         TCL_ALL_EVENTS.
1180         * configure: Regenerated.
1181         * configure.in (ENABLE_GDBTK): Put TCL_LIBS after TK_LIBS in
1182         LIBS.
1184 Mon Feb 10 13:50:53 1997  Stu Grossman  (grossman@critters.cygnus.com)
1186         * gdbtk.c (call_wrapper):  Clear running_now if an error occurs.
1188 Wed Dec 11 18:51:35 1996  Mark Alexander  <marka@cygnus.com>
1190         * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
1192 Tue Nov 19 09:26:14 1996  Tom Tromey  <tromey@cygnus.com>
1194         * gdbtk.c (gdbtk_readline): Fix memory leak.
1196 Mon Nov 18 23:43:05 1996  Tom Tromey  <tromey@cygnus.com>
1198         Fixes for Tcl 7.6 / Tk 4.2:
1199         * gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
1200         Remove old fileselect code.
1201         * gdbtk.c (Tcl_Alloc): Rename from Tcl_Malloc.
1203 Fri Sep 27 10:25:30 1996  Fred Fish  <fnf@cygnus.com>
1205         * gdbtk.tcl (create_copyright_window): Increase timeout from
1206         15 seconds to 30 seconds.
1208 Wed Sep  4 17:28:40 1996  Stu Grossman  (grossman@critters.cygnus.com)
1210         * configure configure.in:  Add host *windows* to list of hosts
1211         that don't support GDBtk.
1213 Fri Aug 23 00:44:57 1996  Fred Fish  <fnf@cygnus.com>
1215         * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
1216         gracefully degrade to using command line interface if none is
1217         found.
1219 Fri Aug  9 12:32:53 1996  Tom Tromey  <tromey@creche.cygnus.com>
1221         * Makefile.in (LIB_INSTALL_DIR): New macro.
1222         (TCL): Include @TCL_LD_SEARCH_FLAGS@.
1224 Thu Aug  1 20:35:01 1996  Tom Tromey  <tromey@creche.cygnus.com>
1226         * gdbtk.c (mainWindow): Deleted.
1227         (cleanup_init): Don't destroy main window.
1228         (gdbtk_init): Main window now created by Tk_Init.
1230         * configure.in: Most X checks now handled automatically by Tk.
1231         Use new macros to find Tcl/Tk.
1232         * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
1233         * config.in, configure: Regenerated.
1235         * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
1236         X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1238 Thu Aug  1 16:12:05 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
1240         * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
1242 Fri Jul 26 14:07:37 1996  Ian Lance Taylor  <ian@cygnus.com>
1244         * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1246 Thu Jul 25 19:41:31 1996  Fred Fish  <fnf@cygnus.com>
1248         * gdbtk.c (null_routine): Ditto.
1249         (gdbtk_flush): Ditto.
1250         (gdbtk_fputs): Ditto.
1251         (gdbtk_query): Ditto.
1252         (gdbtk_readline): Ditto.
1253         (gdbtk_readline_end): Ditto.
1254         (gdb_get_breakpoint_list): Ditto.
1255         (gdb_get_breakpoint_info): Ditto.
1256         (breakpoint_notify): Ditto.
1257         (gdbtk_create_breakpoint): Ditto.
1258         (gdbtk_delete_breakpoint): Ditto.
1259         (gdbtk_modify_breakpoint): Ditto.
1260         (gdb_loc): Ditto.
1261         (gdb_eval): Ditto.
1262         (gdb_sourcelines): Ditto.
1263         (map_arg_registers): Ditto.
1264         (get_register_name): Ditto.
1265         (gdb_regnames): Ditto.
1266         (get_register): Ditto.
1267         (gdb_fetch_registers): Ditto.
1268         (register_changed_p): Ditto.
1269         (gdb_changed_register_list): Ditto.
1270         (gdb_cmd): Ditto.
1271         (call_wrapper): Ditto.
1272         (gdb_listfiles): Ditto.
1273         (gdb_stop): Ditto.
1274         (gdbtk_dis_asm_read_memory): Ditto.
1275         (compare_lines): Ditto.
1276         (gdb_disassemble): Ditto.
1277         (tk_command): Ditto.
1278         (cleanup_init): Ditto.
1279         (gdbtk_interactive): Ditto.
1280         (x_event): Ditto.
1281         (gdbtk_wait): Ditto.
1282         (gdbtk_call_command): Ditto.
1283         (tk_command_loop): Ditto.
1284         (gdbtk_init): Ditto.
1286         * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1288 Sat Jul 20 17:46:40 1996  Fred Fish  <fnf@cygnus.com>
1290         * gdbtk.tcl (files_command): Reorder the binding tags for
1291         the listbox widget to avoid referencing the listbox after
1292         the containing widget has been destroyed by the action of
1293         a previous binding.
1295 Sat Jul 20 10:09:28 1996  Fred Fish  <fnf@cygnus.com>
1297         * gdbtk.tcl (delete_expr): Unset corresponding element of
1298         expr_update_list when destroying an expression.
1299         (create_expr_window): Initialize expr_num, delete_expr_num,
1300         and expr_update_list here when each new expression window
1301         is created, rather than once at startup.
1303 Mon Jul 15 16:44:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
1305         * gdbtk.c (gdb_disassemble):  Setup di.mach from
1306         tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1308 Fri Jun 21 11:04:47 1996  Fred Fish  <fnf@cygnus.com>
1310         * gdbtk.tcl (create_register_windows): Include missing '$'s.
1311         Add global declarations for various reg_format_* variables.
1312         * gdbtk.tcl (populate_register_window): Make initial window one
1313         line taller to account for new column header line.
1315 Fri Jun 21 09:46:47 1996  Fred Fish  <fnf@cygnus.com>
1317         * gdbtk.c (get_register): Support for printing raw formats.
1318         * gdbtk.tcl: Add hint for using debug_interface.
1319         (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1320         Enclose arg in braces for consistency.
1321         (create_registers_window, populate_reg_window, update_registers):
1322         Major rewrite to support displaying multiple formats in the register
1323         window.
1324         (init_reg_info): New function.
1325         (recompute_reg_display_list):  Reset reg_display_list, start
1326         register display lines at line 2.
1328 Thu Jun 20 08:18:59 1996  Fred Fish  <fnf@cygnus.com>
1330         * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1331         avoid backing up over prompt.  At every input, make sure insert
1332         point is at least after command start, handle control-u to delete
1333         current input line.
1334         (tclsh): Handle backspace to avoid backing up over prompt.  Handle
1335         control-u to delete current input line.
1337 Wed Jun 19 17:23:38 1996  Geoffrey Noer  <noer@cygnus.com>
1339         * configure.in: disable gdbtk for *cygwin32* hosted compiles
1340         * configure: regenerated with autoconf 2.8
1342 Sun May 19 16:49:37 1996  Fred Fish  <fnf@cygnus.com>
1344         * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1345         New functions.
1346         (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1347         (gdbtk_init): Set readline_begin_hook, readline_hook,
1348         and readline_end_hook.
1349         * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1350         gdbtk_tcl_readline_end): New functions.
1351         (tclsh): Pack scroll bar on right side of window, not left.
1353 Fri May 17 13:54:34 1996  Fred Fish  <fnf@cygnus.com>
1355         * gdbtk.tcl (create_command_window): Change a misspelled "get"
1356         to the intended "cget".
1357         (delete_line): Fix so it deletes the current line at the
1358         insertion cursor.
1360 Thu May 16 19:20:29 1996  Fred Fish  <fnf@cygnus.com>
1362         * gdbtk.tcl (gdb_prompt): Set this early on.
1363         (create_command_window): Use gdb_prompt rather than "(gdb) ".
1364         (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1365         (tclsh): If an evaluation window already exists, just bring it
1366         to the front instead of trying to create another.
1367         * gdbtk.c (tk_command_loop): New function.
1368         (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1370 Thu May 16 16:16:35 1996  Fred Fish  <fnf@cygnus.com>
1372         * gdbtk.tcl (evaluate_tcl_command, tclsh):  New functions that
1373         implement a tcl evaluation window for gdbtk maintainers to use.
1375 Thu May 16 11:42:58 1996  Tom Tromey  <tromey@creche.cygnus.com>
1377         * gdbtk.tcl (files_command): Correctly insert list of files into
1378         listbox widget.
1380         * gdbtk.tcl (files_command): listbox command no longer accepts
1381         -geometry.
1383 Wed May 15 16:04:09 1996  Stan Shebs  <shebs@andros.cygnus.com>
1385         * gdbtk.tcl (create_command_window): If command window's buffer
1386         is disabled, don't execute any of the key bindings.
1388 Mon May 13 13:43:25 1996  Fred Fish  <fnf@cygnus.com>
1390         * gdbtk.c (tk_command): Catch case where no argument is given
1391         since this will cause the tcl interpreter to dump core.
1393 Wed May  8 20:33:24 1996  Fred Fish  <fnf@cygnus.com>
1395         * gdbtk.c: Fix a couple of misspellings.
1397 Thu May  2 19:17:49 1996  Stan Shebs  <shebs@andros.cygnus.com>
1399         * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1400         (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1401         (file_popup_menu): Delete, never used.
1402         (listing_window_popup): Rename from listing_window_button_1,
1403         remove breakpoint toggling code.
1404         (toggle_breakpoint): New procedure.
1405         (create_file_win): Bind popup menu to button 2, toggle breakpoints
1406         with button 1 in breakpoint area, add display of tagged areas if
1407         debugging on.
1409 Fri Apr  5 13:44:40 1996  Stan Shebs  <shebs@andros.cygnus.com>
1411         * gdbtk.c (running_now): New global variable.
1412         (gdb_cmd): Test it before executing any command.
1413         (gdbtk_call_command): Set it when inferior is running.
1414         * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
1415         disable interaction with command window's text appropriately.
1417 Fri Apr  5 13:25:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
1419         * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
1420         some versions of the kernel don't support it.
1422 Tue Feb  6 16:31:25 1996  Tom Tromey  <tromey@creche.cygnus.com>
1424         * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
1425         double-clicking will work again.
1426         (create_asm_win): Put "break" at end of all B1 bindings.
1427         (create_file_win): Lower "sel" tag, don't raise it.
1428         (ensure_line_visible): New proc.
1429         (update_listing, update_assembly): Use it.
1430         (create_copyright_window): Destroy window on Leave event.
1431         (create_command_window): Put "break" at end of all B2 bindings.
1433 Wed Jan 24 15:28:41 1996  Tom Tromey  <tromey@creche.cygnus.com>
1435         * gdbtk.tcl, gdbtk.c: Updated copyrights.
1437         * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
1438         greater.
1439         * configure: Rebuilt.
1441 Tue Jan 23 09:00:48 1996  Doug Evans  <dje@charmed.cygnus.com>
1443         * gdbtk.c (gdb_disassemble): Pass fprintf_unfiltered to
1444         INIT_DISASSEMBLE_INFO.
1446 Mon Jan 15 09:58:41 1996  Tom Tromey  <tromey@creche.cygnus.com>
1448         * gdbtk.tcl (create_expr_window): Many changes to update GUI.
1449         (add_expr): Changes from create_expr_window.
1450         (create_command_window): Set focus.
1451         (delete_expr): Rewrote.
1452         (expr_update_button): New proc.
1453         (add_expr): Put bindings on FocusIn, FocusOut.
1454         Don't allow .file_popup to be torn off.
1456 Fri Jan 12 09:36:17 1996  Tom Tromey  <tromey@creche.cygnus.com>
1458         * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
1459         (update_listing): Use lassign.  Use "see" to scroll.  Don't need
1460         screen_top, screen_bot, screen_height.
1461         (update_assembly): Use "see" to scroll.
1462         (textscrollproc): Removed.
1463         (create_file_win): Don't use textscrollproc.
1464         (asmscrollproc): Removed.
1465         (create_asm_window): Don't use asmscrollproc.
1466         (create_asm_win): Ditto.
1467         (screen_height, screen_top, screen_bot): Removed.
1468         (run_editor): New proc.
1469         (build_framework): Use it.
1470         (create_file_win, create_source_window): Don't use textscrollproc.
1471         (create_breakpoints_window): Set -xscrollcommand on canvas.
1472         (not_implemented_yet): Default button is 0.
1473         (delete_char): Don't use tk_textBackspace.
1474         (create_command_window): Allow Tk bindings to fire after deleting
1475         character.
1476         (create_command_window): Make Delete delete left, not right.
1478 Thu Jan 11 10:08:14 1996  Tom Tromey  <tromey@creche.cygnus.com>
1480         * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
1482         Changes in sync with expect:
1483         * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
1484         CY_AC_PATH_TK.
1485         * aclocal.m4: Replaced with version from expect.
1486         * configure: Regenerated.
1488 Wed Jan 10 09:07:22 1996  Tom Tromey  <tromey@creche.cygnus.com>
1490         * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
1491         gdbtk_tcl_flush): Use "see", not "yview".
1492         (gdbtk_tcl_query): Use questhead bitmap.
1493         various: Always wrap condition of 'if' in {...}.
1494         (add_breakpoint_frame): Set -value on radiobuttons.
1495         (lassign): New proc.
1496         (add_breakpoint_frame): Use lassign, not series of assignments.
1497         (decr): Made faster.
1498         (interactive_cmd): Use "see", not "yview".
1499         (not_implemented_yet): Use warning bitmap.
1500         (update_expr): Don't allow $expr to be evalled by Tcl.
1501         (create_expr_window): Don't use "focus".
1502         (delete_char, delete_line): Define globally.
1503         (delete_line, delete_char, create_command_window, update_autocmd,
1504         build_framework, create_asm_win, create_file_win): Use "see", not
1505         "yview".
1506         (create_copyright_window, center_window, bind_widget_after_class):
1507         New procs.
1508         (FSBox,create_command_window, create_autocmd_window): Binding
1509         changes for Tk4.
1510         (textscrollproc): Define globally.
1511         (build_framework): tk_menuBar no longer needed.  Keys Prior, Next,
1512         Home, End, Up, and Down are all defined by Tk.
1513         (apply_filespec): Use error bitmap in dialog.
1514         (files_command): Don't use tk_listboxSingleSelect.
1515         (files_command): Don't use "uniq" to remove duplicates from a
1516         list.
1517         (update_assembly): Use lassign.
1518         (create_asm_win): Removed redundant bindings.
1519         (listing_window_button_1, file_popup_menu): Use tk_popup.
1520         (ButtonRelease-1 binding): Just remove tag from window; rest
1521         handled by Tk.
1523         * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
1524         (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
1525         (gdbtk_call_command): Ditto.
1527 Thu Jan  4 16:04:54 1996  Stu Grossman  (grossman@cygnus.com)
1529         * configure configure.in:  Make --enable-gdbtk be the default.
1531 Thu Dec 28 15:10:49 1995  Stan Shebs  <shebs@andros.cygnus.com>
1533         * README.GDBTK: Polish introductory paragraph.
1535 Mon Oct 16 11:27:06 1995  Stu Grossman  (grossman@cygnus.com)
1537         * gdbtk.c (gdb_disassemble):  Use fprintf_unfiltered instead of
1538         fprintf_filtered.
1540 Tue Oct 10 15:26:39 1995  Fred Fish  <fnf@cygnus.com>
1542         * README.GDBTK: Updated for version 4.15.
1543         
1544 Sat Aug 19 17:20:22 1995  Michael Tiemann  <tiemann@axon.cygnus.com>
1546         * gdbtk.tcl: ENABLE comes back as "1" or "0", not "enable" or
1547         "disable".
1548         Also, wire up the breakpoint window so that it can be demo'd.
1550 Tue Aug  1 11:44:53 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
1552         * gdbtk.c: Include "gdb_string.h" instead of <string.h>.
1554 Tue Jun 20 10:19:40 1995  Stu Grossman  (grossman@cygnus.com)
1556         * gdbtk.c:  Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.
1558         * gdbtk.tcl (add_breakpoint_frame):  Add more fields.
1559         * (create_file_win create_asm_win build_framework):  Create null
1560         bindings for meta keys to keep window from dropping down to
1561         insertion point when meta is pressed by itself.  New bindings:
1562            Up/Down - Scroll up/down one line at a time
1563            Next/Prior - Scroll up/down one page at a time
1564            Home/End - Warp to current pc/end of file
1565         * (build_framework):  Turn on breakpoint menu.
1566         * (create_command_window):  Implement tab completion.  Add binding
1567         for ^C to stop target.
1569 Fri May 19 06:15:40 1995  Jim Kingdon  <kingdon@deneb.cygnus.com>
1571         * gdbtk.c: Conditionalize use of stdarg rather than varargs on
1572         ANSI_PROTOTYPES not __STDC__; it must match the definition of
1573         PARAMS.
1575 Thu May 18 15:58:46 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
1577         * gdbtk.c (gdbtk_query): Use stdarg.h macros when compiling with
1578         an ANSI compiler.
1580 Sat Apr 15 13:52:24 1995  Stan Shebs  <shebs@andros.cygnus.com>
1582         * gdbtk.c (gdb_disassemble): Read from inferior if connected
1583         to a VxWorks target.
1585 Fri Apr 14 10:18:20 1995  Stu Grossman  (grossman@cygnus.com)
1587         * README.GDBTK:  New file.  Contains the obvious.
1589 Tue Apr 11 11:07:12 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1591         * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
1592         F_SETOWN is, use that.
1594 Thu Apr  6 17:00:46 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1596         * Makefile.in (X11_INCLUDES): Define as empty.
1597         (X11_CFLAGS): Define as including $(X11_INCLUDES).
1598         (X11_LIB_SWITCHES): Define as empty.
1599         (X11_LIBS): Define as -lX11.
1601         * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
1602         and --x-libraries switches, setting the X11_INCLUDES and
1603         X11_LIB_SWITCHES respectively.  Instead of using a hardcoded -lX11
1604         in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
1606         * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
1607         it.  This means that the stop button doesn't work, but is better
1608         than nothing.
1610 Wed Mar 29 17:09:29 1995  Stu Grossman  (grossman@cygnus.com)
1612         * Makefile.in (gdbtk.o):  Use X11_CFLAGS to provide alternate
1613         locations (per-host) for X11 include files.
1614         * config/pa/hppahpux.mh (XM_CLIBS):  Add -L/usr/lib/X11R5 to force
1615         the use of R5 libs.
1616         (X11_CFLAGS):  Add this to indicate the locs
1617         of the R5 include files.
1619 Wed Mar  8 16:12:21 1995  Stu Grossman  (grossman@cygnus.com)
1621         * gdbtk.c (gdb_get_breakpoint_info):  Return error if breakpoint
1622         type is not bp_breakpoint.
1624 Tue Feb 14 17:16:41 1995  Stu Grossman  (grossman@cygnus.com)
1626         * gdbtk.c: Ditto.
1627         * gdbtk.c: General cleanups, get rid of unused variables.  Redo
1628         handling of stdout/stderr to just return output as the result of
1629         the tcl command that caused the output.  Cleanup -Wall stuff.
1630         * (breakpoint_notify):  Now returns just action and breakpoint
1631         number.
1632         * (gdb_get_breakpoint_list):  New routine.  Does the obvious.
1633         * (gdb_get_breakpoint_info):  Mostly derived from the old
1634         breakpoint_notify, but returns lots more info.
1635         * (dsprintf_append_element):  Helper routine, works like printf,
1636         but appends a tcl element onto the specified DString.  Good for
1637         building up lists as return values.
1638         * (gdbtk_enable/disable_breakpoint):  Go away.  Replaced with
1639         gdbtk_modify_breakpoint.
1640         * (*many routines*):  Use new result protocol.
1641         * (call_wrapper):  Make sure that recursive calls don't trash results.
1642         * gdbtk.tcl:  New windows, autocmd, and breakpoints.
1643         * (gdbtk_tcl_fputs):  Don't use $current_output_win redirection
1644         anymore.  It's not needed (in fact, this routine may not be needed
1645         anymore).
1646         * (gdbtk_tcl_breakpoint):  Change to reflect new breakpoint
1647         notification protocol.
1648         * (gdbtk_tcl_busy gdbtk_tcl_idle):  Straighten out buttons, remove
1649         catches.
1650         * (interactive_cmd):  Use this wrapper around button invocations
1651         of many commands.  This will catch errors and put the results into
1652         the command window.  It also updates all the other windows.
1653         * Also, change reliefs of most things to sunken.  This actually
1654         looks better.
1655         * (create_file_win):  Fix margin binding to allow breakpoints to
1656         work again.
1657         * (create_asm_win):  Use return value of gdb_disassemble instead
1658         of implicit I/O to the command window.  
1659         * (create_command_window):  Use new result protocol to get output
1660         from commands.
1662 Sun Feb  5 20:32:44 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
1664         * gdbtk.c (gdb_disassemble): Deference pointer to function before
1665         calling it (pre-ANSI compilers generally require this).
1667 Fri Feb  3 11:19:20 1995  Stu Grossman  (grossman@cygnus.com)
1669         * gdbtk.c (gdb_disassemble): Get rid of
1670         dis_asm_read_memory_hook.  We can now call the disassemblers
1671         directly and have no need for this hook anymore.
1673 Mon Jan 30 17:34:24 1995  Stu Grossman  (grossman@cygnus.com)
1675         * gdbtk.tcl (create_file_win):  Disable old popup menu for source
1676         window.
1678 Wed Jan 25 18:23:46 1995  Stu Grossman  (grossman@cygnus.com)
1680         * gdbtk.c (gdbtk_init):  Prevent segfault when gdbtk.tcl can't be
1681         found.
1682         * gdbtk.tcl:  Initialize expr_update_list() to prevent errors when
1683         popping up expression window for the first time.
1685 Tue Jan 24 12:10:28 1995  Stu Grossman  (grossman@cygnus.com)
1687         * gdbtk.tcl (create_registers_window):  Work around a radiobutton
1688         widget bug to make Options|Natural button work.
1690         * gdbtk.c (gdb_disassemble):  Fix problem with source+assembly and
1691         g++ caused by out-of-order pc's.
1692         * gdbtk.tcl (files_command):  Remove duplicate file names.  Also,
1693         add scrollbar.
1695 Mon Jan 23 17:21:09 1995  Stu Grossman  (grossman@cygnus.com)
1697         * gdbtk.tcl:  Take .gdbtkinit if it exists.  Makes gdbtk match the
1698         doc!
1700 Thu Jan 12 15:02:40 1995  Stu Grossman  (grossman@cygnus.com)
1702         * gdbtk.c, gdbtk.tcl:  Update/add copyright.
1703         * gdbtk.tcl (build_framework):  Several fixes for filespec widget,
1704         including dismiss button, and better error handling.
1705         * (create_command_win):  Bind button 2 to retrieve selection.
1707 Wed Jan 11 17:06:55 1995  Stu Grossman  (grossman@cygnus.com)
1709         * gdbtk.tcl:  Add button to control mixed source disassembly.
1710         Use text widgets in expr window.  The give me more control over
1711         layout.
1712         Add auto-updating of exprs in expression window.
1713         Handle expressions out of scope a bit better.
1714         Make selected window pop up to the top when invoked via the
1715         menubar.
1716         Make copyright message have raised relief.
1718         * gdbtk.c (gdbtk_init):  Improve handling for errors in gdbtk.tcl
1719         during startup.
1721 Thu Jan  5 17:38:29 1995  Stu Grossman  (grossman@cygnus.com)
1723         * gdbtk.c (finish_saving_output):  Don't do anything if not saving
1724         output.
1725         * (breakpoint_notify):  Don't send null filename to tcl.
1726         * (gdb_eval):  New tcl command to eval an expression.
1727         * (gdb_disassemble):  New tcl command to do disassembly.  This
1728         allows tcl code to choose between exec file and target memeory,
1729         and can also do mixed source and assembly.
1730         * (gdbtk_init):  Move reading of gdbtk.tcl to the end to make sure
1731         that more of the environment is set up.  Also, create link between
1732         gdb and tcl vars disassemble{-_}from{-_}exec.
1734         * gdbtk.tcl:  New expression window support.
1735         * Make assembly window be 80 columns wide.
1736         * Use new disassembly method.  Add menu items to select
1737         disassembly from exec file or target.
1738         * Change View menubar item to Options.
1740         * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
1741         since they don't exist yet.
1743         * Pop up a copyright window on startup.
1745 Wed Jan  4 19:49:10 1995  Stan Shebs  <shebs@andros.cygnus.com>
1747         * gdbtk.tcl (build_framework): Add standard commands menu, more
1748         windows to standard windows menu.
1749         (not_implemented_yet): Clarify message.
1751 Fri Dec 30 15:49:00 1994  Stan Shebs  <shebs@andros.cygnus.com>
1753         * gdbtk.tcl (FSBox): New proc, File Selection Box code from exmh.
1754         (not_implemented_yet): New proc.
1755         (build_framework): Add various file commands to file menu.
1757 Fri Dec 23 16:18:50 1994  Stu Grossman  (grossman@cygnus.com)
1759         * gdbtk.c (gdbtk_wait gdbtk_init):  Portability improvements for
1760         SIGIO handling.
1762 Mon Dec 19 09:55:47 1994  Stu Grossman  (grossman@cygnus.com)
1764         * gdbtk.tcl (update_assembly):  Force update to make sure that pc
1765         is visible when creating new assembly windows.
1767 Sun Dec 18 23:31:20 1994  Stu Grossman  (grossman@cygnus.com)
1769         * gdbtk.c (gdbtk_wait gdbtk_init):  Use different method of
1770         enabling I/O interrupts for SVR4 (streams).
1771         * (start_saving_output save_output get_saved_output
1772         finish_saving_output flush_holdbuf gdbtk_flush gdbtk_fputs
1773         gdbtk_init):
1774         Totally revamp to use TCLs dynamic string functions.  Also, quote
1775         all data passed back to TCL to prevent errors with unmatched
1776         braces, odd characters, etc...  This fixes several wierd problems
1777         with outputting strings containing unmatched braces.
1778         * (breakpoint_notify gdb_loc):  Use long hex format to output
1779         addresses of breakpoints and PCs.  This fixes some Alpha problems.
1780         * (breakpoint_notify):  Add stream arg to call to gdbtk_fputs.
1781         * (gdb_listfiles):  Also, go through the symtabs when looking for
1782         files.  This makes xcoff work (sort of), but probably breaks
1783         something else.
1784         * (gdb_stop):  Return TCL_OK instead of nothing.  This fixes odd
1785         TCL errors when hitting stop button.
1786         * (tk_command):  Don't pass interp->result on to Tcl_{Var}Eval, as
1787         that will trash the result.  strdup the result instead and pass
1788         that on.  Improve error handling as well.
1790         * gdbtk.tcl (gdbtk_tcl_flush):  Use global def of
1791         current_output_win.  Makes flushing actually work!
1792         * (asm_win_name create_asm_win update_assembly):  Bunch of fixes
1793         to make assembly windows stop flashing when loading a new file.
1794         * (gdbtk_tcl_busy gdbtk_tcl_idle):  Use catch to prevent gdb_cmd
1795         errors from losing control.
1796         * (create_source_window):  Add source file selection to View menu.
1797         * (create_command_window (<Key-Return> binding):  Quote text fed
1798         into gdb_cmd to prevent eval errors.
1800 Thu Dec 15 16:40:10 1994  Stu Grossman  (grossman@cygnus.com)
1802         * gdbtk.c: Improve mechanism for capturing output values.
1803         (full_filename): Remove.
1804         (gdb_cmd call_wrapper gdbtk_init): Protect all calls from tcl land
1805         with call_wrapper.  This prevents longjmps (usually via error())
1806         from jumping out of tcl/tk and leaving things in an indeterminate
1807         state.
1808         (gdbtk_fputs): Differentiate stdout from stderr when passing text
1809         into tcl land.
1810         * gdbtk.tcl: New view option to disable line numbers.  Put catch
1811         around most uses of gdb_cmd.  Add update button to reg config
1812         window.  Stop doing immediate updates when selecting registers.
1813         Change register view values into checkbuttons.
1815 Mon Dec 12 16:59:29 1994  Stu Grossman  (grossman@cygnus.com)
1817         * gdbtk.tcl (reg_config_menu create_registers_window
1818         recompute_reg_display_list):  Use array instead of individual vars
1819         for register display list.
1820         * (recompute_reg_display_list update_registers):  Fix bug with not
1821         displaying all registers.
1823 Mon Dec 12 12:22:21 1994  Stu Grossman  (grossman@cygnus.com)
1825         * gdbtk.c:  New tcl commands:  gdb_fetch_registers,
1826         gdb_changed_register_list, and gdb_regnames.
1827         * gdbtk.tcl:  Use monochrome color model for now.
1828         * (delete_breakpoint_tag create_file_win):  Add breakdot support.
1829         * (create_file_win create_asm_win update_listing build_framework
1830         create_source_window create_command_window):  Re-org window
1831         creation to give all windows consistent look and feel.
1832         * (update_listing update_asm):  Change pc pointer to '->'.
1833         * (registers_command reg_config_menu create_registers_window
1834         populate_reg_window update_registers):  Revamp register window.
1835         Allow selection of registers to be displayed.  Highlight changed
1836         registers.
1838 Mon Nov 28 09:17:20 1994  Stu Grossman  (grossman@cygnus.com)
1840         * gdbtk.tcl (build_framework):  Fix bug with setting window titles.
1842         * gdbtk.tcl (build_framework):  Add "Report bug" to help menu.
1844         * gdbtk.tcl:  Re-arrange windows using new, consistent layout. Clean
1845         up lots of code and centralize framework initialization.
1847 Wed Nov 16 15:28:29 1994  Rob Savoye  (rob@cygnus.com)
1849         * Makefile.in: Fix the test for installing gdbtk.
1851 Mon Nov 14 08:51:29 1994  Stu Grossman  (grossman@cygnus.com)
1853         * Makefile.in:  Install gdbtk.tcl.
1854         * configure.in:  Add ENABLE_GDBTK flag.
1855         * gdbtk.c (gdb_sourcelines):  Returns list of source lines
1856         containing code.  (gdb_regnames):  Returns list of register names.
1858 Thu Nov  3 14:25:24 1994  Stu Grossman  (grossman@cygnus.com)
1860         * gdbtk.c (gdb_stop):  Switch to target_stop().
1862 Tue Nov  1 16:41:12 1994  Stu Grossman  (grossman@cygnus.com)
1864         * Makefile.in:  Use $(objdir)/tcl and $(objdir)/tk if they are
1865         available.
1866         * configure.in (ENABLE_CLIBS):  Use $(TCL) and $(TK) instead of
1867         -ltcl and -ltk.
1868         * gdbtk.c:  Get rid of lots of unnecessary #includes.
1869         * (gdbtk_init):  Use ConnectionNumber macro instead of referencing
1870         Display structure directly.
1871         * gdbtk.tcl:  Change exit button to quit button.
1873 Wed Oct 26 15:41:07 1994  Stu Grossman  (grossman@cygnus.com)
1875         * gdbtk.c: Change sense and name of no_windows variable.  Now
1876         called use_windows, and defaults to off (for compatibility).
1878 Thu Oct 20 17:35:45 1994  Stu Grossman  (grossman@cygnus.com)
1880         * gdbtk.c (gdb_cmd):  Force GUI into idle mode when errors occur.
1881         * (gdb_stop):  New tcl command to stop the target process.
1882         * (x_event, gdbtk_wait):  Allow GUI to interrupt gdb out of target
1883         waits.
1884         * (gdbtk_call_command):  Wrapper around command processing to
1885         alert GUI of target state changes.
1886         * (gdbtk_init):  Get the fd of X server for doing async
1887         notification of X events (via x_event).  Setup new hooks.
1888         * gdbtk.tcl:  Add scrollbars to assembly and command windows.
1889         * Change window foreground & background colors.
1890         * Create margin tag for breakpoints in source and assembly windows.
1891         * Add new routines to be invoked when target state changes to/from
1892         idle.
1893         * Add start of expression window.
1894         * Change bindings of mouse button 1 in assembly and source window
1895         to just set or clear breakpoints when in the margin tag.
1896         * Change shape of register window to be more vertical to better
1897         reflect its contents.
1898         * Add stop button.
1899         * Cleanup some code around command window bindings.
1901 Sat Sep 17 17:05:14 1994  Stu Grossman  (grossman@cygnus.com)
1903         * gdbtk.tcl:  Let ^U delete lines in the command window.
1905 Fri Sep 16 15:40:34 1994  Stu Grossman  (grossman@cygnus.com)
1907         * gdbtk.c:  Replace calls to full_filename with symtab_to_filename.  
1908         * gdbtk.tcl:  New routine pc_to_line replaces in line code.  New
1909         routine decr replaces in line code.
1910         * (create_file_win):  Use catch to handle open failures more
1911         elegantly.  Also, create special window to display file open
1912         failure message.  Move opening of file prior to creation of text
1913         widget.
1914         * (create_asm_win):  Add PC as argument.  We now base disassembly
1915         on PC instead of function name, since function names can be
1916         ambiguous (usually seen with shared libs).  Also, use catch to
1917         simplify code where we don't care about failures.
1919 Wed Sep 14 00:55:26 1994  Stu Grossman  (grossman@cygnus.com)
1921         * gdbtk.tcl:  Add ref counts to breakpoint tags.
1922         * Put quotes around function name in disassemble command to better
1923         handle assembler names containing `.'.
1924         * Make pclist element 0 be filler to avoid off-by-one problem with
1925         line numbers.
1926         * Set names of top-level windows.
1927         * Add register display window.
1928         * Add PC to label of assembly window.
1930 Tue Sep 13 08:59:04 1994  Stu Grossman  (grossman@cygnus.com)
1932         * gdbtk.c (gdbtk_flush gdbtk_fputs):  Buffer up output to make
1933         disassembly more efficient.
1934         * (breakpoint_notify):  Include pc in gdbtk_tcl_breakpoint
1935         callback.
1936         * (gdb_loc):  Include pc in return value.  Also, return function
1937         name if arg was specified.
1938         * (gdb_cmd_stub):  Call gdb_flush to drain internal GDB buffers
1939         after command completes.
1940         * (gdbtk_init):  Improve error handling.
1942         * gdbtk.tcl:  Add lots of comments.  Clean up code.
1943         * (gdbtk_tcl_fputs):  Make output window redirectable.
1944         * Add assembly window, and breapoint support.
1945         * Make button 1 in margin toggle breakpoints.
1946         * Use stippling to indicate breakpoint disabling.
1948 Fri Sep  2 19:11:40 1994  Stu Grossman  (grossman@cygnus.com)
1950         * configure.in: Don't symlink to gdbtk.tcl if it's already there.
1952 Thu Jul 28 14:37:36 1994  Stu Grossman  (grossman@cygnus.com)
1954         Support for TK GUI.
1955         * Makefile.in:  Add rule for gdbtk.o.
1956         * configure.in:  Add support for --enable-gdbtk.
1957         * gdbtk.c:  New file.  Contains support routines for TK interface.
1958         * gdbtk.tcl:  New file.  Implements GUI policy.
1961 Local Variables:
1962 mode: change-log
1963 left-margin: 8
1964 fill-column: 74
1965 version-control: never
1966 End: