* tuiWin.c: Add missing includes.
[binutils-gdb.git] / gdb / tui / ChangeLog
1 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2
3 * tuiWin.c: Add missing includes.
4 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
5 * tuiLayout.c: Add missing includes.
6 (_initAndMakeWin): Don't put curses in echo mode.
7 (_extractDisplayStartAddr): Fix calls to find_line_pc.
8 (_tuiLayout_command): Missing ',' in warning call.
9 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
10 find_line_pc.
11 (tuiSetHasBreakAt): Check for null source file.
12
13 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14
15 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
16 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
17 * tui.c (_tui_vToggle_command): Likewise.
18
19 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
20
21 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
22
23 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
24
25 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
26 each register window.
27 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
28 of the register to check.
29 (_tuiRegValueHasChanged): Likewise.
30 (_tuiRegisterName): Use REGISTER_NAME.
31 (tui_restore_gdbout): New function.
32 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
33 to a string.
34 (START_SPECIAL_REGS): Define.
35 (_tuiGetRegisterRawValue): Use get_saved_register.
36 (_tuiDisplayRegister): Fix clearing of register window.
37
38 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
39
40 * tui-file.h (fputs_unfiltered_hook): Remove.
41 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
42 (tui_file_fputs): Likewise; simplify
43
44 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
45
46 * tuiStack.c: Add missing includes.
47 (tuiShowFrameInfo): Don't crash when there is no symbol table
48 associated with the pc.
49 * tuiSource.c (_hasBreak): Check for null source file.
50 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
51 (_tuiSetFocus): Check for null dataWin.
52 * tuiGeneralWin.c (refreshAll): Check for null list[type].
53
54 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
55
56 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
57 to disassemble in the curses window.
58
59 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
60
61 * tui.h: Cleanup to avoid inclusion of curses includes.
62 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
63 * tuiData.h: To here; include curses includes here.
64 (setTermHeightTo): Rename of setTermHeight to follow reality.
65 (setTermWidthTo): Likewise with setTermWidth.
66
67 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
68
69 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
70 tuiIO.c, tuiData.c: Likewise.
71 tuiDataWin.c, tuiDisassem.c: Likewise.
72 tuiGeneralWin.c, tuiLayout.c: Likewise.
73 tuiRegs.c, tuiSource.c: Likewise.
74 tuiSouceWin.c, tuiStack.c: Likewise.
75
76 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
77
78 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
79 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
80 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
81 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
82 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
83 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
84
85 2001-03-08 Andrew Cagney <ac131313@redhat.com>
86
87 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
88
89 2001-03-06 Kevin Buettner <kevinb@redhat.com>
90
91 * tui-file.h: Update/correct copyright notice.
92
93 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
94
95 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
96 internal_error.
97
98 2000-12-14 Kevin Buettner <kevinb@redhat.com>
99
100 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
101 of free() with xfree().
102
103 2000-06-22 Kevin Buettner <kevinb@redhat.com>
104
105 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
106
107 2000-06-20 Kevin Buettner <kevinb@redhat.com>
108
109 * tuiLayout.c: Eliminate use of PARAMS from this file.
110
111 2000-06-17 Kevin Buettner <kevinb@redhat.com>
112
113 * tuiIO.c: Eliminate use of PARAMS from this file.
114
115 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
116
117 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
118 "tuiCommand.h".
119 (tui_file_fputs): Pass ``file'' and not ``stream'' to
120 tui_file_adjust_strbuf.
121
122 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
123
124 * tui.h: Include <ncurses.h> when available.
125 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
126
127 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
128
129 * Makefile.in: Delete.
130
131 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
132
133 * Makefile.in (distclean, maintainer-clean, realclean,
134 mostlyclean): New targets.
135
136 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
137
138 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
139 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
140 ui-file / ``struct ui_file''.
141
142 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
143
144 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
145 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
146 tui_file_rewind, tui_file_put, tui_file_fputs,
147 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
148 fputs_unfiltered_hook): Move to here from ../utils.c
149
150 * tui-file.h, tui-file.c: New files.
151
152 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
153
154 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
155 (tuiSetDisassemContent): Replace gdb_file_init_astring with
156 tui_sfileopen. Replace gdb_file_get_strbuf with
157 tui_file_get_strbuf.
158
159 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
160
161 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
162 (tuiSetDisassemContent): Repace gdb_file_deallocate with
163 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
164
165 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
166
167 * tuiSource.c: Include "source.h".
168 (open_source_file, find_source_lines): Delete declarations.
169
170 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
171
172 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
173 system.
174
175 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
176
177 The following changes were made by Jim Blandy <jimb@cygnus.com>,
178 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
179 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
180 Taylor <taylor@cygnus.com>, as part of the project to merge in
181 changes originally made by HP; HP did not create ChangeLog
182 entries.
183
184 * Makefile.in: New file; we're merging HP's changes into GDB, and
185 we've moved the TUI files into a subdirectory, so we need a new
186 Makefile.
187
188 * tui.c:
189 #include <term.h>, if we have it, to get declarations for
190 the termcap functions on Solaris.
191 (tgoto): Add external K&R declaration for this; Solaris doesn't
192 bother to actually declare it in their header files.
193 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
194 we'd rather use the USG mechanisms than the Berkeley mechanisms
195 (TIOCGETC is one of the Berkeley terminal control ioctls).
196 Apologies if this causes trouble later; this should all be handled
197 by autoconf...
198 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
199 from ../utils.h.
200 (tuiFree): replace safe_free with free.
201 (strcat_to_buf): new function, copied from utils.c.
202 (tuiInit): Add ignored `argv0' argument, to match the type that
203 init_ui_hook expects; updated declaration. Call the
204 initialize_tui_files function constructed above. Initialize
205 flush_hook to NULL.
206 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
207 element of the locator window's content allocated. This seems
208 wrong, because it must have been initialized somehow in HP's
209 sources, and we should do it the same way now. But we do get
210 further before it segfaults. [Postscript: HP didn't bother to
211 initialize it; they compile
212 (va_catch_errors, vcatch_errors): Functions moved here from
213 ../utils.c in HP's sources. They're not used anywhere else.
214 (xdb_style): Delete this variable, and remove all references to
215 it. It's always true.
216 (tuiInit, _tui_vDo): References removed.
217
218 * tui.h: Add prototypes.
219 Don't #include "gendefs.h"; it's only used in the TUI.
220 Integrate its contents into this file:
221 #include <ansidecl.h> here.
222 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
223
224 * tuiCommand.c: #include "defs.h", so we get the appropriate
225 definition of GDB_FILE.
226
227 * tuiData.c
228 (freeWindow): replace safe_free with free.
229 (tui_version): don't define it here; it's defined in main.c now.
230
231 * tuiDisassem.c
232 (tuiSetDisassemContent): Call strcat_address_numeric instead of
233 strcat_address. Simplify the control structure. Use predefined
234 GDB function to print asm inst address. Use GDB_FILE to collect
235 output into buffers.
236
237 * tuiIO.c
238 (tgoto): Add external K&R declaration for this here too.
239 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
240 (tuiPuts_unfiltered): change FILE to GDB_FILE.
241 (tui_tputs): fix prototype for 3rd argument.
242
243 * tuiIO.h (tuiPuts_unfiltered): change declaration.
244
245 * tuiLayout.c
246 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
247 that decides which registers to display (i.e. single precision
248 float, double precision float, general, special). Previously,
249 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
250 compiling with -z poses a problem. When the first layout command
251 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
252 core dumps.
253
254 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
255
256 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
257 <stdarg.h>. No idea exactly what's conflicting with what, but the
258 errors went away...
259 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
260 object, calls pa_do_strcat_registers_info, copies the register
261 info into a buffer, and deallocates the GDB_FILE object. Remove
262 some code that is not executed. Also, call to
263 pa_do_strcat_registers_info has an additional parameter,
264 precision. This code requires some new per-target functions that
265 we don't want to merge. Dyke it out, with #ifdef
266 TUI_EXTENDED_FORMATTERS.
267 (_tuiSetSpecialRegsContent): this function was ifdefed out.
268 Hooked this up.
269 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
270 out. Hooked it up.
271 (IS_64BIT): Just define this to be zero; we're not merging in the
272 64-bit support.
273 (tuiShowRegisters): Comment out all references to the "special"
274 regs; we don't have a distinction between the "special" and
275 "non-special" regs in most of our machine descriptions. This code
276 is PA-specific in other ways as well, and needs to be redesigned
277 to be portable to other processors.
278
279 * tuiWin.c: #include <string.h>, to get a declaration for
280 strchr.
281
282 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
283 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
284 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
285 bool to int throughout. Re-indented, GNU style.
286
287 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
288 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
289 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
290 Changed bool to int throughout.