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