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