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