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