aa2fc5a87a03902194fa2e18b23f27b1dd061055
[external/binutils.git] / gdb / tui / ChangeLog
1 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
2
3         * tui-out.c (tui_ui_out_impl): Add NULL for redirect member.
4
5 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6
7         * tui-hooks.c: Update include order.
8         * tui.c: Likewise.
9         * tuiCommand.c: Likewise.
10         * tuiData.c: Likewise.
11         * tuiDataWin.c: Likewise.
12         * tuiDisassem.c: Likewise.
13         * tuiGeneralWin.c: Likewise.
14         * tuiIO.c: Likewise.
15         * tuiLayout.c: Likewise.
16         * tuiRegs.c: Likewise.
17         * tuiSource.c: Likewise.
18         * tuiSourceWin.c: Likewise.
19         * tuiStack.c: Likewise.
20         * tuiWin.c: Likewise.
21
22 2003-06-12  Andreas Schwab  <schwab@suse.de>
23
24         * tuiSource.c (tuiVerticalSourceScroll): Use get_frame_pc.
25         * tuiSourceWin.c (tuiHorizontalSourceScroll): Likewise.
26         * tuiStack.c (tui_get_function_from_frame): Likewise.
27         (tuiShowFrameInfo): Likewise.
28         * tuiWin.c (_makeVisibleWithNewHeight): Likewise.
29         * tui-hooks.c (tui_selected_frame_level_changed_hook): Likewise.
30         * tuiDisassem.c (tuiVerticalDisassemScroll): Likewise.
31         Include "disasm.h".
32
33 2003-05-08  Andrew Cagney  <cagney@redhat.com>
34
35         * tuiRegs.c: Use MAX_REGISTER_SIZE instead of
36         MAX_REGISTER_RAW_SIZE.
37
38 2003-05-03  Andrew Cagney  <cagney@redhat.com>
39
40         * tuiDisassem.c (tui_disassemble): Call gdb_print_insn, instead of
41         TARGET_PRINT_INSN.  Do not initialize a disassemble_info object.
42
43 2003-04-30  Andrew Cagney  <cagney@redhat.com>
44
45         * tuiDisassem.c (tui_disassemble): Use
46         "deprecated_tm_print_insn_info" instead of TARGET_PRINT_INSN_INFO,
47         add comment.
48
49 2003-03-14  Andrew Cagney  <cagney@redhat.com>
50
51         * tuiRegs.c (_tuiGetRegisterRawValue): Use frame_read_register,
52         instead of get_saved_register.
53
54 2003-03-13  Stephane Carrez  <stcarrez@nerim.fr>
55
56         * tui-out.c (tui_out_data): Fix typedef.
57
58 2003-03-08  Andrew Cagney  <cagney@redhat.com>
59
60         * tui-out.c: Update copyright.
61         (tui_out_data): Define typedef.  Use instead of ui_out_data.
62
63 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
64
65         * tui.c (tui_enable, tui_disable): Don't modify tui_version.
66         (tui_is_window_visible, tui_get_command_dimension): Test
67         tui_active instead of tui_version.
68         * tuiData.h (tui_version): Delete declaration.
69         * tui-hooks.c (tui_init_hook, tui_event_loop): Delete function,
70         moved to "tui-interp.c".
71         (tui_exit, tui_command_loop): Ditto.
72         (_initialize_tui): Don't initialize init_ui_hook.  Initialize
73         target_new_objfile_hook.
74         * tui-interp.c: New file.
75
76 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
77
78         * tuiIO.c (tui_prep_terminal): Add one notused parameter.
79         * tui.c (tui_rl_switch_mode): Add two notused parameters.
80         (tui_rl_change_windows, tui_rl_next_keymap): Ditto.
81         (tui_rl_delete_other_windows): Ditto.
82         (tui_rl_change_windows, tui_rl_delete_other_windows): Update
83         calls.
84
85 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
86
87        Import of readline 4.3.
88        Fix PR gdb/675
89        * tuiWin.c: Include readline/readline.h.
90        (tui_update_gdb_sizes): Use accessor function rl_get_screen_size.
91        (tuiResizeAll): Ditto.
92
93 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
94
95         * tuiStack.c (tuiShowFrameInfo): Fix typo.
96
97 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
98
99         * tui/tui-hooks.c: Update to use deprecated_selected_frame.
100         * tui/tui.c, tui/tuiDisassem.c, tui/tuiRegs.c: Ditto.
101         * tui/tuiSource.c, tui/tuiSourceWin.c, tui/tuiWin.c: Ditto.
102
103 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
104
105         * tuiStack.c (tuiShowFrameInfo): Use find_frame_sal instead of
106         find_pc_line.
107
108 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
109
110         * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
111         deprecated_frame_in_dummy.  Fix coding style.
112
113 2002-11-21  Stephane Carrez  <stcarrez@nerim.fr>
114
115         * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific
116         interpreter is installed.
117
118 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
119
120         * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
121         signal_handler_caller.
122         
123 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
124
125         * tuiStack.c (tuiShowFrameInfo): Replace frame_in_dummy with
126         deprecated_frame_in_dummy.
127
128 2002-10-26  Stephane Carrez  <stcarrez@nerim.fr>
129
130         * tuiIO.c (tui_prep_terminal): Save the prompt registered in readline.
131         (tui_redisplay_readline): Use the last saved prompt.
132         (tui_rl_saved_prompt): New.
133
134 2002-10-25  Stephane Carrez  <stcarrez@nerim.fr>
135
136         Fix PR gdb/787
137         * tuiWin.c (ACS_LRCORNER, ACS_LLCORNER, ACS_ULCORNER, ACS_URCORNER,
138         ACS_HLINE, ACS_VLINE): Define if they don't exist.
139
140 2002-10-25  Stephane Carrez  <stcarrez@nerim.fr>
141
142         Fix PR gdb/478
143         * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
144
145 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
146
147         * tui-hooks.c (selected_frame_level_changed_hook): Use the one
148         exported from frame.h.
149
150 2002-09-29  Elena Zannoni  <ezannoni@redhat.com>
151
152         * tui.c (tui_show_source): Don't access current_source_symtab, use
153         accessor function instead.  Include source.h and symtab.h
154         * tuiDisassem.c (tuiShowDisassemAndUpdateSource,
155         tuiVerticalDisassemScroll): Use accessor functions for current
156         source line and symtab.  Include source.h.
157         * tuiLayout.c (_extractDisplayStartAddr): Use accessor functions
158         for current source line and symtab.  Include source.h.
159         * tuiWin.c (_makeVisibleWithNewHeight): Ditto.
160         * tuiSourceWin.c (tuiUpdateSourceWindowAsIs,
161         tuiHorizontalSourceScroll): Ditto.
162         * tuiSource.c (tuiVerticalSourceScroll): Ditto.
163
164 2002-09-13  Stephane Carrez  <stcarrez@nerim.fr>
165
166         * tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs.
167         (tui_initialize_readline): Allow to use space to leave SingleKey
168         to enter one gdb command.
169         (tui_enable): Restore the TUI keymap when we are back to TUI.
170         (tui_disable): Restore normal keymap when leaving TUI.
171         * tuiIO.c (tui_redisplay_readline): Restore the SingleKey mode
172         when the buffer becomes empty and we are in tui_one_command_mode.
173
174 2002-09-13  Stephane Carrez  <stcarrez@nerim.fr>
175
176         * tuiIO.c (tui_setup_io): rl_already_prompted must be cleared
177         when leaving TUI mode so that gdb prompt is displayed.
178
179 2002-09-13  Stephane Carrez  <stcarrez@nerim.fr>
180
181         * tuiStack.c (tui_make_status_line): Make sure the local buffer
182         is large enough to hold the complete line.
183
184 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
185
186         * tui-hooks.c (tui_event_loop): New function.
187         (tui_command_loop): New function to override gdb loop and make sure
188         uiout is set according to TUI mode.
189         (tui_command_loop): Install the specific TUI command hook.
190         * tuiIO.c (tui_initialize_io): Initialize tui_old_uiout.
191         (tui_uiout, tui_old_uiout): Make public.
192         * tuiIO.h (tui_uiout, tui_old_uiout): Declare.
193
194 2002-09-04  Stephane Carrez  <stcarrez@nerim.fr>
195
196         * tuiIO.c (tui_putc): New function to print one character.
197         (printable_part): New function from readline/complete.c.
198         (PUTX): New macro, likewise.
199         (print_filename): New function, likewise.
200         (get_y_or_n): New function, likewise and adapted for TUI.
201         (tui_rl_display_match_list): New function from readline/complete.c
202         and writes on TUI command window.
203         (tui_setup_io): Install or remove the readline hook
204         rl_completion_display_matches_hook so that completion is written
205         directly in TUI command window instead of in the TUI pipe.
206         (tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the
207         TUI redirection pipe.
208         (tui_getc): Likewise for call to tui_readline_output.
209         (tui_readline_output): Likewise for function.
210         * tui.c (tui_rl_startup_hook): Always take care of gdb prompt.
211
212 2002-09-02  Stephane Carrez  <stcarrez@nerim.fr>
213
214         * tuiWin.c (_newHeightOk): Fix compilation warnings.
215
216 2002-09-01  Stephane Carrez  <stcarrez@nerim.fr>
217
218         * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
219         is not displayed.
220
221 2002-09-01  Stephane Carrez  <stcarrez@nerim.fr>
222
223         * tui-out.c (tui_out_new): Clear start_of_line.
224         * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
225         to update the current source line.
226
227 2002-09-01  Stephane Carrez  <stcarrez@nerim.fr>
228
229         * tui-hooks.c (tui_detach_hook): New hook to know when a process dies.
230         (tui_install_hooks): Install it.
231         (tui_remove_hooks): Remove it.
232
233 2002-09-01  Stephane Carrez  <stcarrez@nerim.fr>
234
235         * tuiData.h (FILE_PREFIX): Don't define.
236         (blankStr, locationStr, breakStr): Don't declare.
237         (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise.
238         (displayableWinContentOf, displayableWinContentAt): Likewise.
239         (winElementHeight, winByName, freeAllWindows): Likewise.
240
241         * tuiData.c (blankStr, locationStr, breakStr): Remove.
242         (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
243         (displayableWinContentOf, displayableWinContentAt): Remove.
244         (winElementHeight, winByName, freeAllWindows): Remove.
245
246 2002-09-01  Stephane Carrez  <stcarrez@nerim.fr>
247
248         * tuiStack.c (tui_make_status_line): New function to create the
249         status line.
250         (tuiShowLocatorContent): Use it instead of displayableWinContentAt.
251         * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
252         (PC_PREFIX): Use upper case.
253         (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
254         (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
255
256 2002-08-31  Stephane Carrez  <stcarrez@nerim.fr>
257
258         * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.
259         (tuiClearAllExecInfosContent): Likewise.
260         (tuiEraseAllExecInfosContent): Ditto.
261         (tuiUpdateSourceWindowsFromLocator): Ditto.
262         * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove.
263         * tui.h (tui_vCheckDataValues): Don't declare.
264         (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise.
265         (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto.
266         (tui_vShowFrameInfo): Ditto.
267
268 2002-08-31  Stephane Carrez  <stcarrez@nerim.fr>
269
270         * tui.c (tui_commands): Table of single key commands.
271         (tui_rl_command_key): New function to execute gdb command.
272         (tui_rl_command_mode): New function to temporarily leave SingleKey.
273         (tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
274         (tui_rl_startup_hook): New function to avoid prompt display by
275         readline functions.
276         (tui_set_key_mode): New function to set the key mode and install
277         the readline keymap.
278         (tui_initialize_readline): Create TUI SingleKey readline map.
279         (tui_enable): Install rl_startup_hook.
280         (tui_disable): Remove it.
281         * tui.h (enum tui_key_mode): Declare.
282         (tui_set_key_mode, tui_current_key_mode): Declare.
283         * tuiIO.c (tui_redisplay_readline): Don't display the prompt in
284         SingleKey mode.
285         * tuiIO.h (tui_redisplay_readline): Declare.
286
287 2002-08-31  Stephane Carrez  <stcarrez@nerim.fr>
288
289         * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
290         current line.
291
292 2002-08-31  Stephane Carrez  <stcarrez@nerim.fr>
293
294         * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
295         (_hasBreak): Remove.
296         (tuiShowSource): Fix comment indentation.
297         (tuiSourceIsDisplayed): Likewise.
298         (tuiVerticalSourceScroll): Likewise.
299
300 2002-08-30  Stephane Carrez  <stcarrez@nerim.fr>
301
302         * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
303         (tui_update_breakpoint_info): Declare.
304         (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
305
306         * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
307         information using tui_update_breakpoint_info.
308         (tui_update_all_breakpoint_info): New function to refresh all
309         execution windows.
310         (tui_update_breakpoint_info): New function to recompute the status
311         of exec info window from breakpoints.
312         (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
313         (tuiSetExecInfoContent): Use the exec info flags computed by
314         tui_update_breakpoint_info to display a short status about breakpoints.
315
316         * tuiData.h (TuiExecInfoContent): New for exec info string.
317         (TuiWhichElement): Use it.
318         (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
319         (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
320         (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
321         (TUI_EXECINFO_SIZE): Likewise.
322         * tuiData.c (initContentElement): Clear exec info string.
323
324         * tui-hooks.c (get_breakpoint): Remove.
325         (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
326         (tui_event_delete_breakpoint): Likewise.
327         (tui_event_modify_breakpoint): Likewise.
328
329 2002-08-29  Stephane Carrez  <stcarrez@nerim.fr>
330
331         * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
332         * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
333         tui_find_disassembly_address to find the starting address of
334         disassemble window.
335
336 2002-08-28  Stephane Carrez  <stcarrez@nerim.fr>
337
338         * tuiDisassem.c (tui_disassemble): New function to disassemble
339         several lines in a buffer.
340         (tui_find_disassembly_address): New function to search backward
341         or forward a disassembly line.
342         (tuiSetDisassemContent): Use tui_disassemble to obtain the real
343         content and format it in the window.
344         (tuiShowDisassemAndUpdateSource): Remove unused locals.
345         (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
346         obtain the address to disassemble for the scrolling.
347         * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
348         * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
349
350 2002-08-28  Stephane Carrez  <stcarrez@nerim.fr>
351
352         * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
353
354 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
355
356         Fix PR gdb/393:
357         * tui.c (tui_disable): Update gdb's knowledge of its terminal
358         using target_terminal_save_ours.
359         (tui_enable): Likewise.
360
361 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
362
363         * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
364         (tui_rl_change_windows): Renames tui_change_windows.
365         (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
366         (tui_initialize_readline): Update.
367
368 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
369
370         * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
371         (_hasBreak): Remove.
372
373 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
374
375         * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
376         to find symbol address.
377
378 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
379
380         * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
381         and use tuiGetBeginAsmAddress.
382         * tuiSourceWin.h (tui_display_main): Declare.
383         * tui.h (tuiDisplayMainFunction): Remove.
384         * tui-hooks.c (tui_new_objfile_hook): Update.
385
386 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
387
388         * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
389         (tuiShowSourceAsIs): Don't declare.
390
391 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
392
393         * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
394         the frame position.
395
396 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
397
398         * tuiStack.c (tuiSetLocatorContent): Remove.
399         (tuiUpdateLocatorInfoFromFrame): Remove.
400         (tui_set_locator_info): Allocate the content buffer if necessary.
401         (tui_set_locator_filename): Call tui_set_locator_info directly.
402         (tuiShowFrameInfo): Likewise and use find_pc_line instead of
403         find_pc_symtab.
404
405 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
406
407         * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
408         tuiUpdateLocatorFilename.
409         * tuiStack.c (tuiSetLocatorInfo): Make it static.
410         (tuiSetLocatorContent): Likewise.
411         (tuiUpdateLocatorInfoFromFrame): Likewise.
412         (tuiSwitchFilename): Remove.
413         (tui_set_locator_filename): New function
414         (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
415         use tui_set_locator_filename to record the filename.
416         (tuiUpdateLocatorFilename): Likewise.
417         (tuiUpdateLocatorInfoFromFrame): Update.
418         (tuiSetLocatorContent): Likewise.
419         * tuiStack.h (tuiClearLocatorContent): Don't declare.
420         (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
421         (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
422
423 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
424
425         * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
426         comparison; cleanup.
427         * tuiSource.c (tuiSetSourceContent): Set window title and filename.
428         * tuiGeneralWin.c (boxWin): Print optional title on top of window.
429         * tuiData.h (TuiSourceInfo): Add filename member.
430         (TuiGenWinInfo): Add title member.
431         * tuiData.c (initGenericPart): Clear title.
432         (freeWindow): Free title and filename; remove unused locals.
433         (initWinInfo): Clear filename.
434         (tuiDelWindow): Free it; remove unused locals.
435
436 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
437
438         * tuiStack.h (tuiGetLocatorFilename): Don't declare.
439         (tuiUpdateLocatorDisplay): Likewise.
440         * tuiStack.c (tuiGetLocatorFilename): Remove.
441         (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
442         instead of tuiUpdateLocatorDisplay.
443         (tuiUpdateLocatorDisplay): Remove.
444
445 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
446
447         * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
448         * tuiStack.c (tuiClearLocatorDisplay): Remove.
449         (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
450         (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
451
452 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
453
454         * tuiStack.c (tui_get_function_from_frame): Rename from 
455         _getFuncNameFromFrame; use print_address_symbolic to get symbolic
456         name of address.
457         (tuiUpdateLocatorInfoFromFrame): Update.
458
459 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
460
461         * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
462         (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
463         (_tuiSetGeneralAndSpecialRegsContent): Likewise.
464         (_tuiSetFloatRegsContent): Likewise.
465         (_tuiRegisterName): Return a const char*.
466         * tuiData.h (_TuiDataElement): Use const char* for name.
467
468 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
469
470         * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
471         (tuiShowAllExecInfosContent): Likewise.
472         * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
473         (tuiShowAllExecInfosContent): Remove.
474         (tuiAllocSourceBuffer): Remove unused locals.
475
476 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
477
478         * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
479         to follow other gdb's command names; use execute_command; cleanup.
480         (_initialize_tuiStack): Update.
481
482 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
483
484         * tuiWin.h (tui_update_gdb_sizes): Declare.
485
486 2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>
487
488         * tui.c (strcat_to_buf): Use const char* for source item.
489         (tui_enable): Update the windows if there is a selected frame.
490         * tui.h (strcat_to_buf): Update prototype.
491         (strcat_to_buf_with_fmt): Remove.
492
493 2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>
494
495         * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
496         is the size of command window.
497         (tuiResizeAll): Call it instead of init_page_info.
498         * tui.c (tui_enable): Call it to resize to TUI command window.
499         (tui_disable): Likewise for plain screen.
500
501 2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>
502
503         * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
504         use tuiShowFrameInfo instead of tuiSetLocatorContent.
505         * tuiLayout.h (showLayout): Remove.
506         * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
507         (_showSourceDisassemCommand): Likewise.
508         (showLayout): Make it static.
509         (lastLayout): Remove.
510
511 2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>
512
513         * tuiSourceWin.c (tui_show_source_line): New function.
514         (tuiShowSourceContent): Call it and avoid clearing the window before
515         redrawing it.
516         (tuiClearAllSourceWinsContent): Remove.
517         * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
518         * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
519         * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
520         (tuiRefreshAll): Don't clear the window.
521         (_makeVisibleWithNewHeight): Don't clear locator line.
522         (tuiResizeAll): Remove unused locals.
523         (_tuiAdjustWinHeights): Likewise.
524         (_makeInvisibleAndSetNewHeight): Likewise.
525         (_newHeightOk): Likewise.
526         * tuiLayout.c (showLayout): Don't clear source windows.
527         (tuiSetLayout): Don't clear the window.
528         (_initAndMakeWin): Likewise for status line.
529         * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
530         (makeWindow): Likewise.
531         (tuiClearWin): Remove.
532         * tuiGeneralWin.h (tuiClearWin): Don't declare.
533
534 2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>
535
536         * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
537         (tuiAsmWinIsDisplayed): Remove.
538         (tuiShowAllSourceWinsContent): Remove.
539         (tuiUpdateOnEnd): Remove.
540         * tuiGeneralWin.c (scrollWinForward): Remove.
541         (scrollWinBackward): Remove.
542         (_winResize): Don't declare.
543         * tui.h (tuiUpdateOnEnd): Don't declare.
544         (vcatch_errors, va_catch_errors): Likewise.
545         * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
546         (tuiShowAllSourceWinsContent): Likewise.
547         * tuiGeneralWin.h (scrollWinForward): Likewise.
548         (scrollWinBackward): Likewise.
549
550 2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>
551
552         * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
553
554 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
555
556         Fix PR gdb/655
557         * tui.c: Disable <termio.h> include.
558
559 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
560
561         * tui-out.c (XMALLOC): Delete macro.  Update copyright.
562
563 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
564
565         * tui-hooks.c: Add FIXME to explain true/false problem.  Update
566         copyright.
567         * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
568         * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
569         * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
570         * tuiWin.c: Ditto.
571
572         2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
573         * tui-hooks.c: Include <curses.h> before "bfd.h".
574         * tui.c: Likewise.
575         * tuiCommand.c: Likewise.
576         * tuiData.c: Likewise.
577         * tuiDataWin.c: Likewise.
578         * tuiDisassem.c: Likewise.
579         * tuiGeneralWin.c: Likewise.
580         * tuiIO.c: Likewise.
581         * tuiLayout.c: Likewise.
582         * tuiRegs.c: Likewise.
583         * tuiSource.c: Likewise.
584         * tuiSourceWin.c: Likewise.
585         * tuiStack.c: Likewise.
586         * tuiWin.c: Likewise.
587
588 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
589
590         * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
591
592 2001-10-20  Andrew Cagney  <ac131313@redhat.com>
593
594         * tuiDisassem.c: Include "value.h".
595         * tuiSourceWin.c: Ditto.
596
597 2001-09-28  Tom Tromey  <tromey@redhat.com>
598
599         * tuiLayout.h (tui_set_layout): Don't declare.
600         * tui.h (tui_vAddWinToLayout): Don't declare.
601         (tui_vSetLayoutTo): Likewise.
602         (tui_set_layout): Declare.
603
604 2001-08-02  Eli Zaretskii  <eliz@is.elta.co.il>
605
606         * tuiSourceWin.c: Use disp_del instead of del.
607
608         * tuiSource.c: Use disp_del instead of del.
609
610         * tuiDisassem.c: Use disp_del instead of del.
611
612 2001-07-31  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
613
614         * tui.c (tui_enable): Remove call to terminal_save_ours().
615         (tui_disable): Likewise.
616
617 2001-07-28  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
618
619         * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
620         set/show configuration variables.
621         (show_tui_cmd): New function.
622         (set_tui_cmd): New function.
623
624 2001-07-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
625
626         * tui-hooks.c: New file, gdb hooks for tui.
627         * tui-out.c: New file, image copied from cli-out.c.
628         (tui_field_int): Identify "line" fields and keep track of them.
629         (tui_field_string): Likewise for "file".
630         (tui_out_new): Use flags = 0 to avoid printing the sources.
631
632 2001-07-23  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
633
634         * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
635         leave it in the command window.
636         (tui_redisplay_readline): Save cursor position to restore the
637         cursor after we go back from background.
638         * tuiData.h (TuiCommandInfo): Add start_line member.
639
640 2001-07-23  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
641
642         * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
643         * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
644         * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
645         to add_set_enum_cmd.
646         * tui.c (tui_show_source): New function.
647         (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
648         (tui_switch_mode): Prep or deprep readline terminal;
649         make sure the \n we return does not redo the last command.
650         * tui.h (tui_show_source): Declare.
651         (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
652         (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
653
654 2001-07-22  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
655
656         * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
657         if SIGCONT is defined.
658         (tui_cont_sig): New function when SIGCONT is defined.
659         (tui_setup_io): Save tty setting to restore by SIGCONT.
660         
661 2001-07-22  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
662
663         * tui.h (tui_show_assembly): Declare.
664         (tui_is_window_visible): Declare.
665         * tui.c (tui_show_assembly): New function.
666         (tui_is_window_visible): New function.
667         (tui_get_command_dimension): New function.
668
669 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
670
671         * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
672
673 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
674
675         * tui-file.c (tui_file_fputs): Use tui_puts.
676
677 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
678
679         * tuiStack.c (tuiSetLocatorInfo): Cleanup.
680         * tuiStack.h (tuiGetLocatorFilename): Declare.
681         * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
682         * tuiData.h (addToSourceWindows): Declare.
683
684 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
685
686         * tui.c (tui_change_windows): New function.
687         (tui_delete_other_windows): New function.
688         (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
689         (tui_enable): Enable the keypad; call tui_update_variables.
690         (strcat_to_buf_with_fmt): Remove.
691
692 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
693
694         * tui.h: Remove old declarations, add the new ones.
695         * tui.c (tui_switch_mode): New function.
696         (tui_initialize_readline): New function.
697         (tui_enable): New function.
698         (tui_disable): New function.
699         (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
700         (tui_vSelectSourceSymtab): Remove.
701         (tuiInitWindows): Remove.
702         (_initialize_tui): Remove.
703         (_tuiReset): Keep but put arround #if 0.
704
705 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
706
707         * tuiIO.h: Remove old declarations and add the new ones.
708         * tuiIO.c: New management for curses and gdb terminal interactions.
709         (tui_tputs): Remove.
710         (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
711         (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
712         (tui_owns_terminal): Remove.
713         (tui_redisplay_readline): New function.
714         (tui_puts): New function.
715         (tui_prep_terminal): New function.
716         (tui_deprep_terminal): New function.
717         (tui_getc): Rename of tuiGetc, simplify and fix.
718         (tui_setup_io): New function.
719         (tui_initialize_io): New function.
720
721 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
722
723         * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
724         (_tuiRegisterFormat): Reduce size of format result.
725
726 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
727
728         * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
729         * tuiWin.h: Declare the new variables.
730         * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
731         (tui_update_variables): New function.
732         (translate): New function.
733         (tui_border_kind_enums, tui_border_mode_enums): New tables.
734         (tui_border_mode_translate): New table.
735         (tui_border_kind_translate_*): New tables.
736         (tui_active_border_mode): New variables.
737         (tui_border_*): New variables.
738
739 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
740
741         * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
742         (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
743
744         * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
745         (tui_vUpdateLocatorFilename): Remove.
746         * tuiStack.h: Update prototypes.
747
748         * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
749         (tuiLineIsDisplayed): Split for address and line.
750         (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
751         (tuiUpdateSourceWindowAsIs): Likewise.
752         (tuiUpdateSourceWindowsWithAddr): Likewise.
753         (tuiUpdateSourceWindowsWithLine): Likewise.
754         (tuiHorizontalSourceScroll): Likewise.
755         (tuiSetIsExecPointAt): Likewise.
756         (tuiUpdateOnEnd): Likewise.
757         * tuiSourceWin.h: Update prototypes.
758
759         * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
760         (tuiShowSource): Likewise.
761         (tuiVerticalSourceScroll): Likewise.
762         * tuiSource.h (tuiShowSource): Update prototype.
763
764         * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
765         (tuiShowDisassem): Use TuiLineOrAddress type.
766         (tuiShowDisassemAndUpdateSource): Likewise.
767         (tuiVerticalDisassemScroll): Likewise.
768         (tuiShowDisassemAsIs): Remove.
769         * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
770
771         * tuiData.c (initWinInfo): Use CORE_ADDR for address.
772         (clearWinDetail): Likewise.
773         (displayableWinContentOf): Fix address conversion.
774         (tuiNextWin): Fix crash when the window is not yet created.
775         (partialWinByName): Likewise.
776
777 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
778
779         * tuiSourceWin.h: Remove unused declarations.
780         * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
781         (tui_vUpdateSourceWindowsWithLine): Remove.
782         (tui_vAllSetHasBreakAt): Remove.
783
784         * tuiLayout.h (tui_set_layout): Declare.
785         (tui_vSetLayoutTo): Remove.
786         (tui_vAddWinToLayout): Remove.
787         * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
788         (_tuiToggleLayout_command): Remove.
789         (_tuiToggleSplitLayout_command): Remove.
790         (_tuiLayout_command): Remove.
791         (tui_vSetLayoutTo): Remove.
792         (tui_vAddWinToLayout): Remove.
793
794         * tuiDataWin.h (tui_vCheckDataValues): Remove.
795         * tuiDataWin.c (tui_vCheckDataValues): Remove.
796
797 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
798
799         * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
800         (_parseScrollingArgs): Use xstrdup.
801         (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
802         (_tuiScrollBackward_command): Likewise.
803         (_tuiScrollLeft_command): Likewise.
804         (_tuiScrollRight_command): Likewise.
805         (_tuiSetFocus): Likewise.
806         (_tuiSetFocus_command): Likewise.
807         (_tuiRefreshAll_command): Likewise.
808         (_tuiSetTabWidth_command): Likewise.
809         (_tuiSetWinHeight): Likewise.
810         (_tuiSetWinHeight_command): Likewise.
811         (_tuiXDBsetWinHeight): Likewise.
812         (_tui_vSetFocus): Remove.
813         (_tui_vSetWinHeight): Remove.
814         (_tui_vXDBsetWinHeight): Remove.
815
816 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
817
818         * tuiCommand.h: Remove unused declarations.
819         * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
820         (tuiIncrCommandCharCountBy): Remove.
821         (tuiDecrCommandCharCountBy): Remove.
822         (tuiSetCommandCharCountTo): Remove.
823         (tuiClearCommandCharCount): Remove.
824
825 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
826
827         * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
828         create the tui class help.
829         * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
830         * tuiRegs.c (_initialize_tuiRegs): Likewise.
831         * tuiStack.c (_initialize_tuiStack): Likewise.
832
833 2001-07-19  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
834
835         * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
836         (tuiVerticalDisassemScroll): Likewise.
837         (tuiShowDisassemAndUpdateSource): Check for null symtab to
838         prevent a crash.
839
840 2001-07-18  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
841
842         * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
843         (tuiRead, tui_vread): Remove.
844         
845         * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
846         (vcatch_errors, _tui_vDo): Remove.
847         * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
848
849         * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
850         (tui_set_layout): Rename of _tuiSetLayoutTo, public.
851         (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
852         (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
853         (_tuiLayout_command): Call tui_set_layout.
854
855         * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
856         (_tuiScrollRegsForward_command): Likewise.
857         (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
858         (_tuiShowGeneral_command): Likewise.
859         (_tuiShowSpecial_command): Likewise.
860         (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
861         * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
862         (_tuiScrollForward_command): Call tui_scroll.
863         (_tuiScrollBackward_command): Likewise.
864         (_tuiScrollLeft_command): Likewise.
865         (_tuiScrollRight_command): Likewise.
866         (_tuiSetFocus_command): Call _tuiSetFocus.
867         (_tuiRefreshAll_command): Call tuiRefreshAll.
868         (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
869         (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
870         * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
871
872 2001-07-18  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
873
874         * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
875         (TuiLineOrAddress): Likewise.
876         * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
877         an address.
878         (tuiSetDisassemContent): Likewise.
879         (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
880         * tuiLayout.c (_extractDisplayStartAddr): Likewise.
881         (tuiSetLayout): Likewise.
882         * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
883         (tuiUpdateSourceWindowsWithAddr): Likewise.
884         (tuiUpdateSourceWindowsWithLine): Likewise.
885         (tuiSetHasBreakAt): Likewise.
886         * tuiStack.c (tuiSetLocatorInfo): Likewise.
887         (tuiSwitchFilename): Likewise.
888         (tuiUpdateLocatorInfoFromFrame): Likewise.
889         (tuiSetLocatorContent): Likewise.
890         (tuiShowFrameInfo): Likewise.   
891         * tuiDisassem.h: Update prototypes to use CORE_ADDR.
892         * tuiSourceWin.h: Likewise.
893         * tuiStack.h: Likewise.
894
895 2001-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
896
897         * tuiWin.c: Add missing includes.
898         (_makeVisibleWithNewHeight): Fix call to find_line_pc.
899         * tuiLayout.c: Add missing includes.
900         (_initAndMakeWin): Don't put curses in echo mode.
901         (_extractDisplayStartAddr): Fix calls to find_line_pc.
902         (_tuiLayout_command): Missing ',' in warning call.
903         * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
904         find_line_pc.
905         (tuiSetHasBreakAt): Check for null source file.
906
907 2001-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
908
909         * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
910         * tuiLayout.c (_tuiSetLayoutTo): Likewise.
911         * tui.c (_tui_vToggle_command): Likewise.
912
913 2001-07-17  Elena Zannoni  <ezannoni@redhat.com>
914
915         * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
916
917 2001-07-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
918
919         * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
920         each register window.
921         (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
922         of the register to check.
923         (_tuiRegValueHasChanged): Likewise.
924         (_tuiRegisterName): Use REGISTER_NAME.
925         (tui_restore_gdbout): New function.
926         (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
927         to a string.
928         (START_SPECIAL_REGS): Define.
929         (_tuiGetRegisterRawValue): Use get_saved_register.
930         (_tuiDisplayRegister): Fix clearing of register window.
931
932 2001-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
933
934         * tui-file.h (fputs_unfiltered_hook): Remove.
935         * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
936         (tui_file_fputs): Likewise; simplify
937
938 2001-07-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
939
940         * tuiStack.c: Add missing includes.
941         (tuiShowFrameInfo): Don't crash when there is no symbol table 
942         associated with the pc.
943         * tuiSource.c (_hasBreak): Check for null source file.
944         * tuiWin.c (tuiRefreshAll): Check for null winList[type].
945         (_tuiSetFocus): Check for null dataWin.
946         * tuiGeneralWin.c (refreshAll): Check for null list[type].
947
948 2001-07-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
949
950         * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
951         to disassemble in the curses window.
952         
953 2001-07-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
954
955         * tui.h: Cleanup to avoid inclusion of curses includes.
956         (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
957         * tuiData.h: To here; include curses includes here.
958         (setTermHeightTo): Rename of setTermHeight to follow reality.
959         (setTermWidthTo): Likewise with setTermWidth.
960
961 2001-07-14  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
962
963         * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
964         tuiIO.c, tuiData.c: Likewise.
965         tuiDataWin.c, tuiDisassem.c: Likewise.
966         tuiGeneralWin.c, tuiLayout.c: Likewise.
967         tuiRegs.c, tuiSource.c: Likewise.
968         tuiSouceWin.c, tuiStack.c: Likewise.
969
970 2001-07-14  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
971
972         * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
973         tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
974         tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
975         tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
976         tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
977         tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
978
979 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
980
981         * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
982
983 2001-03-06  Kevin Buettner  <kevinb@redhat.com>
984
985         * tui-file.h: Update/correct copyright notice.
986
987 Wed Feb  7 19:54:27 2001  Andrew Cagney  <cagney@redhat.com>
988
989         * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
990         internal_error.
991
992 2000-12-14  Kevin Buettner  <kevinb@redhat.com>
993
994         * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
995         of free() with xfree().
996
997 2000-06-22  Kevin Buettner  <kevinb@redhat.com>
998
999         * tuiSourceWin.h: Eliminate use of PARAMS from this file.
1000
1001 2000-06-20  Kevin Buettner  <kevinb@redhat.com>
1002
1003         * tuiLayout.c: Eliminate use of PARAMS from this file.
1004
1005 2000-06-17  Kevin Buettner  <kevinb@redhat.com>
1006
1007         * tuiIO.c: Eliminate use of PARAMS from this file.
1008
1009 Thu May 25 14:46:20 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1010
1011         * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
1012         "tuiCommand.h".
1013         (tui_file_fputs): Pass ``file'' and not ``stream'' to
1014         tui_file_adjust_strbuf.
1015
1016 Thu May 25 16:58:01 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1017
1018         * tui.h: Include <ncurses.h> when available.
1019         * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
1020
1021 Mon May 15 17:16:10 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1022
1023         * Makefile.in: Delete.
1024
1025 Tue Apr 18 15:32:15 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1026
1027         * Makefile.in (distclean, maintainer-clean, realclean,
1028         mostlyclean): New targets.
1029
1030 Tue Feb  1 00:17:12 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1031
1032         * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
1033         tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
1034         ui-file / ``struct ui_file''.
1035
1036 Mon Jan 31 18:12:43 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1037
1038         * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
1039         tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
1040         tui_file_rewind, tui_file_put, tui_file_fputs,
1041         tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
1042         fputs_unfiltered_hook): Move to here from ../utils.c
1043
1044         * tui-file.h, tui-file.c: New files.
1045
1046 Mon Nov  8 17:47:37 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1047
1048         * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
1049         (tuiSetDisassemContent): Replace gdb_file_init_astring with
1050         tui_sfileopen.  Replace gdb_file_get_strbuf with
1051         tui_file_get_strbuf.
1052         
1053 Mon Nov  8 16:54:51 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1054
1055         * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
1056         (tuiSetDisassemContent): Repace gdb_file_deallocate with
1057         gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
1058
1059 Fri Sep 17 19:34:38 1999  Andrew Cagney  <cagney@b1.cygnus.com>
1060
1061         * tuiSource.c: Include "source.h".
1062         (open_source_file, find_source_lines): Delete declarations.
1063
1064 1999-01-26  Jason Molenda  (jsm@bugshack.cygnus.com)
1065
1066         * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
1067         system.
1068
1069 Thu Dec 31 12:08:32 1998  David Taylor  <taylor@texas.cygnus.com>
1070
1071         The following changes were made by Jim Blandy <jimb@cygnus.com>,
1072         Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
1073         <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
1074         Taylor <taylor@cygnus.com>, as part of the project to merge in
1075         changes originally made by HP; HP did not create ChangeLog
1076         entries.
1077
1078         * Makefile.in: New file; we're merging HP's changes into GDB, and
1079         we've moved the TUI files into a subdirectory, so we need a new
1080         Makefile.
1081
1082         * tui.c:
1083         #include <term.h>, if we have it, to get declarations for
1084         the termcap functions on Solaris.
1085         (tgoto): Add external K&R declaration for this; Solaris doesn't
1086         bother to actually declare it in their header files.
1087         (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
1088         we'd rather use the USG mechanisms than the Berkeley mechanisms
1089         (TIOCGETC is one of the Berkeley terminal control ioctls).
1090         Apologies if this causes trouble later; this should all be handled
1091         by autoconf...
1092         (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
1093         from ../utils.h.
1094         (tuiFree): replace safe_free with free.
1095         (strcat_to_buf): new function, copied from utils.c.
1096         (tuiInit): Add ignored `argv0' argument, to match the type that
1097         init_ui_hook expects; updated declaration.  Call the
1098         initialize_tui_files function constructed above.  Initialize
1099         flush_hook to NULL.
1100         (tuiInitWindows): Call tuiSetLocatorContent, to get the first
1101         element of the locator window's content allocated.  This seems
1102         wrong, because it must have been initialized somehow in HP's
1103         sources, and we should do it the same way now.  But we do get
1104         further before it segfaults.  [Postscript: HP didn't bother to
1105         initialize it; they compile
1106         (va_catch_errors, vcatch_errors): Functions moved here from
1107         ../utils.c in HP's sources.  They're not used anywhere else.
1108         (xdb_style): Delete this variable, and remove all references to
1109         it.  It's always true.
1110         (tuiInit, _tui_vDo): References removed.
1111
1112         * tui.h:  Add prototypes.
1113         Don't #include "gendefs.h"; it's only used in the TUI.
1114         Integrate its contents into this file:
1115         #include <ansidecl.h> here.
1116         (Opaque, OpaqueFuncPtr): Typedefs moved to here.
1117              
1118         * tuiCommand.c: #include "defs.h", so we get the appropriate
1119         definition of GDB_FILE.
1120
1121         * tuiData.c
1122         (freeWindow): replace safe_free with free.
1123         (tui_version): don't define it here; it's defined in main.c now.
1124
1125         * tuiDisassem.c
1126         (tuiSetDisassemContent): Call strcat_address_numeric instead of
1127         strcat_address.  Simplify the control structure. Use predefined
1128         GDB function to print asm inst address.  Use GDB_FILE to collect
1129         output into buffers.
1130
1131         * tuiIO.c
1132         (tgoto): Add external K&R declaration for this here too.
1133         (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
1134         (tuiPuts_unfiltered): change FILE to GDB_FILE.
1135         (tui_tputs): fix prototype for 3rd argument.
1136
1137         * tuiIO.h (tuiPuts_unfiltered): change declaration.
1138      
1139         * tuiLayout.c 
1140         (_tuiSetLayoutTo): for displaying registers, hook up the HP code
1141         that decides which registers to display (i.e. single precision
1142         float, double precision float, general, special). Previously,
1143         only handled TUI_GENERAL_REGS. Now that the code is hooked up,
1144         compiling with -z poses a problem. When the first layout command
1145         is 'layout regs', dataWin->detail is a NULL pointer, and gdb
1146         core dumps.
1147
1148         * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
1149
1150         * tuiRegs.c #include "defs.h" earlier, to avoid problems in
1151         <stdarg.h>.  No idea exactly what's conflicting with what, but the
1152         errors went away...
1153         (_tuiRegisterFormat): Change so that function creates a GDB_FILE
1154         object, calls pa_do_strcat_registers_info, copies the register
1155         info into a buffer, and deallocates the GDB_FILE object.  Remove
1156         some code that is not executed.  Also, call to
1157         pa_do_strcat_registers_info has an additional parameter,
1158         precision.  This code requires some new per-target functions that
1159         we don't want to merge.  Dyke it out, with #ifdef
1160         TUI_EXTENDED_FORMATTERS.
1161         (_tuiSetSpecialRegsContent): this function was ifdefed out.
1162         Hooked this up.
1163         (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
1164         out.  Hooked it up.
1165         (IS_64BIT): Just define this to be zero; we're not merging in the
1166         64-bit support.
1167         (tuiShowRegisters): Comment out all references to the "special"
1168         regs; we don't have a distinction between the "special" and
1169         "non-special" regs in most of our machine descriptions.  This code
1170         is PA-specific in other ways as well, and needs to be redesigned
1171         to be portable to other processors.
1172
1173         * tuiWin.c: #include <string.h>, to get a declaration for
1174         strchr.
1175  
1176         * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
1177         tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
1178         tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP).  Changed
1179         bool to int throughout.  Re-indented, GNU style.
1180
1181         * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
1182         tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
1183         tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
1184         Changed bool to int throughout.