aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
AgeCommit message (Collapse)AuthorFilesLines
2002-10-26 * tuiIO.c (tui_prep_terminal): Save the prompt registered in readline.Stephane Carrez2-2/+17
(tui_redisplay_readline): Use the last saved prompt. (tui_rl_saved_prompt): New.
2002-10-25 Fix PR gdb/787Stephane Carrez2-0/+25
* tuiWin.c (ACS_LRCORNER, ACS_LLCORNER, ACS_ULCORNER, ACS_URCORNER, ACS_HLINE, ACS_VLINE): Define if they don't exist.
2002-10-25 Fix PR gdb/478Stephane Carrez2-1/+6
* tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
2002-10-022002-10-02 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-1/+5
* inferior.h (registers_info, stepi_command, nexti_command, continue_command, interrupt_target_command): Export from infcmd.c. * frame.h (args_info, selected_frame_level_changed_hook, return_command): Export from stack.c. * v850ice.c (stepi_command, nexti_command, continue_command): use prototypes from inferior.h. * tracepoint.c (registers_info, args_info, locals_info): Use prototypes from frame.h and inferior.h. * Makefile.in (mi-main.o): Add dependency on frame.h. 2002-10-02 Elena Zannoni <ezannoni@redhat.com> * mi-main.c (mi_cmd_exec_return): Don't use return_command_wrapper, use return_command instead. (mi_cmd_exec_interrupt): Don't use interrupt_target_command_wrapper, use interrupt_target_command instead. (return_command_wrapper, interrupt_target_command_wrapper): Delete. Include frame.h. 2002-10-02 Elena Zannoni <ezannoni@redhat.com> * tui-hooks.c (selected_frame_level_changed_hook): Use the one exported from frame.h.
2002-09-302002-09-29 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni7-15/+46
* tui.c (tui_show_source): Don't access current_source_symtab, use accessor function instead. Include source.h and symtab.h * tuiDisassem.c (tuiShowDisassemAndUpdateSource, tuiVerticalDisassemScroll): Use accessor functions for current source line and symtab. Include source.h. * tuiLayout.c (_extractDisplayStartAddr): Use accessor functions for current source line and symtab. Include source.h. * tuiWin.c (_makeVisibleWithNewHeight): Ditto. * tuiSourceWin.c (tuiUpdateSourceWindowAsIs, tuiHorizontalSourceScroll): Ditto. * tuiSource.c (tuiVerticalSourceScroll): Ditto.
2002-09-13 * tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs.Stephane Carrez3-5/+22
(tui_initialize_readline): Allow to use space to leave SingleKey to enter one gdb command. (tui_enable): Restore the TUI keymap when we are back to TUI. (tui_disable): Restore normal keymap when leaving TUI. * tuiIO.c (tui_redisplay_readline): Restore the SingleKey mode when the buffer becomes empty and we are in tui_one_command_mode.
2002-09-13 * tuiIO.c (tui_setup_io): rl_already_prompted must be clearedStephane Carrez2-1/+6
when leaving TUI mode so that gdb prompt is displayed.
2002-09-13 * tuiStack.c (tui_make_status_line): Make sure the local bufferStephane Carrez2-3/+11
is large enough to hold the complete line.
2002-09-10 * tui-hooks.c (tui_event_loop): New function.Stephane Carrez4-3/+104
(tui_command_loop): New function to override gdb loop and make sure uiout is set according to TUI mode. (tui_command_loop): Install the specific TUI command hook. * tuiIO.c (tui_initialize_io): Initialize tui_old_uiout. (tui_uiout, tui_old_uiout): Make public. * tuiIO.h (tui_uiout, tui_old_uiout): Declare.
2002-09-03 * tuiIO.c (tui_putc): New function to print one character.Stephane Carrez3-14/+248
(printable_part): New function from readline/complete.c. (PUTX): New macro, likewise. (print_filename): New function, likewise. (get_y_or_n): New function, likewise and adapted for TUI. (tui_rl_display_match_list): New function from readline/complete.c and writes on TUI command window. (tui_setup_io): Install or remove the readline hook rl_completion_display_matches_hook so that completion is written directly in TUI command window instead of in the TUI pipe. (tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the TUI redirection pipe. (tui_getc): Likewise for call to tui_readline_output. (tui_readline_output): Likewise for function. * tui.c (tui_rl_startup_hook): Always take care of gdb prompt.
2002-09-02 * tuiWin.c (_newHeightOk): Fix compilation warnings.Stephane Carrez2-2/+6
2002-09-01 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the windowStephane Carrez2-1/+6
is not displayed.
2002-09-01 * tui-out.c (tui_out_new): Clear start_of_line.Stephane Carrez3-3/+9
* tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines to update the current source line.
2002-09-01 * tui-hooks.c (tui_detach_hook): New hook to know when a process dies.Stephane Carrez2-0/+17
(tui_install_hooks): Install it. (tui_remove_hooks): Remove it.
2002-09-01 * tuiData.h (FILE_PREFIX): Don't define.Stephane Carrez3-304/+15
(blankStr, locationStr, breakStr): Don't declare. (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise. (displayableWinContentOf, displayableWinContentAt): Likewise. (winElementHeight, winByName, freeAllWindows): Likewise. * tuiData.c (blankStr, locationStr, breakStr): Remove. (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove. (displayableWinContentOf, displayableWinContentAt): Remove. (winElementHeight, winByName, freeAllWindows): Remove.
2002-09-01 * tuiStack.c (tui_make_status_line): New function to create theStephane Carrez3-18/+185
status line. (tuiShowLocatorContent): Use it instead of displayableWinContentAt. * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix. (PC_PREFIX): Use upper case. (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define. (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
2002-08-31 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.Stephane Carrez4-30/+12
(tuiClearAllExecInfosContent): Likewise. (tuiEraseAllExecInfosContent): Ditto. (tuiUpdateSourceWindowsFromLocator): Ditto. * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove. * tui.h (tui_vCheckDataValues): Don't declare. (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise. (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto. (tui_vShowFrameInfo): Ditto.
2002-08-312002-08-31 Stephane Carrez <stcarrez@nerim.fr>Stephane Carrez5-4/+187
* tui.c (tui_commands): Table of single key commands. (tui_rl_command_key): New function to execute gdb command. (tui_rl_command_mode): New function to temporarily leave SingleKey. (tui_rl_next_keymap): New function to enter/leave the SingleKey mode. (tui_rl_startup_hook): New function to avoid prompt display by readline functions. (tui_set_key_mode): New function to set the key mode and install the readline keymap. (tui_initialize_readline): Create TUI SingleKey readline map. (tui_enable): Install rl_startup_hook. (tui_disable): Remove it. * tui.h (enum tui_key_mode): Declare. (tui_set_key_mode, tui_current_key_mode): Declare. * tuiIO.c (tui_redisplay_readline): Don't display the prompt in SingleKey mode. * tuiIO.h (tui_redisplay_readline): Declare.
2002-08-30 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous andStephane Carrez2-9/+20
current line.
2002-08-30 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.Stephane Carrez2-91/+29
(_hasBreak): Remove. (tuiShowSource): Fix comment indentation. (tuiSourceIsDisplayed): Likewise. (tuiVerticalSourceScroll): Likewise.
2002-08-30 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.Stephane Carrez6-154/+152
(tui_update_breakpoint_info): Declare. (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove. * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint information using tui_update_breakpoint_info. (tui_update_all_breakpoint_info): New function to refresh all execution windows. (tui_update_breakpoint_info): New function to recompute the status of exec info window from breakpoints. (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove. (tuiSetExecInfoContent): Use the exec info flags computed by tui_update_breakpoint_info to display a short status about breakpoints. * tuiData.h (TuiExecInfoContent): New for exec info string. (TuiWhichElement): Use it. (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines. (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines. (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise. (TUI_EXECINFO_SIZE): Likewise. * tuiData.c (initContentElement): Clear exec info string. * tui-hooks.c (get_breakpoint): Remove. (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info. (tui_event_delete_breakpoint): Likewise. (tui_event_modify_breakpoint): Likewise.
2002-08-28 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.Stephane Carrez3-25/+25
* tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use tui_find_disassembly_address to find the starting address of disassemble window.
2002-08-27 * tuiDisassem.c (tui_disassemble): New function to disassembleStephane Carrez4-114/+254
several lines in a buffer. (tui_find_disassembly_address): New function to search backward or forward a disassembly line. (tuiSetDisassemContent): Use tui_disassemble to obtain the real content and format it in the window. (tuiShowDisassemAndUpdateSource): Remove unused locals. (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to obtain the address to disassemble for the scrolling. * tuiDisassem.h (tuiGetBeginAsmAddress): Update. * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
2002-08-27 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.Stephane Carrez2-0/+8
2002-08-26 Fix PR gdb/393:Stephane Carrez2-0/+13
* tui.c (tui_disable): Update gdb's knowledge of its terminal using target_terminal_save_ours. (tui_enable): Likewise.
2002-08-25 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.Stephane Carrez2-14/+22
(tui_rl_change_windows): Renames tui_change_windows. (tui_rl_delete_other_windows): Renames tui_delete_other_windows. (tui_initialize_readline): Update.
2002-08-25 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.Stephane Carrez2-44/+7
(_hasBreak): Remove.
2002-08-25 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbolStephane Carrez2-8/+19
to find symbol address.
2002-08-25 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunctionStephane Carrez5-23/+14
and use tuiGetBeginAsmAddress. * tuiSourceWin.h (tui_display_main): Declare. * tui.h (tuiDisplayMainFunction): Remove. * tui-hooks.c (tui_new_objfile_hook): Update.
2002-08-25 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.Stephane Carrez2-9/+6
(tuiShowSourceAsIs): Don't declare.
2002-08-25 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always updateStephane Carrez2-4/+9
the frame position.
2002-08-25 * tuiStack.c (tuiSetLocatorContent): Remove.Stephane Carrez2-90/+46
(tuiUpdateLocatorInfoFromFrame): Remove. (tui_set_locator_info): Allocate the content buffer if necessary. (tui_set_locator_filename): Call tui_set_locator_info directly. (tuiShowFrameInfo): Likewise and use find_pc_line instead of find_pc_symtab.
2002-08-25 * tuiSourceWin.c (tuiDisplayMainFunction): Update to useStephane Carrez4-80/+73
tuiUpdateLocatorFilename. * tuiStack.c (tuiSetLocatorInfo): Make it static. (tuiSetLocatorContent): Likewise. (tuiUpdateLocatorInfoFromFrame): Likewise. (tuiSwitchFilename): Remove. (tui_set_locator_filename): New function (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify; use tui_set_locator_filename to record the filename. (tuiUpdateLocatorFilename): Likewise. (tuiUpdateLocatorInfoFromFrame): Update. (tuiSetLocatorContent): Likewise. * tuiStack.h (tuiClearLocatorContent): Don't declare. (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise. (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
2002-08-25 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpointStephane Carrez6-68/+59
comparison; cleanup. * tuiSource.c (tuiSetSourceContent): Set window title and filename. * tuiGeneralWin.c (boxWin): Print optional title on top of window. * tuiData.h (TuiSourceInfo): Add filename member. (TuiGenWinInfo): Add title member. * tuiData.c (initGenericPart): Clear title. (freeWindow): Free title and filename; remove unused locals. (initWinInfo): Clear filename. (tuiDelWindow): Free it; remove unused locals.
2002-08-25 * tuiStack.h (tuiGetLocatorFilename): Don't declare.Stephane Carrez3-45/+13
(tuiUpdateLocatorDisplay): Likewise. * tuiStack.c (tuiGetLocatorFilename): Remove. (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent instead of tuiUpdateLocatorDisplay. (tuiUpdateLocatorDisplay): Remove.
2002-08-25 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.Stephane Carrez3-32/+9
* tuiStack.c (tuiClearLocatorDisplay): Remove. (tuiShowLocatorContent): Use wclrtoeol to clear end of status line. (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
2002-08-25 * tuiStack.c (tui_get_function_from_frame): Rename fromStephane Carrez2-30/+44
_getFuncNameFromFrame; use print_address_symbolic to get symbolic name of address. (tuiUpdateLocatorInfoFromFrame): Update.
2002-08-25 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.Stephane Carrez3-29/+19
(_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise. (_tuiSetGeneralAndSpecialRegsContent): Likewise. (_tuiSetFloatRegsContent): Likewise. (_tuiRegisterName): Return a const char*. * tuiData.h (_TuiDataElement): Use const char* for name.
2002-08-25 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.Stephane Carrez3-35/+10
(tuiShowAllExecInfosContent): Likewise. * tuiSourceWin.c (tuiEraseAllSourceContent): Remove. (tuiShowAllExecInfosContent): Remove. (tuiAllocSourceBuffer): Remove unused locals.
2002-08-25 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_commandStephane Carrez2-36/+18
to follow other gdb's command names; use execute_command; cleanup. (_initialize_tuiStack): Update.
2002-08-25 * tuiWin.h (tui_update_gdb_sizes): Declare.Stephane Carrez2-0/+7
2002-08-24 * tui.c (strcat_to_buf): Use const char* for source item.Stephane Carrez3-3/+12
(tui_enable): Update the windows if there is a selected frame. * tui.h (strcat_to_buf): Update prototype. (strcat_to_buf_with_fmt): Remove.
2002-08-24 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb whatStephane Carrez3-7/+29
is the size of command window. (tuiResizeAll): Call it instead of init_page_info. * tui.c (tui_enable): Call it to resize to TUI command window. (tui_disable): Likewise for plain screen.
2002-08-24 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout andStephane Carrez4-22/+16
use tuiShowFrameInfo instead of tuiSetLocatorContent. * tuiLayout.h (showLayout): Remove. * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals. (_showSourceDisassemCommand): Likewise. (showLayout): Make it static. (lastLayout): Remove.
2002-08-24 * tuiSourceWin.c (tui_show_source_line): New function.Stephane Carrez8-135/+68
(tuiShowSourceContent): Call it and avoid clearing the window before redrawing it. (tuiClearAllSourceWinsContent): Remove. * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare. * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare. * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove. (tuiRefreshAll): Don't clear the window. (_makeVisibleWithNewHeight): Don't clear locator line. (tuiResizeAll): Remove unused locals. (_tuiAdjustWinHeights): Likewise. (_makeInvisibleAndSetNewHeight): Likewise. (_newHeightOk): Likewise. * tuiLayout.c (showLayout): Don't clear source windows. (tuiSetLayout): Don't clear the window. (_initAndMakeWin): Likewise for status line. * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window. (makeWindow): Likewise. (tuiClearWin): Remove. * tuiGeneralWin.h (tuiClearWin): Don't declare.
2002-08-24 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.Stephane Carrez6-233/+16
(tuiAsmWinIsDisplayed): Remove. (tuiShowAllSourceWinsContent): Remove. (tuiUpdateOnEnd): Remove. * tuiGeneralWin.c (scrollWinForward): Remove. (scrollWinBackward): Remove. (_winResize): Don't declare. * tui.h (tuiUpdateOnEnd): Don't declare. (vcatch_errors, va_catch_errors): Likewise. * tuiSourceWin.h (tuiUpdateOnEnd): Likewise. (tuiShowAllSourceWinsContent): Likewise. * tuiGeneralWin.h (scrollWinForward): Likewise. (scrollWinBackward): Likewise.
2002-08-24 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.Stephane Carrez2-1/+6
2002-08-18 Fix PR gdb/655Daniel Jacobowitz2-0/+7
* tui.c: Disable <termio.h> include.
2002-03-19* defs.h (XMALLOC): Define.Andrew Cagney2-7/+7
* gdb-events.sh (XMALLOC): Delete macro. * gdb-events.c, gdb-events.h: Regenerate. * gdbarch.sh (XMALLOC): Delete macro. * gdbarch.c: Regenerate. * serial.c (XMALLOC): Delete macro. * ui-file.c (XMALLOC): Ditto. * ser-unix.h (XMALLOC): Ditto. * sh-tdep.c (XMALLOC): Ditto. * ui-out.c (XMALLOC): Ditto. * utils.c (XMALLOC): Ditto. * i386-tdep.c (XMALLOC): Ditto. * gdb-events.c (XMALLOC): Ditto. * d10v-tdep.c (XMALLOC): Ditto. * cli-out.c (XMALLOC): Ditto. * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright. * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto. * ui-file.c, ui-out.c: Ditto.
2002-03-01Add FIXME explaining include problem.Andrew Cagney15-28/+191