* config.h.in: New file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog-gdbtk
1 Wed Mar 25 14:08:51 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2
3 * gdbtk.c (gdbtk_pre_add_symbol): Use Tcl_merge to form Tcl commands.
4
5 Mon Mar 23 13:41:39 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6
7 * gdbtk.c (gdb_get_mem): Rewrite to fetch entire contents
8 of the memory window at once.
9
10 Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
11
12 Merged changes from Foundry: list follows by author:
13
14 - Tom Tromey <tromey@cygnus.com>
15
16 * Makefile.in (gdbres.o): New target.
17 (WINDRES): New define.
18 * configure: Rebuilt.
19 * configure.in (WINDRES): Define.
20 (CONFIG_OBS): Include gdbres.o on Windows.
21 * gdbtool.ico: New file.
22 * gdb.rc: New file.
23 * gdbtk.c (gdbtk_init): Call ide_create_messagebox_command.
24 (gdbtk_cleanup): Call ide_interface_deregister_all.
25 (gdbtk_init): Pass event handle to cleanup.
26 (TclDebug): Use Tcl_Merge to construct command.
27 (gdbtk_init): Call ide_create_cygwin_path_command.
28
29 - Martin M. Hunt <hunt@cygnus.com>
30
31 * gdbtk.c (gdb_set_bp): Set addr_string for bp.
32 (gdb_get_breakpoint_info): Demangle function
33 names in breakpoint info.
34 Include "demangle.h".
35 (gdb_loc, gdb_listfuncs): Demangle C++
36 function names.
37 (gdb_set_bp): Properly quote filename to fix
38 problems with spaces. Send pc back as a hex string.
39 (gdb_listfuncs): Remove debugging line.
40 Turn off some debugging lines.
41 (breakpoint_notify): Return correct line number.
42 (gdb_get_breakpoint_info): Return correct line number.
43 (gdb_set_bp): New function to provide a better way to
44 set breakpoints.
45 (gdbtk_readline, gdbtk_readline_begin): Memory
46 allocated by tcl needs to be freed by Tcl_Free().
47 (find_file_in_dir): Deleted.
48 (gdb_find_file_command): Call full_lookup_symtab().
49 (gdb_listfuncs): Call full_lookup_symtab().
50 (full_lookup_symtab): New function. Like lookup_symtab
51 except handles multiple files with the same basename,
52 full pathnames, and always sets symtab->fullname.
53 (gdb_loadfile): Call full_lookup_symtab(). Clear
54 realloc'd memory.
55 (gdb_loadfile): Don't tag lines without source.
56 Tag source lines with source_tag.
57 (gdb_find_file_command, find_file_in_dir):
58 Rewrite. Now searches symtabs and psymtabs for a match
59 on the partial or full filename. Returns the full pathname.
60 (gdb_loadfile): Realloc additional memory
61 if someone loads in a file with more than 160,000
62 lines. I don't know if this really works because
63 I don't have enough memory to test it.
64 (gdb_sourcelines): Deleted.
65 (gdb_loadfile): New function. Takes a text widget
66 and loads it with the contents of a file. Marks
67 and tags source lines.
68 (pc_changed): New function.
69 (get_pc_register): Returns the value of
70 the PC to GDB.
71 (gdb_loc): If looking on the stack, return
72 real pc along with calling source line.
73 (gdb_loc): Return "" instead of "N/A" if
74 filename is not found.
75 (gdb_get_breakpoint_info): Same.
76 (get_register): For Natural mode, set format to 0.
77 Minor bugfixes from keiths.
78 (TclDebug): New function for debugging use.
79 (gdb_loc): Return correct PC for frames
80 that are not the innermost frame.
81 (gdb_listfiles): Rewritten to use object
82 API. Now takes an optional dirname which will cause
83 only files in that directory or its subdirectories
84 to be returned. Now returns basenames instead of
85 full pathnames.
86 (gdb_cmd): Set/reset load_in_progress flag.
87 (call_wrapper): Don't pop up dialog for errors in
88 downloads; just abort download.
89 (gdbtk_load_hash): Set return value correctly.
90
91 - Keith Seitz <keiths@onions.cygnus.com>
92
93 * gdbtk.c (gdbtk_init): Define the ui_loop_hook so that it can be
94 called by routines which might block, allowing us to update the GUI.
95 (gdbtk_wait): Move timer calls to annotation hooks.
96 (gdbtk_init): Define the annotation hooks.
97 (gdbtk_annotate_starting): New function for cygwin32 hosts.
98 (gdbtk_annotate_stopped): New function for cygwin32 hosts.
99 (gdbtk_annotate_exited): New function for cygwin32 hosts.
100 (gdbtk_annotate_signalled): New function. for cygwin32 hosts.
101 (gdbtk_init): Use gdbtk_print_frame_info hook.
102 (gdbtk_print_frame_info): New function which sets current_source_symtab
103 based on the given symtab and line info.
104 (gdb_immediate_command): New function which does
105 not buffer any
106 output. (Contrast to gdb_cmd.)
107 (gdb_prompt_command): New function to return gdb's prompt.
108 (find_file_in_dir): New functon which searches source paths
109 for a given filename.
110 (gdb_find_file): New function which returns path to given file -- uses
111 find_file_in_dir.
112 (gdbtk_init): Install "gdb_immediate", "gdb_find_file", and
113 "gdb_prompt"
114 commands into interpreter.
115
116 - Ian Lance Taylor <ian@cygnus.com>
117
118 * gdbtk.c (gdbtk_timer_going): If __CYGWIN32__, new static
119 variable.
120 (gdb_cmd): If __CYGWIN32__, if executing the load command, call
121 gdbtk_start_timer and gdbtk_stop_timer.
122 (call_wrapper): If __CYGWIN32__, if the timer is going, turn it
123 off. Clear load_in_progress.
124 (x_event): If load_in_progress, quit if download_cancel_ok.
125 (gdbtk_start_timer): Set gdbtk_timer_going.
126 (gdbtk_stop_timer): Clear gdbtk_timer_going.
127 (gdbtk_wait): Call x_event.
128 (gdbtk_init): Call ide_create_win_grab_command if
129 __CYGIN32__.
130 (gdb_clear_file): Clear stop_pc.
131
132
133 Tue Feb 10 17:50:37 1998 Keith Seitz <keiths@onions.cygnus.com>
134
135 * gdbtk.c (gdbtk_modify_tracepoint): Define new tracepoint modification hook.
136 (gdbtk_print_frame_info): Define this hook so that current_source_symtab
137 is set properly.
138 (gdb_actions_command): Use free_actions () from tracepoint.c/h.
139
140 Mon Jan 26 11:37:55 1998 Keith Seitz <keiths@onions.cygnus.com>
141
142 * gdbtk.c (gdb_actions_command): Make note of next action
143 before freeing all references to it.
144
145 Sat Jan 24 23:52:08 1998 Martin M. Hunt <hunt@cygnus.com>
146
147 * gdbtk.c: Merge from Foundry branch.
148 (TclDebug): New debugging function.
149 (gdb_loc): For frames, find address of calling function
150 instead of whatever is on the stack (usually the next
151 instruction).
152 (gdb_listfiles): Takes an optional pathname argument and
153 returns an alphabetized list of basenames of files in the
154 path.
155
156 Wed Jan 22 10:37:02 1998 Keith Seitz <keiths@onions.cygnus.com>
157
158 * symfile.c: Define two new hooks for symbol reading:
159 "pre_add_symbol_hook" and "post_add_symbol_hook". These hooks
160 are called before we begin reading symbols, and after we finish.
161 (generic_load): Use new symbol reading hooks and get rid of
162 compiler warning.
163
164 * gdbtk.c (gdbtk_init): Add hooks for pre- and post-symbol reading.
165 (gdbtk_pre_add_symbol): New function: the pre-add-symbol hook.
166 (gdbtk_post_add_symbol): New function: the post-add-symbol hook.
167 (find_file_in_dir): New function. Moved the guts of gdb_find_file_command
168 into here to allow its use by others.
169 (gdb_loc): Use find_file_in_dir to return the real path to the file
170 (or "N/A" if we can't find it).
171
172 * configure.in (TIX_LIB_EXT): Define new variable for those special cases
173 when TCL_SHLIB_SUFFIX is not enough to specify the dependency.
174
175 * configure: Regenerate.
176
177 Fri Jan 23 07:47:06 1998 Fred Fish <fnf@cygnus.com>
178
179 * Makefile.in (uninstall): Remove installed gdbtcl dir, if one
180 was installed.
181
182 Thu Jan 15 12:42:28 1998 Keith Seitz <keiths@onions.cygnus.com>
183
184 * gdbtk.c (gdb_immediate_command): New function which does not buffer any
185 output. (Contrast to gdb_cmd.)
186 (gdbtk_init): Install "gdb_immediate" command into interpreter.
187
188 Wed Jan 14 16:38:44 1998 Keith Seitz <keiths@pizza.cygnus.com>
189
190 * configure.in (--enable-gdbtk): If tcl was built with --enable-shared,
191 use TCL_SHLIB_SUFFIX to specify the suffix of the library file so that
192 we don't expect to see "libfoo.a" instead of "libfoo.{so,sl, etc}".
193
194 * configure: Regenerate.
195
196 Wed Dec 31 16:50:26 1998 Keith Seitz (keiths@onions.cygnus.com)
197
198 * gdbtk.c (gdb_actions_command): extract and save step count
199 from "while-stepping" command
200
201 Tue Dec 16 21:16:42 1997 Ian Lance Taylor <ian@cygnus.com>
202
203 * Makefile.in (LIBGUI): New variable.
204 (GUI_CFLAGS_X): New variable.
205 (IDE_CFLAGS): Add $(GUI_CFLAGS_X).
206 * configure.in: Add $(LIBGUI) to TCL_LIBS and CONFIG_DEPS.
207 * configure: Rebuild.
208
209 Wed Dec 10 13:16:45 1997 Keith Seitz <keiths@onions.cygnus.com>
210
211 * gdbtk.c (gdb_get_tracepoint_info): Use info in struct
212 symtab_and_line (not struct tracepoint) so that we get the
213 real line info for an address. Arrange data more like
214 gdb_get_breakpoint_info.
215 (tracepoint_notify): Use info in struct symtab_and_line again.
216 (gdbtk_init): Add command "gdb_get_tracepoint_list" into
217 interpreter.
218 (gdb_get_tracepoint_list): New function that aids the source
219 window in displaying tracepoints when the file changes.
220
221 Fri Dec 5 10:31:23 1997 Keith Seitz <keiths@pizza.cygnus.com>
222
223 * gdbtk.c (gdbtk_init): Add gdb_find_file into interpreter.
224 (gdb_find_file_command): New function which searches source path
225 to find the real full filename of a file.
226
227 Mon Dec 1 10:19:44 1997 Keith Seitz <keiths@onions.cygnus.com>
228
229 * gdbtk.c: Move include of "guitcl.h" back out of IDE ifdef.
230 (gdbtk_init): Move ide_initialize_paths out of IDE ifdef.
231
232 * configure.in (TCL_LIBS, CONFIG_DEPS): Add IDE libraries for all
233 builds.
234 (CONFIG_OBS): Remove tracepoint.o, which should always be included.
235
236 * configure: regenerate
237
238 * Makefile.in (install-only): ALWAYS install the new gdbtk
239 (REMOTE_OBS): add tracepoint.o
240
241 Thu Nov 27 09:07:18 1997 Michael Meissner <meissner@cygnus.com>
242
243 * configure.in ({TCL_LIBS,CONFIG_DEPS}): Don't add IDE libraries
244 if not --enable-ide.
245 (CONFIG_OBS): Add tracepoint.o to list if --enable-gdbtk.
246 * configure: Regenerate.
247
248 * gdbtk.c (gdb_get_breakpoint_info): Add missing filename
249 argument.
250 (toplevel): Move include of guitcl.h into #ifdef IDE region.
251 (gdbtk_init): Move ide_initialize_paths call into #ifdef IDE
252 section.
253
254 * Makefile.in (gdbtk.o): Update dependencies.
255
256 Wed Nov 26 15:02:43 1997 Keith Seitz <keiths@onions.cygnus.com>
257
258 * gdbtk.c (gdb_loc): symtab_to_filename can return NULL.
259 (breakpoint_notify): Ditto.
260 (gdb_get_breakpoint_info): Ditto.
261
262 Wed Nov 26 11:33:09 1997 Keith Seitz <keiths@onions.cygnus.com>
263
264 Merge in code from Foundry branch:
265
266 * Makefile.in (install-only): install the new gdbtk, not the old
267
268 * gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
269 commands
270 (gdbtk_init): Add new commands "gdb_get_locals", "gdb_get_args",
271 "gdb_get_function", "gdb_get_line", "gdb_get_file",
272 "gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
273 and "gdb_prompt".
274 (gdb_get_vars_command): New function.
275 (gdb_get_line_command): New.
276 (gdb_get_file_command): New.
277 (gdb_get_function_command): New.
278 (gdb_get_tracepoint_info): New.
279 (gdbtk_create_tracepoint): New.
280 (gdbtk_delete_tracepoint): New.
281 (tracepoint_notify): New.
282 (tracepoint_exists): New.
283 (gdb_actions_command): New.
284 (gdb_tracepoint_exists_command): New.
285 (gdb_prompt_command): New.
286
287 Thu Nov 13 18:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
288
289 * gdbtk.c: Move include of gdbcore.h to top of file.
290 (close_bfds): New static function if _WIN32.
291 (gdbtk_readline): Call close_bfds.
292 (call_wrapper, tk_command_loop): Likewise.
293 (gdb_clear_file): New static function.
294 (gdbtk_init): Create gdb_clear_file Tcl command.
295
296 Wed Nov 12 14:58:39 1997 Jeff Holcomb <jeffh@cygnus.com>
297
298 * gdbtk.c: gdbtk_load_hash and ui_load_progress_hook return an
299 int result.
300 (gdbtk_load_hash): download hash routine returns an int result.
301
302 Mon Nov 10 15:11:51 1997 Ian Lance Taylor <ian@cygnus.com>
303
304 * gdbtk.c (gdbtk_init): Call ide_create_shell_execute_command if
305 __CYGWIN32__.
306 * configure.in: Add -lshell32 to WIN32LIBS on cygwin32.
307 * configure: Rebuild.
308
309 Sun Nov 9 16:25:34 1997 Tom Tromey <tromey@cygnus.com>
310
311 * gdbtk.c (gdbtk_init): Run ide_create_help_command.
312
313 Tue Oct 28 17:31:47 1997 Martin M. Hunt <hunt@cygnus.com>
314
315 * gdbtk.c (gdbtk_init): Call ide_create_winprint_command.
316
317 Thu Oct 23 15:53:37 1997 Ian Lance Taylor <ian@cygnus.com>
318
319 * configure.in: Add -lgdi32 to WIN32LIBS when linking gdbtk on
320 cygwin32.
321 * configure: Rebuild.
322
323 Wed Oct 22 21:32:54 1997 Martin M. Hunt <hunt@cygnus.com>
324
325 * gdbtk.c (gdbtk_init): Create sizebox command on Windows.
326
327 Thu Oct 9 14:33:21 1997 Ian Lance Taylor <ian@cygnus.com>
328
329 * gdbtk.c (gdbtk_init): Remove assertion argument from call to
330 ide_create_window_register_command.
331
332 Wed Oct 1 11:09:52 1997 Tom Tromey <tromey@cygnus.com>
333
334 * gdbtk.c (gdbtk_init): Pass name of restore interface to
335 ide_create_window_register_command.
336
337 Fri Sep 26 21:08:22 1997 Keith Seitz <keiths@pizza.cygnus.com>
338
339 * gdbtk.c (gdbtk_init): Initialize ui_load_progress_hook.
340
341 Thu Sep 25 03:05:00 1997 Martin M. Hunt <hunt@cygnus.com>
342
343 * gdbtk.c (gdb_load_info): New function. Returns a list
344 of section names and sizes for an executable.
345 (gdbtk_load_hash): Stub function to call tcl function
346 download_hash.
347
348 Tue Sep 23 01:29:00 1997 Martin M. Hunt <hunt@cygnus.com>
349
350 * gdbtk.c (gdb_get_mem): Fix compiler warning.
351
352 Sun Sep 21 00:15:00 1997 Martin M. Hunt <hunt@cygnus.com>
353
354 * gdbtk.c (gdb_get_mem): Fix problem with ASCII dump.
355
356 Tue Sep 16 18:07:17 1997 Martin M. Hunt <hunt@cygnus.com>
357
358 * gdbtk.c (gdb_get_mem): New function. Returns
359 a formatted memory dump with optional ASCII dump.
360
361 Mon Sep 8 12:48:50 1997 Ian Lance Taylor <ian@cygnus.com>
362
363 * gdbtk.c: Include ilutk.h if IDE.
364 (gdb_confirm_quit, gdb_force_quit): New static functions.
365 (gdbtk_init): Add Tcl commands gdb_confirm_quit and
366 gdb_force_quit.
367
368 Mon Sep 8 03:05:33 1997 Martin M. Hunt <hunt@cygnus.com>
369
370 * gdbtk.c (gdb_get_breakpoint_info): Now returns the
371 function a breakpoint is in.
372
373 Fri Sep 5 20:23:58 1997 Ian Lance Taylor <ian@cygnus.com>
374
375 * gdbtk.c (gdbtk_init): Call ide_create_exit_command.
376
377 Wed Sep 3 19:39:15 1997 Ian Lance Taylor <ian@cygnus.com>
378
379 * gdbtk.c: Include guitcl.h.
380 (gdbtk_init): Always call ide_initialize_paths. Set the Tcl
381 variable IDE to 1 when using the IDE. Always try using auto path
382 to find main.tcl.
383 * Makefile.in (IDE_CFLAGS_X): Always include libide.
384 (LIBIDE): New variable.
385 (IDE_X): Omit -lide.
386 (IDE_DEPS): Omit libide.
387 * configure.in: Add LIBIDE to TCL_LIBS and CONFIG_DEPS.
388 * configure: Rebuild.
389
390 Mon Aug 25 02:28:55 1997 Keith Seitz <keiths@pizza.cygnus.com>
391
392 * gdbtk.c: (gdb_target_has_inferior) check if inferior_pid is non-zero
393 before assuming that the inferior is running.
394
395 Mon Aug 25 01:06:48 1997 Ian Lance Taylor <ian@cygnus.com>
396
397 * gdbtk.c (gdbtk_start_timer): Pass third argument to setitimer.
398 (gdbtk_stop_timer): Likewise.
399
400 Mon Aug 25 00:23:08 1997 Keith Seitz <keiths@pizza.cygnus.com>
401
402 * gdbtk.c: (gdbtk_init) create new command "gdb_target_has_execution"
403 (gdb_target_has_execution_command) new function
404
405 Sun Aug 24 20:27:22 1997 Ian Lance Taylor <ian@cygnus.com>
406
407 * gdbtk.c (gdb_loc): If there are no symbols, just bail
408 immediately.
409 (tk_command_loop): Print errors encountered while running
410 gdbtk_tcl_preloop.
411
412 Sun Aug 24 13:44:03 1997 Tom Tromey <tromey@cygnus.com>
413
414 * gdbtk.c (gdbtk_init): Run ide_create_build_command.
415
416 Sat Aug 23 21:53:39 1997 Ian Lance Taylor <ian@cygnus.com>
417
418 * gdbtk.c: If CYGWIN32, include <sys/time.h>.
419 (x_fd): Don't define if WINNT.
420 (gdbtk_start_timer, gdbtk_stop_timer): New static functions if
421 CYGWIN32.
422 (gdbtk_wait): Don't set up signal handling if WINNT. If CYGWIN32,
423 call gdbtk_start_timer and gdbtk_stop_timer.
424 (gdbtk_init): Don't set up signal handling or make x_fd
425 asynchronous if CYGWIN32.
426
427 Fri Aug 22 15:23:15 1997 Ian Lance Taylor <ian@cygnus.com>
428
429 * gdbtk.c (error_string_ptr): New static variable.
430 (gdbtk_fputs): If result_ptr is NULL, and error_string_ptr is not
431 NULL, and we're outputting to stderr, append string to
432 error_string_ptr rather than calling gdbtk_tcl_fputs.
433 (call_wrapper): Set up error_string_ptr. Put both error string
434 and normal string in Tcl result.
435
436 * gdbtk.c (gdbtk_init): Don't call ide_run_server_init until after
437 gdb has initialized.
438
439 Thu Aug 21 19:14:38 1997 Ian Lance Taylor <ian@cygnus.com>
440
441 * gdbtk.c: If _WIN32, include winuser.h.
442 (gdbtk_init): If _WIN32, use MessageBox to display an error
443 evaluating main.tcl.
444
445 Thu Aug 21 00:48:00 1997 Martin M. Hunt <hunt@pern.cygnus.com>
446
447 * gdbtk.c (gdbtk_init): Add call to ide_run_server_init().
448 (gdb_cmd): For the load command, don't buffer the I/O.
449
450 Wed Aug 20 11:41:22 1997 Martin M. Hunt <hunt@cygnus.com>
451
452 * gdbtk.c (gdbtk_query): Chaneg free() call to Tcl_Free().
453
454 Tue Aug 19 17:09:19 1997 Ian Lance Taylor <ian@cygnus.com>
455
456 * Makefile.in (TCL_DEPS, TK_DEPS): New variables.
457 (ITCL_DEPS, TIX_DEPS): New variables.
458 (IDE_DEPS): New variable.
459 (CDEPS): Include @CONFIG_DEPS@.
460 * configure.in: Set and substitute CONFIG_DEPS and TIX_DEPS.
461 * configure: Rebuild.
462
463 Sun Aug 17 00:42:11 1997 Martin M. Hunt <hunt@cygnus.com>
464
465 * gdbtk.c (gdb_listfuncs): New function that returns
466 a list of all the functions in a source file.
467
468 Tue Aug 12 16:35:21 1997 Ian Lance Taylor <ian@cygnus.com>
469
470 * Makefile.in (install-only): Install tclIndex if ENABLE_IDE.
471
472 Mon Aug 11 10:43:04 1997 Tom Tromey <tromey@cygnus.com>
473
474 * gdbtk.c (gdbtk_init): Use ide_event_init_from_environment.
475
476 Fri Aug 8 15:59:24 1997 Ian Lance Taylor <ian@cygnus.com>
477
478 * gdbtk.c (gdbtk_init): Change gdbtk_lib_tmp and gdbtk_file to be
479 dynamically allocated, rather than fixed size. Pass "gdbtcl" to
480 ide_initialize_paths to match installed directory name. If IDE,
481 use auto_path to search for main.tcl.
482 * Makefile.in (install-only): If ENABLE_IDE, install from gdbtcl2
483 rather than gdbtcl.
484
485 * gdbtk.c (gdbtk_cleanup): New static function.
486 (gdbtk_init): Add gdbtk_cleanup as a final cleanup. Uncomment
487 call to ide_initialize_paths. If we can't initialize the event
488 system, set GDBTK_IDE to 0 in the Tcl interpreter. Create the
489 ide_window_register and the ide_window commands. Initialize tk,
490 itcl, and tix after initializing the IDE.
491
492 * configure.in (tixdir): Update for cygwin32 case for Tcl 8.0.
493 * configure: Rebuild.
494
495 Fri Aug 8 00:13:32 1997 Martin M. Hunt <hunt@cygnus.com>
496
497 * gdbtk.c (breakpoint_notify): Change buffer size from 100
498 to 256 to avoid memory corruption with very long pathnames.
499
500 Thu Aug 7 14:08:23 1997 Martin M. Hunt <hunt@cygnus.com>
501
502 * configure.in: Change required Tix version to 4.1.8.0 .
503 * configure: Rebuilt.
504
505 Fri Aug 1 15:21:44 1997 Ian Lance Taylor <ian@cygnus.com>
506
507 * gdbtk.c (Tcl_Alloc): Don't provide our own version of this if
508 _WIN32.
509 (Tcl_Realloc, Tcl_Free): Likewise.
510 * configure.in: Check for cygwin32 environment. Define and
511 substitute WIN32LIBS and WIN32LDAPP. Always set configdir to
512 unix; setting it to win was for an old Tcl/Tk configuration
513 scheme.
514 * aclocal.m4 (CY_AC_LOAD_TKCONFIG): Substitute TK_BUILD_INCLUDES.
515 * Makefile.in (TK_CFLAGS): Add @TK_BUILD_INCLUDES@.
516 (WIN32LDAPP, WIN32LIBS): Define.
517 (CLIBS): Add $(WIN32LIBS).
518 (gdb): Use $(WIN32LDAPP).
519 * configure: Rebuild.
520
521 Tue Jul 22 19:45:37 1997 Martin M. Hunt <hunt@cygnus.com>
522
523 * configure.in, aclocal.m4: Another fix to find the
524 correct Tix library name.
525
526 * configure: Rebuilt.
527
528 Mon Jul 21 22:24:07 1997 Martin M. Hunt <hunt@cygnus.com>
529
530 * aclocal.m4: Search for the correct tix library.
531
532 Thu Jul 10 00:02:41 1997 Martin M. Hunt <hunt@cygnus.com>
533
534 * Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and
535 IDE configuration information.
536
537 * gdbtk.c (breakpoint_notify): Send address, linenumber and
538 filename when a breakpoint is set. Avoids call to bp_info.
539 (gdbtk_init): Call Tcl_FindExecutable(). Add code to handle
540 Itcl, Tix and IDE initialization.
541
542 * configure: Regenerated.
543
544 Fri Jun 13 10:28:09 1997 Fred Fish <fnf@cygnus.com>
545
546 * gdbtk.c (gdbtk_init): Make truth value test explicit.
547 Remove unused static variable "Gdbtk_Library".
548
549 Sat Jun 7 02:34:19 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
550
551 * gdbtk.c (gdb_get_breakpoint_info): Add string for new
552 enumeration del_at_next_stop to bpdisp array.
553
554 Tue Jun 3 15:46:51 1997 Tom Tromey <tromey@cygnus.com>
555
556 * Makefile.in (LIB_RUNTIME_DIR): New variable.
557
558 Wed May 7 19:10:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
559
560 * gdbtk.c (wrapped_call): New function - make actual call to tk
561 worker function.
562 (call_wrapper): Rewrite to use top.c:catch_errors.
563
564 * gdbtk.c (gdb_stop): If No target_stop set quit flag and hope for
565 best.
566
567 Mon Apr 21 14:00:08 1997 Doug Evans <dje@canuck.cygnus.com>
568
569 * gdbtk.c (gdb_disassemble): Store endian-ness in `di'.
570
571 Wed Apr 16 12:33:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
572
573 * Makefile.in (install-only): Make list of gdbtcl files to install
574 explicit - was picking up files such as ChangeLog etc.
575 (install-only): Don't blindly create the directory.
576
577 Tue Apr 1 15:04:21 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
578
579 * configure.in (gdbtcl): Create soft-link for gdbtcl/ directory
580 instead of gdbtk.tcl.
581
582 Fri Mar 28 17:04:02 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
583
584 * Makefile.in (gdbtk.o): look for GDBTK_LIBRARY in $(datadir) by
585 default, not $(srcdir).
586
587 Wed Mar 19 15:16:17 1997 Martin M. Hunt <hunt@onions.cygnus.com>
588
589 * Makefile.in: Install gdbtcl dir instead of gdbtk.tcl.
590
591 * gdbtk.c: Added some ifdefs for Windows. Changed GDBTK_FILENAME
592 to GDBTK_LIBRARY, which is now a path to search.
593 (gdb_path_conv): New function. Convert Cygwin32 pathname to
594 DOS-style pathname.
595
596 * {aclocal.m4,configure.in}: Changes for Windows builds.
597
598 * configure: Rebuilt.
599
600 Fri Mar 14 10:01:29 1997 Tom Tromey <tromey@cygnus.com>
601
602 * configure: Regenerated.
603 * configure.in (LIBS): Re-reverse order of TCL_LIBS and TK_LIBS.
604
605 Wed Mar 12 14:29:52 1997 Tom Tromey <tromey@cygnus.com>
606
607 * gdbtk.c (x_event): Use Tcl_DoOneEvent, TCL_DONT_WAIT,
608 TCL_ALL_EVENTS.
609
610 * configure: Regenerated.
611 * configure.in (ENABLE_GDBTK): Put TCL_LIBS after TK_LIBS in
612 LIBS.
613
614 Mon Feb 10 13:50:53 1997 Stu Grossman (grossman@critters.cygnus.com)
615
616 * gdbtk.c (call_wrapper): Clear running_now if an error occurs.
617
618 Wed Dec 11 18:51:35 1996 Mark Alexander <marka@cygnus.com>
619
620 * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
621
622 Tue Nov 19 09:26:14 1996 Tom Tromey <tromey@cygnus.com>
623
624 * gdbtk.c (gdbtk_readline): Fix memory leak.
625
626 Mon Nov 18 23:43:05 1996 Tom Tromey <tromey@cygnus.com>
627
628 Fixes for Tcl 7.6 / Tk 4.2:
629 * gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
630 Remove old fileselect code.
631 * gdbtk.c (Tcl_Alloc): Rename from Tcl_Malloc.
632
633 Fri Sep 27 10:25:30 1996 Fred Fish <fnf@cygnus.com>
634
635 * gdbtk.tcl (create_copyright_window): Increase timeout from
636 15 seconds to 30 seconds.
637
638 Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
639
640 * configure configure.in: Add host *windows* to list of hosts
641 that don't support GDBtk.
642
643 Fri Aug 23 00:44:57 1996 Fred Fish <fnf@cygnus.com>
644
645 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
646 gracefully degrade to using command line interface if none is
647 found.
648
649 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
650
651 * Makefile.in (LIB_INSTALL_DIR): New macro.
652 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
653
654 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
655
656 * gdbtk.c (mainWindow): Deleted.
657 (cleanup_init): Don't destroy main window.
658 (gdbtk_init): Main window now created by Tk_Init.
659
660 * configure.in: Most X checks now handled automatically by Tk.
661 Use new macros to find Tcl/Tk.
662 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
663 * config.in, configure: Regenerated.
664
665 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
666 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
667
668 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
669
670 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
671
672 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
673
674 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
675
676 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
677
678 * gdbtk.c (null_routine): Ditto.
679 (gdbtk_flush): Ditto.
680 (gdbtk_fputs): Ditto.
681 (gdbtk_query): Ditto.
682 (gdbtk_readline): Ditto.
683 (gdbtk_readline_end): Ditto.
684 (gdb_get_breakpoint_list): Ditto.
685 (gdb_get_breakpoint_info): Ditto.
686 (breakpoint_notify): Ditto.
687 (gdbtk_create_breakpoint): Ditto.
688 (gdbtk_delete_breakpoint): Ditto.
689 (gdbtk_modify_breakpoint): Ditto.
690 (gdb_loc): Ditto.
691 (gdb_eval): Ditto.
692 (gdb_sourcelines): Ditto.
693 (map_arg_registers): Ditto.
694 (get_register_name): Ditto.
695 (gdb_regnames): Ditto.
696 (get_register): Ditto.
697 (gdb_fetch_registers): Ditto.
698 (register_changed_p): Ditto.
699 (gdb_changed_register_list): Ditto.
700 (gdb_cmd): Ditto.
701 (call_wrapper): Ditto.
702 (gdb_listfiles): Ditto.
703 (gdb_stop): Ditto.
704 (gdbtk_dis_asm_read_memory): Ditto.
705 (compare_lines): Ditto.
706 (gdb_disassemble): Ditto.
707 (tk_command): Ditto.
708 (cleanup_init): Ditto.
709 (gdbtk_interactive): Ditto.
710 (x_event): Ditto.
711 (gdbtk_wait): Ditto.
712 (gdbtk_call_command): Ditto.
713 (tk_command_loop): Ditto.
714 (gdbtk_init): Ditto.
715
716 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
717
718 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
719
720 * gdbtk.tcl (files_command): Reorder the binding tags for
721 the listbox widget to avoid referencing the listbox after
722 the containing widget has been destroyed by the action of
723 a previous binding.
724
725 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
726
727 * gdbtk.tcl (delete_expr): Unset corresponding element of
728 expr_update_list when destroying an expression.
729 (create_expr_window): Initialize expr_num, delete_expr_num,
730 and expr_update_list here when each new expression window
731 is created, rather than once at startup.
732
733 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
734
735 * gdbtk.c (gdb_disassemble): Setup di.mach from
736 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
737
738 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
739
740 * gdbtk.tcl (create_register_windows): Include missing '$'s.
741 Add global declarations for various reg_format_* variables.
742 * gdbtk.tcl (populate_register_window): Make initial window one
743 line taller to account for new column header line.
744
745 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
746
747 * gdbtk.c (get_register): Support for printing raw formats.
748 * gdbtk.tcl: Add hint for using debug_interface.
749 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
750 Enclose arg in braces for consistency.
751 (create_registers_window, populate_reg_window, update_registers):
752 Major rewrite to support displaying multiple formats in the register
753 window.
754 (init_reg_info): New function.
755 (recompute_reg_display_list): Reset reg_display_list, start
756 register display lines at line 2.
757
758 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
759
760 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
761 avoid backing up over prompt. At every input, make sure insert
762 point is at least after command start, handle control-u to delete
763 current input line.
764 (tclsh): Handle backspace to avoid backing up over prompt. Handle
765 control-u to delete current input line.
766
767 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
768
769 * configure.in: disable gdbtk for *cygwin32* hosted compiles
770 * configure: regenerated with autoconf 2.8
771
772 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
773
774 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
775 New functions.
776 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
777 (gdbtk_init): Set readline_begin_hook, readline_hook,
778 and readline_end_hook.
779 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
780 gdbtk_tcl_readline_end): New functions.
781 (tclsh): Pack scroll bar on right side of window, not left.
782
783 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
784
785 * gdbtk.tcl (create_command_window): Change a misspelled "get"
786 to the intended "cget".
787 (delete_line): Fix so it deletes the current line at the
788 insertion cursor.
789
790 Thu May 16 19:20:29 1996 Fred Fish <fnf@cygnus.com>
791
792 * gdbtk.tcl (gdb_prompt): Set this early on.
793 (create_command_window): Use gdb_prompt rather than "(gdb) ".
794 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
795 (tclsh): If an evaluation window already exists, just bring it
796 to the front instead of trying to create another.
797 * gdbtk.c (tk_command_loop): New function.
798 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
799
800 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
801
802 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
803 implement a tcl evaluation window for gdbtk maintainers to use.
804
805 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
806
807 * gdbtk.tcl (files_command): Correctly insert list of files into
808 listbox widget.
809
810 * gdbtk.tcl (files_command): listbox command no longer accepts
811 -geometry.
812
813 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
814
815 * gdbtk.tcl (create_command_window): If command window's buffer
816 is disabled, don't execute any of the key bindings.
817
818 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
819
820 * gdbtk.c (tk_command): Catch case where no argument is given
821 since this will cause the tcl interpreter to dump core.
822
823 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
824
825 * gdbtk.c: Fix a couple of misspellings.
826
827 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
828
829 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
830 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
831 (file_popup_menu): Delete, never used.
832 (listing_window_popup): Rename from listing_window_button_1,
833 remove breakpoint toggling code.
834 (toggle_breakpoint): New procedure.
835 (create_file_win): Bind popup menu to button 2, toggle breakpoints
836 with button 1 in breakpoint area, add display of tagged areas if
837 debugging on.
838
839 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
840
841 * gdbtk.c (running_now): New global variable.
842 (gdb_cmd): Test it before executing any command.
843 (gdbtk_call_command): Set it when inferior is running.
844 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
845 disable interaction with command window's text appropriately.
846
847 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
848
849 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
850 some versions of the kernel don't support it.
851
852 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
853
854 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
855 double-clicking will work again.
856 (create_asm_win): Put "break" at end of all B1 bindings.
857 (create_file_win): Lower "sel" tag, don't raise it.
858 (ensure_line_visible): New proc.
859 (update_listing, update_assembly): Use it.
860 (create_copyright_window): Destroy window on Leave event.
861 (create_command_window): Put "break" at end of all B2 bindings.
862
863 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
864
865 * gdbtk.tcl, gdbtk.c: Updated copyrights.
866
867 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
868 greater.
869 * configure: Rebuilt.
870
871 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
872
873 * gdbtk.c (gdb_disassemble): Pass fprintf_unfiltered to
874 INIT_DISASSEMBLE_INFO.
875
876 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
877
878 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
879 (add_expr): Changes from create_expr_window.
880 (create_command_window): Set focus.
881 (delete_expr): Rewrote.
882 (expr_update_button): New proc.
883 (add_expr): Put bindings on FocusIn, FocusOut.
884 Don't allow .file_popup to be torn off.
885
886 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
887
888 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
889 (update_listing): Use lassign. Use "see" to scroll. Don't need
890 screen_top, screen_bot, screen_height.
891 (update_assembly): Use "see" to scroll.
892 (textscrollproc): Removed.
893 (create_file_win): Don't use textscrollproc.
894 (asmscrollproc): Removed.
895 (create_asm_window): Don't use asmscrollproc.
896 (create_asm_win): Ditto.
897 (screen_height, screen_top, screen_bot): Removed.
898 (run_editor): New proc.
899 (build_framework): Use it.
900 (create_file_win, create_source_window): Don't use textscrollproc.
901 (create_breakpoints_window): Set -xscrollcommand on canvas.
902 (not_implemented_yet): Default button is 0.
903 (delete_char): Don't use tk_textBackspace.
904 (create_command_window): Allow Tk bindings to fire after deleting
905 character.
906 (create_command_window): Make Delete delete left, not right.
907
908 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
909
910 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
911
912 Changes in sync with expect:
913 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
914 CY_AC_PATH_TK.
915 * aclocal.m4: Replaced with version from expect.
916 * configure: Regenerated.
917
918 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
919
920 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
921 gdbtk_tcl_flush): Use "see", not "yview".
922 (gdbtk_tcl_query): Use questhead bitmap.
923 various: Always wrap condition of 'if' in {...}.
924 (add_breakpoint_frame): Set -value on radiobuttons.
925 (lassign): New proc.
926 (add_breakpoint_frame): Use lassign, not series of assignments.
927 (decr): Made faster.
928 (interactive_cmd): Use "see", not "yview".
929 (not_implemented_yet): Use warning bitmap.
930 (update_expr): Don't allow $expr to be evalled by Tcl.
931 (create_expr_window): Don't use "focus".
932 (delete_char, delete_line): Define globally.
933 (delete_line, delete_char, create_command_window, update_autocmd,
934 build_framework, create_asm_win, create_file_win): Use "see", not
935 "yview".
936 (create_copyright_window, center_window, bind_widget_after_class):
937 New procs.
938 (FSBox,create_command_window, create_autocmd_window): Binding
939 changes for Tk4.
940 (textscrollproc): Define globally.
941 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
942 Home, End, Up, and Down are all defined by Tk.
943 (apply_filespec): Use error bitmap in dialog.
944 (files_command): Don't use tk_listboxSingleSelect.
945 (files_command): Don't use "uniq" to remove duplicates from a
946 list.
947 (update_assembly): Use lassign.
948 (create_asm_win): Removed redundant bindings.
949 (listing_window_button_1, file_popup_menu): Use tk_popup.
950 (ButtonRelease-1 binding): Just remove tag from window; rest
951 handled by Tk.
952
953 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
954 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
955 (gdbtk_call_command): Ditto.
956
957 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
958
959 * configure configure.in: Make --enable-gdbtk be the default.
960
961 Thu Dec 28 15:10:49 1995 Stan Shebs <shebs@andros.cygnus.com>
962
963 * README.GDBTK: Polish introductory paragraph.
964
965 Mon Oct 16 11:27:06 1995 Stu Grossman (grossman@cygnus.com)
966
967 * gdbtk.c (gdb_disassemble): Use fprintf_unfiltered instead of
968 fprintf_filtered.
969
970 Tue Oct 10 15:26:39 1995 Fred Fish <fnf@cygnus.com>
971
972 * README.GDBTK: Updated for version 4.15.
973
974 Sat Aug 19 17:20:22 1995 Michael Tiemann <tiemann@axon.cygnus.com>
975
976 * gdbtk.tcl: ENABLE comes back as "1" or "0", not "enable" or
977 "disable".
978 Also, wire up the breakpoint window so that it can be demo'd.
979
980 Tue Aug 1 11:44:53 1995 J.T. Conklin <jtc@rtl.cygnus.com>
981
982 * gdbtk.c: Include "gdb_string.h" instead of <string.h>.
983
984 Tue Jun 20 10:19:40 1995 Stu Grossman (grossman@cygnus.com)
985
986 * gdbtk.c: Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.
987
988 * gdbtk.tcl (add_breakpoint_frame): Add more fields.
989 * (create_file_win create_asm_win build_framework): Create null
990 bindings for meta keys to keep window from dropping down to
991 insertion point when meta is pressed by itself. New bindings:
992 Up/Down - Scroll up/down one line at a time
993 Next/Prior - Scroll up/down one page at a time
994 Home/End - Warp to current pc/end of file
995 * (build_framework): Turn on breakpoint menu.
996 * (create_command_window): Implement tab completion. Add binding
997 for ^C to stop target.
998
999 Fri May 19 06:15:40 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1000
1001 * gdbtk.c: Conditionalize use of stdarg rather than varargs on
1002 ANSI_PROTOTYPES not __STDC__; it must match the definition of
1003 PARAMS.
1004
1005 Thu May 18 15:58:46 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1006
1007 * gdbtk.c (gdbtk_query): Use stdarg.h macros when compiling with
1008 an ANSI compiler.
1009
1010 Sat Apr 15 13:52:24 1995 Stan Shebs <shebs@andros.cygnus.com>
1011
1012 * gdbtk.c (gdb_disassemble): Read from inferior if connected
1013 to a VxWorks target.
1014
1015 Fri Apr 14 10:18:20 1995 Stu Grossman (grossman@cygnus.com)
1016
1017 * README.GDBTK: New file. Contains the obvious.
1018
1019 Tue Apr 11 11:07:12 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1020
1021 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
1022 F_SETOWN is, use that.
1023
1024 Thu Apr 6 17:00:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1025
1026 * Makefile.in (X11_INCLUDES): Define as empty.
1027 (X11_CFLAGS): Define as including $(X11_INCLUDES).
1028 (X11_LIB_SWITCHES): Define as empty.
1029 (X11_LIBS): Define as -lX11.
1030
1031 * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
1032 and --x-libraries switches, setting the X11_INCLUDES and
1033 X11_LIB_SWITCHES respectively. Instead of using a hardcoded -lX11
1034 in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
1035
1036 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
1037 it. This means that the stop button doesn't work, but is better
1038 than nothing.
1039
1040 Wed Mar 29 17:09:29 1995 Stu Grossman (grossman@cygnus.com)
1041
1042 * Makefile.in (gdbtk.o): Use X11_CFLAGS to provide alternate
1043 locations (per-host) for X11 include files.
1044 * config/pa/hppahpux.mh (XM_CLIBS): Add -L/usr/lib/X11R5 to force
1045 the use of R5 libs.
1046 (X11_CFLAGS): Add this to indicate the locs
1047 of the R5 include files.
1048
1049 Wed Mar 8 16:12:21 1995 Stu Grossman (grossman@cygnus.com)
1050
1051 * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
1052 type is not bp_breakpoint.
1053
1054 Tue Feb 14 17:16:41 1995 Stu Grossman (grossman@cygnus.com)
1055
1056 * gdbtk.c: Ditto.
1057 * gdbtk.c: General cleanups, get rid of unused variables. Redo
1058 handling of stdout/stderr to just return output as the result of
1059 the tcl command that caused the output. Cleanup -Wall stuff.
1060 * (breakpoint_notify): Now returns just action and breakpoint
1061 number.
1062 * (gdb_get_breakpoint_list): New routine. Does the obvious.
1063 * (gdb_get_breakpoint_info): Mostly derived from the old
1064 breakpoint_notify, but returns lots more info.
1065 * (dsprintf_append_element): Helper routine, works like printf,
1066 but appends a tcl element onto the specified DString. Good for
1067 building up lists as return values.
1068 * (gdbtk_enable/disable_breakpoint): Go away. Replaced with
1069 gdbtk_modify_breakpoint.
1070 * (*many routines*): Use new result protocol.
1071 * (call_wrapper): Make sure that recursive calls don't trash results.
1072 * gdbtk.tcl: New windows, autocmd, and breakpoints.
1073 * (gdbtk_tcl_fputs): Don't use $current_output_win redirection
1074 anymore. It's not needed (in fact, this routine may not be needed
1075 anymore).
1076 * (gdbtk_tcl_breakpoint): Change to reflect new breakpoint
1077 notification protocol.
1078 * (gdbtk_tcl_busy gdbtk_tcl_idle): Straighten out buttons, remove
1079 catches.
1080 * (interactive_cmd): Use this wrapper around button invocations
1081 of many commands. This will catch errors and put the results into
1082 the command window. It also updates all the other windows.
1083 * Also, change reliefs of most things to sunken. This actually
1084 looks better.
1085 * (create_file_win): Fix margin binding to allow breakpoints to
1086 work again.
1087 * (create_asm_win): Use return value of gdb_disassemble instead
1088 of implicit I/O to the command window.
1089 * (create_command_window): Use new result protocol to get output
1090 from commands.
1091
1092 Sun Feb 5 20:32:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1093
1094 * gdbtk.c (gdb_disassemble): Deference pointer to function before
1095 calling it (pre-ANSI compilers generally require this).
1096
1097 Fri Feb 3 11:19:20 1995 Stu Grossman (grossman@cygnus.com)
1098
1099 * gdbtk.c (gdb_disassemble): Get rid of
1100 dis_asm_read_memory_hook. We can now call the disassemblers
1101 directly and have no need for this hook anymore.
1102
1103 Mon Jan 30 17:34:24 1995 Stu Grossman (grossman@cygnus.com)
1104
1105 * gdbtk.tcl (create_file_win): Disable old popup menu for source
1106 window.
1107
1108 Wed Jan 25 18:23:46 1995 Stu Grossman (grossman@cygnus.com)
1109
1110 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
1111 found.
1112 * gdbtk.tcl: Initialize expr_update_list() to prevent errors when
1113 popping up expression window for the first time.
1114
1115 Tue Jan 24 12:10:28 1995 Stu Grossman (grossman@cygnus.com)
1116
1117 * gdbtk.tcl (create_registers_window): Work around a radiobutton
1118 widget bug to make Options|Natural button work.
1119
1120 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
1121 g++ caused by out-of-order pc's.
1122 * gdbtk.tcl (files_command): Remove duplicate file names. Also,
1123 add scrollbar.
1124
1125 Mon Jan 23 17:21:09 1995 Stu Grossman (grossman@cygnus.com)
1126
1127 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
1128 doc!
1129
1130 Thu Jan 12 15:02:40 1995 Stu Grossman (grossman@cygnus.com)
1131
1132 * gdbtk.c, gdbtk.tcl: Update/add copyright.
1133 * gdbtk.tcl (build_framework): Several fixes for filespec widget,
1134 including dismiss button, and better error handling.
1135 * (create_command_win): Bind button 2 to retrieve selection.
1136
1137 Wed Jan 11 17:06:55 1995 Stu Grossman (grossman@cygnus.com)
1138
1139 * gdbtk.tcl: Add button to control mixed source disassembly.
1140 Use text widgets in expr window. The give me more control over
1141 layout.
1142 Add auto-updating of exprs in expression window.
1143 Handle expressions out of scope a bit better.
1144 Make selected window pop up to the top when invoked via the
1145 menubar.
1146 Make copyright message have raised relief.
1147
1148 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
1149 during startup.
1150
1151 Thu Jan 5 17:38:29 1995 Stu Grossman (grossman@cygnus.com)
1152
1153 * gdbtk.c (finish_saving_output): Don't do anything if not saving
1154 output.
1155 * (breakpoint_notify): Don't send null filename to tcl.
1156 * (gdb_eval): New tcl command to eval an expression.
1157 * (gdb_disassemble): New tcl command to do disassembly. This
1158 allows tcl code to choose between exec file and target memeory,
1159 and can also do mixed source and assembly.
1160 * (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
1161 that more of the environment is set up. Also, create link between
1162 gdb and tcl vars disassemble{-_}from{-_}exec.
1163
1164 * gdbtk.tcl: New expression window support.
1165 * Make assembly window be 80 columns wide.
1166 * Use new disassembly method. Add menu items to select
1167 disassembly from exec file or target.
1168 * Change View menubar item to Options.
1169
1170 * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
1171 since they don't exist yet.
1172
1173 * Pop up a copyright window on startup.
1174
1175 Wed Jan 4 19:49:10 1995 Stan Shebs <shebs@andros.cygnus.com>
1176
1177 * gdbtk.tcl (build_framework): Add standard commands menu, more
1178 windows to standard windows menu.
1179 (not_implemented_yet): Clarify message.
1180
1181 Fri Dec 30 15:49:00 1994 Stan Shebs <shebs@andros.cygnus.com>
1182
1183 * gdbtk.tcl (FSBox): New proc, File Selection Box code from exmh.
1184 (not_implemented_yet): New proc.
1185 (build_framework): Add various file commands to file menu.
1186
1187 Fri Dec 23 16:18:50 1994 Stu Grossman (grossman@cygnus.com)
1188
1189 * gdbtk.c (gdbtk_wait gdbtk_init): Portability improvements for
1190 SIGIO handling.
1191
1192 Mon Dec 19 09:55:47 1994 Stu Grossman (grossman@cygnus.com)
1193
1194 * gdbtk.tcl (update_assembly): Force update to make sure that pc
1195 is visible when creating new assembly windows.
1196
1197 Sun Dec 18 23:31:20 1994 Stu Grossman (grossman@cygnus.com)
1198
1199 * gdbtk.c (gdbtk_wait gdbtk_init): Use different method of
1200 enabling I/O interrupts for SVR4 (streams).
1201 * (start_saving_output save_output get_saved_output
1202 finish_saving_output flush_holdbuf gdbtk_flush gdbtk_fputs
1203 gdbtk_init):
1204 Totally revamp to use TCLs dynamic string functions. Also, quote
1205 all data passed back to TCL to prevent errors with unmatched
1206 braces, odd characters, etc... This fixes several wierd problems
1207 with outputting strings containing unmatched braces.
1208 * (breakpoint_notify gdb_loc): Use long hex format to output
1209 addresses of breakpoints and PCs. This fixes some Alpha problems.
1210 * (breakpoint_notify): Add stream arg to call to gdbtk_fputs.
1211 * (gdb_listfiles): Also, go through the symtabs when looking for
1212 files. This makes xcoff work (sort of), but probably breaks
1213 something else.
1214 * (gdb_stop): Return TCL_OK instead of nothing. This fixes odd
1215 TCL errors when hitting stop button.
1216 * (tk_command): Don't pass interp->result on to Tcl_{Var}Eval, as
1217 that will trash the result. strdup the result instead and pass
1218 that on. Improve error handling as well.
1219
1220 * gdbtk.tcl (gdbtk_tcl_flush): Use global def of
1221 current_output_win. Makes flushing actually work!
1222 * (asm_win_name create_asm_win update_assembly): Bunch of fixes
1223 to make assembly windows stop flashing when loading a new file.
1224 * (gdbtk_tcl_busy gdbtk_tcl_idle): Use catch to prevent gdb_cmd
1225 errors from losing control.
1226 * (create_source_window): Add source file selection to View menu.
1227 * (create_command_window (<Key-Return> binding): Quote text fed
1228 into gdb_cmd to prevent eval errors.
1229
1230 Thu Dec 15 16:40:10 1994 Stu Grossman (grossman@cygnus.com)
1231
1232 * gdbtk.c: Improve mechanism for capturing output values.
1233 (full_filename): Remove.
1234 (gdb_cmd call_wrapper gdbtk_init): Protect all calls from tcl land
1235 with call_wrapper. This prevents longjmps (usually via error())
1236 from jumping out of tcl/tk and leaving things in an indeterminate
1237 state.
1238 (gdbtk_fputs): Differentiate stdout from stderr when passing text
1239 into tcl land.
1240 * gdbtk.tcl: New view option to disable line numbers. Put catch
1241 around most uses of gdb_cmd. Add update button to reg config
1242 window. Stop doing immediate updates when selecting registers.
1243 Change register view values into checkbuttons.
1244
1245 Mon Dec 12 16:59:29 1994 Stu Grossman (grossman@cygnus.com)
1246
1247 * gdbtk.tcl (reg_config_menu create_registers_window
1248 recompute_reg_display_list): Use array instead of individual vars
1249 for register display list.
1250 * (recompute_reg_display_list update_registers): Fix bug with not
1251 displaying all registers.
1252
1253 Mon Dec 12 12:22:21 1994 Stu Grossman (grossman@cygnus.com)
1254
1255 * gdbtk.c: New tcl commands: gdb_fetch_registers,
1256 gdb_changed_register_list, and gdb_regnames.
1257 * gdbtk.tcl: Use monochrome color model for now.
1258 * (delete_breakpoint_tag create_file_win): Add breakdot support.
1259 * (create_file_win create_asm_win update_listing build_framework
1260 create_source_window create_command_window): Re-org window
1261 creation to give all windows consistent look and feel.
1262 * (update_listing update_asm): Change pc pointer to '->'.
1263 * (registers_command reg_config_menu create_registers_window
1264 populate_reg_window update_registers): Revamp register window.
1265 Allow selection of registers to be displayed. Highlight changed
1266 registers.
1267
1268 Mon Nov 28 09:17:20 1994 Stu Grossman (grossman@cygnus.com)
1269
1270 * gdbtk.tcl (build_framework): Fix bug with setting window titles.
1271
1272 * gdbtk.tcl (build_framework): Add "Report bug" to help menu.
1273
1274 * gdbtk.tcl: Re-arrange windows using new, consistent layout. Clean
1275 up lots of code and centralize framework initialization.
1276
1277 Wed Nov 16 15:28:29 1994 Rob Savoye (rob@cygnus.com)
1278
1279 * Makefile.in: Fix the test for installing gdbtk.
1280
1281 Mon Nov 14 08:51:29 1994 Stu Grossman (grossman@cygnus.com)
1282
1283 * Makefile.in: Install gdbtk.tcl.
1284 * configure.in: Add ENABLE_GDBTK flag.
1285 * gdbtk.c (gdb_sourcelines): Returns list of source lines
1286 containing code. (gdb_regnames): Returns list of register names.
1287
1288 Thu Nov 3 14:25:24 1994 Stu Grossman (grossman@cygnus.com)
1289
1290 * gdbtk.c (gdb_stop): Switch to target_stop().
1291
1292 Tue Nov 1 16:41:12 1994 Stu Grossman (grossman@cygnus.com)
1293
1294 * Makefile.in: Use $(objdir)/tcl and $(objdir)/tk if they are
1295 available.
1296 * configure.in (ENABLE_CLIBS): Use $(TCL) and $(TK) instead of
1297 -ltcl and -ltk.
1298 * gdbtk.c: Get rid of lots of unnecessary #includes.
1299 * (gdbtk_init): Use ConnectionNumber macro instead of referencing
1300 Display structure directly.
1301 * gdbtk.tcl: Change exit button to quit button.
1302
1303 Wed Oct 26 15:41:07 1994 Stu Grossman (grossman@cygnus.com)
1304
1305 * gdbtk.c: Change sense and name of no_windows variable. Now
1306 called use_windows, and defaults to off (for compatibility).
1307
1308 Thu Oct 20 17:35:45 1994 Stu Grossman (grossman@cygnus.com)
1309
1310 * gdbtk.c (gdb_cmd): Force GUI into idle mode when errors occur.
1311 * (gdb_stop): New tcl command to stop the target process.
1312 * (x_event, gdbtk_wait): Allow GUI to interrupt gdb out of target
1313 waits.
1314 * (gdbtk_call_command): Wrapper around command processing to
1315 alert GUI of target state changes.
1316 * (gdbtk_init): Get the fd of X server for doing async
1317 notification of X events (via x_event). Setup new hooks.
1318 * gdbtk.tcl: Add scrollbars to assembly and command windows.
1319 * Change window foreground & background colors.
1320 * Create margin tag for breakpoints in source and assembly windows.
1321 * Add new routines to be invoked when target state changes to/from
1322 idle.
1323 * Add start of expression window.
1324 * Change bindings of mouse button 1 in assembly and source window
1325 to just set or clear breakpoints when in the margin tag.
1326 * Change shape of register window to be more vertical to better
1327 reflect its contents.
1328 * Add stop button.
1329 * Cleanup some code around command window bindings.
1330
1331 Sat Sep 17 17:05:14 1994 Stu Grossman (grossman@cygnus.com)
1332
1333 * gdbtk.tcl: Let ^U delete lines in the command window.
1334
1335 Fri Sep 16 15:40:34 1994 Stu Grossman (grossman@cygnus.com)
1336
1337 * gdbtk.c: Replace calls to full_filename with symtab_to_filename.
1338 * gdbtk.tcl: New routine pc_to_line replaces in line code. New
1339 routine decr replaces in line code.
1340 * (create_file_win): Use catch to handle open failures more
1341 elegantly. Also, create special window to display file open
1342 failure message. Move opening of file prior to creation of text
1343 widget.
1344 * (create_asm_win): Add PC as argument. We now base disassembly
1345 on PC instead of function name, since function names can be
1346 ambiguous (usually seen with shared libs). Also, use catch to
1347 simplify code where we don't care about failures.
1348
1349 Wed Sep 14 00:55:26 1994 Stu Grossman (grossman@cygnus.com)
1350
1351 * gdbtk.tcl: Add ref counts to breakpoint tags.
1352 * Put quotes around function name in disassemble command to better
1353 handle assembler names containing `.'.
1354 * Make pclist element 0 be filler to avoid off-by-one problem with
1355 line numbers.
1356 * Set names of top-level windows.
1357 * Add register display window.
1358 * Add PC to label of assembly window.
1359
1360 Tue Sep 13 08:59:04 1994 Stu Grossman (grossman@cygnus.com)
1361
1362 * gdbtk.c (gdbtk_flush gdbtk_fputs): Buffer up output to make
1363 disassembly more efficient.
1364 * (breakpoint_notify): Include pc in gdbtk_tcl_breakpoint
1365 callback.
1366 * (gdb_loc): Include pc in return value. Also, return function
1367 name if arg was specified.
1368 * (gdb_cmd_stub): Call gdb_flush to drain internal GDB buffers
1369 after command completes.
1370 * (gdbtk_init): Improve error handling.
1371
1372 * gdbtk.tcl: Add lots of comments. Clean up code.
1373 * (gdbtk_tcl_fputs): Make output window redirectable.
1374 * Add assembly window, and breapoint support.
1375 * Make button 1 in margin toggle breakpoints.
1376 * Use stippling to indicate breakpoint disabling.
1377
1378 Fri Sep 2 19:11:40 1994 Stu Grossman (grossman@cygnus.com)
1379
1380 * configure.in: Don't symlink to gdbtk.tcl if it's already there.
1381
1382 Thu Jul 28 14:37:36 1994 Stu Grossman (grossman@cygnus.com)
1383
1384 Support for TK GUI.
1385 * Makefile.in: Add rule for gdbtk.o.
1386 * configure.in: Add support for --enable-gdbtk.
1387 * gdbtk.c: New file. Contains support routines for TK interface.
1388 * gdbtk.tcl: New file. Implements GUI policy.
1389
1390 \f
1391 Local Variables:
1392 mode: indented-text
1393 left-margin: 8
1394 fill-column: 74
1395 version-control: never
1396 End:
This page took 0.235334 seconds and 4 git commands to generate.