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