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