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