1 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
3 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
4 (tuiUpdateLocatorDisplay): Likewise.
5 * tuiStack.c (tuiGetLocatorFilename): Remove.
6 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
7 instead of tuiUpdateLocatorDisplay.
8 (tuiUpdateLocatorDisplay): Remove.
10 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
12 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
13 * tuiStack.c (tuiClearLocatorDisplay): Remove.
14 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
15 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
17 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
19 * tuiStack.c (tui_get_function_from_frame): Rename from
20 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
22 (tuiUpdateLocatorInfoFromFrame): Update.
24 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
26 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
27 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
28 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
29 (_tuiSetFloatRegsContent): Likewise.
30 (_tuiRegisterName): Return a const char*.
31 * tuiData.h (_TuiDataElement): Use const char* for name.
33 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
35 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
36 (tuiShowAllExecInfosContent): Likewise.
37 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
38 (tuiShowAllExecInfosContent): Remove.
39 (tuiAllocSourceBuffer): Remove unused locals.
41 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
43 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
44 to follow other gdb's command names; use execute_command; cleanup.
45 (_initialize_tuiStack): Update.
47 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
49 * tuiWin.h (tui_update_gdb_sizes): Declare.
51 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
53 * tui.c (strcat_to_buf): Use const char* for source item.
54 (tui_enable): Update the windows if there is a selected frame.
55 * tui.h (strcat_to_buf): Update prototype.
56 (strcat_to_buf_with_fmt): Remove.
58 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
60 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
61 is the size of command window.
62 (tuiResizeAll): Call it instead of init_page_info.
63 * tui.c (tui_enable): Call it to resize to TUI command window.
64 (tui_disable): Likewise for plain screen.
66 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
68 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
69 use tuiShowFrameInfo instead of tuiSetLocatorContent.
70 * tuiLayout.h (showLayout): Remove.
71 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
72 (_showSourceDisassemCommand): Likewise.
73 (showLayout): Make it static.
76 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
78 * tuiSourceWin.c (tui_show_source_line): New function.
79 (tuiShowSourceContent): Call it and avoid clearing the window before
81 (tuiClearAllSourceWinsContent): Remove.
82 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
83 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
84 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
85 (tuiRefreshAll): Don't clear the window.
86 (_makeVisibleWithNewHeight): Don't clear locator line.
87 (tuiResizeAll): Remove unused locals.
88 (_tuiAdjustWinHeights): Likewise.
89 (_makeInvisibleAndSetNewHeight): Likewise.
90 (_newHeightOk): Likewise.
91 * tuiLayout.c (showLayout): Don't clear source windows.
92 (tuiSetLayout): Don't clear the window.
93 (_initAndMakeWin): Likewise for status line.
94 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
95 (makeWindow): Likewise.
96 (tuiClearWin): Remove.
97 * tuiGeneralWin.h (tuiClearWin): Don't declare.
99 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
101 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
102 (tuiAsmWinIsDisplayed): Remove.
103 (tuiShowAllSourceWinsContent): Remove.
104 (tuiUpdateOnEnd): Remove.
105 * tuiGeneralWin.c (scrollWinForward): Remove.
106 (scrollWinBackward): Remove.
107 (_winResize): Don't declare.
108 * tui.h (tuiUpdateOnEnd): Don't declare.
109 (vcatch_errors, va_catch_errors): Likewise.
110 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
111 (tuiShowAllSourceWinsContent): Likewise.
112 * tuiGeneralWin.h (scrollWinForward): Likewise.
113 (scrollWinBackward): Likewise.
115 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
117 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
119 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
122 * tui.c: Disable <termio.h> include.
124 2002-03-15 Andrew Cagney <ac131313@redhat.com>
126 * tui-out.c (XMALLOC): Delete macro. Update copyright.
128 2002-03-01 Andrew Cagney <ac131313@redhat.com>
130 * tui-hooks.c: Add FIXME to explain true/false problem. Update
132 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
133 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
134 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
137 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
138 * tui-hooks.c: Include <curses.h> before "bfd.h".
140 * tuiCommand.c: Likewise.
141 * tuiData.c: Likewise.
142 * tuiDataWin.c: Likewise.
143 * tuiDisassem.c: Likewise.
144 * tuiGeneralWin.c: Likewise.
146 * tuiLayout.c: Likewise.
147 * tuiRegs.c: Likewise.
148 * tuiSource.c: Likewise.
149 * tuiSourceWin.c: Likewise.
150 * tuiStack.c: Likewise.
151 * tuiWin.c: Likewise.
153 2002-02-01 Andrew Cagney <ac131313@redhat.com>
155 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
157 2001-10-20 Andrew Cagney <ac131313@redhat.com>
159 * tuiDisassem.c: Include "value.h".
160 * tuiSourceWin.c: Ditto.
162 2001-09-28 Tom Tromey <tromey@redhat.com>
164 * tuiLayout.h (tui_set_layout): Don't declare.
165 * tui.h (tui_vAddWinToLayout): Don't declare.
166 (tui_vSetLayoutTo): Likewise.
167 (tui_set_layout): Declare.
169 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
171 * tuiSourceWin.c: Use disp_del instead of del.
173 * tuiSource.c: Use disp_del instead of del.
175 * tuiDisassem.c: Use disp_del instead of del.
177 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
179 * tui.c (tui_enable): Remove call to terminal_save_ours().
180 (tui_disable): Likewise.
182 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
184 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
185 set/show configuration variables.
186 (show_tui_cmd): New function.
187 (set_tui_cmd): New function.
189 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
191 * tui-hooks.c: New file, gdb hooks for tui.
192 * tui-out.c: New file, image copied from cli-out.c.
193 (tui_field_int): Identify "line" fields and keep track of them.
194 (tui_field_string): Likewise for "file".
195 (tui_out_new): Use flags = 0 to avoid printing the sources.
197 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
199 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
200 leave it in the command window.
201 (tui_redisplay_readline): Save cursor position to restore the
202 cursor after we go back from background.
203 * tuiData.h (TuiCommandInfo): Add start_line member.
205 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
207 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
208 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
209 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
211 * tui.c (tui_show_source): New function.
212 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
213 (tui_switch_mode): Prep or deprep readline terminal;
214 make sure the \n we return does not redo the last command.
215 * tui.h (tui_show_source): Declare.
216 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
217 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
219 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
221 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
222 if SIGCONT is defined.
223 (tui_cont_sig): New function when SIGCONT is defined.
224 (tui_setup_io): Save tty setting to restore by SIGCONT.
226 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
228 * tui.h (tui_show_assembly): Declare.
229 (tui_is_window_visible): Declare.
230 * tui.c (tui_show_assembly): New function.
231 (tui_is_window_visible): New function.
232 (tui_get_command_dimension): New function.
234 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
236 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
238 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
240 * tui-file.c (tui_file_fputs): Use tui_puts.
242 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
244 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
245 * tuiStack.h (tuiGetLocatorFilename): Declare.
246 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
247 * tuiData.h (addToSourceWindows): Declare.
249 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
251 * tui.c (tui_change_windows): New function.
252 (tui_delete_other_windows): New function.
253 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
254 (tui_enable): Enable the keypad; call tui_update_variables.
255 (strcat_to_buf_with_fmt): Remove.
257 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
259 * tui.h: Remove old declarations, add the new ones.
260 * tui.c (tui_switch_mode): New function.
261 (tui_initialize_readline): New function.
262 (tui_enable): New function.
263 (tui_disable): New function.
264 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
265 (tui_vSelectSourceSymtab): Remove.
266 (tuiInitWindows): Remove.
267 (_initialize_tui): Remove.
268 (_tuiReset): Keep but put arround #if 0.
270 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
272 * tuiIO.h: Remove old declarations and add the new ones.
273 * tuiIO.c: New management for curses and gdb terminal interactions.
275 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
276 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
277 (tui_owns_terminal): Remove.
278 (tui_redisplay_readline): New function.
279 (tui_puts): New function.
280 (tui_prep_terminal): New function.
281 (tui_deprep_terminal): New function.
282 (tui_getc): Rename of tuiGetc, simplify and fix.
283 (tui_setup_io): New function.
284 (tui_initialize_io): New function.
286 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
288 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
289 (_tuiRegisterFormat): Reduce size of format result.
291 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
293 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
294 * tuiWin.h: Declare the new variables.
295 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
296 (tui_update_variables): New function.
297 (translate): New function.
298 (tui_border_kind_enums, tui_border_mode_enums): New tables.
299 (tui_border_mode_translate): New table.
300 (tui_border_kind_translate_*): New tables.
301 (tui_active_border_mode): New variables.
302 (tui_border_*): New variables.
304 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
306 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
307 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
309 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
310 (tui_vUpdateLocatorFilename): Remove.
311 * tuiStack.h: Update prototypes.
313 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
314 (tuiLineIsDisplayed): Split for address and line.
315 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
316 (tuiUpdateSourceWindowAsIs): Likewise.
317 (tuiUpdateSourceWindowsWithAddr): Likewise.
318 (tuiUpdateSourceWindowsWithLine): Likewise.
319 (tuiHorizontalSourceScroll): Likewise.
320 (tuiSetIsExecPointAt): Likewise.
321 (tuiUpdateOnEnd): Likewise.
322 * tuiSourceWin.h: Update prototypes.
324 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
325 (tuiShowSource): Likewise.
326 (tuiVerticalSourceScroll): Likewise.
327 * tuiSource.h (tuiShowSource): Update prototype.
329 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
330 (tuiShowDisassem): Use TuiLineOrAddress type.
331 (tuiShowDisassemAndUpdateSource): Likewise.
332 (tuiVerticalDisassemScroll): Likewise.
333 (tuiShowDisassemAsIs): Remove.
334 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
336 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
337 (clearWinDetail): Likewise.
338 (displayableWinContentOf): Fix address conversion.
339 (tuiNextWin): Fix crash when the window is not yet created.
340 (partialWinByName): Likewise.
342 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
344 * tuiSourceWin.h: Remove unused declarations.
345 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
346 (tui_vUpdateSourceWindowsWithLine): Remove.
347 (tui_vAllSetHasBreakAt): Remove.
349 * tuiLayout.h (tui_set_layout): Declare.
350 (tui_vSetLayoutTo): Remove.
351 (tui_vAddWinToLayout): Remove.
352 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
353 (_tuiToggleLayout_command): Remove.
354 (_tuiToggleSplitLayout_command): Remove.
355 (_tuiLayout_command): Remove.
356 (tui_vSetLayoutTo): Remove.
357 (tui_vAddWinToLayout): Remove.
359 * tuiDataWin.h (tui_vCheckDataValues): Remove.
360 * tuiDataWin.c (tui_vCheckDataValues): Remove.
362 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
364 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
365 (_parseScrollingArgs): Use xstrdup.
366 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
367 (_tuiScrollBackward_command): Likewise.
368 (_tuiScrollLeft_command): Likewise.
369 (_tuiScrollRight_command): Likewise.
370 (_tuiSetFocus): Likewise.
371 (_tuiSetFocus_command): Likewise.
372 (_tuiRefreshAll_command): Likewise.
373 (_tuiSetTabWidth_command): Likewise.
374 (_tuiSetWinHeight): Likewise.
375 (_tuiSetWinHeight_command): Likewise.
376 (_tuiXDBsetWinHeight): Likewise.
377 (_tui_vSetFocus): Remove.
378 (_tui_vSetWinHeight): Remove.
379 (_tui_vXDBsetWinHeight): Remove.
381 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
383 * tuiCommand.h: Remove unused declarations.
384 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
385 (tuiIncrCommandCharCountBy): Remove.
386 (tuiDecrCommandCharCountBy): Remove.
387 (tuiSetCommandCharCountTo): Remove.
388 (tuiClearCommandCharCount): Remove.
390 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
392 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
393 create the tui class help.
394 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
395 * tuiRegs.c (_initialize_tuiRegs): Likewise.
396 * tuiStack.c (_initialize_tuiStack): Likewise.
398 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
400 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
401 (tuiVerticalDisassemScroll): Likewise.
402 (tuiShowDisassemAndUpdateSource): Check for null symtab to
405 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
407 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
408 (tuiRead, tui_vread): Remove.
410 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
411 (vcatch_errors, _tui_vDo): Remove.
412 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
414 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
415 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
416 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
417 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
418 (_tuiLayout_command): Call tui_set_layout.
420 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
421 (_tuiScrollRegsForward_command): Likewise.
422 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
423 (_tuiShowGeneral_command): Likewise.
424 (_tuiShowSpecial_command): Likewise.
425 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
426 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
427 (_tuiScrollForward_command): Call tui_scroll.
428 (_tuiScrollBackward_command): Likewise.
429 (_tuiScrollLeft_command): Likewise.
430 (_tuiScrollRight_command): Likewise.
431 (_tuiSetFocus_command): Call _tuiSetFocus.
432 (_tuiRefreshAll_command): Call tuiRefreshAll.
433 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
434 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
435 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
437 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
439 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
440 (TuiLineOrAddress): Likewise.
441 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
443 (tuiSetDisassemContent): Likewise.
444 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
445 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
446 (tuiSetLayout): Likewise.
447 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
448 (tuiUpdateSourceWindowsWithAddr): Likewise.
449 (tuiUpdateSourceWindowsWithLine): Likewise.
450 (tuiSetHasBreakAt): Likewise.
451 * tuiStack.c (tuiSetLocatorInfo): Likewise.
452 (tuiSwitchFilename): Likewise.
453 (tuiUpdateLocatorInfoFromFrame): Likewise.
454 (tuiSetLocatorContent): Likewise.
455 (tuiShowFrameInfo): Likewise.
456 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
457 * tuiSourceWin.h: Likewise.
458 * tuiStack.h: Likewise.
460 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
462 * tuiWin.c: Add missing includes.
463 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
464 * tuiLayout.c: Add missing includes.
465 (_initAndMakeWin): Don't put curses in echo mode.
466 (_extractDisplayStartAddr): Fix calls to find_line_pc.
467 (_tuiLayout_command): Missing ',' in warning call.
468 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
470 (tuiSetHasBreakAt): Check for null source file.
472 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
474 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
475 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
476 * tui.c (_tui_vToggle_command): Likewise.
478 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
480 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
482 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
484 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
485 each register window.
486 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
487 of the register to check.
488 (_tuiRegValueHasChanged): Likewise.
489 (_tuiRegisterName): Use REGISTER_NAME.
490 (tui_restore_gdbout): New function.
491 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
493 (START_SPECIAL_REGS): Define.
494 (_tuiGetRegisterRawValue): Use get_saved_register.
495 (_tuiDisplayRegister): Fix clearing of register window.
497 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
499 * tui-file.h (fputs_unfiltered_hook): Remove.
500 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
501 (tui_file_fputs): Likewise; simplify
503 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
505 * tuiStack.c: Add missing includes.
506 (tuiShowFrameInfo): Don't crash when there is no symbol table
507 associated with the pc.
508 * tuiSource.c (_hasBreak): Check for null source file.
509 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
510 (_tuiSetFocus): Check for null dataWin.
511 * tuiGeneralWin.c (refreshAll): Check for null list[type].
513 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
515 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
516 to disassemble in the curses window.
518 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
520 * tui.h: Cleanup to avoid inclusion of curses includes.
521 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
522 * tuiData.h: To here; include curses includes here.
523 (setTermHeightTo): Rename of setTermHeight to follow reality.
524 (setTermWidthTo): Likewise with setTermWidth.
526 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
528 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
529 tuiIO.c, tuiData.c: Likewise.
530 tuiDataWin.c, tuiDisassem.c: Likewise.
531 tuiGeneralWin.c, tuiLayout.c: Likewise.
532 tuiRegs.c, tuiSource.c: Likewise.
533 tuiSouceWin.c, tuiStack.c: Likewise.
535 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
537 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
538 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
539 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
540 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
541 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
542 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
544 2001-03-08 Andrew Cagney <ac131313@redhat.com>
546 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
548 2001-03-06 Kevin Buettner <kevinb@redhat.com>
550 * tui-file.h: Update/correct copyright notice.
552 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
554 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
557 2000-12-14 Kevin Buettner <kevinb@redhat.com>
559 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
560 of free() with xfree().
562 2000-06-22 Kevin Buettner <kevinb@redhat.com>
564 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
566 2000-06-20 Kevin Buettner <kevinb@redhat.com>
568 * tuiLayout.c: Eliminate use of PARAMS from this file.
570 2000-06-17 Kevin Buettner <kevinb@redhat.com>
572 * tuiIO.c: Eliminate use of PARAMS from this file.
574 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
576 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
578 (tui_file_fputs): Pass ``file'' and not ``stream'' to
579 tui_file_adjust_strbuf.
581 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
583 * tui.h: Include <ncurses.h> when available.
584 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
586 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
588 * Makefile.in: Delete.
590 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
592 * Makefile.in (distclean, maintainer-clean, realclean,
593 mostlyclean): New targets.
595 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
597 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
598 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
599 ui-file / ``struct ui_file''.
601 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
603 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
604 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
605 tui_file_rewind, tui_file_put, tui_file_fputs,
606 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
607 fputs_unfiltered_hook): Move to here from ../utils.c
609 * tui-file.h, tui-file.c: New files.
611 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
613 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
614 (tuiSetDisassemContent): Replace gdb_file_init_astring with
615 tui_sfileopen. Replace gdb_file_get_strbuf with
618 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
620 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
621 (tuiSetDisassemContent): Repace gdb_file_deallocate with
622 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
624 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
626 * tuiSource.c: Include "source.h".
627 (open_source_file, find_source_lines): Delete declarations.
629 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
631 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
634 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
636 The following changes were made by Jim Blandy <jimb@cygnus.com>,
637 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
638 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
639 Taylor <taylor@cygnus.com>, as part of the project to merge in
640 changes originally made by HP; HP did not create ChangeLog
643 * Makefile.in: New file; we're merging HP's changes into GDB, and
644 we've moved the TUI files into a subdirectory, so we need a new
648 #include <term.h>, if we have it, to get declarations for
649 the termcap functions on Solaris.
650 (tgoto): Add external K&R declaration for this; Solaris doesn't
651 bother to actually declare it in their header files.
652 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
653 we'd rather use the USG mechanisms than the Berkeley mechanisms
654 (TIOCGETC is one of the Berkeley terminal control ioctls).
655 Apologies if this causes trouble later; this should all be handled
657 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
659 (tuiFree): replace safe_free with free.
660 (strcat_to_buf): new function, copied from utils.c.
661 (tuiInit): Add ignored `argv0' argument, to match the type that
662 init_ui_hook expects; updated declaration. Call the
663 initialize_tui_files function constructed above. Initialize
665 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
666 element of the locator window's content allocated. This seems
667 wrong, because it must have been initialized somehow in HP's
668 sources, and we should do it the same way now. But we do get
669 further before it segfaults. [Postscript: HP didn't bother to
670 initialize it; they compile
671 (va_catch_errors, vcatch_errors): Functions moved here from
672 ../utils.c in HP's sources. They're not used anywhere else.
673 (xdb_style): Delete this variable, and remove all references to
674 it. It's always true.
675 (tuiInit, _tui_vDo): References removed.
677 * tui.h: Add prototypes.
678 Don't #include "gendefs.h"; it's only used in the TUI.
679 Integrate its contents into this file:
680 #include <ansidecl.h> here.
681 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
683 * tuiCommand.c: #include "defs.h", so we get the appropriate
684 definition of GDB_FILE.
687 (freeWindow): replace safe_free with free.
688 (tui_version): don't define it here; it's defined in main.c now.
691 (tuiSetDisassemContent): Call strcat_address_numeric instead of
692 strcat_address. Simplify the control structure. Use predefined
693 GDB function to print asm inst address. Use GDB_FILE to collect
697 (tgoto): Add external K&R declaration for this here too.
698 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
699 (tuiPuts_unfiltered): change FILE to GDB_FILE.
700 (tui_tputs): fix prototype for 3rd argument.
702 * tuiIO.h (tuiPuts_unfiltered): change declaration.
705 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
706 that decides which registers to display (i.e. single precision
707 float, double precision float, general, special). Previously,
708 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
709 compiling with -z poses a problem. When the first layout command
710 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
713 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
715 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
716 <stdarg.h>. No idea exactly what's conflicting with what, but the
718 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
719 object, calls pa_do_strcat_registers_info, copies the register
720 info into a buffer, and deallocates the GDB_FILE object. Remove
721 some code that is not executed. Also, call to
722 pa_do_strcat_registers_info has an additional parameter,
723 precision. This code requires some new per-target functions that
724 we don't want to merge. Dyke it out, with #ifdef
725 TUI_EXTENDED_FORMATTERS.
726 (_tuiSetSpecialRegsContent): this function was ifdefed out.
728 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
730 (IS_64BIT): Just define this to be zero; we're not merging in the
732 (tuiShowRegisters): Comment out all references to the "special"
733 regs; we don't have a distinction between the "special" and
734 "non-special" regs in most of our machine descriptions. This code
735 is PA-specific in other ways as well, and needs to be redesigned
736 to be portable to other processors.
738 * tuiWin.c: #include <string.h>, to get a declaration for
741 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
742 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
743 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
744 bool to int throughout. Re-indented, GNU style.
746 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
747 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
748 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
749 Changed bool to int throughout.