OSDN Git Service

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