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