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