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