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