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