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