Add FIXME explaining include problem.
[deliverable/binutils-gdb.git] / gdb / tui / ChangeLog
1 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2
3 * tui-hooks.c: Add FIXME to explain true/false problem. Update
4 copyright.
5 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
6 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
7 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
8 * tuiWin.c: Ditto.
9
10 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11 * tui-hooks.c: Include <curses.h> before "bfd.h".
12 * tui.c: Likewise.
13 * tuiCommand.c: Likewise.
14 * tuiData.c: Likewise.
15 * tuiDataWin.c: Likewise.
16 * tuiDisassem.c: Likewise.
17 * tuiGeneralWin.c: Likewise.
18 * tuiIO.c: Likewise.
19 * tuiLayout.c: Likewise.
20 * tuiRegs.c: Likewise.
21 * tuiSource.c: Likewise.
22 * tuiSourceWin.c: Likewise.
23 * tuiStack.c: Likewise.
24 * tuiWin.c: Likewise.
25
26 2002-02-01 Andrew Cagney <ac131313@redhat.com>
27
28 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
29
30 2001-10-20 Andrew Cagney <ac131313@redhat.com>
31
32 * tuiDisassem.c: Include "value.h".
33 * tuiSourceWin.c: Ditto.
34
35 2001-09-28 Tom Tromey <tromey@redhat.com>
36
37 * tuiLayout.h (tui_set_layout): Don't declare.
38 * tui.h (tui_vAddWinToLayout): Don't declare.
39 (tui_vSetLayoutTo): Likewise.
40 (tui_set_layout): Declare.
41
42 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
43
44 * tuiSourceWin.c: Use disp_del instead of del.
45
46 * tuiSource.c: Use disp_del instead of del.
47
48 * tuiDisassem.c: Use disp_del instead of del.
49
50 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
51
52 * tui.c (tui_enable): Remove call to terminal_save_ours().
53 (tui_disable): Likewise.
54
55 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
56
57 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
58 set/show configuration variables.
59 (show_tui_cmd): New function.
60 (set_tui_cmd): New function.
61
62 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
63
64 * tui-hooks.c: New file, gdb hooks for tui.
65 * tui-out.c: New file, image copied from cli-out.c.
66 (tui_field_int): Identify "line" fields and keep track of them.
67 (tui_field_string): Likewise for "file".
68 (tui_out_new): Use flags = 0 to avoid printing the sources.
69
70 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
71
72 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
73 leave it in the command window.
74 (tui_redisplay_readline): Save cursor position to restore the
75 cursor after we go back from background.
76 * tuiData.h (TuiCommandInfo): Add start_line member.
77
78 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
79
80 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
81 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
82 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
83 to add_set_enum_cmd.
84 * tui.c (tui_show_source): New function.
85 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
86 (tui_switch_mode): Prep or deprep readline terminal;
87 make sure the \n we return does not redo the last command.
88 * tui.h (tui_show_source): Declare.
89 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
90 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
91
92 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
93
94 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
95 if SIGCONT is defined.
96 (tui_cont_sig): New function when SIGCONT is defined.
97 (tui_setup_io): Save tty setting to restore by SIGCONT.
98
99 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
100
101 * tui.h (tui_show_assembly): Declare.
102 (tui_is_window_visible): Declare.
103 * tui.c (tui_show_assembly): New function.
104 (tui_is_window_visible): New function.
105 (tui_get_command_dimension): New function.
106
107 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
108
109 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
110
111 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
112
113 * tui-file.c (tui_file_fputs): Use tui_puts.
114
115 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
116
117 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
118 * tuiStack.h (tuiGetLocatorFilename): Declare.
119 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
120 * tuiData.h (addToSourceWindows): Declare.
121
122 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
123
124 * tui.c (tui_change_windows): New function.
125 (tui_delete_other_windows): New function.
126 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
127 (tui_enable): Enable the keypad; call tui_update_variables.
128 (strcat_to_buf_with_fmt): Remove.
129
130 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
131
132 * tui.h: Remove old declarations, add the new ones.
133 * tui.c (tui_switch_mode): New function.
134 (tui_initialize_readline): New function.
135 (tui_enable): New function.
136 (tui_disable): New function.
137 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
138 (tui_vSelectSourceSymtab): Remove.
139 (tuiInitWindows): Remove.
140 (_initialize_tui): Remove.
141 (_tuiReset): Keep but put arround #if 0.
142
143 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
144
145 * tuiIO.h: Remove old declarations and add the new ones.
146 * tuiIO.c: New management for curses and gdb terminal interactions.
147 (tui_tputs): Remove.
148 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
149 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
150 (tui_owns_terminal): Remove.
151 (tui_redisplay_readline): New function.
152 (tui_puts): New function.
153 (tui_prep_terminal): New function.
154 (tui_deprep_terminal): New function.
155 (tui_getc): Rename of tuiGetc, simplify and fix.
156 (tui_setup_io): New function.
157 (tui_initialize_io): New function.
158
159 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
160
161 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
162 (_tuiRegisterFormat): Reduce size of format result.
163
164 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
165
166 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
167 * tuiWin.h: Declare the new variables.
168 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
169 (tui_update_variables): New function.
170 (translate): New function.
171 (tui_border_kind_enums, tui_border_mode_enums): New tables.
172 (tui_border_mode_translate): New table.
173 (tui_border_kind_translate_*): New tables.
174 (tui_active_border_mode): New variables.
175 (tui_border_*): New variables.
176
177 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
178
179 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
180 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
181
182 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
183 (tui_vUpdateLocatorFilename): Remove.
184 * tuiStack.h: Update prototypes.
185
186 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
187 (tuiLineIsDisplayed): Split for address and line.
188 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
189 (tuiUpdateSourceWindowAsIs): Likewise.
190 (tuiUpdateSourceWindowsWithAddr): Likewise.
191 (tuiUpdateSourceWindowsWithLine): Likewise.
192 (tuiHorizontalSourceScroll): Likewise.
193 (tuiSetIsExecPointAt): Likewise.
194 (tuiUpdateOnEnd): Likewise.
195 * tuiSourceWin.h: Update prototypes.
196
197 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
198 (tuiShowSource): Likewise.
199 (tuiVerticalSourceScroll): Likewise.
200 * tuiSource.h (tuiShowSource): Update prototype.
201
202 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
203 (tuiShowDisassem): Use TuiLineOrAddress type.
204 (tuiShowDisassemAndUpdateSource): Likewise.
205 (tuiVerticalDisassemScroll): Likewise.
206 (tuiShowDisassemAsIs): Remove.
207 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
208
209 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
210 (clearWinDetail): Likewise.
211 (displayableWinContentOf): Fix address conversion.
212 (tuiNextWin): Fix crash when the window is not yet created.
213 (partialWinByName): Likewise.
214
215 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
216
217 * tuiSourceWin.h: Remove unused declarations.
218 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
219 (tui_vUpdateSourceWindowsWithLine): Remove.
220 (tui_vAllSetHasBreakAt): Remove.
221
222 * tuiLayout.h (tui_set_layout): Declare.
223 (tui_vSetLayoutTo): Remove.
224 (tui_vAddWinToLayout): Remove.
225 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
226 (_tuiToggleLayout_command): Remove.
227 (_tuiToggleSplitLayout_command): Remove.
228 (_tuiLayout_command): Remove.
229 (tui_vSetLayoutTo): Remove.
230 (tui_vAddWinToLayout): Remove.
231
232 * tuiDataWin.h (tui_vCheckDataValues): Remove.
233 * tuiDataWin.c (tui_vCheckDataValues): Remove.
234
235 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
236
237 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
238 (_parseScrollingArgs): Use xstrdup.
239 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
240 (_tuiScrollBackward_command): Likewise.
241 (_tuiScrollLeft_command): Likewise.
242 (_tuiScrollRight_command): Likewise.
243 (_tuiSetFocus): Likewise.
244 (_tuiSetFocus_command): Likewise.
245 (_tuiRefreshAll_command): Likewise.
246 (_tuiSetTabWidth_command): Likewise.
247 (_tuiSetWinHeight): Likewise.
248 (_tuiSetWinHeight_command): Likewise.
249 (_tuiXDBsetWinHeight): Likewise.
250 (_tui_vSetFocus): Remove.
251 (_tui_vSetWinHeight): Remove.
252 (_tui_vXDBsetWinHeight): Remove.
253
254 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
255
256 * tuiCommand.h: Remove unused declarations.
257 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
258 (tuiIncrCommandCharCountBy): Remove.
259 (tuiDecrCommandCharCountBy): Remove.
260 (tuiSetCommandCharCountTo): Remove.
261 (tuiClearCommandCharCount): Remove.
262
263 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
264
265 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
266 create the tui class help.
267 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
268 * tuiRegs.c (_initialize_tuiRegs): Likewise.
269 * tuiStack.c (_initialize_tuiStack): Likewise.
270
271 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
272
273 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
274 (tuiVerticalDisassemScroll): Likewise.
275 (tuiShowDisassemAndUpdateSource): Check for null symtab to
276 prevent a crash.
277
278 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
279
280 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
281 (tuiRead, tui_vread): Remove.
282
283 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
284 (vcatch_errors, _tui_vDo): Remove.
285 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
286
287 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
288 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
289 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
290 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
291 (_tuiLayout_command): Call tui_set_layout.
292
293 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
294 (_tuiScrollRegsForward_command): Likewise.
295 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
296 (_tuiShowGeneral_command): Likewise.
297 (_tuiShowSpecial_command): Likewise.
298 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
299 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
300 (_tuiScrollForward_command): Call tui_scroll.
301 (_tuiScrollBackward_command): Likewise.
302 (_tuiScrollLeft_command): Likewise.
303 (_tuiScrollRight_command): Likewise.
304 (_tuiSetFocus_command): Call _tuiSetFocus.
305 (_tuiRefreshAll_command): Call tuiRefreshAll.
306 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
307 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
308 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
309
310 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
311
312 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
313 (TuiLineOrAddress): Likewise.
314 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
315 an address.
316 (tuiSetDisassemContent): Likewise.
317 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
318 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
319 (tuiSetLayout): Likewise.
320 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
321 (tuiUpdateSourceWindowsWithAddr): Likewise.
322 (tuiUpdateSourceWindowsWithLine): Likewise.
323 (tuiSetHasBreakAt): Likewise.
324 * tuiStack.c (tuiSetLocatorInfo): Likewise.
325 (tuiSwitchFilename): Likewise.
326 (tuiUpdateLocatorInfoFromFrame): Likewise.
327 (tuiSetLocatorContent): Likewise.
328 (tuiShowFrameInfo): Likewise.
329 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
330 * tuiSourceWin.h: Likewise.
331 * tuiStack.h: Likewise.
332
333 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
334
335 * tuiWin.c: Add missing includes.
336 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
337 * tuiLayout.c: Add missing includes.
338 (_initAndMakeWin): Don't put curses in echo mode.
339 (_extractDisplayStartAddr): Fix calls to find_line_pc.
340 (_tuiLayout_command): Missing ',' in warning call.
341 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
342 find_line_pc.
343 (tuiSetHasBreakAt): Check for null source file.
344
345 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
346
347 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
348 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
349 * tui.c (_tui_vToggle_command): Likewise.
350
351 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
352
353 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
354
355 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
356
357 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
358 each register window.
359 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
360 of the register to check.
361 (_tuiRegValueHasChanged): Likewise.
362 (_tuiRegisterName): Use REGISTER_NAME.
363 (tui_restore_gdbout): New function.
364 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
365 to a string.
366 (START_SPECIAL_REGS): Define.
367 (_tuiGetRegisterRawValue): Use get_saved_register.
368 (_tuiDisplayRegister): Fix clearing of register window.
369
370 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
371
372 * tui-file.h (fputs_unfiltered_hook): Remove.
373 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
374 (tui_file_fputs): Likewise; simplify
375
376 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
377
378 * tuiStack.c: Add missing includes.
379 (tuiShowFrameInfo): Don't crash when there is no symbol table
380 associated with the pc.
381 * tuiSource.c (_hasBreak): Check for null source file.
382 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
383 (_tuiSetFocus): Check for null dataWin.
384 * tuiGeneralWin.c (refreshAll): Check for null list[type].
385
386 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
387
388 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
389 to disassemble in the curses window.
390
391 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
392
393 * tui.h: Cleanup to avoid inclusion of curses includes.
394 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
395 * tuiData.h: To here; include curses includes here.
396 (setTermHeightTo): Rename of setTermHeight to follow reality.
397 (setTermWidthTo): Likewise with setTermWidth.
398
399 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
400
401 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
402 tuiIO.c, tuiData.c: Likewise.
403 tuiDataWin.c, tuiDisassem.c: Likewise.
404 tuiGeneralWin.c, tuiLayout.c: Likewise.
405 tuiRegs.c, tuiSource.c: Likewise.
406 tuiSouceWin.c, tuiStack.c: Likewise.
407
408 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
409
410 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
411 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
412 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
413 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
414 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
415 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
416
417 2001-03-08 Andrew Cagney <ac131313@redhat.com>
418
419 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
420
421 2001-03-06 Kevin Buettner <kevinb@redhat.com>
422
423 * tui-file.h: Update/correct copyright notice.
424
425 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
426
427 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
428 internal_error.
429
430 2000-12-14 Kevin Buettner <kevinb@redhat.com>
431
432 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
433 of free() with xfree().
434
435 2000-06-22 Kevin Buettner <kevinb@redhat.com>
436
437 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
438
439 2000-06-20 Kevin Buettner <kevinb@redhat.com>
440
441 * tuiLayout.c: Eliminate use of PARAMS from this file.
442
443 2000-06-17 Kevin Buettner <kevinb@redhat.com>
444
445 * tuiIO.c: Eliminate use of PARAMS from this file.
446
447 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
448
449 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
450 "tuiCommand.h".
451 (tui_file_fputs): Pass ``file'' and not ``stream'' to
452 tui_file_adjust_strbuf.
453
454 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
455
456 * tui.h: Include <ncurses.h> when available.
457 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
458
459 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
460
461 * Makefile.in: Delete.
462
463 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
464
465 * Makefile.in (distclean, maintainer-clean, realclean,
466 mostlyclean): New targets.
467
468 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
469
470 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
471 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
472 ui-file / ``struct ui_file''.
473
474 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
475
476 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
477 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
478 tui_file_rewind, tui_file_put, tui_file_fputs,
479 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
480 fputs_unfiltered_hook): Move to here from ../utils.c
481
482 * tui-file.h, tui-file.c: New files.
483
484 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
485
486 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
487 (tuiSetDisassemContent): Replace gdb_file_init_astring with
488 tui_sfileopen. Replace gdb_file_get_strbuf with
489 tui_file_get_strbuf.
490
491 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
492
493 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
494 (tuiSetDisassemContent): Repace gdb_file_deallocate with
495 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
496
497 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
498
499 * tuiSource.c: Include "source.h".
500 (open_source_file, find_source_lines): Delete declarations.
501
502 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
503
504 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
505 system.
506
507 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
508
509 The following changes were made by Jim Blandy <jimb@cygnus.com>,
510 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
511 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
512 Taylor <taylor@cygnus.com>, as part of the project to merge in
513 changes originally made by HP; HP did not create ChangeLog
514 entries.
515
516 * Makefile.in: New file; we're merging HP's changes into GDB, and
517 we've moved the TUI files into a subdirectory, so we need a new
518 Makefile.
519
520 * tui.c:
521 #include <term.h>, if we have it, to get declarations for
522 the termcap functions on Solaris.
523 (tgoto): Add external K&R declaration for this; Solaris doesn't
524 bother to actually declare it in their header files.
525 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
526 we'd rather use the USG mechanisms than the Berkeley mechanisms
527 (TIOCGETC is one of the Berkeley terminal control ioctls).
528 Apologies if this causes trouble later; this should all be handled
529 by autoconf...
530 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
531 from ../utils.h.
532 (tuiFree): replace safe_free with free.
533 (strcat_to_buf): new function, copied from utils.c.
534 (tuiInit): Add ignored `argv0' argument, to match the type that
535 init_ui_hook expects; updated declaration. Call the
536 initialize_tui_files function constructed above. Initialize
537 flush_hook to NULL.
538 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
539 element of the locator window's content allocated. This seems
540 wrong, because it must have been initialized somehow in HP's
541 sources, and we should do it the same way now. But we do get
542 further before it segfaults. [Postscript: HP didn't bother to
543 initialize it; they compile
544 (va_catch_errors, vcatch_errors): Functions moved here from
545 ../utils.c in HP's sources. They're not used anywhere else.
546 (xdb_style): Delete this variable, and remove all references to
547 it. It's always true.
548 (tuiInit, _tui_vDo): References removed.
549
550 * tui.h: Add prototypes.
551 Don't #include "gendefs.h"; it's only used in the TUI.
552 Integrate its contents into this file:
553 #include <ansidecl.h> here.
554 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
555
556 * tuiCommand.c: #include "defs.h", so we get the appropriate
557 definition of GDB_FILE.
558
559 * tuiData.c
560 (freeWindow): replace safe_free with free.
561 (tui_version): don't define it here; it's defined in main.c now.
562
563 * tuiDisassem.c
564 (tuiSetDisassemContent): Call strcat_address_numeric instead of
565 strcat_address. Simplify the control structure. Use predefined
566 GDB function to print asm inst address. Use GDB_FILE to collect
567 output into buffers.
568
569 * tuiIO.c
570 (tgoto): Add external K&R declaration for this here too.
571 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
572 (tuiPuts_unfiltered): change FILE to GDB_FILE.
573 (tui_tputs): fix prototype for 3rd argument.
574
575 * tuiIO.h (tuiPuts_unfiltered): change declaration.
576
577 * tuiLayout.c
578 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
579 that decides which registers to display (i.e. single precision
580 float, double precision float, general, special). Previously,
581 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
582 compiling with -z poses a problem. When the first layout command
583 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
584 core dumps.
585
586 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
587
588 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
589 <stdarg.h>. No idea exactly what's conflicting with what, but the
590 errors went away...
591 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
592 object, calls pa_do_strcat_registers_info, copies the register
593 info into a buffer, and deallocates the GDB_FILE object. Remove
594 some code that is not executed. Also, call to
595 pa_do_strcat_registers_info has an additional parameter,
596 precision. This code requires some new per-target functions that
597 we don't want to merge. Dyke it out, with #ifdef
598 TUI_EXTENDED_FORMATTERS.
599 (_tuiSetSpecialRegsContent): this function was ifdefed out.
600 Hooked this up.
601 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
602 out. Hooked it up.
603 (IS_64BIT): Just define this to be zero; we're not merging in the
604 64-bit support.
605 (tuiShowRegisters): Comment out all references to the "special"
606 regs; we don't have a distinction between the "special" and
607 "non-special" regs in most of our machine descriptions. This code
608 is PA-specific in other ways as well, and needs to be redesigned
609 to be portable to other processors.
610
611 * tuiWin.c: #include <string.h>, to get a declaration for
612 strchr.
613
614 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
615 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
616 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
617 bool to int throughout. Re-indented, GNU style.
618
619 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
620 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
621 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
622 Changed bool to int throughout.
This page took 0.21155 seconds and 4 git commands to generate.