1 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
3 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
6 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
8 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
10 (tuiShowSource): Fix comment indentation.
11 (tuiSourceIsDisplayed): Likewise.
12 (tuiVerticalSourceScroll): Likewise.
14 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
16 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
17 (tui_update_breakpoint_info): Declare.
18 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
20 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
21 information using tui_update_breakpoint_info.
22 (tui_update_all_breakpoint_info): New function to refresh all
24 (tui_update_breakpoint_info): New function to recompute the status
25 of exec info window from breakpoints.
26 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
27 (tuiSetExecInfoContent): Use the exec info flags computed by
28 tui_update_breakpoint_info to display a short status about breakpoints.
30 * tuiData.h (TuiExecInfoContent): New for exec info string.
31 (TuiWhichElement): Use it.
32 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
33 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
34 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
35 (TUI_EXECINFO_SIZE): Likewise.
36 * tuiData.c (initContentElement): Clear exec info string.
38 * tui-hooks.c (get_breakpoint): Remove.
39 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
40 (tui_event_delete_breakpoint): Likewise.
41 (tui_event_modify_breakpoint): Likewise.
43 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
45 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
46 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
47 tui_find_disassembly_address to find the starting address of
50 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
52 * tuiDisassem.c (tui_disassemble): New function to disassemble
53 several lines in a buffer.
54 (tui_find_disassembly_address): New function to search backward
55 or forward a disassembly line.
56 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
57 content and format it in the window.
58 (tuiShowDisassemAndUpdateSource): Remove unused locals.
59 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
60 obtain the address to disassemble for the scrolling.
61 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
62 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
64 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
66 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
68 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
71 * tui.c (tui_disable): Update gdb's knowledge of its terminal
72 using target_terminal_save_ours.
73 (tui_enable): Likewise.
75 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
77 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
78 (tui_rl_change_windows): Renames tui_change_windows.
79 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
80 (tui_initialize_readline): Update.
82 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
84 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
87 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
89 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
90 to find symbol address.
92 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
94 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
95 and use tuiGetBeginAsmAddress.
96 * tuiSourceWin.h (tui_display_main): Declare.
97 * tui.h (tuiDisplayMainFunction): Remove.
98 * tui-hooks.c (tui_new_objfile_hook): Update.
100 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
102 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
103 (tuiShowSourceAsIs): Don't declare.
105 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
107 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
110 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
112 * tuiStack.c (tuiSetLocatorContent): Remove.
113 (tuiUpdateLocatorInfoFromFrame): Remove.
114 (tui_set_locator_info): Allocate the content buffer if necessary.
115 (tui_set_locator_filename): Call tui_set_locator_info directly.
116 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
119 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
121 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
122 tuiUpdateLocatorFilename.
123 * tuiStack.c (tuiSetLocatorInfo): Make it static.
124 (tuiSetLocatorContent): Likewise.
125 (tuiUpdateLocatorInfoFromFrame): Likewise.
126 (tuiSwitchFilename): Remove.
127 (tui_set_locator_filename): New function
128 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
129 use tui_set_locator_filename to record the filename.
130 (tuiUpdateLocatorFilename): Likewise.
131 (tuiUpdateLocatorInfoFromFrame): Update.
132 (tuiSetLocatorContent): Likewise.
133 * tuiStack.h (tuiClearLocatorContent): Don't declare.
134 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
135 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
137 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
139 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
141 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
142 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
143 * tuiData.h (TuiSourceInfo): Add filename member.
144 (TuiGenWinInfo): Add title member.
145 * tuiData.c (initGenericPart): Clear title.
146 (freeWindow): Free title and filename; remove unused locals.
147 (initWinInfo): Clear filename.
148 (tuiDelWindow): Free it; remove unused locals.
150 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
152 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
153 (tuiUpdateLocatorDisplay): Likewise.
154 * tuiStack.c (tuiGetLocatorFilename): Remove.
155 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
156 instead of tuiUpdateLocatorDisplay.
157 (tuiUpdateLocatorDisplay): Remove.
159 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
161 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
162 * tuiStack.c (tuiClearLocatorDisplay): Remove.
163 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
164 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
166 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
168 * tuiStack.c (tui_get_function_from_frame): Rename from
169 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
171 (tuiUpdateLocatorInfoFromFrame): Update.
173 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
175 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
176 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
177 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
178 (_tuiSetFloatRegsContent): Likewise.
179 (_tuiRegisterName): Return a const char*.
180 * tuiData.h (_TuiDataElement): Use const char* for name.
182 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
184 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
185 (tuiShowAllExecInfosContent): Likewise.
186 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
187 (tuiShowAllExecInfosContent): Remove.
188 (tuiAllocSourceBuffer): Remove unused locals.
190 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
192 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
193 to follow other gdb's command names; use execute_command; cleanup.
194 (_initialize_tuiStack): Update.
196 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
198 * tuiWin.h (tui_update_gdb_sizes): Declare.
200 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
202 * tui.c (strcat_to_buf): Use const char* for source item.
203 (tui_enable): Update the windows if there is a selected frame.
204 * tui.h (strcat_to_buf): Update prototype.
205 (strcat_to_buf_with_fmt): Remove.
207 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
209 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
210 is the size of command window.
211 (tuiResizeAll): Call it instead of init_page_info.
212 * tui.c (tui_enable): Call it to resize to TUI command window.
213 (tui_disable): Likewise for plain screen.
215 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
217 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
218 use tuiShowFrameInfo instead of tuiSetLocatorContent.
219 * tuiLayout.h (showLayout): Remove.
220 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
221 (_showSourceDisassemCommand): Likewise.
222 (showLayout): Make it static.
223 (lastLayout): Remove.
225 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
227 * tuiSourceWin.c (tui_show_source_line): New function.
228 (tuiShowSourceContent): Call it and avoid clearing the window before
230 (tuiClearAllSourceWinsContent): Remove.
231 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
232 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
233 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
234 (tuiRefreshAll): Don't clear the window.
235 (_makeVisibleWithNewHeight): Don't clear locator line.
236 (tuiResizeAll): Remove unused locals.
237 (_tuiAdjustWinHeights): Likewise.
238 (_makeInvisibleAndSetNewHeight): Likewise.
239 (_newHeightOk): Likewise.
240 * tuiLayout.c (showLayout): Don't clear source windows.
241 (tuiSetLayout): Don't clear the window.
242 (_initAndMakeWin): Likewise for status line.
243 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
244 (makeWindow): Likewise.
245 (tuiClearWin): Remove.
246 * tuiGeneralWin.h (tuiClearWin): Don't declare.
248 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
250 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
251 (tuiAsmWinIsDisplayed): Remove.
252 (tuiShowAllSourceWinsContent): Remove.
253 (tuiUpdateOnEnd): Remove.
254 * tuiGeneralWin.c (scrollWinForward): Remove.
255 (scrollWinBackward): Remove.
256 (_winResize): Don't declare.
257 * tui.h (tuiUpdateOnEnd): Don't declare.
258 (vcatch_errors, va_catch_errors): Likewise.
259 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
260 (tuiShowAllSourceWinsContent): Likewise.
261 * tuiGeneralWin.h (scrollWinForward): Likewise.
262 (scrollWinBackward): Likewise.
264 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
266 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
268 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
271 * tui.c: Disable <termio.h> include.
273 2002-03-15 Andrew Cagney <ac131313@redhat.com>
275 * tui-out.c (XMALLOC): Delete macro. Update copyright.
277 2002-03-01 Andrew Cagney <ac131313@redhat.com>
279 * tui-hooks.c: Add FIXME to explain true/false problem. Update
281 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
282 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
283 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
286 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
287 * tui-hooks.c: Include <curses.h> before "bfd.h".
289 * tuiCommand.c: Likewise.
290 * tuiData.c: Likewise.
291 * tuiDataWin.c: Likewise.
292 * tuiDisassem.c: Likewise.
293 * tuiGeneralWin.c: Likewise.
295 * tuiLayout.c: Likewise.
296 * tuiRegs.c: Likewise.
297 * tuiSource.c: Likewise.
298 * tuiSourceWin.c: Likewise.
299 * tuiStack.c: Likewise.
300 * tuiWin.c: Likewise.
302 2002-02-01 Andrew Cagney <ac131313@redhat.com>
304 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
306 2001-10-20 Andrew Cagney <ac131313@redhat.com>
308 * tuiDisassem.c: Include "value.h".
309 * tuiSourceWin.c: Ditto.
311 2001-09-28 Tom Tromey <tromey@redhat.com>
313 * tuiLayout.h (tui_set_layout): Don't declare.
314 * tui.h (tui_vAddWinToLayout): Don't declare.
315 (tui_vSetLayoutTo): Likewise.
316 (tui_set_layout): Declare.
318 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
320 * tuiSourceWin.c: Use disp_del instead of del.
322 * tuiSource.c: Use disp_del instead of del.
324 * tuiDisassem.c: Use disp_del instead of del.
326 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
328 * tui.c (tui_enable): Remove call to terminal_save_ours().
329 (tui_disable): Likewise.
331 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
333 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
334 set/show configuration variables.
335 (show_tui_cmd): New function.
336 (set_tui_cmd): New function.
338 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
340 * tui-hooks.c: New file, gdb hooks for tui.
341 * tui-out.c: New file, image copied from cli-out.c.
342 (tui_field_int): Identify "line" fields and keep track of them.
343 (tui_field_string): Likewise for "file".
344 (tui_out_new): Use flags = 0 to avoid printing the sources.
346 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
348 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
349 leave it in the command window.
350 (tui_redisplay_readline): Save cursor position to restore the
351 cursor after we go back from background.
352 * tuiData.h (TuiCommandInfo): Add start_line member.
354 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
356 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
357 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
358 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
360 * tui.c (tui_show_source): New function.
361 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
362 (tui_switch_mode): Prep or deprep readline terminal;
363 make sure the \n we return does not redo the last command.
364 * tui.h (tui_show_source): Declare.
365 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
366 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
368 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
370 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
371 if SIGCONT is defined.
372 (tui_cont_sig): New function when SIGCONT is defined.
373 (tui_setup_io): Save tty setting to restore by SIGCONT.
375 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
377 * tui.h (tui_show_assembly): Declare.
378 (tui_is_window_visible): Declare.
379 * tui.c (tui_show_assembly): New function.
380 (tui_is_window_visible): New function.
381 (tui_get_command_dimension): New function.
383 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
385 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
387 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
389 * tui-file.c (tui_file_fputs): Use tui_puts.
391 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
393 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
394 * tuiStack.h (tuiGetLocatorFilename): Declare.
395 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
396 * tuiData.h (addToSourceWindows): Declare.
398 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
400 * tui.c (tui_change_windows): New function.
401 (tui_delete_other_windows): New function.
402 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
403 (tui_enable): Enable the keypad; call tui_update_variables.
404 (strcat_to_buf_with_fmt): Remove.
406 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
408 * tui.h: Remove old declarations, add the new ones.
409 * tui.c (tui_switch_mode): New function.
410 (tui_initialize_readline): New function.
411 (tui_enable): New function.
412 (tui_disable): New function.
413 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
414 (tui_vSelectSourceSymtab): Remove.
415 (tuiInitWindows): Remove.
416 (_initialize_tui): Remove.
417 (_tuiReset): Keep but put arround #if 0.
419 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
421 * tuiIO.h: Remove old declarations and add the new ones.
422 * tuiIO.c: New management for curses and gdb terminal interactions.
424 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
425 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
426 (tui_owns_terminal): Remove.
427 (tui_redisplay_readline): New function.
428 (tui_puts): New function.
429 (tui_prep_terminal): New function.
430 (tui_deprep_terminal): New function.
431 (tui_getc): Rename of tuiGetc, simplify and fix.
432 (tui_setup_io): New function.
433 (tui_initialize_io): New function.
435 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
437 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
438 (_tuiRegisterFormat): Reduce size of format result.
440 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
442 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
443 * tuiWin.h: Declare the new variables.
444 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
445 (tui_update_variables): New function.
446 (translate): New function.
447 (tui_border_kind_enums, tui_border_mode_enums): New tables.
448 (tui_border_mode_translate): New table.
449 (tui_border_kind_translate_*): New tables.
450 (tui_active_border_mode): New variables.
451 (tui_border_*): New variables.
453 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
455 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
456 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
458 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
459 (tui_vUpdateLocatorFilename): Remove.
460 * tuiStack.h: Update prototypes.
462 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
463 (tuiLineIsDisplayed): Split for address and line.
464 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
465 (tuiUpdateSourceWindowAsIs): Likewise.
466 (tuiUpdateSourceWindowsWithAddr): Likewise.
467 (tuiUpdateSourceWindowsWithLine): Likewise.
468 (tuiHorizontalSourceScroll): Likewise.
469 (tuiSetIsExecPointAt): Likewise.
470 (tuiUpdateOnEnd): Likewise.
471 * tuiSourceWin.h: Update prototypes.
473 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
474 (tuiShowSource): Likewise.
475 (tuiVerticalSourceScroll): Likewise.
476 * tuiSource.h (tuiShowSource): Update prototype.
478 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
479 (tuiShowDisassem): Use TuiLineOrAddress type.
480 (tuiShowDisassemAndUpdateSource): Likewise.
481 (tuiVerticalDisassemScroll): Likewise.
482 (tuiShowDisassemAsIs): Remove.
483 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
485 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
486 (clearWinDetail): Likewise.
487 (displayableWinContentOf): Fix address conversion.
488 (tuiNextWin): Fix crash when the window is not yet created.
489 (partialWinByName): Likewise.
491 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
493 * tuiSourceWin.h: Remove unused declarations.
494 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
495 (tui_vUpdateSourceWindowsWithLine): Remove.
496 (tui_vAllSetHasBreakAt): Remove.
498 * tuiLayout.h (tui_set_layout): Declare.
499 (tui_vSetLayoutTo): Remove.
500 (tui_vAddWinToLayout): Remove.
501 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
502 (_tuiToggleLayout_command): Remove.
503 (_tuiToggleSplitLayout_command): Remove.
504 (_tuiLayout_command): Remove.
505 (tui_vSetLayoutTo): Remove.
506 (tui_vAddWinToLayout): Remove.
508 * tuiDataWin.h (tui_vCheckDataValues): Remove.
509 * tuiDataWin.c (tui_vCheckDataValues): Remove.
511 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
513 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
514 (_parseScrollingArgs): Use xstrdup.
515 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
516 (_tuiScrollBackward_command): Likewise.
517 (_tuiScrollLeft_command): Likewise.
518 (_tuiScrollRight_command): Likewise.
519 (_tuiSetFocus): Likewise.
520 (_tuiSetFocus_command): Likewise.
521 (_tuiRefreshAll_command): Likewise.
522 (_tuiSetTabWidth_command): Likewise.
523 (_tuiSetWinHeight): Likewise.
524 (_tuiSetWinHeight_command): Likewise.
525 (_tuiXDBsetWinHeight): Likewise.
526 (_tui_vSetFocus): Remove.
527 (_tui_vSetWinHeight): Remove.
528 (_tui_vXDBsetWinHeight): Remove.
530 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
532 * tuiCommand.h: Remove unused declarations.
533 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
534 (tuiIncrCommandCharCountBy): Remove.
535 (tuiDecrCommandCharCountBy): Remove.
536 (tuiSetCommandCharCountTo): Remove.
537 (tuiClearCommandCharCount): Remove.
539 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
541 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
542 create the tui class help.
543 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
544 * tuiRegs.c (_initialize_tuiRegs): Likewise.
545 * tuiStack.c (_initialize_tuiStack): Likewise.
547 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
549 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
550 (tuiVerticalDisassemScroll): Likewise.
551 (tuiShowDisassemAndUpdateSource): Check for null symtab to
554 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
556 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
557 (tuiRead, tui_vread): Remove.
559 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
560 (vcatch_errors, _tui_vDo): Remove.
561 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
563 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
564 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
565 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
566 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
567 (_tuiLayout_command): Call tui_set_layout.
569 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
570 (_tuiScrollRegsForward_command): Likewise.
571 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
572 (_tuiShowGeneral_command): Likewise.
573 (_tuiShowSpecial_command): Likewise.
574 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
575 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
576 (_tuiScrollForward_command): Call tui_scroll.
577 (_tuiScrollBackward_command): Likewise.
578 (_tuiScrollLeft_command): Likewise.
579 (_tuiScrollRight_command): Likewise.
580 (_tuiSetFocus_command): Call _tuiSetFocus.
581 (_tuiRefreshAll_command): Call tuiRefreshAll.
582 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
583 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
584 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
586 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
588 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
589 (TuiLineOrAddress): Likewise.
590 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
592 (tuiSetDisassemContent): Likewise.
593 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
594 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
595 (tuiSetLayout): Likewise.
596 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
597 (tuiUpdateSourceWindowsWithAddr): Likewise.
598 (tuiUpdateSourceWindowsWithLine): Likewise.
599 (tuiSetHasBreakAt): Likewise.
600 * tuiStack.c (tuiSetLocatorInfo): Likewise.
601 (tuiSwitchFilename): Likewise.
602 (tuiUpdateLocatorInfoFromFrame): Likewise.
603 (tuiSetLocatorContent): Likewise.
604 (tuiShowFrameInfo): Likewise.
605 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
606 * tuiSourceWin.h: Likewise.
607 * tuiStack.h: Likewise.
609 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
611 * tuiWin.c: Add missing includes.
612 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
613 * tuiLayout.c: Add missing includes.
614 (_initAndMakeWin): Don't put curses in echo mode.
615 (_extractDisplayStartAddr): Fix calls to find_line_pc.
616 (_tuiLayout_command): Missing ',' in warning call.
617 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
619 (tuiSetHasBreakAt): Check for null source file.
621 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
623 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
624 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
625 * tui.c (_tui_vToggle_command): Likewise.
627 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
629 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
631 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
633 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
634 each register window.
635 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
636 of the register to check.
637 (_tuiRegValueHasChanged): Likewise.
638 (_tuiRegisterName): Use REGISTER_NAME.
639 (tui_restore_gdbout): New function.
640 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
642 (START_SPECIAL_REGS): Define.
643 (_tuiGetRegisterRawValue): Use get_saved_register.
644 (_tuiDisplayRegister): Fix clearing of register window.
646 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
648 * tui-file.h (fputs_unfiltered_hook): Remove.
649 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
650 (tui_file_fputs): Likewise; simplify
652 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
654 * tuiStack.c: Add missing includes.
655 (tuiShowFrameInfo): Don't crash when there is no symbol table
656 associated with the pc.
657 * tuiSource.c (_hasBreak): Check for null source file.
658 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
659 (_tuiSetFocus): Check for null dataWin.
660 * tuiGeneralWin.c (refreshAll): Check for null list[type].
662 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
664 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
665 to disassemble in the curses window.
667 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
669 * tui.h: Cleanup to avoid inclusion of curses includes.
670 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
671 * tuiData.h: To here; include curses includes here.
672 (setTermHeightTo): Rename of setTermHeight to follow reality.
673 (setTermWidthTo): Likewise with setTermWidth.
675 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
677 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
678 tuiIO.c, tuiData.c: Likewise.
679 tuiDataWin.c, tuiDisassem.c: Likewise.
680 tuiGeneralWin.c, tuiLayout.c: Likewise.
681 tuiRegs.c, tuiSource.c: Likewise.
682 tuiSouceWin.c, tuiStack.c: Likewise.
684 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
686 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
687 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
688 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
689 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
690 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
691 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
693 2001-03-08 Andrew Cagney <ac131313@redhat.com>
695 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
697 2001-03-06 Kevin Buettner <kevinb@redhat.com>
699 * tui-file.h: Update/correct copyright notice.
701 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
703 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
706 2000-12-14 Kevin Buettner <kevinb@redhat.com>
708 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
709 of free() with xfree().
711 2000-06-22 Kevin Buettner <kevinb@redhat.com>
713 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
715 2000-06-20 Kevin Buettner <kevinb@redhat.com>
717 * tuiLayout.c: Eliminate use of PARAMS from this file.
719 2000-06-17 Kevin Buettner <kevinb@redhat.com>
721 * tuiIO.c: Eliminate use of PARAMS from this file.
723 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
725 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
727 (tui_file_fputs): Pass ``file'' and not ``stream'' to
728 tui_file_adjust_strbuf.
730 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
732 * tui.h: Include <ncurses.h> when available.
733 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
735 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
737 * Makefile.in: Delete.
739 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
741 * Makefile.in (distclean, maintainer-clean, realclean,
742 mostlyclean): New targets.
744 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
746 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
747 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
748 ui-file / ``struct ui_file''.
750 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
752 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
753 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
754 tui_file_rewind, tui_file_put, tui_file_fputs,
755 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
756 fputs_unfiltered_hook): Move to here from ../utils.c
758 * tui-file.h, tui-file.c: New files.
760 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
762 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
763 (tuiSetDisassemContent): Replace gdb_file_init_astring with
764 tui_sfileopen. Replace gdb_file_get_strbuf with
767 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
769 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
770 (tuiSetDisassemContent): Repace gdb_file_deallocate with
771 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
773 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
775 * tuiSource.c: Include "source.h".
776 (open_source_file, find_source_lines): Delete declarations.
778 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
780 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
783 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
785 The following changes were made by Jim Blandy <jimb@cygnus.com>,
786 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
787 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
788 Taylor <taylor@cygnus.com>, as part of the project to merge in
789 changes originally made by HP; HP did not create ChangeLog
792 * Makefile.in: New file; we're merging HP's changes into GDB, and
793 we've moved the TUI files into a subdirectory, so we need a new
797 #include <term.h>, if we have it, to get declarations for
798 the termcap functions on Solaris.
799 (tgoto): Add external K&R declaration for this; Solaris doesn't
800 bother to actually declare it in their header files.
801 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
802 we'd rather use the USG mechanisms than the Berkeley mechanisms
803 (TIOCGETC is one of the Berkeley terminal control ioctls).
804 Apologies if this causes trouble later; this should all be handled
806 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
808 (tuiFree): replace safe_free with free.
809 (strcat_to_buf): new function, copied from utils.c.
810 (tuiInit): Add ignored `argv0' argument, to match the type that
811 init_ui_hook expects; updated declaration. Call the
812 initialize_tui_files function constructed above. Initialize
814 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
815 element of the locator window's content allocated. This seems
816 wrong, because it must have been initialized somehow in HP's
817 sources, and we should do it the same way now. But we do get
818 further before it segfaults. [Postscript: HP didn't bother to
819 initialize it; they compile
820 (va_catch_errors, vcatch_errors): Functions moved here from
821 ../utils.c in HP's sources. They're not used anywhere else.
822 (xdb_style): Delete this variable, and remove all references to
823 it. It's always true.
824 (tuiInit, _tui_vDo): References removed.
826 * tui.h: Add prototypes.
827 Don't #include "gendefs.h"; it's only used in the TUI.
828 Integrate its contents into this file:
829 #include <ansidecl.h> here.
830 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
832 * tuiCommand.c: #include "defs.h", so we get the appropriate
833 definition of GDB_FILE.
836 (freeWindow): replace safe_free with free.
837 (tui_version): don't define it here; it's defined in main.c now.
840 (tuiSetDisassemContent): Call strcat_address_numeric instead of
841 strcat_address. Simplify the control structure. Use predefined
842 GDB function to print asm inst address. Use GDB_FILE to collect
846 (tgoto): Add external K&R declaration for this here too.
847 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
848 (tuiPuts_unfiltered): change FILE to GDB_FILE.
849 (tui_tputs): fix prototype for 3rd argument.
851 * tuiIO.h (tuiPuts_unfiltered): change declaration.
854 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
855 that decides which registers to display (i.e. single precision
856 float, double precision float, general, special). Previously,
857 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
858 compiling with -z poses a problem. When the first layout command
859 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
862 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
864 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
865 <stdarg.h>. No idea exactly what's conflicting with what, but the
867 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
868 object, calls pa_do_strcat_registers_info, copies the register
869 info into a buffer, and deallocates the GDB_FILE object. Remove
870 some code that is not executed. Also, call to
871 pa_do_strcat_registers_info has an additional parameter,
872 precision. This code requires some new per-target functions that
873 we don't want to merge. Dyke it out, with #ifdef
874 TUI_EXTENDED_FORMATTERS.
875 (_tuiSetSpecialRegsContent): this function was ifdefed out.
877 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
879 (IS_64BIT): Just define this to be zero; we're not merging in the
881 (tuiShowRegisters): Comment out all references to the "special"
882 regs; we don't have a distinction between the "special" and
883 "non-special" regs in most of our machine descriptions. This code
884 is PA-specific in other ways as well, and needs to be redesigned
885 to be portable to other processors.
887 * tuiWin.c: #include <string.h>, to get a declaration for
890 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
891 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
892 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
893 bool to int throughout. Re-indented, GNU style.
895 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
896 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
897 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
898 Changed bool to int throughout.