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