config/tc-alpha.c (md_show_usage): Put \ before newline in strings always.
[external/binutils.git] / gdb / ChangeLog-gdbtk
1 1999-02-11  Martin Hunt  <hunt@cygnus.com>
2
3         * gdbtk-variable.c (variable_format): Enable binary format.
4
5 1999-02-11  Martin Hunt  <hunt@cygnus.com>
6         
7         * gdbtk-hooks.c: Change ALL Tcl_Eval calls in hooks to
8         call report_error() if there are errors.
9
10 1999-02-11  Martin Hunt  <hunt@cygnus.com>
11         
12         * gdbtk.c, gdbtk-cmds.c, gdbtk-hooks.c: Removed old IDE stuff.
13
14 1999-02-09  Martin Hunt  <hunt@cygnus.com>
15
16         * gdbtk-hooks.c: Remove gdbtk_ignorable_warning prototype.
17         It is in gdbtk.h.
18         (report_error): New function. Displays debugging information
19         if a hook function fails.  All hook functions should probably
20         call this.
21         (gdbtk_warning): Call report_error() if there is a problem.
22         (gdbtk_register_changed): Call report_error() if there is a problem.
23         (gdbtk_memory_changed): Call report_error() if there is a problem.
24         (gdbtk_ignorable_warning): Pass along class argument. If there
25         is a problem, call report_error().
26         
27         * gdbtk-cmds.c: Remove TclDebug prototype.  It is in gdbtk.h.
28         (gdb_loadfile): Add class name to gdbtk_ignorable_warning call.
29
30         * gdbtk.c (TclDebug): Add "priority" argument. Calls "dbug"
31         instead of "debug". Removed non-ANSI ifdefs.
32
33         * gdbtk.h: Fixed protos for gdbtk_ignorable_warning and TclDebug.
34         
35 1999-02-05  James Ingham  <jingham@cygnus.com>
36
37         * Makefile.in: Add GDBTK_CFLAGS - this is now used to hold
38         -fwritable-strings when compiling with Tk8.1.
39         * configure.in: Add GDBTK_CFLAGS, set it to -fwritable-strings for 
40         Tcl/Tk8.1 & greater.
41         * acinclude.m4: Move the rest of the defines to find Itcl, Itk &
42         Tix from aclocal.m4 to here.
43         * aclocal.m4: regenerate.
44         * configure: regenerate.
45
46         * gdbtk-hooks.c (x_event): Tcl_ObjGetVar2 was removed from
47         Tcl8.1.  Use Tcl_GetVar2 instead.
48         * gdbtk-hooks.c (gdbtk_trace_find): Fix up call to
49         Tcl_GlobalEvalObj for Tcl/Tk 8.1.
50         * gdbtk-hooks.c (gdbtk_trace_start_stop): Call to Tcl_EvalObj was
51         inefficient, replace with call to Tcl_GlobalEval.
52         * gdbtk.c: Don't swap out the Tcl_Alloc calls in gdbtk.c.  We took 
53         care of that in Tcl itself for 8.1.
54         * gdbtk.c: Remove const from the script string since Tcl8.1 has
55         taken to scribbling sentinals into strings passed to it again...
56
57         * gdbtk-cmds.c (wrapped_call): Change declaration of 1st arg from
58         char * to PTR to eliminate warning.
59         * gdbtk-cmds.c (perror_with_name_wrapper): Ditto
60
61 Thu Feb  4 10:35:28 1999  Keith Seitz  <keiths@cygnus.com>
62
63         * gdbtk-variable.c (variable_create): Allocate enough
64         space to hold the NULL, too!
65
66 Wed Feb  3 13:37:07 1999  Keith Seitz  <keiths@cygnus.com>
67
68         * gdbtk-variable.c (variable_create): Add parentheses to the name
69         so that casts do not confuse the expression parser.
70
71 1999-02-03  Keith Seitz  <keiths@cygnus.com>
72
73         * gdbtool.ico: Add missing desktop image.
74
75 1999-02-02  Martin Hunt  <hunt@cygnus.com>
76
77         * gdbtk-cmds.c (get_register): For RAW display, concat all the
78         pieces together before calling fputs.
79
80 1999-02-01  Martin Hunt  <hunt@cygnus.com>
81
82         * gdbtk-cmds.c: (gdb_set_bp): Change the "type" argument
83         to be ASCII instead of an integer. Currently accepts "temp"
84         or "normal".  Fixed error messages.
85         (gdb_set_bp_addr): Ditto.
86
87 1999-01-29  James Ingham  <jingham@cygnus.com>
88
89         * gdbtk.c (gdbtk_init): Set the fputs_unfiltered_hook to
90         gdbtk_fputs BEFORE you eval script.  The old code was setting it
91         to null until after you did this, but that is wrong, because it
92         will cause the output of CAUGHT errors to go to gdb_stderr, which
93         is wrong.  You only want to write errors to the console if the
94         eval generates an error.
95
96 1999-01-29  Martin Hunt  <hunt@cygnus.com>
97
98         * gdbtk-cmds.c (gdb_get_breakpoint_info): When printing addresses,
99         do not rely on the format string "%lx" -- it does not exist for all
100         hosts. Use paddr instead.
101         (gdb_loadfile): Increase maximum line size to pass testsuite cases.
102
103         * gdbtk-hooks.c (gdbtk_add_hooks): Remove pc_changed_hook and
104         add register_changed_hook and memory_changed_hook.
105         (gdbtk_register_changed): New function.
106         (gdbtk_memory_changed): New function.
107
108         * gdbtk.c (gdbtk_init): Create tcl warp_pointer command
109         for use with testing.
110
111         * gdbtk-cmds.c (gdb_loc): Fix for case where there are only
112         minimal symbols.  Also make gdb_loc return the shared library
113         the location is in, if it is in one.
114
115 1999-01-27  James Ingham  <jingham@cygnus.com>
116
117         * gdbtk-wrapper.c: Missed a couple of places where FILE->GDB_FILE
118         in the fputs_unfiltered_hook needed to propagate.
119
120 1999-01-27  James Ingham  <jingham@cygnus.com>
121
122         Merging in changes from gdbtk-980810 - the Itcl3
123         gdb branch.
124
125   1999-01-12  Martin Hunt  <hunt@cygnus.com>
126
127           * gdbtk-cmds.c (gdb_loadfile): Increase maximum line size so
128           files with very long lines get numbered correctly.
129
130   Thu Jan  7 06:50:32 1999  Keith Seitz  <keiths@cygnus.com>
131
132           * gdbtk-hooks.c (gdbtk_add_hooks): Add the error_begin_hook;
133           (gdbtk_error_begin): New function.
134           (gdbtk_fputs): If GDBTK_ERROR_ONLY is set, treat output to
135           any stream as if it had come from gdb_stderr.
136
137           * gdbtk.h: Define GDBTK_SYMBOL_SOURCE_NAME: does the same thing
138           as SYMBOL_SOURCE_NAME, except that it NEVER returns a mangled name.
139           Define GDBTK_ERROR_ONLY flag for result_ptr.
140
141           * gdbtk-cmds.c (gdb_listfuncs): Use SYMBOL_DEMANGLED_NAME to
142           get the symbol's fully demangled name (including class and
143           args for overloaded funcs), not cplus_demangle.
144           (get_frame_name): Use GDBTK_SYMBOL_SOURCE_NAME to get the name
145           of the frame level.
146
147           * gdbtk-wrapper.c, gdbtk-wrapper.h:
148           (GDB_val_print): Allow caller to specify all function args to val_print.
149           (wrap_val_print): Ditto.
150
151           * gdbtk-variable.c (variable_value): Clear addressprint when getting
152           value of C++ reference-type variables
153           If we errored because a parent (struct pointer) was junk, output
154           an error message indicating so.
155           (call_gdb_val_print): Tell val_print to dereference C++ reference
156           types.
157           (number_of_children): void * also has no children.
158           (get_call_output): Clear any error flags that may have been set
159           as a result of error_begin.
160
161           * utils.c (error_begin_hook): New hook.
162           (error_begin): Call error_begin_hook so that the GUI
163           gets notified.
164
165           * defs.h (error_begin_hook): Declare.
166
167   Wed Jan  6 08:43:31 1999  Keith Seitz  <keiths@cygnus.com>
168
169           * gdbtk-wrapper.c, gdbtk-wrapper.h: Add wrappers for parse_exp_1,
170           evaluate_type, block_for_pc, block_innermost_frame, reinit_frame_cache,
171           and find_frame_addr_in_frame_chain.
172
173           * gdbtk-variable.c (variable_create): Check for failure when
174           creating variables.
175           (create_variable): Use wrapped calls for block_for_pc, parse_exp_1,
176           and block_innermost_frame.
177           Return NULL if parse_exp_1 fails.
178           Attempt to prohibit creating a gdb_variable for type names.
179           (variable_value_changed): Use wrapped calls for reinit_frame_cache and
180           find_frame_addr_in_frame_chain.
181           (variable_type): Use wrapped call for evaluate_type.
182           (variable_value): Use wrapped call for parse_exp_1.
183           (variable_editable): Use wrapped call for evaluate_type.
184
185   Tue Jan  5 11:37:17 1999  Keith Seitz  <keiths@cygnus.com>
186
187           * gdbtk-variable.c: New variable object interface.
188           * gdbtk-wrapper.c, gdbtk-wrapper.h: New wrappers for safely calling
189           gdb functions without the fear of longjmp'ing.
190           * configure.in (CONFIG_OBS): Add gdbtk-wrapper.o and gdbtk-variable.o
191           when gdbtk is enabled.
192           * configure: Regenerate.
193           * Makefile.in: Add gdbtk-wrapper.o and gdbtk-variable.o
194           * gdbtk-cmds.c (call_wrapper): Export so that other files can use.
195           (Gdbtk_Init): Initialize new variable interface.
196           * gdbtk.h: Add declaration for call_wrapper.
197
198   Tue Jan  5 11:19:14 1999  Keith Seitz  <keiths@cygnus.com>
199
200           * gdbtk-cmds.c (gdb_loc): Call resolve_sal_pc to before using
201           the sal's pc.
202
203           * gdbtk.c (gdbtk_init): Add global array GDBStartup to interpreter
204           which contains any startup info. Add "inhibit_prefs" (follows -nx)
205           so that "-nx" turns preference reading/writing off.
206
207   Mon Dec 21 11:11:02 1998  Keith Seitz  <keiths@cygnus.com>
208
209           * gdbtk-cmds.c (get_register): Call get_saved_register instead of
210           read_relative_register_raw_bytes to fetch registers.
211
212   Thu Dec 17 09:00:56 1998  Keith Seitz  <keiths@cygnus.com>
213
214           * gdbtk-cmds.c (gdb_search): Don't mention C++ RTTI and
215           global constructor/destructor symbols.
216
217   Thu Nov 12 15:20:15 1998  Jim Ingham   <jingham@cygnus.com>
218           * More bug fixes merged in from devo.
219
220           * gdbtk-cmds.c (gdb_cmd): Added an optional second argument to the
221           gdb_cmd, which is from_tty.  This is passed to the gdb command
222           parser.  It is 0 by default, and the console window passes 1.
223
224           * gdbtk-cmds.c: moved disassemble_from_exec from gdbtk.c to gdbtk-cmds.c
225           with all the other link-var'ed variables
226
227           * gdbtk-hooks.c (gdbtk_trace_find): Only run the hook functions if 
228           we are called from_tty.
229
230           * gdbtk-hooks.c (gdbtk_trace_start_stop): Set the trace buttons
231           from a trace_start_command callback rather than doing it as a
232           special case in gdb_cmd.
233
234           * tracepoint.c (tstart_command, tstop_command): Add call to
235           trace_start_stop_hook here.
236
237   1998-11-04  Martin M. Hunt  <hunt@cygnus.com>
238
239           * gdbtk-cmds.c (gdb_set_bp_addr): For callback, send full 
240           pathname instead of just basename.
241
242   1998-11-03  Keith Seitz  <keiths@cygnus.com>
243           * v850ice.c (do_gdb): New function.
244           (ice_stepi): Use do_gdb to step properly.
245           (ice_nexti): Use do_gdb to step properly.
246           (view_source): Correct call to src window's location for new version.
247
248   Tue Aug 25 18:13:30 1998  Jim Ingham    <jingham@cygnus.com>
249
250           * gdbtk.c (gdbtk_init): I hadn't excised ALL the old startup code, 
251           so it was not working correctly.  Now it does.
252
253   Fri Aug 21 14:37:40 1998  Jim Ingham  <jingham@cygnus.com>
254
255           * gdbtk.c (gdbtk_init): Changed the startup code to use
256           tcl_findLibrary
257
258
259
260         
261 on Dec 28 17:44:36 1998  David Taylor  <taylor@texas.cygnus.com>
262
263
264         The following changes were made by Jim Blandy <jimb@cygnus.com>,
265         Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
266         <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
267         Taylor <taylor@cygnus.com>, as part of the project to merge in
268         changes originally made by HP; HP did not create ChangeLog
269         entries.
270
271         * gdbtk.c (gdbtk_init): change stderr to gdb_stderr.
272
273         * gdbtk-cmds.c
274         (get_pc_register): Use paddr_nz, not sprintf's %llx and
275         a cast to `long long'.  Those aren't portable.
276         (gdb_eval): add embedded_offset param to val_print call
277         (get_register): add embedded_offset param to val_print call
278
279         * gdbtk-hooks.c
280         (tk_command_loop): change instream to a FILE.
281         (gdbtk_flush): change both the declaration and definition to 
282         use GDB_FILE rather than FILE.
283
284 Mon Dec 21 11:11:02 1998  Keith Seitz  <keiths@cygnus.com>
285
286         * gdbtk-cmds.c (get_register): Call get_saved_register instead of
287         read_relative_register_raw_bytes to fetch registers.
288
289 Thu Dec 17 09:00:56 1998  Keith Seitz  <keiths@cygnus.com>
290
291         * gdbtk-cmds.c (gdb_search): Don't mention C++ RTTI and
292         global constructor/destructor symbols.
293
294 Tue Dec 15 10:09:31 1998  Andrew Cagney  <cagney@b1.cygnus.com>
295
296         * gdbtk-cmds.c (gdb_disassemble): Fix typo.
297
298 Sun Dec 13 09:52:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
299
300         * gdbtk-cmds.c: Update TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN.
301
302 Fri Dec 11 09:52:04 1998  Andrew Cagney  <cagney@chook>
303
304         * gdbtk-cmds.c: Replace reg_name with REGISTER_NAME.
305         
306 Mon Dec 14 13:20:50 1998 Jim Ingham  <jingham@cygnus.com>
307
308         * Makefile.in, configure.in configure - add support for LIBGUI
309         outside the IDE context.
310         
311 Thu Nov 19 13:14:57 1998  Geoffrey Noer  <noer@cygnus.com>
312
313         * gdbtk-cmds.c: Can't start using new API names yet.  Switch back
314         to calling cygwin32_ funcs until some time has passed...
315         * gdbtk.c: Ditto.  Also, include sys/cygwin.h for Cygwin, instead
316         of providing own proto.
317
318 Fri Nov 13 00:15:08 1998  Geoffrey Noer  <noer@cygnus.com>
319
320         Changes to account for name change from cygwin32 to cygwin and
321         clean up Win32-related ifdefs.
322         
323         * gdbtk.c: lose "32" from cygwin_ func calls.  ifndef for
324         checking DISPLAY should be for _WIN32, not WINNT.
325         * gdbtk.h: pick GDBTK_PATH_SEP based on _WIN32, not WINNT.
326         * gdbtk-cmds.c (gdb_path_conv): lose "32" from cygwin_  func call,
327         change ifdef to __CYGWIN32__ instead of WINNT.
328         * {gdbtk.c, gdbtk-hooks.c}: __CYGWIN32__ refs drop the "32".
329
330 Thu Nov 12 15:20:15 1998  Jim Ingham   <jingham@cygnus.com>
331
332         * gdbtk-cmds.c (gdb_cmd): Added an optional second argument to the
333         gdb_cmd, which is from_tty.  This is passed to the gdb command
334         parser.  It is 0 by default, and the console window passes 1.
335
336         * gdbtk-cmds.c: moved disassemble_from_exec from gdbtk.c to gdbtk-cmds.c
337         with all the other link-var'ed variables
338
339         * gdbtk-hooks.c (gdbtk_trace_find): Only run the hook functions if 
340         we are called from_tty.
341
342         * gdbtk-hooks.c (gdbtk_trace_start_stop): Set the trace buttons
343         from a trace_start_command callback rather than doing it as a
344         special case in gdb_cmd.
345
346         * tracepoint.c (tstart_command, tstop_command): Add call to
347         trace_start_stop_hook here.
348         
349 Wed Nov  4 12:41:42 1998  Jim Ingham  <jingham@cygnus.com>
350
351         * gdbtk-cmds.c (gdb_set_bp_addr): Pass the type, enable & thread
352         to gdbtk_tcl_breakpoint.
353         * gdbtk-hooks.c (gdbtk_trace_find): Added this function.  It is
354         the hook function for tfind commands.
355         * tracepoint.c (trace_find_command): Added the trace_find_hook,
356         run when you do trace_find_command.
357         * tracepoint.h: Define the trace_find_hook.
358
359 1998-11-03  Keith Seitz  <keiths@cygnus.com>
360
361         * v850ice.c (do_gdb): New function.
362         (ice_stepi): Use do_gdb to step properly.
363         (ice_nexti): Use do_gdb to step properly.
364         (view_source): Correct call to src window's location for new version.
365
366 Mon Nov  2 11:16:10 1998  Jim Ingham  <jingham@cygnus.com>
367
368         * gdbtk-cmds (gdb_get_tracepoint_info): Demangle C++ function names.    
369
370 Fri Oct 30 11:22:23 1998  Jim Ingham  <jingham@cygnus.com>
371
372         * gdbtk-cmds (gdb_get_tracepoint_info): Fixed typo.
373         
374 Wed Oct 28 16:19:02 1998  Martin M. Hunt  <hunt@cygnus.com>
375
376         * gdbtk-cmds.c (gdb_set_bp_addr): For callback, send full 
377         pathname instead of just basename.
378
379 Wed Oct 28 10:14:33 1998  Jim Ingham   <jingham@cygnus.com>
380
381         * gdbtk-cmds.c: Made the bdtypes & bpdisp arrays shared so they
382         could be used in gdbtk-hooks.c (breakpoint_notify).
383         Also fixed a few error messages to actually print the bp number
384         rather that #%d...      
385         * gdbtk-hooks.c (breakpoint_notify): pass more of the information
386         about the breakpoint into the Tcl command, so it does not have to
387         try and guess about information we have on the C side.
388         * gdbtk.h: Export the bptypes & pbdisp arrays.
389         
390 1998-10-13  Jason Molenda  (jsm@bugshack.cygnus.com)
391
392         * gdbtk.c, gdbtk-cmds.c: Cast parameters passed to make_cleanup to
393         use the new make_cleanup_func typedef.
394
395 1998-10-08  Keith Seitz  <keiths@cygnus.com>
396
397         * gdbtk-hooks.c (gdbtk_add_hooks): Install a hook for
398         (new) file_changed_hook.
399         (gdbtk_exec_file_changed): Rename to gdbtk_exec_file_display
400         to mimic hook's name.
401         (gdbtk_file_changed): New hook function.
402         
403 Tue Oct  6 22:57:13 1998  Andrew Cagney  <cagney@b1.cygnus.com>
404
405         * configure.in (links): Link gdbtcl2 directory instead of gdbtcl.
406
407 Mon Oct  5 00:34:00 1998  Martin M. Hunt  <hunt@cygnus.com>
408
409         * gdbtk-cmds.c (gdb_set_bp_addr): New command. Sets a
410         breakpoint at an address. Use this instead of gdb_cmd "break"
411         because the syntax of the break command is broken and doesn't
412         allow you to create a thread-specific BP at an address.  Also
413         this is faster.
414
415 Sun Oct  4 22:35:47 1998  Martin M. Hunt  <hunt@cygnus.com>
416
417         * gdbtk-cmds.c (gdb_set_bp): Add an optional thread number.
418         (gdb_find_bp_at_line): New function. Returns a list of bpnums 
419         at the specified line number.
420         (gdb_find_bp_at_addr): New function. Returns a list of bpnums 
421         at an address..
422
423 1998-10-02  Keith Seitz  <keiths@cygnus.com>
424
425         * gdbtk-hooks.c (gdbtk_exec_file_changed): New function which handles
426         exec_file changes.
427         (gdbtk_add_hooks): Define exec_file_display_hook (to gdbtk_exec_file_changed)
428
429         * gdbtk-cmds.c (gdb_stop): target_stop is ALWAYS defined, so
430         compare against something a little more meaningful (target_ignore).
431
432 1998-09-24  Keith Seitz  <keiths@cygnus.com>
433
434         * gdbtk.c (gdbtk_wait): Don't run the timer for ice targets.
435
436         * v850ice.c (WM_ADDR_TO_SYM): New message.
437         (v850ice_wndproc): Add handler for WM_SOURCE.
438         (v850ice_wait): Call the ui_loop_hook occasionally.
439         (ice_cont): Acknowledge message before doing anything.
440         (ice_stepi): Ack message and let gdbtk do stepping.
441         (ice_nexti): Ack message and let gdbtk do stepping.
442         (view_source): New function ICE calls to display source code.
443
444 start-sanitize-ide
445 Mon Sep 21 13:33:27 1998  Drew Moseley  <dmoseley@cygnus.com>
446
447         * Makefile.in: Added sanitize markers around IDE code
448         * configure.in (host_libs): Added sanitize markers around IDE code
449         * configure: Regenerated configure from configure.in
450
451 end-sanitize-ide
452 1998-09-18  Keith Seitz  <keiths@cygnus.com>
453
454         * gdbtk-cmds.c (get_frame_name): Demangle function names, too.
455
456 Thu Sep 10 22:10:29  1998 Jim Ingham <jingham@cygnus.com>
457
458         *gdbtk-cmds.c (gdb_disassemble): Make sure the symtab's linetable is not
459         null before trying to use it...
460         
461 1998-09-02  Keith Seitz  <keiths@cygnus.com>
462
463         * gdbtk-cmds.c (gdb_cmd): Do not run the timer when downloading --
464         the ui_progress_hook that has been installed will actually
465         update the gui for us.
466
467 Mon Aug 31 15:42:10 1998  Tom Tromey  <tromey@cygnus.com>
468
469         * gdbtk-hooks.c (context_hook): Don't define.
470
471 1998-08-31  Keith Seitz  <keiths@cygnus.com>
472
473         * gdbtk-cmds.c (gdb_listfuncs): When stripping out "global destructors"
474         and "global constructors", do not append any elements to the result.
475
476 Sun Aug 30 00:49:18 1998  Martin M. Hunt  <hunt@cygnus.com>
477
478         * gdbtk-cmds.c (Gdbtk_Init): Link C variable gdb_context
479         with tcl variable gdb_context_id.
480
481         * gdbtk-hooks.c (gdbtk_context_change): Implement new hook called 
482         context_hook.  Called when threads change.
483
484         * gdbtk.c: Initialize gdb_context.
485
486         * gdbtk.h: Declare gdb_context.
487
488         * infrun (wait_for_inferior): Call context_hook.
489
490         * thread.c (thread_command): Call context_hook.
491
492         * defs.h: Declare context_hook.
493         
494 Fri Aug 28 12:14:49 1998  Martin M. Hunt  <hunt@cygnus.com>
495
496         * gdbtk-cmds.c (gdb_loadfile): Open the file after doing
497         the symtab lookup and calling symtab_to_filename(). This
498         makes GDBtk work with the GDB "dir" command.
499
500 1998-08-18  Keith Seitz  <keiths@cygnus.com>
501         
502         * gdbtk-hooks.c (gdbtk_add_hooks): Set selected_frame_level_changed_hook.
503         (gdbtk_selected_frame_changed): New function.
504
505         * gdbtk-cmds.c (Gdbtk_Init): Add command gdb_stack into interpreter.
506         Link gdb's global selected_frame_level with interpreter global
507         gdb_selected_frame_level.
508         (gdb_stack): New function to faciltate speedier backtraces from
509         gdbtk.
510         (get_frame_name): New helper function for gdb_stack.
511
512 Tue Aug 18 15:42:40 1998  Martin M. Hunt  <hunt@cygnus.com>
513
514         * gdbtk-cmds.c (gdb_listfuncs): Strip out global constructors
515         and destructors from the function list.
516
517 start-sanitize-ide
518 Thu Aug 13 15:15:59 1998  Drew Moseley  <dmoseley@cygnus.com>
519
520         * Makefile.in (FOUNDRY_LIB_BASE): Added the Foundry SDK code that allows
521         gdbtk to be linked with the Foundry libraries provided by a prebuilt/released
522         binary version of Foundry.  The libraries and header files need to come from
523         the installed location of Foundry rather than the devo subdirectories.
524         * configure.in (ENABLE_IDE): Foundry SDK additions.  Added the "with-foundry-libs"
525         configure option.
526         * configure: Foundry SDK additions.  Regenerated from configure.in.
527         
528 end-sanitize-ide
529 Thu Aug 13 15:09:59 1998  Drew Moseley  <dmoseley@cygnus.com>
530
531         * gdbtk.c (gdbtk_cleanup): added a scope-level around the contents
532         of the #ifdef so that the variable declarations in there would not
533         be illegal in a C compilation.
534
535 Mon Jul 27 13:07:16 1998  Martin M. Hunt  <hunt@cygnus.com>
536
537         * gdbtk.c (gdbtk_call_command): Removed because it is now
538         in gdbtk-hooks.c
539         (null_routine): Removed.
540
541         * gdbtk-hooks.c (tracepoint_notify): Fix sprintf to
542         match number of arguments.
543
544         * gdbtk-cmds.c (gdb_loc): When calling gdb_loc with an
545         argument, call find_pc_line() to get a complete
546         symtab_and_line struct.
547
548 Fri Jul 24 14:25:43 1998  Keith Seitz  <keiths@cygnus.com>
549
550         * gdbtk-cmds.c (gdb_search): Add missing NULL to switches.
551         Add missing flags to result_ptr.
552         Pass along any errors caused by getting the list of files from
553         tcl.
554         Allocate correct amount of memory for the file list.
555         Don't do any unecessary cleanups.
556
557 Fri Jul 24 01:08:37 1998  Martin M. Hunt  <hunt@cygnus.com>
558
559         * gdbtk-cmds.c (gdb_loadfile): When there are no
560         linenumbers, use only one tab.
561
562 Sat Jul 18 12:28:39 1998  Martin M. Hunt  <hunt@cygnus.com>
563
564         * gdbtk.c (gdbtk_cleanup): Add call to tcl function
565         gdbtk_cleanup. We need this so the GUI gets to clean
566         up no matter how GDB exits.
567
568 Wed Jul  1 13:10:58 1998  Jim Ingham   <jingham@cygnus.com>
569
570         * Moved gdbtk_hooks.c & gdbtk_cmds.c to gdbtk-hooks.c &
571         gdbtk-cmds.c to comply with the gdb conventions.  Changed the
572         configure & makefile to reflect the change...
573         
574 Wed Jul  1 11:07:21 1998  Jim Ingham   <jingham@cygnus.com>
575
576         * gdbtk.c: removed all the commands and hooks from this file so
577         now it contains only the startup code.
578         * gdbtk.c (gdbtk_init): Fixed a bug in the startup code on Windows 
579         that caused gdbtk not to find the share directory unless
580         GDBTK_LIBRARY was set.
581         * gdbtk_cmds.c: New file - this contains all the Tcl commands that
582         gdb defines.  All the old commands were moved here, the
583         string-based commands were converted to object commands, and the
584         object-based commands were all converted to uniformly use the
585         call_wrapper.  A new function, Gdbtk_Init was added to centralize
586         initializing the gdb package.
587         * gdbtk_hooks.c: New file - All the hooks were moved here, and a new
588         function, gdbtk_add_hooks was added to centralize adding all these 
589         hook functions.  gdbtk_fputs was also modified to handle the new
590         result_ptr structure.  See the comments in gdbtk.h for more
591         details.
592         * gdbtk.h: New file - this contains all the defines and globals
593         shared by gdbtk.c, gdbtk_cmds.c & gdbtk_hooks.c
594         * Makefile.in, configure.in & configure: mutatis mutandi for the
595         new files.
596         
597
598 Mon Jun 29 11:49:17 1998  Keith Seitz  <keiths@cygnus.com>
599
600         * main.c (main): Don't include gdbtk test code if GDBTK is
601         not defined by configure.
602
603         * configure.in: When enabling gdbtk, add "-DGDBTK" to ENABLE_CFLAGS.
604
605         * configure: Regenerate.
606         
607 Fri Jun 26 13:56:07 1998  Keith Seitz  <keiths@cygnus.com>
608
609         * gdbtk.c: Change all references to static global "interp" to
610         "gdbtk_interp" and export this global.
611         (gdbtk_init): If gdbtk_source_filename is not NULL, source this file
612         into the interpreter when it goes idle.
613         Add new command "gdb_search".
614         (gdb_search): New function which searches the symbol table.
615         (gdbtk_test): New function called by main when the --tclcommand
616         option is used.
617
618         * main.c (main): Add a new option "--tclcommand" which is used
619         by the testsuite to source a file into the interpreter when it
620         goes idle.
621
622 Sun Jun 21 09:31:12 1998  Ron Unrau  (runrau@cygnus.com)
623
624         * gdbtk.c (gdb_set_bp): Use new interface.
625
626 Wed Jun 17 19:12:23 1998  Jeff Holcomb  <jeffh@cygnus.com>
627
628         * Makefile.in (install-only): Install tracing help files.
629
630 Mon Jun 15 13:18:21 1998  Jim Ingham <jingham@cygnus.com>
631
632         * gdbtk.c (gdbtk_init): Add elements to the auto_path AS LIST
633         ELEMENTS.  This allows gdbtk to work when installed in a directory 
634         which has a space in the path.  D. Moseley pointed out the bug.
635
636
637 Tue Jun  9 14:10:46 1998  Keith Seitz  <keiths@cygnus.com>
638
639         * gdbtk.c (gdb_get_vars_command): Return static variables and
640         variables stored in registers.
641
642         * main.c (main): Call pre/post_add_symbol_hook's when loading
643         executables and symbol files.
644         
645 Fri Jun  5 00:16:22 1998  Martin M. Hunt  <hunt@cygnus.com>
646
647         * gdbtk.c (gdbtk_init): Change all references to
648         GDBTK_IDE to IDE_ENABLED.
649
650 Thu Jun  4 18:31:53 1998  Martin M. Hunt  <hunt@cygnus.com>
651
652         * gdbtk.c (gdbtk_init): Initialize tkTable.
653
654 Thu Jun  4 10:15:03 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
655
656         * gdbtk.c: merged:
657         
658         - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
659         (call_obj_wrapper): in case of error, copy the
660         error message from the result to the error_string.
661         (gdbtk_fputs): add comments.
662         (gdb_actions_command): call validate_actionline when installing the
663         tracepoint, to do the syntax checking of the actions for us.
664         - Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
665         (gdb_get_trace_frame_num): new function to get the
666         trace frame number from gdb.
667         (gdbtk_init): added new command gdb_get_trace_frame_num.
668         - Jim Blandy  <jimb@zwingli.cygnus.com>
669         (struct wrapped_call_objs): Change the `func' member to
670         be a Tcl_ObjCmdProc, not an Tcl_CmdProc, since it accepts a vector
671         of objects as arguments.  Change the object vector to be const,
672         since that's what all the users of this structure seem to expect.
673         (call_obj_wrapper): Cast clientData properly before storing it in
674         the wrapped_args structure.
675         
676 Thu May 28 17:19:14 1998  Keith Seitz  <keiths@cygnus.com>
677
678         * gdbtk.c (_initialize_gdbtk): Get rid of the console. Patch from
679         Chris Faylor (cgf@cygnus.com).
680
681         * configure.in: Link cygwin32 with subsystem console.
682
683         * configure: Regenerated
684         
685 Sun May 24 14:00:24 1998  Keith Seitz  <keiths@cygnus.com>
686
687         * ser-unix.c (wait_for): Do not reset timeout_remaining for cygwin32 so that
688         we can use this member to track real timeouts.
689         (hardwire_readchar): Modify for cygwin32 so that we only ever use a real
690         system timeout of one second. Track the "real" timeout as a series of these
691         one second timeouts.
692         Call ui_loop_hook to keep the gui alive.
693
694         * top.c: Define new hook for cygwin32, "ui_loop_hook".
695
696         * gdbtk.c (gdbtk_init): Add ui_loop_hook for CygWin32 to work around
697         update problems.
698
699 Thu May 21 13:56:24 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
700        
701         * gdbtk.c: reinserted the changes that were accidentally deleted:
702         (_initialize_gdbtk): Use correct device names in
703         cygwin-specific call (cosmetic change). 
704         (gdbtk_ignorable_warning): removed va_list parameter,
705         which was unused.
706         (_initialize_gdbtk): add cygwin32 specific code to
707         allow `gdb -nw' to work when specified specified from a windows
708         console-mode command line.
709
710 1998-05-19  Jim Blandy  <jimb@zwingli.cygnus.com>
711
712         * gdbtk.c (struct wrapped_call_objs): Change the `func' member to
713         be a Tcl_ObjCmdProc, not an Tcl_CmdProc, since it accepts a vector
714         of objects as arguments.  Change the object vector to be const,
715         since that's what all the users of this structure seem to expect.
716         (call_obj_wrapper): Cast clientData properly before storing it in
717         the wrapped_args structure.
718
719 Wed May 13 11:12:58 1998  James Ingham  <jingham@leda.cygnus.com>
720
721         * gdbtk.c: Fixed a goof in the definition of the gdb_get_args &
722         gdb_get_locals Tcl commands.  Moved the previous ChangeLog entry
723         from ChangeLog to ChangeLog-gdbtk (here)...
724         
725 Tue May 12 13:29:20 1998  Jeff Holcomb  <jeffh@cygnus.com>
726
727         * Makefile.in (install-only): Add images/icons.txt and
728         images2/icons.txt to files that need to be installed.
729
730 Tue May 12 12:03:16 1998  James Ingham  <jingham@leda.cygnus.com>
731
732         * gdbtk.c: Add an object call wrapper for the new Tcl_Obj based
733         commands.  This way the obj commands will also go through
734         catch_errors.  This is just a bandaid while I rewrite the
735         string-based commands to use the object format.
736
737 Tue May  5 09:30:25 1998  Christopher Faylor <cgf@cygnus.com>
738
739         * gdbtk.c (_initialize_gdbtk): Use correct device names in
740         cygwin-specific call (cosmetic change). 
741
742 Wed Apr 29 15:53:16 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
743
744         * gdbtk.c (gdbtk_ignorable_warning): removed va_list parameter,
745         which was unused.
746
747 Tue Apr 28 19:41:33 1998  Tom Tromey  <tromey@cygnus.com>
748
749         * Makefile.in (GDBTKLIBS): New macro.
750         (INSTALLED_LIBS): Include GDBTKLIBS.
751         (CLIBS): Likewise.
752         * configure: Rebuilt.
753         * configure.in: Put Tcl/Tk libs into GDBTKLIBS, not LIBS.
754         (GDBTKLIBS): AC_SUBST.
755
756 Thu Apr 23 19:01:05 1998  Keith Seitz  <keiths@onions.cygnus.com>
757
758         * Makefile.in (install-only): Install help files.
759
760 Wed Apr 22 21:17:35 1998  Christopher Faylor <cgf@cygnus.com>
761
762         * gdbtk.c (_initialize_gdbtk): add cygwin32 specific code to
763         allow `gdb -nw' to work when specified specified from a windows
764         console-mode command line.
765
766 Wed Apr 15 11:23:53 1998  Stan Shebs  <shebs@andros.cygnus.com>
767
768         * gdbtcl: Remove directory and contents, this version of
769         the interface is obsolete.
770
771 Mon Apr 13 16:17:52 1998  Martin M. Hunt  <hunt@cygnus.com>
772
773         * gdbtk.c (gdb_loadfile): Change fstat() call to stat().
774         Needed because you can't convert a FILE* to an fd.
775
776 Mon Apr 13 16:28:07 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
777         
778         * gdbtk.c: (perror_with_name_wrapper) new function to call 
779         perror_with_name safely.
780         (gdb_loadfile) added source vs. executable time stamp check.
781         (gdbtk_warning) new function to pass a warning message to the gui.
782         (gdbtk_ignorable_warning) new function to pass a warning
783         to the gui. Used only for the src. vs. exec check.
784         (gdbtk_init) added warning_hook 
785         added include <sys/stat.h>
786
787 Mon Apr 13 12:58:26 1998  Keith Seitz  <keiths@onions.cygnus.com>
788
789         * gdbtk.c (gdbtk_start_timer): Include on all platforms. Decrease
790         timer interval a little.
791         (gdbtk_stop_timer): Include on all platforms.
792         (gdbtk_wait): No more signals! Use a timer on all platforms to keep the
793         GUI alive.
794         (gdbtk_init): Remove FIOASYNC and all x_fd references. Now using timers
795         on all platforms.
796         
797 Fri Apr 10 15:48:10 1998  Jason Molenda  (crash@bugshack.cygnus.com)
798
799         * gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.
800
801 Thu Apr  9 14:20:59 1998  Martin M. Hunt  <hunt@cygnus.com>
802
803         * gdbtk.c (gdbtk_init): Remove redundant variable "IDE".
804
805 Tue Apr  7 15:13:58 1998  Stan Shebs  <shebs@andros.cygnus.com>
806
807         * gdbtk.tcl: Remove, no longer used.
808
809 Tue Apr  7 12:49:45 1998  Keith Seitz  <keiths@onions.cygnus.com>
810
811         * gdbtk.c (gdb_cmd): NEVER call the busy, update, and idle hooks.
812
813 Tue Mar 31 15:42:06 1998  Keith Seitz  <keiths@onions.cygnus.com>
814
815         * gdbtk.c (gdb_loadfile): Don't use the return result from
816         sprintf, which returns a char * under SunOS4.
817
818 Tue Mar 31 17:18:43 1998  Ian Lance Taylor  <ian@cygnus.com>
819
820         * configure.in: Add $(LIBIDETCL) as well as $(LIBIDE) if
821         --enable-ide.
822         * Makefile.in (IDE_CFLAGS_X): Add -I for libidetcl/src.
823         (LIBIDETCL): Define.
824         * configure: Rebuild.
825
826 Sun Mar 29 21:19:46 1998  Keith Seitz  <keiths@onions.cygnus.com>
827
828         * gdbtk.c (gdb_get_tracepoint_info): Change formatting of address.
829         (tracepoint_exists): Remove code which confuses assembly traces.
830
831 Sat Mar 28 12:13:23 1998  Keith Seitz  <keiths@onions.cygnus.com>
832
833         * gdbtk.c (gdb_cmd): If argc > 2, assume that the busy and idle hooks
834         should not be called.
835
836 Thu Mar 26 22:29:28 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
837
838         * gdbtk.c: (gdb_trace_status) new function.
839         (gdbtk_init) added command "gdb_is_tracing".
840         (tracepoint_notify) added passcount information.
841
842 Thu Mar 26 12:00:35 1998  Martin M. Hunt  <hunt@cygnus.com>
843
844         * gdbtk.c (gdbtk_fputs): Insert fencepost.
845         (gdb_loc): Correct pc calculation.
846         (gdb_immediate_command): Return if a load is in progress.
847         (gdb_cmd): Return if a load is in progress.
848         (target_stop_wrapper): New function.
849         (gdb_stop): Call target_stop_wrapper.
850         (x_event): Add fencepost and optimize load cancel check.
851         (gdbtk_start_timer): Set up structs only once.
852         (gdbtk_stop_timer): Just use preset structs to set timer parameters.
853         (gdb_loadfile): If file cannot be loaded, return error message.
854         (gdb_loadfile): Add space before tab so that lines without
855         a '-' can later be changed to have one.
856
857 Wed Mar 25 14:08:51 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
858
859         * gdbtk.c (gdbtk_pre_add_symbol): Use Tcl_merge to form Tcl commands.
860
861 Mon Mar 23 13:41:39 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
862
863         * gdbtk.c (gdb_get_mem): Rewrite to fetch entire contents
864         of the memory window at once.
865
866 Sat Mar 21 19:34:49 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
867
868         Merged changes from Foundry: list follows by author:
869         
870         - Tom Tromey  <tromey@cygnus.com>
871
872         * Makefile.in (gdbres.o): New target.
873         (WINDRES): New define.
874         * configure: Rebuilt.
875         * configure.in (WINDRES): Define.
876         (CONFIG_OBS): Include gdbres.o on Windows.
877         * gdbtool.ico: New file.
878         * gdb.rc: New file.
879         * gdbtk.c (gdbtk_init): Call ide_create_messagebox_command.
880         (gdbtk_cleanup): Call ide_interface_deregister_all.
881         (gdbtk_init): Pass event handle to cleanup.
882         (TclDebug): Use Tcl_Merge to construct command.
883         (gdbtk_init): Call ide_create_cygwin_path_command.
884
885         - Martin M. Hunt  <hunt@cygnus.com>
886
887         * gdbtk.c (gdb_set_bp): Set addr_string for bp.
888         (gdb_get_breakpoint_info): Demangle function 
889         names in breakpoint info.
890         Include "demangle.h".
891         (gdb_loc, gdb_listfuncs): Demangle C++ 
892         function names.
893         (gdb_set_bp): Properly quote filename to fix
894         problems with spaces. Send pc back as a hex string.
895         (gdb_listfuncs): Remove debugging line.
896          Turn off some debugging lines.
897         (breakpoint_notify): Return correct line number.
898         (gdb_get_breakpoint_info): Return correct line number.
899         (gdb_set_bp): New function to provide a better way to
900         set breakpoints.
901         (gdbtk_readline, gdbtk_readline_begin): Memory 
902         allocated by tcl needs to be freed by Tcl_Free().
903         (find_file_in_dir): Deleted.
904         (gdb_find_file_command): Call full_lookup_symtab().
905         (gdb_listfuncs): Call full_lookup_symtab().
906         (full_lookup_symtab): New function.  Like lookup_symtab
907         except handles multiple files with the same basename,
908         full pathnames, and always sets symtab->fullname.
909         (gdb_loadfile): Call full_lookup_symtab(). Clear
910         realloc'd memory.
911         (gdb_loadfile):  Don't tag lines without source.
912         Tag source lines with source_tag.
913         (gdb_find_file_command, find_file_in_dir):
914         Rewrite.  Now searches symtabs and psymtabs for a match
915         on the partial or full filename.  Returns the full pathname.
916         (gdb_loadfile): Realloc additional memory
917         if someone loads in a file with more than 160,000
918         lines.  I don't know if this really works because
919         I don't have enough memory to test it.
920         (gdb_sourcelines): Deleted.
921         (gdb_loadfile): New function. Takes a text widget
922         and loads it with the contents of a file.  Marks
923         and tags source lines.
924         (pc_changed): New function.
925         (get_pc_register): Returns the value of
926         the PC to GDB.
927         (gdb_loc): If looking on the stack, return
928         real pc along with calling source line.
929         (gdb_loc): Return "" instead of "N/A" if
930         filename is not found.
931         (gdb_get_breakpoint_info): Same.
932         (get_register): For Natural mode, set format to 0.
933          Minor bugfixes from keiths.
934         (TclDebug): New function for debugging use.
935         (gdb_loc): Return correct PC for frames
936         that are not the innermost frame.
937         (gdb_listfiles): Rewritten to use object
938         API.  Now takes an optional dirname which will cause
939         only files in that directory or its subdirectories
940         to be returned.  Now returns basenames instead of
941         full pathnames.
942         (gdb_cmd): Set/reset load_in_progress flag.
943         (call_wrapper): Don't pop up dialog for errors in
944         downloads; just abort download.
945         (gdbtk_load_hash): Set return value correctly.
946
947         -  Keith Seitz  <keiths@onions.cygnus.com>
948
949         * gdbtk.c (gdbtk_init): Define the ui_loop_hook so that it can be
950         called by routines which might block, allowing us to update the GUI.
951         (gdbtk_wait): Move timer calls to annotation hooks.
952         (gdbtk_init): Define the annotation hooks.
953         (gdbtk_annotate_starting): New function for cygwin32 hosts.
954         (gdbtk_annotate_stopped): New function for cygwin32 hosts.
955         (gdbtk_annotate_exited): New function for cygwin32 hosts.
956         (gdbtk_annotate_signalled): New function. for cygwin32 hosts.
957         (gdbtk_init): Use gdbtk_print_frame_info hook.
958         (gdbtk_print_frame_info): New function which sets current_source_symtab
959         based on the given symtab and line info.
960         (gdb_immediate_command): New function which does 
961         not buffer any
962         output. (Contrast to gdb_cmd.)
963         (gdb_prompt_command): New function to return gdb's prompt.
964         (find_file_in_dir): New functon which searches source paths 
965         for a given filename.
966         (gdb_find_file): New function which returns path to given file -- uses
967         find_file_in_dir.
968         (gdbtk_init): Install "gdb_immediate", "gdb_find_file", and 
969         "gdb_prompt"
970         commands into interpreter.
971
972         -  Ian Lance Taylor  <ian@cygnus.com>
973
974         * gdbtk.c (gdbtk_timer_going): If __CYGWIN32__, new static
975         variable.
976         (gdb_cmd): If __CYGWIN32__, if executing the load command, call
977         gdbtk_start_timer and gdbtk_stop_timer.
978         (call_wrapper): If __CYGWIN32__, if the timer is going, turn it
979         off.  Clear load_in_progress.
980         (x_event): If load_in_progress, quit if download_cancel_ok.
981         (gdbtk_start_timer): Set gdbtk_timer_going.
982         (gdbtk_stop_timer): Clear gdbtk_timer_going.
983         (gdbtk_wait): Call x_event.
984         (gdbtk_init): Call ide_create_win_grab_command if
985         __CYGIN32__.
986         (gdb_clear_file): Clear stop_pc.
987
988 Wed Mar  4 16:50:18 1998  Jason Molenda  (crash@bugshack.cygnus.com)
989
990         * gdbtk.c (gdb_listfiles): Fix thinko in last change.
991
992 Wed Mar  4 15:34:49 1998  Jason Molenda  (crash@bugshack.cygnus.com)
993
994         * gdbtk.c (gdb_listfiles): Allocate space for 'files' dynamically.
995
996 Tue Feb 10 17:50:37 1998  Keith Seitz  <keiths@onions.cygnus.com>
997
998         * gdbtk.c (gdbtk_modify_tracepoint): Define new tracepoint modification hook.
999         (gdbtk_print_frame_info): Define this hook so that current_source_symtab
1000         is set properly.
1001         (gdb_actions_command): Use free_actions () from tracepoint.c/h.
1002         
1003 Mon Jan 26 11:37:55 1998  Keith Seitz  <keiths@onions.cygnus.com>
1004
1005         * gdbtk.c (gdb_actions_command): Make note of next action
1006         before freeing all references to it.
1007
1008 Sat Jan 24 23:52:08 1998  Martin M. Hunt  <hunt@cygnus.com>
1009
1010         * gdbtk.c: Merge from Foundry branch.
1011         (TclDebug): New debugging function.
1012         (gdb_loc): For frames, find address of calling function
1013         instead of whatever is on the stack (usually the next
1014         instruction).
1015         (gdb_listfiles): Takes an optional pathname argument and 
1016         returns an alphabetized list of basenames of files in the
1017         path.
1018
1019 Wed Jan 22  10:37:02 1998  Keith Seitz  <keiths@onions.cygnus.com>
1020
1021         * symfile.c: Define two new hooks for symbol reading: 
1022         "pre_add_symbol_hook" and "post_add_symbol_hook". These hooks 
1023         are called before we begin reading symbols, and after we finish.
1024         (generic_load): Use new symbol reading hooks and get rid of 
1025         compiler warning.
1026
1027         * gdbtk.c (gdbtk_init): Add hooks for pre- and post-symbol reading.
1028         (gdbtk_pre_add_symbol): New function: the pre-add-symbol hook.
1029         (gdbtk_post_add_symbol): New function: the post-add-symbol hook.
1030         (find_file_in_dir): New function. Moved the guts of gdb_find_file_command
1031         into here to allow its use by others.
1032         (gdb_loc): Use find_file_in_dir to return the real path to the file
1033         (or "N/A" if we can't find it).
1034
1035         * configure.in (TIX_LIB_EXT): Define new variable for those special cases
1036         when TCL_SHLIB_SUFFIX is not enough to specify the dependency.
1037
1038         * configure: Regenerate.
1039
1040 Fri Jan 23 07:47:06 1998  Fred Fish  <fnf@cygnus.com>
1041
1042         * Makefile.in (uninstall): Remove installed gdbtcl dir, if one
1043         was installed.
1044
1045 Thu Jan 15 12:42:28 1998  Keith Seitz  <keiths@onions.cygnus.com>
1046
1047         * gdbtk.c (gdb_immediate_command): New function which does not buffer any
1048         output. (Contrast to gdb_cmd.)
1049         (gdbtk_init): Install "gdb_immediate" command into interpreter.
1050
1051 Wed Jan 14 16:38:44 1998  Keith Seitz  <keiths@pizza.cygnus.com>
1052
1053         * configure.in (--enable-gdbtk): If tcl was built with --enable-shared,
1054         use TCL_SHLIB_SUFFIX to specify the suffix of the library file so that
1055         we don't expect to see "libfoo.a" instead of "libfoo.{so,sl, etc}".
1056
1057         * configure: Regenerate.
1058         
1059 Wed Dec 31 16:50:26 1998  Keith Seitz  (keiths@onions.cygnus.com)
1060  
1061         * gdbtk.c (gdb_actions_command): extract and save step count
1062         from "while-stepping" command
1063
1064 Tue Dec 16 21:16:42 1997  Ian Lance Taylor  <ian@cygnus.com>
1065
1066         * Makefile.in (LIBGUI): New variable.
1067         (GUI_CFLAGS_X): New variable.
1068         (IDE_CFLAGS): Add $(GUI_CFLAGS_X).
1069         * configure.in: Add $(LIBGUI) to TCL_LIBS and CONFIG_DEPS.
1070         * configure: Rebuild.
1071
1072 Wed Dec  10 13:16:45 1997  Keith Seitz  <keiths@onions.cygnus.com>
1073
1074         * gdbtk.c (gdb_get_tracepoint_info): Use info in struct 
1075         symtab_and_line (not struct tracepoint) so that we get the
1076         real line info for an address. Arrange data more like
1077         gdb_get_breakpoint_info.
1078         (tracepoint_notify): Use info in struct symtab_and_line again.
1079         (gdbtk_init): Add command "gdb_get_tracepoint_list" into
1080         interpreter.
1081         (gdb_get_tracepoint_list): New function that aids the source
1082         window in displaying tracepoints when the file changes.
1083         
1084 Fri Dec  5 10:31:23 1997  Keith Seitz  <keiths@pizza.cygnus.com>
1085
1086         * gdbtk.c (gdbtk_init): Add gdb_find_file into interpreter.
1087         (gdb_find_file_command): New function which searches source path
1088         to find the real full filename of a file.
1089
1090 Mon Dec  1 10:19:44 1997  Keith Seitz  <keiths@onions.cygnus.com>
1091
1092         * gdbtk.c: Move include of "guitcl.h" back out of IDE ifdef.
1093         (gdbtk_init): Move ide_initialize_paths out of IDE ifdef.
1094
1095         * configure.in (TCL_LIBS, CONFIG_DEPS): Add IDE libraries for all
1096         builds.
1097         (CONFIG_OBS): Remove tracepoint.o, which should always be included.
1098
1099         * configure: regenerate
1100
1101         * Makefile.in (install-only): ALWAYS install the new gdbtk
1102         (REMOTE_OBS): add tracepoint.o
1103         
1104 Thu Nov 27 09:07:18 1997  Michael Meissner  <meissner@cygnus.com>
1105
1106         * configure.in ({TCL_LIBS,CONFIG_DEPS}): Don't add IDE libraries
1107         if not --enable-ide.
1108         (CONFIG_OBS): Add tracepoint.o to list if --enable-gdbtk.
1109         * configure: Regenerate.
1110
1111         * gdbtk.c (gdb_get_breakpoint_info): Add missing filename
1112         argument.
1113         (toplevel): Move include of guitcl.h into #ifdef IDE region.
1114         (gdbtk_init): Move ide_initialize_paths call into #ifdef IDE
1115         section.
1116
1117         * Makefile.in (gdbtk.o): Update dependencies.
1118
1119 Wed Nov 26 15:02:43 1997  Keith Seitz  <keiths@onions.cygnus.com>
1120
1121         * gdbtk.c (gdb_loc): symtab_to_filename can return NULL.
1122         (breakpoint_notify): Ditto.
1123         (gdb_get_breakpoint_info): Ditto.
1124
1125 Wed Nov 26 11:33:09 1997  Keith Seitz  <keiths@onions.cygnus.com>
1126
1127         Merge in code from Foundry branch:
1128         
1129         * Makefile.in (install-only): install the new gdbtk, not the old
1130
1131         * gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
1132         commands
1133         (gdbtk_init): Add new commands "gdb_get_locals", "gdb_get_args",
1134         "gdb_get_function", "gdb_get_line", "gdb_get_file",
1135         "gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
1136         and "gdb_prompt".
1137         (gdb_get_vars_command): New function.
1138         (gdb_get_line_command): New.
1139         (gdb_get_file_command): New.
1140         (gdb_get_function_command): New.
1141         (gdb_get_tracepoint_info): New.
1142         (gdbtk_create_tracepoint): New.
1143         (gdbtk_delete_tracepoint): New.
1144         (tracepoint_notify): New.
1145         (tracepoint_exists): New.
1146         (gdb_actions_command): New.
1147         (gdb_tracepoint_exists_command): New.
1148         (gdb_prompt_command): New.
1149
1150 Thu Nov 13 18:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
1151
1152         * gdbtk.c: Move include of gdbcore.h to top of file.
1153         (close_bfds): New static function if _WIN32.
1154         (gdbtk_readline): Call close_bfds.
1155         (call_wrapper, tk_command_loop): Likewise.
1156         (gdb_clear_file): New static function.
1157         (gdbtk_init): Create gdb_clear_file Tcl command.
1158
1159 Wed Nov 12 14:58:39 1997  Jeff Holcomb  <jeffh@cygnus.com>
1160
1161         * gdbtk.c: gdbtk_load_hash and ui_load_progress_hook return an
1162         int result.
1163         (gdbtk_load_hash): download hash routine returns an int result.
1164
1165 Mon Nov 10 15:11:51 1997  Ian Lance Taylor  <ian@cygnus.com>
1166
1167         * gdbtk.c (gdbtk_init): Call ide_create_shell_execute_command if
1168         __CYGWIN32__.
1169         * configure.in: Add -lshell32 to WIN32LIBS on cygwin32.
1170         * configure: Rebuild.
1171
1172 Sun Nov  9 16:25:34 1997  Tom Tromey  <tromey@cygnus.com>
1173
1174         * gdbtk.c (gdbtk_init): Run ide_create_help_command.
1175
1176 Tue Oct 28 17:31:47 1997  Martin M. Hunt  <hunt@cygnus.com>
1177
1178         * gdbtk.c (gdbtk_init): Call ide_create_winprint_command.
1179
1180 Thu Oct 23 15:53:37 1997  Ian Lance Taylor  <ian@cygnus.com>
1181
1182         * configure.in: Add -lgdi32 to WIN32LIBS when linking gdbtk on
1183         cygwin32.
1184         * configure: Rebuild.
1185
1186 Wed Oct 22 21:32:54 1997  Martin M. Hunt  <hunt@cygnus.com>
1187
1188         * gdbtk.c (gdbtk_init): Create sizebox command on Windows.
1189
1190 Thu Oct  9 14:33:21 1997  Ian Lance Taylor  <ian@cygnus.com>
1191
1192         * gdbtk.c (gdbtk_init): Remove assertion argument from call to
1193         ide_create_window_register_command.
1194
1195 Wed Oct  1 11:09:52 1997  Tom Tromey  <tromey@cygnus.com>
1196
1197         * gdbtk.c (gdbtk_init): Pass name of restore interface to
1198         ide_create_window_register_command.
1199
1200 Fri Sep 26 21:08:22 1997  Keith Seitz  <keiths@pizza.cygnus.com>
1201
1202         * gdbtk.c (gdbtk_init): Initialize ui_load_progress_hook.
1203
1204 Thu Sep 25 03:05:00 1997  Martin M. Hunt  <hunt@cygnus.com>
1205
1206         * gdbtk.c (gdb_load_info): New function.  Returns a list
1207         of section names and sizes for an executable.
1208         (gdbtk_load_hash): Stub function to call tcl function
1209         download_hash.
1210
1211 Tue Sep 23 01:29:00 1997  Martin M. Hunt  <hunt@cygnus.com>     
1212
1213         * gdbtk.c (gdb_get_mem): Fix compiler warning.
1214
1215 Sun Sep 21 00:15:00 1997  Martin M. Hunt  <hunt@cygnus.com>
1216
1217         * gdbtk.c (gdb_get_mem): Fix problem with ASCII dump.
1218
1219 Tue Sep 16 18:07:17 1997  Martin M. Hunt  <hunt@cygnus.com>     
1220
1221         * gdbtk.c (gdb_get_mem): New function.  Returns
1222         a formatted memory dump with optional ASCII dump.
1223
1224 Mon Sep  8 12:48:50 1997  Ian Lance Taylor  <ian@cygnus.com>
1225
1226         * gdbtk.c: Include ilutk.h if IDE.
1227         (gdb_confirm_quit, gdb_force_quit): New static functions.
1228         (gdbtk_init): Add Tcl commands gdb_confirm_quit and
1229         gdb_force_quit.
1230
1231 Mon Sep  8 03:05:33 1997  Martin M. Hunt  <hunt@cygnus.com>
1232
1233         * gdbtk.c (gdb_get_breakpoint_info): Now returns the
1234         function a breakpoint is in.
1235
1236 Fri Sep  5 20:23:58 1997  Ian Lance Taylor  <ian@cygnus.com>
1237
1238         * gdbtk.c (gdbtk_init): Call ide_create_exit_command.
1239
1240 Wed Sep  3 19:39:15 1997  Ian Lance Taylor  <ian@cygnus.com>
1241
1242         * gdbtk.c: Include guitcl.h.
1243         (gdbtk_init): Always call ide_initialize_paths.  Set the Tcl
1244         variable IDE to 1 when using the IDE.  Always try using auto path
1245         to find main.tcl.
1246         * Makefile.in (IDE_CFLAGS_X): Always include libide.
1247         (LIBIDE): New variable.
1248         (IDE_X): Omit -lide.
1249         (IDE_DEPS): Omit libide.
1250         * configure.in: Add LIBIDE to TCL_LIBS and CONFIG_DEPS.
1251         * configure: Rebuild.
1252
1253 Mon Aug 25 02:28:55 1997  Keith Seitz  <keiths@pizza.cygnus.com>
1254
1255         * gdbtk.c: (gdb_target_has_inferior) check if inferior_pid is non-zero
1256         before assuming that the inferior is running.
1257
1258 Mon Aug 25 01:06:48 1997  Ian Lance Taylor  <ian@cygnus.com>
1259
1260         * gdbtk.c (gdbtk_start_timer): Pass third argument to setitimer.
1261         (gdbtk_stop_timer): Likewise.
1262
1263 Mon Aug 25 00:23:08 1997  Keith Seitz  <keiths@pizza.cygnus.com>
1264
1265         * gdbtk.c: (gdbtk_init) create new command "gdb_target_has_execution"
1266         (gdb_target_has_execution_command) new function
1267
1268 Sun Aug 24 20:27:22 1997  Ian Lance Taylor  <ian@cygnus.com>
1269
1270         * gdbtk.c (gdb_loc): If there are no symbols, just bail
1271         immediately.
1272         (tk_command_loop): Print errors encountered while running
1273         gdbtk_tcl_preloop.
1274
1275 Sun Aug 24 13:44:03 1997  Tom Tromey  <tromey@cygnus.com>
1276
1277         * gdbtk.c (gdbtk_init): Run ide_create_build_command.
1278
1279 Sat Aug 23 21:53:39 1997  Ian Lance Taylor  <ian@cygnus.com>
1280
1281         * gdbtk.c: If CYGWIN32, include <sys/time.h>.
1282         (x_fd): Don't define if WINNT.
1283         (gdbtk_start_timer, gdbtk_stop_timer): New static functions if
1284         CYGWIN32.
1285         (gdbtk_wait): Don't set up signal handling if WINNT.  If CYGWIN32,
1286         call gdbtk_start_timer and gdbtk_stop_timer.
1287         (gdbtk_init): Don't set up signal handling or make x_fd
1288         asynchronous if CYGWIN32.
1289
1290 Fri Aug 22 15:23:15 1997  Ian Lance Taylor  <ian@cygnus.com>
1291
1292         * gdbtk.c (error_string_ptr): New static variable.
1293         (gdbtk_fputs): If result_ptr is NULL, and error_string_ptr is not
1294         NULL, and we're outputting to stderr, append string to
1295         error_string_ptr rather than calling gdbtk_tcl_fputs.
1296         (call_wrapper): Set up error_string_ptr.  Put both error string
1297         and normal string in Tcl result.
1298
1299         * gdbtk.c (gdbtk_init): Don't call ide_run_server_init until after
1300         gdb has initialized.
1301
1302 Thu Aug 21 19:14:38 1997  Ian Lance Taylor  <ian@cygnus.com>
1303
1304         * gdbtk.c: If _WIN32, include winuser.h.
1305         (gdbtk_init): If _WIN32, use MessageBox to display an error
1306         evaluating main.tcl.
1307
1308 Thu Aug 21 00:48:00 1997  Martin M. Hunt  <hunt@pern.cygnus.com>
1309
1310         * gdbtk.c (gdbtk_init): Add call to ide_run_server_init().
1311         (gdb_cmd): For the load command, don't buffer the I/O.
1312
1313 Wed Aug 20 11:41:22 1997  Martin M. Hunt  <hunt@cygnus.com>
1314
1315         * gdbtk.c (gdbtk_query): Chaneg free() call to Tcl_Free().
1316         
1317 Tue Aug 19 17:09:19 1997  Ian Lance Taylor  <ian@cygnus.com>
1318
1319         * Makefile.in (TCL_DEPS, TK_DEPS): New variables.
1320         (ITCL_DEPS, TIX_DEPS): New variables.
1321         (IDE_DEPS): New variable.
1322         (CDEPS): Include @CONFIG_DEPS@.
1323         * configure.in: Set and substitute CONFIG_DEPS and TIX_DEPS.
1324         * configure: Rebuild.
1325
1326 Sun Aug 17 00:42:11 1997  Martin M. Hunt  <hunt@cygnus.com>
1327
1328         * gdbtk.c (gdb_listfuncs): New function that returns
1329         a list of all the functions in a source file.
1330
1331 Tue Aug 12 16:35:21 1997  Ian Lance Taylor  <ian@cygnus.com>
1332
1333         * Makefile.in (install-only): Install tclIndex if ENABLE_IDE.
1334
1335 Mon Aug 11 10:43:04 1997  Tom Tromey  <tromey@cygnus.com>
1336
1337         * gdbtk.c (gdbtk_init): Use ide_event_init_from_environment.
1338
1339 Fri Aug  8 15:59:24 1997  Ian Lance Taylor  <ian@cygnus.com>
1340
1341         * gdbtk.c (gdbtk_init): Change gdbtk_lib_tmp and gdbtk_file to be
1342         dynamically allocated, rather than fixed size.  Pass "gdbtcl" to
1343         ide_initialize_paths to match installed directory name.  If IDE,
1344         use auto_path to search for main.tcl.
1345         * Makefile.in (install-only): If ENABLE_IDE, install from gdbtcl2
1346         rather than gdbtcl.
1347
1348         * gdbtk.c (gdbtk_cleanup): New static function.
1349         (gdbtk_init): Add gdbtk_cleanup as a final cleanup.  Uncomment
1350         call to ide_initialize_paths.  If we can't initialize the event
1351         system, set GDBTK_IDE to 0 in the Tcl interpreter.  Create the
1352         ide_window_register and the ide_window commands.  Initialize tk,
1353         itcl, and tix after initializing the IDE.
1354
1355         * configure.in (tixdir): Update for cygwin32 case for Tcl 8.0.
1356         * configure: Rebuild.
1357
1358 Fri Aug  8 00:13:32 1997  Martin M. Hunt  <hunt@cygnus.com>
1359
1360         * gdbtk.c (breakpoint_notify): Change buffer size from 100
1361         to 256 to avoid memory corruption with very long pathnames.
1362
1363 Thu Aug  7 14:08:23 1997  Martin M. Hunt  <hunt@cygnus.com>
1364
1365         * configure.in: Change required Tix version to 4.1.8.0 .
1366         * configure: Rebuilt.
1367
1368 Fri Aug  1 15:21:44 1997  Ian Lance Taylor  <ian@cygnus.com>
1369
1370         * gdbtk.c (Tcl_Alloc): Don't provide our own version of this if
1371         _WIN32.
1372         (Tcl_Realloc, Tcl_Free): Likewise.
1373         * configure.in: Check for cygwin32 environment.  Define and
1374         substitute WIN32LIBS and WIN32LDAPP.  Always set configdir to
1375         unix; setting it to win was for an old Tcl/Tk configuration
1376         scheme.
1377         * aclocal.m4 (CY_AC_LOAD_TKCONFIG): Substitute TK_BUILD_INCLUDES.
1378         * Makefile.in (TK_CFLAGS): Add @TK_BUILD_INCLUDES@.
1379         (WIN32LDAPP, WIN32LIBS): Define.
1380         (CLIBS): Add $(WIN32LIBS).
1381         (gdb): Use $(WIN32LDAPP).
1382         * configure: Rebuild.
1383
1384 Tue Jul 22 19:45:37 1997  Martin M. Hunt  <hunt@cygnus.com>
1385
1386         * configure.in, aclocal.m4: Another fix to find the
1387         correct Tix library name.
1388
1389         * configure: Rebuilt.
1390         
1391 Mon Jul 21 22:24:07 1997  Martin M. Hunt  <hunt@cygnus.com>
1392
1393         * aclocal.m4: Search for the correct tix library. 
1394
1395 Thu Jul 10 00:02:41 1997  Martin M. Hunt  <hunt@cygnus.com>
1396
1397         * Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and 
1398         IDE configuration information.
1399
1400         * gdbtk.c (breakpoint_notify): Send address, linenumber and 
1401         filename when a breakpoint is set.  Avoids call to bp_info.
1402         (gdbtk_init): Call Tcl_FindExecutable(). Add code to handle 
1403         Itcl, Tix and IDE initialization.
1404
1405         * configure: Regenerated.
1406
1407 Fri Jun 13 10:28:09 1997  Fred Fish  <fnf@cygnus.com>
1408
1409         * gdbtk.c (gdbtk_init): Make truth value test explicit.
1410         Remove unused static variable "Gdbtk_Library".
1411
1412 Sat Jun  7 02:34:19 1997  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
1413
1414         * gdbtk.c (gdb_get_breakpoint_info):  Add string for new
1415         enumeration del_at_next_stop to bpdisp array.
1416
1417 Tue Jun  3 15:46:51 1997  Tom Tromey  <tromey@cygnus.com>
1418
1419         * Makefile.in (LIB_RUNTIME_DIR): New variable.
1420
1421 Wed May  7 19:10:19 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1422
1423         * gdbtk.c (wrapped_call): New function - make actual call to tk
1424         worker function.
1425         (call_wrapper): Rewrite to use top.c:catch_errors.
1426
1427         * gdbtk.c (gdb_stop): If No target_stop set quit flag and hope for
1428         best.
1429
1430 Mon Apr 21 14:00:08 1997  Doug Evans  <dje@canuck.cygnus.com>
1431
1432         * gdbtk.c (gdb_disassemble): Store endian-ness in `di'.
1433
1434 Wed Apr 16 12:33:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
1435
1436         * Makefile.in (install-only): Make list of gdbtcl files to install
1437         explicit - was picking up files such as ChangeLog etc.
1438         (install-only): Don't blindly create the directory.
1439
1440 Tue Apr  1 15:04:21 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
1441
1442         * configure.in (gdbtcl): Create soft-link for gdbtcl/ directory
1443         instead of gdbtk.tcl.
1444
1445 Fri Mar 28 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
1446
1447         * Makefile.in (gdbtk.o): look for GDBTK_LIBRARY in $(datadir) by
1448         default, not $(srcdir).
1449
1450 Wed Mar 19 15:16:17 1997  Martin M. Hunt  <hunt@onions.cygnus.com>
1451
1452         * Makefile.in:  Install gdbtcl dir instead of gdbtk.tcl.
1453         
1454         * gdbtk.c: Added some ifdefs for Windows.  Changed GDBTK_FILENAME
1455         to GDBTK_LIBRARY, which is now a path to search.
1456         (gdb_path_conv): New function.  Convert Cygwin32 pathname to
1457         DOS-style pathname.
1458
1459         * {aclocal.m4,configure.in}: Changes for Windows builds.
1460
1461         * configure: Rebuilt.
1462
1463 Fri Mar 14 10:01:29 1997  Tom Tromey  <tromey@cygnus.com>
1464
1465         * configure: Regenerated.
1466         * configure.in (LIBS): Re-reverse order of TCL_LIBS and TK_LIBS.
1467
1468 Wed Mar 12 14:29:52 1997  Tom Tromey  <tromey@cygnus.com>
1469
1470         * gdbtk.c (x_event): Use Tcl_DoOneEvent, TCL_DONT_WAIT,
1471         TCL_ALL_EVENTS.
1472
1473         * configure: Regenerated.
1474         * configure.in (ENABLE_GDBTK): Put TCL_LIBS after TK_LIBS in
1475         LIBS.
1476
1477 Mon Feb 10 13:50:53 1997  Stu Grossman  (grossman@critters.cygnus.com)
1478
1479         * gdbtk.c (call_wrapper):  Clear running_now if an error occurs.
1480
1481 Wed Dec 11 18:51:35 1996  Mark Alexander  <marka@cygnus.com>
1482
1483         * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
1484
1485 Tue Nov 19 09:26:14 1996  Tom Tromey  <tromey@cygnus.com>
1486
1487         * gdbtk.c (gdbtk_readline): Fix memory leak.
1488
1489 Mon Nov 18 23:43:05 1996  Tom Tromey  <tromey@cygnus.com>
1490
1491         Fixes for Tcl 7.6 / Tk 4.2:
1492         * gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
1493         Remove old fileselect code.
1494         * gdbtk.c (Tcl_Alloc): Rename from Tcl_Malloc.
1495
1496 Fri Sep 27 10:25:30 1996  Fred Fish  <fnf@cygnus.com>
1497
1498         * gdbtk.tcl (create_copyright_window): Increase timeout from
1499         15 seconds to 30 seconds.
1500
1501 Wed Sep  4 17:28:40 1996  Stu Grossman  (grossman@critters.cygnus.com)
1502
1503         * configure configure.in:  Add host *windows* to list of hosts
1504         that don't support GDBtk.
1505
1506 Fri Aug 23 00:44:57 1996  Fred Fish  <fnf@cygnus.com>
1507
1508         * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
1509         gracefully degrade to using command line interface if none is
1510         found.
1511
1512 Fri Aug  9 12:32:53 1996  Tom Tromey  <tromey@creche.cygnus.com>
1513
1514         * Makefile.in (LIB_INSTALL_DIR): New macro.
1515         (TCL): Include @TCL_LD_SEARCH_FLAGS@.
1516
1517 Thu Aug  1 20:35:01 1996  Tom Tromey  <tromey@creche.cygnus.com>
1518
1519         * gdbtk.c (mainWindow): Deleted.
1520         (cleanup_init): Don't destroy main window.
1521         (gdbtk_init): Main window now created by Tk_Init.
1522
1523         * configure.in: Most X checks now handled automatically by Tk.
1524         Use new macros to find Tcl/Tk.
1525         * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
1526         * config.in, configure: Regenerated.
1527
1528         * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
1529         X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1530
1531 Thu Aug  1 16:12:05 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
1532
1533         * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
1534
1535 Fri Jul 26 14:07:37 1996  Ian Lance Taylor  <ian@cygnus.com>
1536
1537         * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1538
1539 Thu Jul 25 19:41:31 1996  Fred Fish  <fnf@cygnus.com>
1540
1541         * gdbtk.c (null_routine): Ditto.
1542         (gdbtk_flush): Ditto.
1543         (gdbtk_fputs): Ditto.
1544         (gdbtk_query): Ditto.
1545         (gdbtk_readline): Ditto.
1546         (gdbtk_readline_end): Ditto.
1547         (gdb_get_breakpoint_list): Ditto.
1548         (gdb_get_breakpoint_info): Ditto.
1549         (breakpoint_notify): Ditto.
1550         (gdbtk_create_breakpoint): Ditto.
1551         (gdbtk_delete_breakpoint): Ditto.
1552         (gdbtk_modify_breakpoint): Ditto.
1553         (gdb_loc): Ditto.
1554         (gdb_eval): Ditto.
1555         (gdb_sourcelines): Ditto.
1556         (map_arg_registers): Ditto.
1557         (get_register_name): Ditto.
1558         (gdb_regnames): Ditto.
1559         (get_register): Ditto.
1560         (gdb_fetch_registers): Ditto.
1561         (register_changed_p): Ditto.
1562         (gdb_changed_register_list): Ditto.
1563         (gdb_cmd): Ditto.
1564         (call_wrapper): Ditto.
1565         (gdb_listfiles): Ditto.
1566         (gdb_stop): Ditto.
1567         (gdbtk_dis_asm_read_memory): Ditto.
1568         (compare_lines): Ditto.
1569         (gdb_disassemble): Ditto.
1570         (tk_command): Ditto.
1571         (cleanup_init): Ditto.
1572         (gdbtk_interactive): Ditto.
1573         (x_event): Ditto.
1574         (gdbtk_wait): Ditto.
1575         (gdbtk_call_command): Ditto.
1576         (tk_command_loop): Ditto.
1577         (gdbtk_init): Ditto.
1578
1579         * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1580
1581 Sat Jul 20 17:46:40 1996  Fred Fish  <fnf@cygnus.com>
1582
1583         * gdbtk.tcl (files_command): Reorder the binding tags for
1584         the listbox widget to avoid referencing the listbox after
1585         the containing widget has been destroyed by the action of
1586         a previous binding.
1587
1588 Sat Jul 20 10:09:28 1996  Fred Fish  <fnf@cygnus.com>
1589
1590         * gdbtk.tcl (delete_expr): Unset corresponding element of
1591         expr_update_list when destroying an expression.
1592         (create_expr_window): Initialize expr_num, delete_expr_num,
1593         and expr_update_list here when each new expression window
1594         is created, rather than once at startup.
1595
1596 Mon Jul 15 16:44:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
1597
1598         * gdbtk.c (gdb_disassemble):  Setup di.mach from
1599         tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1600
1601 Fri Jun 21 11:04:47 1996  Fred Fish  <fnf@cygnus.com>
1602
1603         * gdbtk.tcl (create_register_windows): Include missing '$'s.
1604         Add global declarations for various reg_format_* variables.
1605         * gdbtk.tcl (populate_register_window): Make initial window one
1606         line taller to account for new column header line.
1607
1608 Fri Jun 21 09:46:47 1996  Fred Fish  <fnf@cygnus.com>
1609
1610         * gdbtk.c (get_register): Support for printing raw formats.
1611         * gdbtk.tcl: Add hint for using debug_interface.
1612         (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1613         Enclose arg in braces for consistency.
1614         (create_registers_window, populate_reg_window, update_registers):
1615         Major rewrite to support displaying multiple formats in the register
1616         window.
1617         (init_reg_info): New function.
1618         (recompute_reg_display_list):  Reset reg_display_list, start
1619         register display lines at line 2.
1620
1621 Thu Jun 20 08:18:59 1996  Fred Fish  <fnf@cygnus.com>
1622
1623         * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1624         avoid backing up over prompt.  At every input, make sure insert
1625         point is at least after command start, handle control-u to delete
1626         current input line.
1627         (tclsh): Handle backspace to avoid backing up over prompt.  Handle
1628         control-u to delete current input line.
1629
1630 Wed Jun 19 17:23:38 1996  Geoffrey Noer  <noer@cygnus.com>
1631
1632         * configure.in: disable gdbtk for *cygwin32* hosted compiles
1633         * configure: regenerated with autoconf 2.8
1634
1635 Sun May 19 16:49:37 1996  Fred Fish  <fnf@cygnus.com>
1636
1637         * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1638         New functions.
1639         (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1640         (gdbtk_init): Set readline_begin_hook, readline_hook,
1641         and readline_end_hook.
1642         * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1643         gdbtk_tcl_readline_end): New functions.
1644         (tclsh): Pack scroll bar on right side of window, not left.
1645
1646 Fri May 17 13:54:34 1996  Fred Fish  <fnf@cygnus.com>
1647
1648         * gdbtk.tcl (create_command_window): Change a misspelled "get"
1649         to the intended "cget".
1650         (delete_line): Fix so it deletes the current line at the
1651         insertion cursor.
1652
1653 Thu May 16 19:20:29 1996  Fred Fish  <fnf@cygnus.com>
1654
1655         * gdbtk.tcl (gdb_prompt): Set this early on.
1656         (create_command_window): Use gdb_prompt rather than "(gdb) ".
1657         (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1658         (tclsh): If an evaluation window already exists, just bring it
1659         to the front instead of trying to create another.
1660         * gdbtk.c (tk_command_loop): New function.
1661         (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1662
1663 Thu May 16 16:16:35 1996  Fred Fish  <fnf@cygnus.com>
1664
1665         * gdbtk.tcl (evaluate_tcl_command, tclsh):  New functions that
1666         implement a tcl evaluation window for gdbtk maintainers to use.
1667
1668 Thu May 16 11:42:58 1996  Tom Tromey  <tromey@creche.cygnus.com>
1669
1670         * gdbtk.tcl (files_command): Correctly insert list of files into
1671         listbox widget.
1672
1673         * gdbtk.tcl (files_command): listbox command no longer accepts
1674         -geometry.
1675
1676 Wed May 15 16:04:09 1996  Stan Shebs  <shebs@andros.cygnus.com>
1677
1678         * gdbtk.tcl (create_command_window): If command window's buffer
1679         is disabled, don't execute any of the key bindings.
1680
1681 Mon May 13 13:43:25 1996  Fred Fish  <fnf@cygnus.com>
1682
1683         * gdbtk.c (tk_command): Catch case where no argument is given
1684         since this will cause the tcl interpreter to dump core.
1685
1686 Wed May  8 20:33:24 1996  Fred Fish  <fnf@cygnus.com>
1687
1688         * gdbtk.c: Fix a couple of misspellings.
1689
1690 Thu May  2 19:17:49 1996  Stan Shebs  <shebs@andros.cygnus.com>
1691
1692         * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1693         (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1694         (file_popup_menu): Delete, never used.
1695         (listing_window_popup): Rename from listing_window_button_1,
1696         remove breakpoint toggling code.
1697         (toggle_breakpoint): New procedure.
1698         (create_file_win): Bind popup menu to button 2, toggle breakpoints
1699         with button 1 in breakpoint area, add display of tagged areas if
1700         debugging on.
1701
1702 Fri Apr  5 13:44:40 1996  Stan Shebs  <shebs@andros.cygnus.com>
1703
1704         * gdbtk.c (running_now): New global variable.
1705         (gdb_cmd): Test it before executing any command.
1706         (gdbtk_call_command): Set it when inferior is running.
1707         * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
1708         disable interaction with command window's text appropriately.
1709
1710 Fri Apr  5 13:25:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
1711
1712         * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
1713         some versions of the kernel don't support it.
1714
1715 Tue Feb  6 16:31:25 1996  Tom Tromey  <tromey@creche.cygnus.com>
1716
1717         * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
1718         double-clicking will work again.
1719         (create_asm_win): Put "break" at end of all B1 bindings.
1720         (create_file_win): Lower "sel" tag, don't raise it.
1721         (ensure_line_visible): New proc.
1722         (update_listing, update_assembly): Use it.
1723         (create_copyright_window): Destroy window on Leave event.
1724         (create_command_window): Put "break" at end of all B2 bindings.
1725
1726 Wed Jan 24 15:28:41 1996  Tom Tromey  <tromey@creche.cygnus.com>
1727
1728         * gdbtk.tcl, gdbtk.c: Updated copyrights.
1729
1730         * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
1731         greater.
1732         * configure: Rebuilt.
1733
1734 Tue Jan 23 09:00:48 1996  Doug Evans  <dje@charmed.cygnus.com>
1735
1736         * gdbtk.c (gdb_disassemble): Pass fprintf_unfiltered to
1737         INIT_DISASSEMBLE_INFO.
1738
1739 Mon Jan 15 09:58:41 1996  Tom Tromey  <tromey@creche.cygnus.com>
1740
1741         * gdbtk.tcl (create_expr_window): Many changes to update GUI.
1742         (add_expr): Changes from create_expr_window.
1743         (create_command_window): Set focus.
1744         (delete_expr): Rewrote.
1745         (expr_update_button): New proc.
1746         (add_expr): Put bindings on FocusIn, FocusOut.
1747         Don't allow .file_popup to be torn off.
1748
1749 Fri Jan 12 09:36:17 1996  Tom Tromey  <tromey@creche.cygnus.com>
1750
1751         * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
1752         (update_listing): Use lassign.  Use "see" to scroll.  Don't need
1753         screen_top, screen_bot, screen_height.
1754         (update_assembly): Use "see" to scroll.
1755         (textscrollproc): Removed.
1756         (create_file_win): Don't use textscrollproc.
1757         (asmscrollproc): Removed.
1758         (create_asm_window): Don't use asmscrollproc.
1759         (create_asm_win): Ditto.
1760         (screen_height, screen_top, screen_bot): Removed.
1761         (run_editor): New proc.
1762         (build_framework): Use it.
1763         (create_file_win, create_source_window): Don't use textscrollproc.
1764         (create_breakpoints_window): Set -xscrollcommand on canvas.
1765         (not_implemented_yet): Default button is 0.
1766         (delete_char): Don't use tk_textBackspace.
1767         (create_command_window): Allow Tk bindings to fire after deleting
1768         character.
1769         (create_command_window): Make Delete delete left, not right.
1770
1771 Thu Jan 11 10:08:14 1996  Tom Tromey  <tromey@creche.cygnus.com>
1772
1773         * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
1774
1775         Changes in sync with expect:
1776         * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
1777         CY_AC_PATH_TK.
1778         * aclocal.m4: Replaced with version from expect.
1779         * configure: Regenerated.
1780
1781 Wed Jan 10 09:07:22 1996  Tom Tromey  <tromey@creche.cygnus.com>
1782
1783         * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
1784         gdbtk_tcl_flush): Use "see", not "yview".
1785         (gdbtk_tcl_query): Use questhead bitmap.
1786         various: Always wrap condition of 'if' in {...}.
1787         (add_breakpoint_frame): Set -value on radiobuttons.
1788         (lassign): New proc.
1789         (add_breakpoint_frame): Use lassign, not series of assignments.
1790         (decr): Made faster.
1791         (interactive_cmd): Use "see", not "yview".
1792         (not_implemented_yet): Use warning bitmap.
1793         (update_expr): Don't allow $expr to be evalled by Tcl.
1794         (create_expr_window): Don't use "focus".
1795         (delete_char, delete_line): Define globally.
1796         (delete_line, delete_char, create_command_window, update_autocmd,
1797         build_framework, create_asm_win, create_file_win): Use "see", not
1798         "yview".
1799         (create_copyright_window, center_window, bind_widget_after_class):
1800         New procs.
1801         (FSBox,create_command_window, create_autocmd_window): Binding
1802         changes for Tk4.
1803         (textscrollproc): Define globally.
1804         (build_framework): tk_menuBar no longer needed.  Keys Prior, Next,
1805         Home, End, Up, and Down are all defined by Tk.
1806         (apply_filespec): Use error bitmap in dialog.
1807         (files_command): Don't use tk_listboxSingleSelect.
1808         (files_command): Don't use "uniq" to remove duplicates from a
1809         list.
1810         (update_assembly): Use lassign.
1811         (create_asm_win): Removed redundant bindings.
1812         (listing_window_button_1, file_popup_menu): Use tk_popup.
1813         (ButtonRelease-1 binding): Just remove tag from window; rest
1814         handled by Tk.
1815
1816         * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
1817         (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
1818         (gdbtk_call_command): Ditto.
1819
1820 Thu Jan  4 16:04:54 1996  Stu Grossman  (grossman@cygnus.com)
1821
1822         * configure configure.in:  Make --enable-gdbtk be the default.
1823
1824 Thu Dec 28 15:10:49 1995  Stan Shebs  <shebs@andros.cygnus.com>
1825
1826         * README.GDBTK: Polish introductory paragraph.
1827
1828 Mon Oct 16 11:27:06 1995  Stu Grossman  (grossman@cygnus.com)
1829
1830         * gdbtk.c (gdb_disassemble):  Use fprintf_unfiltered instead of
1831         fprintf_filtered.
1832
1833 Tue Oct 10 15:26:39 1995  Fred Fish  <fnf@cygnus.com>
1834
1835         * README.GDBTK: Updated for version 4.15.
1836         
1837 Sat Aug 19 17:20:22 1995  Michael Tiemann  <tiemann@axon.cygnus.com>
1838
1839         * gdbtk.tcl: ENABLE comes back as "1" or "0", not "enable" or
1840         "disable".
1841         Also, wire up the breakpoint window so that it can be demo'd.
1842
1843 Tue Aug  1 11:44:53 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
1844
1845         * gdbtk.c: Include "gdb_string.h" instead of <string.h>.
1846
1847 Tue Jun 20 10:19:40 1995  Stu Grossman  (grossman@cygnus.com)
1848
1849         * gdbtk.c:  Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.
1850
1851         * gdbtk.tcl (add_breakpoint_frame):  Add more fields.
1852         * (create_file_win create_asm_win build_framework):  Create null
1853         bindings for meta keys to keep window from dropping down to
1854         insertion point when meta is pressed by itself.  New bindings:
1855            Up/Down - Scroll up/down one line at a time
1856            Next/Prior - Scroll up/down one page at a time
1857            Home/End - Warp to current pc/end of file
1858         * (build_framework):  Turn on breakpoint menu.
1859         * (create_command_window):  Implement tab completion.  Add binding
1860         for ^C to stop target.
1861
1862 Fri May 19 06:15:40 1995  Jim Kingdon  <kingdon@deneb.cygnus.com>
1863
1864         * gdbtk.c: Conditionalize use of stdarg rather than varargs on
1865         ANSI_PROTOTYPES not __STDC__; it must match the definition of
1866         PARAMS.
1867
1868 Thu May 18 15:58:46 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
1869
1870         * gdbtk.c (gdbtk_query): Use stdarg.h macros when compiling with
1871         an ANSI compiler.
1872
1873 Sat Apr 15 13:52:24 1995  Stan Shebs  <shebs@andros.cygnus.com>
1874
1875         * gdbtk.c (gdb_disassemble): Read from inferior if connected
1876         to a VxWorks target.
1877
1878 Fri Apr 14 10:18:20 1995  Stu Grossman  (grossman@cygnus.com)
1879
1880         * README.GDBTK:  New file.  Contains the obvious.
1881
1882 Tue Apr 11 11:07:12 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1883
1884         * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
1885         F_SETOWN is, use that.
1886
1887 Thu Apr  6 17:00:46 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
1888
1889         * Makefile.in (X11_INCLUDES): Define as empty.
1890         (X11_CFLAGS): Define as including $(X11_INCLUDES).
1891         (X11_LIB_SWITCHES): Define as empty.
1892         (X11_LIBS): Define as -lX11.
1893
1894         * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
1895         and --x-libraries switches, setting the X11_INCLUDES and
1896         X11_LIB_SWITCHES respectively.  Instead of using a hardcoded -lX11
1897         in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
1898
1899         * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
1900         it.  This means that the stop button doesn't work, but is better
1901         than nothing.
1902
1903 Wed Mar 29 17:09:29 1995  Stu Grossman  (grossman@cygnus.com)
1904
1905         * Makefile.in (gdbtk.o):  Use X11_CFLAGS to provide alternate
1906         locations (per-host) for X11 include files.
1907         * config/pa/hppahpux.mh (XM_CLIBS):  Add -L/usr/lib/X11R5 to force
1908         the use of R5 libs.
1909         (X11_CFLAGS):  Add this to indicate the locs
1910         of the R5 include files.
1911
1912 Wed Mar  8 16:12:21 1995  Stu Grossman  (grossman@cygnus.com)
1913
1914         * gdbtk.c (gdb_get_breakpoint_info):  Return error if breakpoint
1915         type is not bp_breakpoint.
1916
1917 Tue Feb 14 17:16:41 1995  Stu Grossman  (grossman@cygnus.com)
1918
1919         * gdbtk.c: Ditto.
1920         * gdbtk.c: General cleanups, get rid of unused variables.  Redo
1921         handling of stdout/stderr to just return output as the result of
1922         the tcl command that caused the output.  Cleanup -Wall stuff.
1923         * (breakpoint_notify):  Now returns just action and breakpoint
1924         number.
1925         * (gdb_get_breakpoint_list):  New routine.  Does the obvious.
1926         * (gdb_get_breakpoint_info):  Mostly derived from the old
1927         breakpoint_notify, but returns lots more info.
1928         * (dsprintf_append_element):  Helper routine, works like printf,
1929         but appends a tcl element onto the specified DString.  Good for
1930         building up lists as return values.
1931         * (gdbtk_enable/disable_breakpoint):  Go away.  Replaced with
1932         gdbtk_modify_breakpoint.
1933         * (*many routines*):  Use new result protocol.
1934         * (call_wrapper):  Make sure that recursive calls don't trash results.
1935         * gdbtk.tcl:  New windows, autocmd, and breakpoints.
1936         * (gdbtk_tcl_fputs):  Don't use $current_output_win redirection
1937         anymore.  It's not needed (in fact, this routine may not be needed
1938         anymore).
1939         * (gdbtk_tcl_breakpoint):  Change to reflect new breakpoint
1940         notification protocol.
1941         * (gdbtk_tcl_busy gdbtk_tcl_idle):  Straighten out buttons, remove
1942         catches.
1943         * (interactive_cmd):  Use this wrapper around button invocations
1944         of many commands.  This will catch errors and put the results into
1945         the command window.  It also updates all the other windows.
1946         * Also, change reliefs of most things to sunken.  This actually
1947         looks better.
1948         * (create_file_win):  Fix margin binding to allow breakpoints to
1949         work again.
1950         * (create_asm_win):  Use return value of gdb_disassemble instead
1951         of implicit I/O to the command window.  
1952         * (create_command_window):  Use new result protocol to get output
1953         from commands.
1954
1955 Sun Feb  5 20:32:44 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
1956
1957         * gdbtk.c (gdb_disassemble): Deference pointer to function before
1958         calling it (pre-ANSI compilers generally require this).
1959
1960 Fri Feb  3 11:19:20 1995  Stu Grossman  (grossman@cygnus.com)
1961
1962         * gdbtk.c (gdb_disassemble): Get rid of
1963         dis_asm_read_memory_hook.  We can now call the disassemblers
1964         directly and have no need for this hook anymore.
1965
1966 Mon Jan 30 17:34:24 1995  Stu Grossman  (grossman@cygnus.com)
1967
1968         * gdbtk.tcl (create_file_win):  Disable old popup menu for source
1969         window.
1970
1971 Wed Jan 25 18:23:46 1995  Stu Grossman  (grossman@cygnus.com)
1972
1973         * gdbtk.c (gdbtk_init):  Prevent segfault when gdbtk.tcl can't be
1974         found.
1975         * gdbtk.tcl:  Initialize expr_update_list() to prevent errors when
1976         popping up expression window for the first time.
1977
1978 Tue Jan 24 12:10:28 1995  Stu Grossman  (grossman@cygnus.com)
1979
1980         * gdbtk.tcl (create_registers_window):  Work around a radiobutton
1981         widget bug to make Options|Natural button work.
1982
1983         * gdbtk.c (gdb_disassemble):  Fix problem with source+assembly and
1984         g++ caused by out-of-order pc's.
1985         * gdbtk.tcl (files_command):  Remove duplicate file names.  Also,
1986         add scrollbar.
1987
1988 Mon Jan 23 17:21:09 1995  Stu Grossman  (grossman@cygnus.com)
1989
1990         * gdbtk.tcl:  Take .gdbtkinit if it exists.  Makes gdbtk match the
1991         doc!
1992
1993 Thu Jan 12 15:02:40 1995  Stu Grossman  (grossman@cygnus.com)
1994
1995         * gdbtk.c, gdbtk.tcl:  Update/add copyright.
1996         * gdbtk.tcl (build_framework):  Several fixes for filespec widget,
1997         including dismiss button, and better error handling.
1998         * (create_command_win):  Bind button 2 to retrieve selection.
1999
2000 Wed Jan 11 17:06:55 1995  Stu Grossman  (grossman@cygnus.com)
2001
2002         * gdbtk.tcl:  Add button to control mixed source disassembly.
2003         Use text widgets in expr window.  The give me more control over
2004         layout.
2005         Add auto-updating of exprs in expression window.
2006         Handle expressions out of scope a bit better.
2007         Make selected window pop up to the top when invoked via the
2008         menubar.
2009         Make copyright message have raised relief.
2010
2011         * gdbtk.c (gdbtk_init):  Improve handling for errors in gdbtk.tcl
2012         during startup.
2013
2014 Thu Jan  5 17:38:29 1995  Stu Grossman  (grossman@cygnus.com)
2015
2016         * gdbtk.c (finish_saving_output):  Don't do anything if not saving
2017         output.
2018         * (breakpoint_notify):  Don't send null filename to tcl.
2019         * (gdb_eval):  New tcl command to eval an expression.
2020         * (gdb_disassemble):  New tcl command to do disassembly.  This
2021         allows tcl code to choose between exec file and target memeory,
2022         and can also do mixed source and assembly.
2023         * (gdbtk_init):  Move reading of gdbtk.tcl to the end to make sure
2024         that more of the environment is set up.  Also, create link between
2025         gdb and tcl vars disassemble{-_}from{-_}exec.
2026
2027         * gdbtk.tcl:  New expression window support.
2028         * Make assembly window be 80 columns wide.
2029         * Use new disassembly method.  Add menu items to select
2030         disassembly from exec file or target.
2031         * Change View menubar item to Options.
2032
2033         * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
2034         since they don't exist yet.
2035
2036         * Pop up a copyright window on startup.
2037
2038 Wed Jan  4 19:49:10 1995  Stan Shebs  <shebs@andros.cygnus.com>
2039
2040         * gdbtk.tcl (build_framework): Add standard commands menu, more
2041         windows to standard windows menu.
2042         (not_implemented_yet): Clarify message.
2043
2044 Fri Dec 30 15:49:00 1994  Stan Shebs  <shebs@andros.cygnus.com>
2045
2046         * gdbtk.tcl (FSBox): New proc, File Selection Box code from exmh.
2047         (not_implemented_yet): New proc.
2048         (build_framework): Add various file commands to file menu.
2049
2050 Fri Dec 23 16:18:50 1994  Stu Grossman  (grossman@cygnus.com)
2051
2052         * gdbtk.c (gdbtk_wait gdbtk_init):  Portability improvements for
2053         SIGIO handling.
2054
2055 Mon Dec 19 09:55:47 1994  Stu Grossman  (grossman@cygnus.com)
2056
2057         * gdbtk.tcl (update_assembly):  Force update to make sure that pc
2058         is visible when creating new assembly windows.
2059
2060 Sun Dec 18 23:31:20 1994  Stu Grossman  (grossman@cygnus.com)
2061
2062         * gdbtk.c (gdbtk_wait gdbtk_init):  Use different method of
2063         enabling I/O interrupts for SVR4 (streams).
2064         * (start_saving_output save_output get_saved_output
2065         finish_saving_output flush_holdbuf gdbtk_flush gdbtk_fputs
2066         gdbtk_init):
2067         Totally revamp to use TCLs dynamic string functions.  Also, quote
2068         all data passed back to TCL to prevent errors with unmatched
2069         braces, odd characters, etc...  This fixes several wierd problems
2070         with outputting strings containing unmatched braces.
2071         * (breakpoint_notify gdb_loc):  Use long hex format to output
2072         addresses of breakpoints and PCs.  This fixes some Alpha problems.
2073         * (breakpoint_notify):  Add stream arg to call to gdbtk_fputs.
2074         * (gdb_listfiles):  Also, go through the symtabs when looking for
2075         files.  This makes xcoff work (sort of), but probably breaks
2076         something else.
2077         * (gdb_stop):  Return TCL_OK instead of nothing.  This fixes odd
2078         TCL errors when hitting stop button.
2079         * (tk_command):  Don't pass interp->result on to Tcl_{Var}Eval, as
2080         that will trash the result.  strdup the result instead and pass
2081         that on.  Improve error handling as well.
2082
2083         * gdbtk.tcl (gdbtk_tcl_flush):  Use global def of
2084         current_output_win.  Makes flushing actually work!
2085         * (asm_win_name create_asm_win update_assembly):  Bunch of fixes
2086         to make assembly windows stop flashing when loading a new file.
2087         * (gdbtk_tcl_busy gdbtk_tcl_idle):  Use catch to prevent gdb_cmd
2088         errors from losing control.
2089         * (create_source_window):  Add source file selection to View menu.
2090         * (create_command_window (<Key-Return> binding):  Quote text fed
2091         into gdb_cmd to prevent eval errors.
2092
2093 Thu Dec 15 16:40:10 1994  Stu Grossman  (grossman@cygnus.com)
2094
2095         * gdbtk.c: Improve mechanism for capturing output values.
2096         (full_filename): Remove.
2097         (gdb_cmd call_wrapper gdbtk_init): Protect all calls from tcl land
2098         with call_wrapper.  This prevents longjmps (usually via error())
2099         from jumping out of tcl/tk and leaving things in an indeterminate
2100         state.
2101         (gdbtk_fputs): Differentiate stdout from stderr when passing text
2102         into tcl land.
2103         * gdbtk.tcl: New view option to disable line numbers.  Put catch
2104         around most uses of gdb_cmd.  Add update button to reg config
2105         window.  Stop doing immediate updates when selecting registers.
2106         Change register view values into checkbuttons.
2107
2108 Mon Dec 12 16:59:29 1994  Stu Grossman  (grossman@cygnus.com)
2109
2110         * gdbtk.tcl (reg_config_menu create_registers_window
2111         recompute_reg_display_list):  Use array instead of individual vars
2112         for register display list.
2113         * (recompute_reg_display_list update_registers):  Fix bug with not
2114         displaying all registers.
2115
2116 Mon Dec 12 12:22:21 1994  Stu Grossman  (grossman@cygnus.com)
2117
2118         * gdbtk.c:  New tcl commands:  gdb_fetch_registers,
2119         gdb_changed_register_list, and gdb_regnames.
2120         * gdbtk.tcl:  Use monochrome color model for now.
2121         * (delete_breakpoint_tag create_file_win):  Add breakdot support.
2122         * (create_file_win create_asm_win update_listing build_framework
2123         create_source_window create_command_window):  Re-org window
2124         creation to give all windows consistent look and feel.
2125         * (update_listing update_asm):  Change pc pointer to '->'.
2126         * (registers_command reg_config_menu create_registers_window
2127         populate_reg_window update_registers):  Revamp register window.
2128         Allow selection of registers to be displayed.  Highlight changed
2129         registers.
2130
2131 Mon Nov 28 09:17:20 1994  Stu Grossman  (grossman@cygnus.com)
2132
2133         * gdbtk.tcl (build_framework):  Fix bug with setting window titles.
2134
2135         * gdbtk.tcl (build_framework):  Add "Report bug" to help menu.
2136
2137         * gdbtk.tcl:  Re-arrange windows using new, consistent layout. Clean
2138         up lots of code and centralize framework initialization.
2139
2140 Wed Nov 16 15:28:29 1994  Rob Savoye  (rob@cygnus.com)
2141
2142         * Makefile.in: Fix the test for installing gdbtk.
2143
2144 Mon Nov 14 08:51:29 1994  Stu Grossman  (grossman@cygnus.com)
2145
2146         * Makefile.in:  Install gdbtk.tcl.
2147         * configure.in:  Add ENABLE_GDBTK flag.
2148         * gdbtk.c (gdb_sourcelines):  Returns list of source lines
2149         containing code.  (gdb_regnames):  Returns list of register names.
2150
2151 Thu Nov  3 14:25:24 1994  Stu Grossman  (grossman@cygnus.com)
2152
2153         * gdbtk.c (gdb_stop):  Switch to target_stop().
2154
2155 Tue Nov  1 16:41:12 1994  Stu Grossman  (grossman@cygnus.com)
2156
2157         * Makefile.in:  Use $(objdir)/tcl and $(objdir)/tk if they are
2158         available.
2159         * configure.in (ENABLE_CLIBS):  Use $(TCL) and $(TK) instead of
2160         -ltcl and -ltk.
2161         * gdbtk.c:  Get rid of lots of unnecessary #includes.
2162         * (gdbtk_init):  Use ConnectionNumber macro instead of referencing
2163         Display structure directly.
2164         * gdbtk.tcl:  Change exit button to quit button.
2165
2166 Wed Oct 26 15:41:07 1994  Stu Grossman  (grossman@cygnus.com)
2167
2168         * gdbtk.c: Change sense and name of no_windows variable.  Now
2169         called use_windows, and defaults to off (for compatibility).
2170
2171 Thu Oct 20 17:35:45 1994  Stu Grossman  (grossman@cygnus.com)
2172
2173         * gdbtk.c (gdb_cmd):  Force GUI into idle mode when errors occur.
2174         * (gdb_stop):  New tcl command to stop the target process.
2175         * (x_event, gdbtk_wait):  Allow GUI to interrupt gdb out of target
2176         waits.
2177         * (gdbtk_call_command):  Wrapper around command processing to
2178         alert GUI of target state changes.
2179         * (gdbtk_init):  Get the fd of X server for doing async
2180         notification of X events (via x_event).  Setup new hooks.
2181         * gdbtk.tcl:  Add scrollbars to assembly and command windows.
2182         * Change window foreground & background colors.
2183         * Create margin tag for breakpoints in source and assembly windows.
2184         * Add new routines to be invoked when target state changes to/from
2185         idle.
2186         * Add start of expression window.
2187         * Change bindings of mouse button 1 in assembly and source window
2188         to just set or clear breakpoints when in the margin tag.
2189         * Change shape of register window to be more vertical to better
2190         reflect its contents.
2191         * Add stop button.
2192         * Cleanup some code around command window bindings.
2193
2194 Sat Sep 17 17:05:14 1994  Stu Grossman  (grossman@cygnus.com)
2195
2196         * gdbtk.tcl:  Let ^U delete lines in the command window.
2197
2198 Fri Sep 16 15:40:34 1994  Stu Grossman  (grossman@cygnus.com)
2199
2200         * gdbtk.c:  Replace calls to full_filename with symtab_to_filename.  
2201         * gdbtk.tcl:  New routine pc_to_line replaces in line code.  New
2202         routine decr replaces in line code.
2203         * (create_file_win):  Use catch to handle open failures more
2204         elegantly.  Also, create special window to display file open
2205         failure message.  Move opening of file prior to creation of text
2206         widget.
2207         * (create_asm_win):  Add PC as argument.  We now base disassembly
2208         on PC instead of function name, since function names can be
2209         ambiguous (usually seen with shared libs).  Also, use catch to
2210         simplify code where we don't care about failures.
2211
2212 Wed Sep 14 00:55:26 1994  Stu Grossman  (grossman@cygnus.com)
2213
2214         * gdbtk.tcl:  Add ref counts to breakpoint tags.
2215         * Put quotes around function name in disassemble command to better
2216         handle assembler names containing `.'.
2217         * Make pclist element 0 be filler to avoid off-by-one problem with
2218         line numbers.
2219         * Set names of top-level windows.
2220         * Add register display window.
2221         * Add PC to label of assembly window.
2222
2223 Tue Sep 13 08:59:04 1994  Stu Grossman  (grossman@cygnus.com)
2224
2225         * gdbtk.c (gdbtk_flush gdbtk_fputs):  Buffer up output to make
2226         disassembly more efficient.
2227         * (breakpoint_notify):  Include pc in gdbtk_tcl_breakpoint
2228         callback.
2229         * (gdb_loc):  Include pc in return value.  Also, return function
2230         name if arg was specified.
2231         * (gdb_cmd_stub):  Call gdb_flush to drain internal GDB buffers
2232         after command completes.
2233         * (gdbtk_init):  Improve error handling.
2234
2235         * gdbtk.tcl:  Add lots of comments.  Clean up code.
2236         * (gdbtk_tcl_fputs):  Make output window redirectable.
2237         * Add assembly window, and breapoint support.
2238         * Make button 1 in margin toggle breakpoints.
2239         * Use stippling to indicate breakpoint disabling.
2240
2241 Fri Sep  2 19:11:40 1994  Stu Grossman  (grossman@cygnus.com)
2242
2243         * configure.in: Don't symlink to gdbtk.tcl if it's already there.
2244
2245 Thu Jul 28 14:37:36 1994  Stu Grossman  (grossman@cygnus.com)
2246
2247         Support for TK GUI.
2248         * Makefile.in:  Add rule for gdbtk.o.
2249         * configure.in:  Add support for --enable-gdbtk.
2250         * gdbtk.c:  New file.  Contains support routines for TK interface.
2251         * gdbtk.tcl:  New file.  Implements GUI policy.
2252
2253 \f
2254 Local Variables:
2255 mode: change-log
2256 left-margin: 8
2257 fill-column: 74
2258 version-control: never
2259 End: