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