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