1 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
4 (_parseScrollingArgs): Use xstrdup.
5 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
6 (_tuiScrollBackward_command): Likewise.
7 (_tuiScrollLeft_command): Likewise.
8 (_tuiScrollRight_command): Likewise.
9 (_tuiSetFocus): Likewise.
10 (_tuiSetFocus_command): Likewise.
11 (_tuiRefreshAll_command): Likewise.
12 (_tuiSetTabWidth_command): Likewise.
13 (_tuiSetWinHeight): Likewise.
14 (_tuiSetWinHeight_command): Likewise.
15 (_tuiXDBsetWinHeight): Likewise.
16 (_tui_vSetFocus): Remove.
17 (_tui_vSetWinHeight): Remove.
18 (_tui_vXDBsetWinHeight): Remove.
20 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
22 * tuiCommand.h: Remove unused declarations.
23 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
24 (tuiIncrCommandCharCountBy): Remove.
25 (tuiDecrCommandCharCountBy): Remove.
26 (tuiSetCommandCharCountTo): Remove.
27 (tuiClearCommandCharCount): Remove.
29 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
31 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
32 create the tui class help.
33 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
34 * tuiRegs.c (_initialize_tuiRegs): Likewise.
35 * tuiStack.c (_initialize_tuiStack): Likewise.
37 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
39 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
40 (tuiVerticalDisassemScroll): Likewise.
41 (tuiShowDisassemAndUpdateSource): Check for null symtab to
44 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
46 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
47 (tuiRead, tui_vread): Remove.
49 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
50 (vcatch_errors, _tui_vDo): Remove.
51 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
53 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
54 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
55 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
56 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
57 (_tuiLayout_command): Call tui_set_layout.
59 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
60 (_tuiScrollRegsForward_command): Likewise.
61 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
62 (_tuiShowGeneral_command): Likewise.
63 (_tuiShowSpecial_command): Likewise.
64 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
65 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
66 (_tuiScrollForward_command): Call tui_scroll.
67 (_tuiScrollBackward_command): Likewise.
68 (_tuiScrollLeft_command): Likewise.
69 (_tuiScrollRight_command): Likewise.
70 (_tuiSetFocus_command): Call _tuiSetFocus.
71 (_tuiRefreshAll_command): Call tuiRefreshAll.
72 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
73 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
74 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
76 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
78 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
79 (TuiLineOrAddress): Likewise.
80 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
82 (tuiSetDisassemContent): Likewise.
83 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
84 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
85 (tuiSetLayout): Likewise.
86 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
87 (tuiUpdateSourceWindowsWithAddr): Likewise.
88 (tuiUpdateSourceWindowsWithLine): Likewise.
89 (tuiSetHasBreakAt): Likewise.
90 * tuiStack.c (tuiSetLocatorInfo): Likewise.
91 (tuiSwitchFilename): Likewise.
92 (tuiUpdateLocatorInfoFromFrame): Likewise.
93 (tuiSetLocatorContent): Likewise.
94 (tuiShowFrameInfo): Likewise.
95 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
96 * tuiSourceWin.h: Likewise.
97 * tuiStack.h: Likewise.
99 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
101 * tuiWin.c: Add missing includes.
102 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
103 * tuiLayout.c: Add missing includes.
104 (_initAndMakeWin): Don't put curses in echo mode.
105 (_extractDisplayStartAddr): Fix calls to find_line_pc.
106 (_tuiLayout_command): Missing ',' in warning call.
107 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
109 (tuiSetHasBreakAt): Check for null source file.
111 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
113 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
114 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
115 * tui.c (_tui_vToggle_command): Likewise.
117 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
119 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
121 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
123 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
124 each register window.
125 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
126 of the register to check.
127 (_tuiRegValueHasChanged): Likewise.
128 (_tuiRegisterName): Use REGISTER_NAME.
129 (tui_restore_gdbout): New function.
130 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
132 (START_SPECIAL_REGS): Define.
133 (_tuiGetRegisterRawValue): Use get_saved_register.
134 (_tuiDisplayRegister): Fix clearing of register window.
136 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
138 * tui-file.h (fputs_unfiltered_hook): Remove.
139 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
140 (tui_file_fputs): Likewise; simplify
142 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
144 * tuiStack.c: Add missing includes.
145 (tuiShowFrameInfo): Don't crash when there is no symbol table
146 associated with the pc.
147 * tuiSource.c (_hasBreak): Check for null source file.
148 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
149 (_tuiSetFocus): Check for null dataWin.
150 * tuiGeneralWin.c (refreshAll): Check for null list[type].
152 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
154 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
155 to disassemble in the curses window.
157 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
159 * tui.h: Cleanup to avoid inclusion of curses includes.
160 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
161 * tuiData.h: To here; include curses includes here.
162 (setTermHeightTo): Rename of setTermHeight to follow reality.
163 (setTermWidthTo): Likewise with setTermWidth.
165 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
167 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
168 tuiIO.c, tuiData.c: Likewise.
169 tuiDataWin.c, tuiDisassem.c: Likewise.
170 tuiGeneralWin.c, tuiLayout.c: Likewise.
171 tuiRegs.c, tuiSource.c: Likewise.
172 tuiSouceWin.c, tuiStack.c: Likewise.
174 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
176 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
177 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
178 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
179 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
180 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
181 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
183 2001-03-08 Andrew Cagney <ac131313@redhat.com>
185 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
187 2001-03-06 Kevin Buettner <kevinb@redhat.com>
189 * tui-file.h: Update/correct copyright notice.
191 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
193 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
196 2000-12-14 Kevin Buettner <kevinb@redhat.com>
198 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
199 of free() with xfree().
201 2000-06-22 Kevin Buettner <kevinb@redhat.com>
203 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
205 2000-06-20 Kevin Buettner <kevinb@redhat.com>
207 * tuiLayout.c: Eliminate use of PARAMS from this file.
209 2000-06-17 Kevin Buettner <kevinb@redhat.com>
211 * tuiIO.c: Eliminate use of PARAMS from this file.
213 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
215 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
217 (tui_file_fputs): Pass ``file'' and not ``stream'' to
218 tui_file_adjust_strbuf.
220 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
222 * tui.h: Include <ncurses.h> when available.
223 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
225 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
227 * Makefile.in: Delete.
229 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
231 * Makefile.in (distclean, maintainer-clean, realclean,
232 mostlyclean): New targets.
234 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
236 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
237 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
238 ui-file / ``struct ui_file''.
240 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
242 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
243 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
244 tui_file_rewind, tui_file_put, tui_file_fputs,
245 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
246 fputs_unfiltered_hook): Move to here from ../utils.c
248 * tui-file.h, tui-file.c: New files.
250 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
252 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
253 (tuiSetDisassemContent): Replace gdb_file_init_astring with
254 tui_sfileopen. Replace gdb_file_get_strbuf with
257 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
259 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
260 (tuiSetDisassemContent): Repace gdb_file_deallocate with
261 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
263 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
265 * tuiSource.c: Include "source.h".
266 (open_source_file, find_source_lines): Delete declarations.
268 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
270 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
273 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
275 The following changes were made by Jim Blandy <jimb@cygnus.com>,
276 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
277 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
278 Taylor <taylor@cygnus.com>, as part of the project to merge in
279 changes originally made by HP; HP did not create ChangeLog
282 * Makefile.in: New file; we're merging HP's changes into GDB, and
283 we've moved the TUI files into a subdirectory, so we need a new
287 #include <term.h>, if we have it, to get declarations for
288 the termcap functions on Solaris.
289 (tgoto): Add external K&R declaration for this; Solaris doesn't
290 bother to actually declare it in their header files.
291 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
292 we'd rather use the USG mechanisms than the Berkeley mechanisms
293 (TIOCGETC is one of the Berkeley terminal control ioctls).
294 Apologies if this causes trouble later; this should all be handled
296 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
298 (tuiFree): replace safe_free with free.
299 (strcat_to_buf): new function, copied from utils.c.
300 (tuiInit): Add ignored `argv0' argument, to match the type that
301 init_ui_hook expects; updated declaration. Call the
302 initialize_tui_files function constructed above. Initialize
304 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
305 element of the locator window's content allocated. This seems
306 wrong, because it must have been initialized somehow in HP's
307 sources, and we should do it the same way now. But we do get
308 further before it segfaults. [Postscript: HP didn't bother to
309 initialize it; they compile
310 (va_catch_errors, vcatch_errors): Functions moved here from
311 ../utils.c in HP's sources. They're not used anywhere else.
312 (xdb_style): Delete this variable, and remove all references to
313 it. It's always true.
314 (tuiInit, _tui_vDo): References removed.
316 * tui.h: Add prototypes.
317 Don't #include "gendefs.h"; it's only used in the TUI.
318 Integrate its contents into this file:
319 #include <ansidecl.h> here.
320 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
322 * tuiCommand.c: #include "defs.h", so we get the appropriate
323 definition of GDB_FILE.
326 (freeWindow): replace safe_free with free.
327 (tui_version): don't define it here; it's defined in main.c now.
330 (tuiSetDisassemContent): Call strcat_address_numeric instead of
331 strcat_address. Simplify the control structure. Use predefined
332 GDB function to print asm inst address. Use GDB_FILE to collect
336 (tgoto): Add external K&R declaration for this here too.
337 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
338 (tuiPuts_unfiltered): change FILE to GDB_FILE.
339 (tui_tputs): fix prototype for 3rd argument.
341 * tuiIO.h (tuiPuts_unfiltered): change declaration.
344 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
345 that decides which registers to display (i.e. single precision
346 float, double precision float, general, special). Previously,
347 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
348 compiling with -z poses a problem. When the first layout command
349 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
352 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
354 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
355 <stdarg.h>. No idea exactly what's conflicting with what, but the
357 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
358 object, calls pa_do_strcat_registers_info, copies the register
359 info into a buffer, and deallocates the GDB_FILE object. Remove
360 some code that is not executed. Also, call to
361 pa_do_strcat_registers_info has an additional parameter,
362 precision. This code requires some new per-target functions that
363 we don't want to merge. Dyke it out, with #ifdef
364 TUI_EXTENDED_FORMATTERS.
365 (_tuiSetSpecialRegsContent): this function was ifdefed out.
367 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
369 (IS_64BIT): Just define this to be zero; we're not merging in the
371 (tuiShowRegisters): Comment out all references to the "special"
372 regs; we don't have a distinction between the "special" and
373 "non-special" regs in most of our machine descriptions. This code
374 is PA-specific in other ways as well, and needs to be redesigned
375 to be portable to other processors.
377 * tuiWin.c: #include <string.h>, to get a declaration for
380 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
381 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
382 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
383 bool to int throughout. Re-indented, GNU style.
385 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
386 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
387 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
388 Changed bool to int throughout.