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