Stephane Carrez
a4b99e5344
* tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
...
(_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
* tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
(tui_vUpdateLocatorFilename): Remove.
* tuiStack.h: Update prototypes.
* tuiSourceWin.c (tuiAddrIsDisplayed): New function.
(tuiLineIsDisplayed): Split for address and line.
(tuiUpdateSourceWindow): Use TuiLineOrAddress type.
(tuiUpdateSourceWindowAsIs): Likewise.
(tuiUpdateSourceWindowsWithAddr): Likewise.
(tuiUpdateSourceWindowsWithLine): Likewise.
(tuiHorizontalSourceScroll): Likewise.
(tuiSetIsExecPointAt): Likewise.
(tuiUpdateOnEnd): Likewise.
* tuiSourceWin.h: Update prototypes.
* tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
(tuiShowSource): Likewise.
(tuiVerticalSourceScroll): Likewise.
* tuiSource.h (tuiShowSource): Update prototype.
* tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
(tuiShowDisassem): Use TuiLineOrAddress type.
(tuiShowDisassemAndUpdateSource): Likewise.
(tuiVerticalDisassemScroll): Likewise.
(tuiShowDisassemAsIs): Remove.
* tuiDisassem.h (tuiSetDisassemContent): Update prototype.
* tuiData.c (initWinInfo): Use CORE_ADDR for address.
(clearWinDetail): Likewise.
(displayableWinContentOf): Fix address conversion.
(tuiNextWin): Fix crash when the window is not yet created.
(partialWinByName): Likewise.
2001-07-20 23:06:48 +00:00
Stephane Carrez
19eb139b72
* tuiSourceWin.h: Remove unused declarations.
...
* tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
(tui_vUpdateSourceWindowsWithLine): Remove.
(tui_vAllSetHasBreakAt): Remove.
* tuiLayout.h (tui_set_layout): Declare.
(tui_vSetLayoutTo): Remove.
(tui_vAddWinToLayout): Remove.
* tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
(_tuiToggleLayout_command): Remove.
(_tuiToggleSplitLayout_command): Remove.
(_tuiLayout_command): Remove.
(tui_vSetLayoutTo): Remove.
(tui_vAddWinToLayout): Remove.
* tuiDataWin.h (tui_vCheckDataValues): Remove.
* tuiDataWin.c (tui_vCheckDataValues): Remove.
2001-07-20 22:26:54 +00:00
Stephane Carrez
1854bb2190
* tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
...
(_parseScrollingArgs): Use xstrdup.
(_tuiScrollForward_command): Call tui_enable() to force TUI mode.
(_tuiScrollBackward_command): Likewise.
(_tuiScrollLeft_command): Likewise.
(_tuiScrollRight_command): Likewise.
(_tuiSetFocus): Likewise.
(_tuiSetFocus_command): Likewise.
(_tuiRefreshAll_command): Likewise.
(_tuiSetTabWidth_command): Likewise.
(_tuiSetWinHeight): Likewise.
(_tuiSetWinHeight_command): Likewise.
(_tuiXDBsetWinHeight): Likewise.
(_tui_vSetFocus): Remove.
(_tui_vSetWinHeight): Remove.
(_tui_vXDBsetWinHeight): Remove.
2001-07-20 22:22:08 +00:00
Stephane Carrez
9b2d6ccae7
* tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
...
(tuiIncrCommandCharCountBy): Remove.
(tuiDecrCommandCharCountBy): Remove.
(tuiSetCommandCharCountTo): Remove.
(tuiClearCommandCharCount): Remove.
2001-07-20 22:17:49 +00:00
Stephane Carrez
4178329584
* tuiWin.c (_initialize_tuiWin): Always define the tui commands;
...
create the tui class help.
* tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
* tuiRegs.c (_initialize_tuiRegs): Likewise.
* tuiStack.c (_initialize_tuiStack): Likewise.
2001-07-19 22:47:46 +00:00
Stephane Carrez
3024f13a83
* tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
...
(tuiVerticalDisassemScroll): Likewise.
(tuiShowDisassemAndUpdateSource): Check for null symtab to
prevent a crash.
2001-07-19 21:56:39 +00:00
Stephane Carrez
e8b915dc07
* tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
...
(tuiRead, tui_vread): Remove.
* tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
(vcatch_errors, _tui_vDo): Remove.
* tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
* tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
(tui_set_layout): Rename of _tuiSetLayoutTo, public.
(_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
(_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
(_tuiLayout_command): Call tui_set_layout.
* tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
(_tuiScrollRegsForward_command): Likewise.
(_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
(_tuiShowGeneral_command): Likewise.
(_tuiShowSpecial_command): Likewise.
(_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
* tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
(_tuiScrollForward_command): Call tui_scroll.
(_tuiScrollBackward_command): Likewise.
(_tuiScrollLeft_command): Likewise.
(_tuiScrollRight_command): Likewise.
(_tuiSetFocus_command): Call _tuiSetFocus.
(_tuiRefreshAll_command): Call tuiRefreshAll.
(_tuiSetWinHeight_command): Call _tuiSetWinHeight.
(_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
* tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
2001-07-18 22:03:22 +00:00
Stephane Carrez
c774cec6a7
* tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
...
(TuiLineOrAddress): Likewise.
* tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
an address.
(tuiSetDisassemContent): Likewise.
(tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
* tuiLayout.c (_extractDisplayStartAddr): Likewise.
(tuiSetLayout): Likewise.
* tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
(tuiUpdateSourceWindowsWithAddr): Likewise.
(tuiUpdateSourceWindowsWithLine): Likewise.
(tuiSetHasBreakAt): Likewise.
* tuiStack.c (tuiSetLocatorInfo): Likewise.
(tuiSwitchFilename): Likewise.
(tuiUpdateLocatorInfoFromFrame): Likewise.
(tuiSetLocatorContent): Likewise.
(tuiShowFrameInfo): Likewise.
* tuiDisassem.h: Update prototypes to use CORE_ADDR.
* tuiSourceWin.h: Likewise.
* tuiStack.h: Likewise.
2001-07-18 20:59:00 +00:00
Stephane Carrez
84b1e7c7ee
* tuiWin.c: Add missing includes.
...
(_makeVisibleWithNewHeight): Fix call to find_line_pc.
* tuiLayout.c: Add missing includes.
(_initAndMakeWin): Don't put curses in echo mode.
(_extractDisplayStartAddr): Fix calls to find_line_pc.
(_tuiLayout_command): Missing ',' in warning call.
* tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
find_line_pc.
(tuiSetHasBreakAt): Check for null source file.
2001-07-17 22:22:40 +00:00
Stephane Carrez
0963fc9672
* tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
...
* tuiLayout.c (_tuiSetLayoutTo): Likewise.
* tui.c (_tui_vToggle_command): Likewise.
2001-07-17 21:37:18 +00:00
Elena Zannoni
f9eb4b0146
2001-07-17 Elena Zannoni <ezannoni@redhat.com>
...
* Makefile.in (tui-file.o): Update dependencies.
* tui/tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
2001-07-17 20:22:51 +00:00
Stephane Carrez
c46cc7dffe
* tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
...
each register window.
(tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
of the register to check.
(_tuiRegValueHasChanged): Likewise.
(_tuiRegisterName): Use REGISTER_NAME.
(tui_restore_gdbout): New function.
(_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
to a string.
(START_SPECIAL_REGS): Define.
(_tuiGetRegisterRawValue): Use get_saved_register.
(_tuiDisplayRegister): Fix clearing of register window.
2001-07-17 06:44:57 +00:00
Stephane Carrez
e42acc6bba
* tui-file.h (fputs_unfiltered_hook): Remove.
...
* tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
(tui_file_fputs): Likewise; simplify
2001-07-17 06:42:58 +00:00
Stephane Carrez
75fd9bc1ec
* tuiStack.c: Add missing includes.
...
(tuiShowFrameInfo): Don't crash when there is no symbol table
associated with the pc.
* tuiSource.c (_hasBreak): Check for null source file.
* tuiWin.c (tuiRefreshAll): Check for null winList[type].
(_tuiSetFocus): Check for null dataWin.
* tuiGeneralWin.c (refreshAll): Check for null list[type].
2001-07-16 22:13:38 +00:00
Stephane Carrez
a8080b7fbf
* tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
...
to disassemble in the curses window.
2001-07-16 22:10:07 +00:00
Stephane Carrez
2a5127c4e3
* tui.h: Cleanup to avoid inclusion of curses includes.
...
(TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
* tuiData.h: To here; include curses includes here.
(setTermHeightTo): Rename of setTermHeight to follow reality.
(setTermWidthTo): Likewise with setTermWidth.
2001-07-16 22:05:02 +00:00
Stephane Carrez
eca6576c19
* tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
...
tuiIO.c, tuiData.c: Likewise.
tuiDataWin.c, tuiDisassem.c: Likewise.
tuiGeneralWin.c, tuiLayout.c: Likewise.
tuiRegs.c, tuiSource.c: Likewise.
tuiSouceWin.c, tuiStack.c: Likewise.
2001-07-14 19:31:09 +00:00
Stephane Carrez
f377b40658
* tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
...
tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
2001-07-14 19:01:25 +00:00
Andrew Cagney
a728f04251
Eliminate ARCH_NUM_REGS.
2001-03-13 23:31:14 +00:00
Kevin Buettner
b6ba6518e9
Update/correct copyright notices.
2001-03-06 08:22:02 +00:00
Andrew Cagney
8e65ff28b0
Add __FILE__ and __LINE__ parameter to internal_error() /
...
internal_verror().
2001-02-08 06:03:54 +00:00
Kevin Buettner
e7b044d683
Removed (tui and mi) directory prefixes from ChangeLog comments that I
...
added in last commit.
2000-12-15 03:00:38 +00:00
Kevin Buettner
46c6187fb5
Put mi and tui comments for free -> xfree change in proper ChangeLogs.
2000-12-15 02:56:42 +00:00
Kevin Buettner
f777891334
PARAMS elimination.
2000-06-22 07:16:20 +00:00
Kevin Buettner
f6dd1e7029
PARAMS elimination.
2000-06-20 07:13:39 +00:00
Kevin Buettner
692248f335
PARAMS elimination.
2000-06-18 00:23:24 +00:00
Andrew Cagney
fbc75a324a
Fix bitrot in tui-file.c.
2000-05-26 06:15:49 +00:00
Andrew Cagney
2894793a7b
Configure TUI to use <ncurses.h> when available.
2000-05-26 04:11:34 +00:00
Andrew Cagney
ed952ac512
Have TUI use the same configury mechanism as MI.
2000-05-25 01:50:50 +00:00
Andrew Cagney
784f35f92c
Add full set of cleanup rules.
2000-04-18 08:04:59 +00:00
Jason Molenda
d9fcf2fb1c
import gdb-2000-02-01 snapshot
2000-02-02 00:21:19 +00:00
Jason Molenda
da59e08184
import gdb-2000-01-31 snapshot
2000-02-01 03:19:29 +00:00
Jason Molenda
11cf874164
import gdb-1999-11-08 snapshot
1999-11-09 01:23:30 +00:00
Jason Molenda
c2c6d25f0d
import gdb-1999-09-21
1999-09-22 03:28:34 +00:00
Stan Shebs
c906108c21
Initial creation of sourceware repository
1999-04-16 01:35:26 +00:00
Stan Shebs
071ea11e85
Initial creation of sourceware repository
1999-04-16 01:34:07 +00:00
Jason Molenda
00c1f9b9c0
1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
...
* tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
system.
Without this you'll get a build failure in gdbtk.c because it includes
stdarg.h but tui.h includes varargs.h; gdbtk.c tries to use va_start
and things die.
1999-01-27 00:48:10 +00:00
David Taylor
03b93bdc82
HP tui support files for gdb.
1998-12-31 17:46:28 +00:00