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