1 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
3 Import of readline 4.3.
5 * tuiWin.c: Include readline/readline.h.
6 (tui_update_gdb_sizes): Use accessor function rl_get_screen_size.
9 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
11 * tuiStack.c (tuiShowFrameInfo): Fix typo.
13 2002-11-29 Andrew Cagney <ac131313@redhat.com>
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.
19 2002-11-28 Andrew Cagney <ac131313@redhat.com>
21 * tuiStack.c (tuiShowFrameInfo): Use find_frame_sal instead of
24 2002-11-23 Andrew Cagney <ac131313@redhat.com>
26 * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
27 deprecated_frame_in_dummy. Fix coding style.
29 2002-11-21 Stephane Carrez <stcarrez@nerim.fr>
31 * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific
32 interpreter is installed.
34 2002-11-18 Andrew Cagney <ac131313@redhat.com>
36 * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
37 signal_handler_caller.
39 2002-11-10 Andrew Cagney <ac131313@redhat.com>
41 * tuiStack.c (tuiShowFrameInfo): Replace frame_in_dummy with
42 deprecated_frame_in_dummy.
44 2002-10-26 Stephane Carrez <stcarrez@nerim.fr>
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.
50 2002-10-25 Stephane Carrez <stcarrez@nerim.fr>
53 * tuiWin.c (ACS_LRCORNER, ACS_LLCORNER, ACS_ULCORNER, ACS_URCORNER,
54 ACS_HLINE, ACS_VLINE): Define if they don't exist.
56 2002-10-25 Stephane Carrez <stcarrez@nerim.fr>
59 * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
61 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
63 * tui-hooks.c (selected_frame_level_changed_hook): Use the one
64 exported from frame.h.
66 2002-09-29 Elena Zannoni <ezannoni@redhat.com>
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.
80 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
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.
90 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
92 * tuiIO.c (tui_setup_io): rl_already_prompted must be cleared
93 when leaving TUI mode so that gdb prompt is displayed.
95 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
97 * tuiStack.c (tui_make_status_line): Make sure the local buffer
98 is large enough to hold the complete line.
100 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
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.
110 2002-09-04 Stephane Carrez <stcarrez@nerim.fr>
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.
128 2002-09-02 Stephane Carrez <stcarrez@nerim.fr>
130 * tuiWin.c (_newHeightOk): Fix compilation warnings.
132 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
134 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
137 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
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.
143 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
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.
149 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
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.
157 * tuiData.c (blankStr, locationStr, breakStr): Remove.
158 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
159 (displayableWinContentOf, displayableWinContentAt): Remove.
160 (winElementHeight, winByName, freeAllWindows): Remove.
162 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
164 * tuiStack.c (tui_make_status_line): New function to create the
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.
172 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
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.
184 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
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
192 (tui_set_key_mode): New function to set the key mode and install
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
201 * tuiIO.h (tui_redisplay_readline): Declare.
203 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
205 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
208 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
210 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
212 (tuiShowSource): Fix comment indentation.
213 (tuiSourceIsDisplayed): Likewise.
214 (tuiVerticalSourceScroll): Likewise.
216 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
218 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
219 (tui_update_breakpoint_info): Declare.
220 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
222 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
223 information using tui_update_breakpoint_info.
224 (tui_update_all_breakpoint_info): New function to refresh all
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.
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.
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.
245 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
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
252 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
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.
266 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
268 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
270 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
273 * tui.c (tui_disable): Update gdb's knowledge of its terminal
274 using target_terminal_save_ours.
275 (tui_enable): Likewise.
277 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
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.
284 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
286 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
289 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
291 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
292 to find symbol address.
294 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
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.
302 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
304 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
305 (tuiShowSourceAsIs): Don't declare.
307 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
309 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
312 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
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
321 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
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.
339 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
341 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
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.
352 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
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.
361 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
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.
368 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
370 * tuiStack.c (tui_get_function_from_frame): Rename from
371 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
373 (tuiUpdateLocatorInfoFromFrame): Update.
375 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
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.
384 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
386 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
387 (tuiShowAllExecInfosContent): Likewise.
388 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
389 (tuiShowAllExecInfosContent): Remove.
390 (tuiAllocSourceBuffer): Remove unused locals.
392 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
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.
398 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
400 * tuiWin.h (tui_update_gdb_sizes): Declare.
402 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
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.
409 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
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.
417 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
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.
427 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
429 * tuiSourceWin.c (tui_show_source_line): New function.
430 (tuiShowSourceContent): Call it and avoid clearing the window before
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.
450 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
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.
466 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
468 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
470 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
473 * tui.c: Disable <termio.h> include.
475 2002-03-15 Andrew Cagney <ac131313@redhat.com>
477 * tui-out.c (XMALLOC): Delete macro. Update copyright.
479 2002-03-01 Andrew Cagney <ac131313@redhat.com>
481 * tui-hooks.c: Add FIXME to explain true/false problem. Update
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.
488 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
489 * tui-hooks.c: Include <curses.h> before "bfd.h".
491 * tuiCommand.c: Likewise.
492 * tuiData.c: Likewise.
493 * tuiDataWin.c: Likewise.
494 * tuiDisassem.c: Likewise.
495 * tuiGeneralWin.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.
504 2002-02-01 Andrew Cagney <ac131313@redhat.com>
506 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
508 2001-10-20 Andrew Cagney <ac131313@redhat.com>
510 * tuiDisassem.c: Include "value.h".
511 * tuiSourceWin.c: Ditto.
513 2001-09-28 Tom Tromey <tromey@redhat.com>
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.
520 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
522 * tuiSourceWin.c: Use disp_del instead of del.
524 * tuiSource.c: Use disp_del instead of del.
526 * tuiDisassem.c: Use disp_del instead of del.
528 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
530 * tui.c (tui_enable): Remove call to terminal_save_ours().
531 (tui_disable): Likewise.
533 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
540 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
548 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
556 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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
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.
570 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
577 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
585 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
587 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
589 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
591 * tui-file.c (tui_file_fputs): Use tui_puts.
593 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
595 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
596 * tuiStack.h (tuiGetLocatorFilename): Declare.
597 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
598 * tuiData.h (addToSourceWindows): Declare.
600 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
608 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
621 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
623 * tuiIO.h: Remove old declarations and add the new ones.
624 * tuiIO.c: New management for curses and gdb terminal interactions.
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.
637 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
639 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
640 (_tuiRegisterFormat): Reduce size of format result.
642 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
655 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
657 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
658 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
660 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
661 (tui_vUpdateLocatorFilename): Remove.
662 * tuiStack.h: Update prototypes.
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.
675 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
676 (tuiShowSource): Likewise.
677 (tuiVerticalSourceScroll): Likewise.
678 * tuiSource.h (tuiShowSource): Update prototype.
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.
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.
693 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
695 * tuiSourceWin.h: Remove unused declarations.
696 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
697 (tui_vUpdateSourceWindowsWithLine): Remove.
698 (tui_vAllSetHasBreakAt): Remove.
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.
710 * tuiDataWin.h (tui_vCheckDataValues): Remove.
711 * tuiDataWin.c (tui_vCheckDataValues): Remove.
713 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
732 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
741 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
749 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
751 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
752 (tuiVerticalDisassemScroll): Likewise.
753 (tuiShowDisassemAndUpdateSource): Check for null symtab to
756 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
758 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
759 (tuiRead, tui_vread): Remove.
761 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
762 (vcatch_errors, _tui_vDo): Remove.
763 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
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.
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.
788 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
790 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
791 (TuiLineOrAddress): Likewise.
792 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
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.
811 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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
821 (tuiSetHasBreakAt): Check for null source file.
823 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
825 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
826 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
827 * tui.c (_tui_vToggle_command): Likewise.
829 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
831 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
833 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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
844 (START_SPECIAL_REGS): Define.
845 (_tuiGetRegisterRawValue): Use get_saved_register.
846 (_tuiDisplayRegister): Fix clearing of register window.
848 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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
854 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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].
864 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
866 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
867 to disassemble in the curses window.
869 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
877 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
886 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
895 2001-03-08 Andrew Cagney <ac131313@redhat.com>
897 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
899 2001-03-06 Kevin Buettner <kevinb@redhat.com>
901 * tui-file.h: Update/correct copyright notice.
903 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
905 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
908 2000-12-14 Kevin Buettner <kevinb@redhat.com>
910 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
911 of free() with xfree().
913 2000-06-22 Kevin Buettner <kevinb@redhat.com>
915 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
917 2000-06-20 Kevin Buettner <kevinb@redhat.com>
919 * tuiLayout.c: Eliminate use of PARAMS from this file.
921 2000-06-17 Kevin Buettner <kevinb@redhat.com>
923 * tuiIO.c: Eliminate use of PARAMS from this file.
925 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
927 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
929 (tui_file_fputs): Pass ``file'' and not ``stream'' to
930 tui_file_adjust_strbuf.
932 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
934 * tui.h: Include <ncurses.h> when available.
935 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
937 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
939 * Makefile.in: Delete.
941 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
943 * Makefile.in (distclean, maintainer-clean, realclean,
944 mostlyclean): New targets.
946 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
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''.
952 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
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
960 * tui-file.h, tui-file.c: New files.
962 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
964 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
965 (tuiSetDisassemContent): Replace gdb_file_init_astring with
966 tui_sfileopen. Replace gdb_file_get_strbuf with
969 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
975 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
977 * tuiSource.c: Include "source.h".
978 (open_source_file, find_source_lines): Delete declarations.
980 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
982 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
985 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
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
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
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
1008 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
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
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.
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.
1034 * tuiCommand.c: #include "defs.h", so we get the appropriate
1035 definition of GDB_FILE.
1038 (freeWindow): replace safe_free with free.
1039 (tui_version): don't define it here; it's defined in main.c now.
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.
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.
1053 * tuiIO.h (tuiPuts_unfiltered): change declaration.
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
1064 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
1066 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
1067 <stdarg.h>. No idea exactly what's conflicting with what, but the
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.
1079 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
1081 (IS_64BIT): Just define this to be zero; we're not merging in the
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.
1089 * tuiWin.c: #include <string.h>, to get a declaration for
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.
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.