aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
AgeCommit message (Collapse)AuthorFilesLines
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
2002-02-082002-02-08 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz14-0/+140
* utils.c: Include <curses.h> before "bfd.h". * tui/tui-hooks.c: Likewise. * tui/tui.c: Likewise. * tui/tuiCommand.c: Likewise. * tui/tuiData.c: Likewise. * tui/tuiDataWin.c: Likewise. * tui/tuiDisassem.c: Likewise. * tui/tuiGeneralWin.c: Likewise. * tui/tuiIO.c: Likewise. * tui/tuiLayout.c: Likewise. * tui/tuiRegs.c: Likewise. * tui/tuiSource.c: Likewise. * tui/tuiSourceWin.c: Likewise. * tui/tuiStack.c: Likewise. * tui/tuiWin.c: Likewise.
2002-02-02s/NO_FUNCTION/NULL/Andrew Cagney2-1/+5
2001-10-21Add explicit #include of "value.h".Andrew Cagney3-0/+7
2001-09-28 * tuiLayout.h (tui_set_layout): Don't declare.Tom Tromey3-3/+8
* tui.h (tui_vAddWinToLayout): Don't declare. (tui_vSetLayoutTo): Likewise. (tui_set_layout): Declare.
2001-08-02 The following changes avoid polluting global namespace with theEli Zaretskii4-3/+11
`enable' and `disable' identifiers, because some platforms define in their system headers symbols with global scope that go by those names. * breakpoint.h (enum enable_state): Rename from `enum enable'. Also rename all the enum members to have the "bp_" prefix. (struct breakpoint): Rename the `enable' member to `enable_state'. (enum bpdisp): Rename all members to have the "disp_" prefix. * breakpoint.c: All users of `enum enable' and `enum bpdisp' changed. (args_for_catchpoint_enable): Rename the `enable' member to `enable_p'. All users changed. * tracepoint.h (enum enable): Remove. (struct tracepoint): The member `enabled' is now `int enabled_p'. * tracepoint.c: All users of the `enabled' member changed. * printcmd.c (struct display): The `status' member is now an int. * memattr.h (struct mem_region): Rename the `status' member to `enabled_p'. (enum enable): Remove. * memattr.c: Change all users of the `status' member of struct mem_region to use `enabled_p' instead. * infcmd.c (run_stack_dummy): Use disp_del instead of del. * go32-nat.c: Remove the kludgey work-around for conflicts between <dos.h> and "breakpoint.h". * tui/tuiSourceWin.c: Use disp_del instead of del. * tui/tuiSource.c: Use disp_del instead of del. * tui/tuiDisassem.c: Use disp_del instead of del.
2001-07-31 * tui.c (tui_enable): Remove call to terminal_save_ours().Stephane Carrez2-5/+5
(tui_disable): Likewise.
2001-07-28 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix forStephane Carrez2-10/+36
set/show configuration variables. (show_tui_cmd): New function. (set_tui_cmd): New function.
2001-07-24 * tui-hooks.c: New file, gdb hooks for tui.Stephane Carrez3-0/+812
* tui-out.c: New file, image copied from cli-out.c. (tui_field_int): Identify "line" fields and keep track of them. (tui_field_string): Likewise for "file". (tui_out_new): Use flags = 0 to avoid printing the sources.
2001-07-24Missed changelog entries for previous 2 commitsStephane Carrez1-0/+22
2001-07-23 * tuiIO.c (tui_cont_sig): Update cursor position on the screen toStephane Carrez2-6/+17
leave it in the command window. (tui_redisplay_readline): Save cursor position to restore the cursor after we go back from background. * tuiData.h (TuiCommandInfo): Add start_line member.