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