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