Commit Graph

9900 Commits

Author SHA1 Message Date
Stephane Carrez 39db33d602 * tui.h: Remove old declarations, add the new ones.
* tui.c (tui_switch_mode): New function.
        (tui_initialize_readline): New function.
        (tui_enable): New function.
        (tui_disable): New function.
        (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
        (tui_vSelectSourceSymtab): Remove.
        (tuiInitWindows): Remove.
        (_initialize_tui): Remove.
        (_tuiReset): Keep but put arround #if 0.
2001-07-21 19:59:14 +00:00
Stephane Carrez a198b876bb * tuiIO.h: Remove old declarations and add the new ones.
* tuiIO.c: New management for curses and gdb terminal interactions.
        (tui_tputs): Remove.
        (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
        (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
        (tui_owns_terminal): Remove.
        (tui_redisplay_readline): New function.
        (tui_puts): New function.
        (tui_prep_terminal): New function.
        (tui_deprep_terminal): New function.
        (tui_getc): Rename of tuiGetc, simplify and fix.
        (tui_setup_io): New function.
        (tui_initialize_io): New function.
2001-07-21 19:56:54 +00:00
Stephane Carrez fea1470223 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
(_tuiRegisterFormat): Reduce size of format result.
2001-07-21 19:46:59 +00:00
Stephane Carrez af10151233 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
* tuiWin.h: Declare the new variables.
	* tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
	(tui_update_variables): New function.
	(translate): New function.
	(tui_border_kind_enums, tui_border_mode_enums): New tables.
	(tui_border_mode_translate): New table.
	(tui_border_kind_translate_*): New tables.
	(tui_active_border_mode): New variables.
	(tui_border_*): New variables.
2001-07-21 19:44:38 +00:00
gdbadmin 5634783365 *** empty log message *** 2001-07-21 00:00:01 +00:00
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
John R. Moore be9c6c3593 Three misspellings. 2001-07-20 01:14:05 +00:00
gdbadmin aeb2b5d308 *** empty log message *** 2001-07-20 00:00:03 +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
Daniel Jacobowitz 0150732f4e * signals.c: New file.
* Makefile.in: Add signals.o.
        * target.c (struct signals, target_signal_to_name)
        (target_signal_from_name, target_signal_from_host)
        (do_target_signal_to_host, target_signal_to_host_p)
        (target_signal_to_host, target_signal_from_command): Move to
        signals.c.
        (initialize_targets): Move check of struct signals to...
        * signals.c (_initialize_signals): Here.
2001-07-19 18:09:11 +00:00
Andrew Cagney e36118e765 Add Michael Chansain as C++ testsuite maintainer. 2001-07-19 05:22:46 +00:00
Andrew Cagney b4fc7a3068 * configure.tgt (i*86-*-pe*): New target. 2001-07-19 05:10:38 +00:00
Andrew Cagney 4b048bc096 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
* infttrace.c (child_thread_alive): Fix gdb_tid typo.
* somsolib.c (no_shared_libraries): Provide stub.
* xcoffsolib.c (no_shared_libraries): Provide stub.
2001-07-19 04:58:17 +00:00
gdbadmin ad87b05891 *** empty log message *** 2001-07-19 00:00:03 +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 227288a05c * Makefile.in (COMMON_OBS): Remove tui-file.o.
(SUBDIR_TUI_OBS): Add it here.
	(SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
	(main.o): Remove dependency with tui-file.h.
2001-07-18 20:53:35 +00:00
gdbadmin ddd9d5896f *** empty log message *** 2001-07-18 00:00:05 +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 7e5a932280 * gdb.base/long_long.exp: Detect size of pointer. Take into
account 2-byte pointers when testing for p/a results.
2001-07-17 22:19:49 +00:00
Stephane Carrez de58f10fe4 * gdb.base/remote.c (RANDOM_DATA_SIZE): New define, defaults to 48K
and defined to 1K for m68hc11.
	(random_data): Reduce table to 1K for embedded platforms (68hc11).
	* gdb.base/remote.exp (get_sizeof): New function from sizeof.exp.
	(sizeof_random_data): New variable to tell the size of the data table;
	don't test past this size; always run to main.
2001-07-17 21:47:19 +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
Elena Zannoni d0c8cdfbfd 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
* top.c (catch_errors): Convert PTR to void * in parameters list.
	(quit_cover): Ditto.
2001-07-17 17:25:14 +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 063190b6cb * source.c (find_source_lines): Remove tui test, must be replaced
by appropriate warning hook.
	(print_source_lines): Remove tui hacks, must be replaced by cli.
	(forward_search_command): Remove tui hacks, can be replaced by
	appropriate calls to identify_source_line when tui scrolls.
	(reverse_search_command): Likewise.
2001-07-17 06:41:47 +00:00
Nicholas Duffek cf759d3bc0 * remote.c (init_remote_ops, init_remote_cisco_ops,
init_remote_async_ops): Set to_pid_to_str and
	to_extra_thread_info correctly and in the same order as declared
	in target.h.
2001-07-17 01:23:44 +00:00
Andrew Cagney 0caabb7ecb Revert previous, included more than intended. 2001-07-17 00:27:28 +00:00
gdbadmin b69e2f0e64 *** empty log message *** 2001-07-17 00:00:03 +00:00
Nicholas Duffek 943b397116 * remote.c (init_remote_ops, init_remote_cisco_ops,
init_remote_async_ops): Set to_pid_to_str and
	to_extra_thread_info correctly and in the same order as declared
	in target.h.
2001-07-16 23:32:14 +00:00
Nicholas Duffek 9ed10b0851 * findvar.c (read_var_value): Apply value_as_pointer() to
addresses retrieved from the target for LOC_BASEREG and
	LOC_BASEREG_ARG variables.
2001-07-16 22:57:50 +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 d6f5fea1d2 * gdb.base/return2.exp: return of long long and double fails for
68HC11; don't execute these tests on that platform.
	* gdb.base/return.exp: Return of a double fails for 68hc11.
2001-07-16 18:49:43 +00:00
Stephane Carrez c477543d3a * call-ar-st.exp: Use gdb_skip_float_test to avoid executing
tests that print a float.
	* call-rt-st.exp: Likewise.
2001-07-16 18:44:23 +00:00
Orjan Friberg 24be5c3496 2001-07-16 Orjan Friberg <orjanf@axis.com>
* NEWS: New target CRIS.
2001-07-16 16:02:48 +00:00
Elena Zannoni 314b6fb79a 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
* top.c (show_commands): Remove extern decl of history_get, it's
	already in readline/history.h.
2001-07-16 15:50:51 +00:00
Elena Zannoni 210661e72f 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
* top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
        execute_user_command, do_setshow_command, get_prompt, init_proc,
        serial_log_command): Remove extern declarations.  Include
        cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
        * gdbcmd.h (execute_user_command): Remove declaration, it's already
        in cli/cli-script.h.
        * command.h (do_setshow_command): Remove declaration, it's already
        in cli/cli-setshow.h.
        * infrun.c: Include "cli/cli-script.h" for execute_user_command.
        * Makefile.in (infrun.o): Update dependencies.
        (top.o): Ditto.
        * cli/cli-setshow.h: Add comment for do_setshow_command.
2001-07-16 14:46:34 +00:00
Eli Zaretskii 2584159ed9 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
call to chdir on this symbol rather than on __DJGPP__.
	(CANT_FORK) [__MSDOS__]: Move from here...
	* defs.h (CANT_FORK) [__MSDOS__]: ...to here.
	(GLOBAL_CURDIR) [__MSDOS__]: Define.
2001-07-16 14:13:06 +00:00
Orjan Friberg cf54db7985 2001-07-16 Orjan Friberg <orjanf@axis.com>
* configure.tgt: Recognise the CRIS architecture.
	* config/cris/cris.mt: New file for CRIS target.
	* cris-tdep.c: New file for CRIS target.
2001-07-16 08:58:32 +00:00
Orjan Friberg 291349806f 2001-07-16 Orjan Friberg <orjanf@axis.com>
* configure.tgt: Recognise the CRIS architecture.
	* config/cris/cris.mt: New file for CRIS target.
	* cris-tdep.c: New file for CRIS target.
2001-07-16 08:52:41 +00:00
gdbadmin 0a68674243 *** empty log message *** 2001-07-16 00:00:02 +00:00
Elena Zannoni 64cdedadad 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
* top.c (quit_cover, float_handler): Move definition up before use.
	(gdb_init): Move to end of file, to avoid calls to not yet defined
	functions.
	Delete prototypes.
2001-07-15 20:45:32 +00:00
Andrew Cagney 2cd58942b9 * serial.h (SERIAL_ASYNC): Delete.
(DEPRECATED_SERIAL_FD): Delete.
(SERIAL_DEBUG): Delete.
(SERIAL_DEBUG_P): Delete.
(SERIAL_DRAIN_OUTPUT): Delete.
(SERIAL_FLUSH_OUTPUT): Delete.
(SERIAL_FLUSH_INPUT): Delete.
(SERIAL_SEND_BREAK): Delete.
(SERIAL_RAW): Delete.
(SERIAL_GET_TTY_STATE): Delete.
(SERIAL_SET_TTY_STATE): Delete.
(SERIAL_PRINT_TTY_STATE): Delete.
(SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
(SERIAL_SETBAUDRATE): Delete.
(SERIAL_SETSTOPBITS): Delete.
(SERIAL_CAN_ASYNC_P): Delete.
(SERIAL_IS_ASYNC_P): Delete.
(SERIAL_UN_FDOPEN): Delete.
(SERIAL_READCHAR): Delete.
(SERIAL_CLOSE): Delete.
(SERIAL_FDOPEN): Delete.
(SERIAL_OPEN): Delete.
2001-07-15 20:34:14 +00:00