1 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
4 * tuiWin.h: Declare the new variables.
5 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
6 (tui_update_variables): New function.
7 (translate): New function.
8 (tui_border_kind_enums, tui_border_mode_enums): New tables.
9 (tui_border_mode_translate): New table.
10 (tui_border_kind_translate_*): New tables.
11 (tui_active_border_mode): New variables.
12 (tui_border_*): New variables.
14 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
17 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
19 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
20 (tui_vUpdateLocatorFilename): Remove.
21 * tuiStack.h: Update prototypes.
23 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
24 (tuiLineIsDisplayed): Split for address and line.
25 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
26 (tuiUpdateSourceWindowAsIs): Likewise.
27 (tuiUpdateSourceWindowsWithAddr): Likewise.
28 (tuiUpdateSourceWindowsWithLine): Likewise.
29 (tuiHorizontalSourceScroll): Likewise.
30 (tuiSetIsExecPointAt): Likewise.
31 (tuiUpdateOnEnd): Likewise.
32 * tuiSourceWin.h: Update prototypes.
34 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
35 (tuiShowSource): Likewise.
36 (tuiVerticalSourceScroll): Likewise.
37 * tuiSource.h (tuiShowSource): Update prototype.
39 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
40 (tuiShowDisassem): Use TuiLineOrAddress type.
41 (tuiShowDisassemAndUpdateSource): Likewise.
42 (tuiVerticalDisassemScroll): Likewise.
43 (tuiShowDisassemAsIs): Remove.
44 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
46 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
47 (clearWinDetail): Likewise.
48 (displayableWinContentOf): Fix address conversion.
49 (tuiNextWin): Fix crash when the window is not yet created.
50 (partialWinByName): Likewise.
52 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
54 * tuiSourceWin.h: Remove unused declarations.
55 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
56 (tui_vUpdateSourceWindowsWithLine): Remove.
57 (tui_vAllSetHasBreakAt): Remove.
59 * tuiLayout.h (tui_set_layout): Declare.
60 (tui_vSetLayoutTo): Remove.
61 (tui_vAddWinToLayout): Remove.
62 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
63 (_tuiToggleLayout_command): Remove.
64 (_tuiToggleSplitLayout_command): Remove.
65 (_tuiLayout_command): Remove.
66 (tui_vSetLayoutTo): Remove.
67 (tui_vAddWinToLayout): Remove.
69 * tuiDataWin.h (tui_vCheckDataValues): Remove.
70 * tuiDataWin.c (tui_vCheckDataValues): Remove.
72 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
74 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
75 (_parseScrollingArgs): Use xstrdup.
76 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
77 (_tuiScrollBackward_command): Likewise.
78 (_tuiScrollLeft_command): Likewise.
79 (_tuiScrollRight_command): Likewise.
80 (_tuiSetFocus): Likewise.
81 (_tuiSetFocus_command): Likewise.
82 (_tuiRefreshAll_command): Likewise.
83 (_tuiSetTabWidth_command): Likewise.
84 (_tuiSetWinHeight): Likewise.
85 (_tuiSetWinHeight_command): Likewise.
86 (_tuiXDBsetWinHeight): Likewise.
87 (_tui_vSetFocus): Remove.
88 (_tui_vSetWinHeight): Remove.
89 (_tui_vXDBsetWinHeight): Remove.
91 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
93 * tuiCommand.h: Remove unused declarations.
94 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
95 (tuiIncrCommandCharCountBy): Remove.
96 (tuiDecrCommandCharCountBy): Remove.
97 (tuiSetCommandCharCountTo): Remove.
98 (tuiClearCommandCharCount): Remove.
100 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
102 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
103 create the tui class help.
104 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
105 * tuiRegs.c (_initialize_tuiRegs): Likewise.
106 * tuiStack.c (_initialize_tuiStack): Likewise.
108 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
110 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
111 (tuiVerticalDisassemScroll): Likewise.
112 (tuiShowDisassemAndUpdateSource): Check for null symtab to
115 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
117 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
118 (tuiRead, tui_vread): Remove.
120 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
121 (vcatch_errors, _tui_vDo): Remove.
122 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
124 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
125 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
126 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
127 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
128 (_tuiLayout_command): Call tui_set_layout.
130 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
131 (_tuiScrollRegsForward_command): Likewise.
132 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
133 (_tuiShowGeneral_command): Likewise.
134 (_tuiShowSpecial_command): Likewise.
135 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
136 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
137 (_tuiScrollForward_command): Call tui_scroll.
138 (_tuiScrollBackward_command): Likewise.
139 (_tuiScrollLeft_command): Likewise.
140 (_tuiScrollRight_command): Likewise.
141 (_tuiSetFocus_command): Call _tuiSetFocus.
142 (_tuiRefreshAll_command): Call tuiRefreshAll.
143 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
144 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
145 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
147 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
149 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
150 (TuiLineOrAddress): Likewise.
151 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
153 (tuiSetDisassemContent): Likewise.
154 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
155 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
156 (tuiSetLayout): Likewise.
157 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
158 (tuiUpdateSourceWindowsWithAddr): Likewise.
159 (tuiUpdateSourceWindowsWithLine): Likewise.
160 (tuiSetHasBreakAt): Likewise.
161 * tuiStack.c (tuiSetLocatorInfo): Likewise.
162 (tuiSwitchFilename): Likewise.
163 (tuiUpdateLocatorInfoFromFrame): Likewise.
164 (tuiSetLocatorContent): Likewise.
165 (tuiShowFrameInfo): Likewise.
166 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
167 * tuiSourceWin.h: Likewise.
168 * tuiStack.h: Likewise.
170 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
172 * tuiWin.c: Add missing includes.
173 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
174 * tuiLayout.c: Add missing includes.
175 (_initAndMakeWin): Don't put curses in echo mode.
176 (_extractDisplayStartAddr): Fix calls to find_line_pc.
177 (_tuiLayout_command): Missing ',' in warning call.
178 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
180 (tuiSetHasBreakAt): Check for null source file.
182 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
184 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
185 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
186 * tui.c (_tui_vToggle_command): Likewise.
188 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
190 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
192 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
194 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
195 each register window.
196 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
197 of the register to check.
198 (_tuiRegValueHasChanged): Likewise.
199 (_tuiRegisterName): Use REGISTER_NAME.
200 (tui_restore_gdbout): New function.
201 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
203 (START_SPECIAL_REGS): Define.
204 (_tuiGetRegisterRawValue): Use get_saved_register.
205 (_tuiDisplayRegister): Fix clearing of register window.
207 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
209 * tui-file.h (fputs_unfiltered_hook): Remove.
210 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
211 (tui_file_fputs): Likewise; simplify
213 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
215 * tuiStack.c: Add missing includes.
216 (tuiShowFrameInfo): Don't crash when there is no symbol table
217 associated with the pc.
218 * tuiSource.c (_hasBreak): Check for null source file.
219 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
220 (_tuiSetFocus): Check for null dataWin.
221 * tuiGeneralWin.c (refreshAll): Check for null list[type].
223 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
225 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
226 to disassemble in the curses window.
228 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
230 * tui.h: Cleanup to avoid inclusion of curses includes.
231 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
232 * tuiData.h: To here; include curses includes here.
233 (setTermHeightTo): Rename of setTermHeight to follow reality.
234 (setTermWidthTo): Likewise with setTermWidth.
236 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
238 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
239 tuiIO.c, tuiData.c: Likewise.
240 tuiDataWin.c, tuiDisassem.c: Likewise.
241 tuiGeneralWin.c, tuiLayout.c: Likewise.
242 tuiRegs.c, tuiSource.c: Likewise.
243 tuiSouceWin.c, tuiStack.c: Likewise.
245 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
247 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
248 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
249 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
250 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
251 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
252 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
254 2001-03-08 Andrew Cagney <ac131313@redhat.com>
256 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
258 2001-03-06 Kevin Buettner <kevinb@redhat.com>
260 * tui-file.h: Update/correct copyright notice.
262 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
264 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
267 2000-12-14 Kevin Buettner <kevinb@redhat.com>
269 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
270 of free() with xfree().
272 2000-06-22 Kevin Buettner <kevinb@redhat.com>
274 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
276 2000-06-20 Kevin Buettner <kevinb@redhat.com>
278 * tuiLayout.c: Eliminate use of PARAMS from this file.
280 2000-06-17 Kevin Buettner <kevinb@redhat.com>
282 * tuiIO.c: Eliminate use of PARAMS from this file.
284 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
286 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
288 (tui_file_fputs): Pass ``file'' and not ``stream'' to
289 tui_file_adjust_strbuf.
291 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
293 * tui.h: Include <ncurses.h> when available.
294 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
296 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
298 * Makefile.in: Delete.
300 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
302 * Makefile.in (distclean, maintainer-clean, realclean,
303 mostlyclean): New targets.
305 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
307 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
308 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
309 ui-file / ``struct ui_file''.
311 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
313 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
314 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
315 tui_file_rewind, tui_file_put, tui_file_fputs,
316 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
317 fputs_unfiltered_hook): Move to here from ../utils.c
319 * tui-file.h, tui-file.c: New files.
321 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
323 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
324 (tuiSetDisassemContent): Replace gdb_file_init_astring with
325 tui_sfileopen. Replace gdb_file_get_strbuf with
328 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
330 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
331 (tuiSetDisassemContent): Repace gdb_file_deallocate with
332 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
334 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
336 * tuiSource.c: Include "source.h".
337 (open_source_file, find_source_lines): Delete declarations.
339 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
341 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
344 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
346 The following changes were made by Jim Blandy <jimb@cygnus.com>,
347 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
348 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
349 Taylor <taylor@cygnus.com>, as part of the project to merge in
350 changes originally made by HP; HP did not create ChangeLog
353 * Makefile.in: New file; we're merging HP's changes into GDB, and
354 we've moved the TUI files into a subdirectory, so we need a new
358 #include <term.h>, if we have it, to get declarations for
359 the termcap functions on Solaris.
360 (tgoto): Add external K&R declaration for this; Solaris doesn't
361 bother to actually declare it in their header files.
362 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
363 we'd rather use the USG mechanisms than the Berkeley mechanisms
364 (TIOCGETC is one of the Berkeley terminal control ioctls).
365 Apologies if this causes trouble later; this should all be handled
367 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
369 (tuiFree): replace safe_free with free.
370 (strcat_to_buf): new function, copied from utils.c.
371 (tuiInit): Add ignored `argv0' argument, to match the type that
372 init_ui_hook expects; updated declaration. Call the
373 initialize_tui_files function constructed above. Initialize
375 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
376 element of the locator window's content allocated. This seems
377 wrong, because it must have been initialized somehow in HP's
378 sources, and we should do it the same way now. But we do get
379 further before it segfaults. [Postscript: HP didn't bother to
380 initialize it; they compile
381 (va_catch_errors, vcatch_errors): Functions moved here from
382 ../utils.c in HP's sources. They're not used anywhere else.
383 (xdb_style): Delete this variable, and remove all references to
384 it. It's always true.
385 (tuiInit, _tui_vDo): References removed.
387 * tui.h: Add prototypes.
388 Don't #include "gendefs.h"; it's only used in the TUI.
389 Integrate its contents into this file:
390 #include <ansidecl.h> here.
391 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
393 * tuiCommand.c: #include "defs.h", so we get the appropriate
394 definition of GDB_FILE.
397 (freeWindow): replace safe_free with free.
398 (tui_version): don't define it here; it's defined in main.c now.
401 (tuiSetDisassemContent): Call strcat_address_numeric instead of
402 strcat_address. Simplify the control structure. Use predefined
403 GDB function to print asm inst address. Use GDB_FILE to collect
407 (tgoto): Add external K&R declaration for this here too.
408 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
409 (tuiPuts_unfiltered): change FILE to GDB_FILE.
410 (tui_tputs): fix prototype for 3rd argument.
412 * tuiIO.h (tuiPuts_unfiltered): change declaration.
415 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
416 that decides which registers to display (i.e. single precision
417 float, double precision float, general, special). Previously,
418 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
419 compiling with -z poses a problem. When the first layout command
420 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
423 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
425 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
426 <stdarg.h>. No idea exactly what's conflicting with what, but the
428 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
429 object, calls pa_do_strcat_registers_info, copies the register
430 info into a buffer, and deallocates the GDB_FILE object. Remove
431 some code that is not executed. Also, call to
432 pa_do_strcat_registers_info has an additional parameter,
433 precision. This code requires some new per-target functions that
434 we don't want to merge. Dyke it out, with #ifdef
435 TUI_EXTENDED_FORMATTERS.
436 (_tuiSetSpecialRegsContent): this function was ifdefed out.
438 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
440 (IS_64BIT): Just define this to be zero; we're not merging in the
442 (tuiShowRegisters): Comment out all references to the "special"
443 regs; we don't have a distinction between the "special" and
444 "non-special" regs in most of our machine descriptions. This code
445 is PA-specific in other ways as well, and needs to be redesigned
446 to be portable to other processors.
448 * tuiWin.c: #include <string.h>, to get a declaration for
451 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
452 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
453 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
454 bool to int throughout. Re-indented, GNU style.
456 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
457 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
458 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
459 Changed bool to int throughout.