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