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