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