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