1 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3 * tui-hooks.c (tui_event_loop): New function.
4 (tui_command_loop): New function to override gdb loop and make sure
5 uiout is set according to TUI mode.
6 (tui_command_loop): Install the specific TUI command hook.
7 * tuiIO.c (tui_initialize_io): Initialize tui_old_uiout.
8 (tui_uiout, tui_old_uiout): Make public.
9 * tuiIO.h (tui_uiout, tui_old_uiout): Declare.
11 2002-09-04 Stephane Carrez <stcarrez@nerim.fr>
13 * tuiIO.c (tui_putc): New function to print one character.
14 (printable_part): New function from readline/complete.c.
15 (PUTX): New macro, likewise.
16 (print_filename): New function, likewise.
17 (get_y_or_n): New function, likewise and adapted for TUI.
18 (tui_rl_display_match_list): New function from readline/complete.c
19 and writes on TUI command window.
20 (tui_setup_io): Install or remove the readline hook
21 rl_completion_display_matches_hook so that completion is written
22 directly in TUI command window instead of in the TUI pipe.
23 (tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the
25 (tui_getc): Likewise for call to tui_readline_output.
26 (tui_readline_output): Likewise for function.
27 * tui.c (tui_rl_startup_hook): Always take care of gdb prompt.
29 2002-09-02 Stephane Carrez <stcarrez@nerim.fr>
31 * tuiWin.c (_newHeightOk): Fix compilation warnings.
33 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
35 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
38 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
40 * tui-out.c (tui_out_new): Clear start_of_line.
41 * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
42 to update the current source line.
44 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
46 * tui-hooks.c (tui_detach_hook): New hook to know when a process dies.
47 (tui_install_hooks): Install it.
48 (tui_remove_hooks): Remove it.
50 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
52 * tuiData.h (FILE_PREFIX): Don't define.
53 (blankStr, locationStr, breakStr): Don't declare.
54 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise.
55 (displayableWinContentOf, displayableWinContentAt): Likewise.
56 (winElementHeight, winByName, freeAllWindows): Likewise.
58 * tuiData.c (blankStr, locationStr, breakStr): Remove.
59 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
60 (displayableWinContentOf, displayableWinContentAt): Remove.
61 (winElementHeight, winByName, freeAllWindows): Remove.
63 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
65 * tuiStack.c (tui_make_status_line): New function to create the
67 (tuiShowLocatorContent): Use it instead of displayableWinContentAt.
68 * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
69 (PC_PREFIX): Use upper case.
70 (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
71 (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
73 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
75 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.
76 (tuiClearAllExecInfosContent): Likewise.
77 (tuiEraseAllExecInfosContent): Ditto.
78 (tuiUpdateSourceWindowsFromLocator): Ditto.
79 * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove.
80 * tui.h (tui_vCheckDataValues): Don't declare.
81 (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise.
82 (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto.
83 (tui_vShowFrameInfo): Ditto.
85 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
87 * tui.c (tui_commands): Table of single key commands.
88 (tui_rl_command_key): New function to execute gdb command.
89 (tui_rl_command_mode): New function to temporarily leave SingleKey.
90 (tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
91 (tui_rl_startup_hook): New function to avoid prompt display by
93 (tui_set_key_mode): New function to set the key mode and install
95 (tui_initialize_readline): Create TUI SingleKey readline map.
96 (tui_enable): Install rl_startup_hook.
97 (tui_disable): Remove it.
98 * tui.h (enum tui_key_mode): Declare.
99 (tui_set_key_mode, tui_current_key_mode): Declare.
100 * tuiIO.c (tui_redisplay_readline): Don't display the prompt in
102 * tuiIO.h (tui_redisplay_readline): Declare.
104 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
106 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
109 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
111 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
113 (tuiShowSource): Fix comment indentation.
114 (tuiSourceIsDisplayed): Likewise.
115 (tuiVerticalSourceScroll): Likewise.
117 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
119 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
120 (tui_update_breakpoint_info): Declare.
121 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
123 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
124 information using tui_update_breakpoint_info.
125 (tui_update_all_breakpoint_info): New function to refresh all
127 (tui_update_breakpoint_info): New function to recompute the status
128 of exec info window from breakpoints.
129 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
130 (tuiSetExecInfoContent): Use the exec info flags computed by
131 tui_update_breakpoint_info to display a short status about breakpoints.
133 * tuiData.h (TuiExecInfoContent): New for exec info string.
134 (TuiWhichElement): Use it.
135 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
136 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
137 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
138 (TUI_EXECINFO_SIZE): Likewise.
139 * tuiData.c (initContentElement): Clear exec info string.
141 * tui-hooks.c (get_breakpoint): Remove.
142 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
143 (tui_event_delete_breakpoint): Likewise.
144 (tui_event_modify_breakpoint): Likewise.
146 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
148 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
149 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
150 tui_find_disassembly_address to find the starting address of
153 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
155 * tuiDisassem.c (tui_disassemble): New function to disassemble
156 several lines in a buffer.
157 (tui_find_disassembly_address): New function to search backward
158 or forward a disassembly line.
159 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
160 content and format it in the window.
161 (tuiShowDisassemAndUpdateSource): Remove unused locals.
162 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
163 obtain the address to disassemble for the scrolling.
164 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
165 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
167 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
169 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
171 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
174 * tui.c (tui_disable): Update gdb's knowledge of its terminal
175 using target_terminal_save_ours.
176 (tui_enable): Likewise.
178 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
180 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
181 (tui_rl_change_windows): Renames tui_change_windows.
182 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
183 (tui_initialize_readline): Update.
185 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
187 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
190 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
192 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
193 to find symbol address.
195 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
197 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
198 and use tuiGetBeginAsmAddress.
199 * tuiSourceWin.h (tui_display_main): Declare.
200 * tui.h (tuiDisplayMainFunction): Remove.
201 * tui-hooks.c (tui_new_objfile_hook): Update.
203 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
205 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
206 (tuiShowSourceAsIs): Don't declare.
208 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
210 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
213 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
215 * tuiStack.c (tuiSetLocatorContent): Remove.
216 (tuiUpdateLocatorInfoFromFrame): Remove.
217 (tui_set_locator_info): Allocate the content buffer if necessary.
218 (tui_set_locator_filename): Call tui_set_locator_info directly.
219 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
222 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
224 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
225 tuiUpdateLocatorFilename.
226 * tuiStack.c (tuiSetLocatorInfo): Make it static.
227 (tuiSetLocatorContent): Likewise.
228 (tuiUpdateLocatorInfoFromFrame): Likewise.
229 (tuiSwitchFilename): Remove.
230 (tui_set_locator_filename): New function
231 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
232 use tui_set_locator_filename to record the filename.
233 (tuiUpdateLocatorFilename): Likewise.
234 (tuiUpdateLocatorInfoFromFrame): Update.
235 (tuiSetLocatorContent): Likewise.
236 * tuiStack.h (tuiClearLocatorContent): Don't declare.
237 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
238 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
240 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
242 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
244 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
245 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
246 * tuiData.h (TuiSourceInfo): Add filename member.
247 (TuiGenWinInfo): Add title member.
248 * tuiData.c (initGenericPart): Clear title.
249 (freeWindow): Free title and filename; remove unused locals.
250 (initWinInfo): Clear filename.
251 (tuiDelWindow): Free it; remove unused locals.
253 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
255 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
256 (tuiUpdateLocatorDisplay): Likewise.
257 * tuiStack.c (tuiGetLocatorFilename): Remove.
258 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
259 instead of tuiUpdateLocatorDisplay.
260 (tuiUpdateLocatorDisplay): Remove.
262 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
264 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
265 * tuiStack.c (tuiClearLocatorDisplay): Remove.
266 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
267 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
269 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
271 * tuiStack.c (tui_get_function_from_frame): Rename from
272 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
274 (tuiUpdateLocatorInfoFromFrame): Update.
276 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
278 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
279 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
280 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
281 (_tuiSetFloatRegsContent): Likewise.
282 (_tuiRegisterName): Return a const char*.
283 * tuiData.h (_TuiDataElement): Use const char* for name.
285 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
287 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
288 (tuiShowAllExecInfosContent): Likewise.
289 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
290 (tuiShowAllExecInfosContent): Remove.
291 (tuiAllocSourceBuffer): Remove unused locals.
293 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
295 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
296 to follow other gdb's command names; use execute_command; cleanup.
297 (_initialize_tuiStack): Update.
299 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
301 * tuiWin.h (tui_update_gdb_sizes): Declare.
303 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
305 * tui.c (strcat_to_buf): Use const char* for source item.
306 (tui_enable): Update the windows if there is a selected frame.
307 * tui.h (strcat_to_buf): Update prototype.
308 (strcat_to_buf_with_fmt): Remove.
310 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
312 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
313 is the size of command window.
314 (tuiResizeAll): Call it instead of init_page_info.
315 * tui.c (tui_enable): Call it to resize to TUI command window.
316 (tui_disable): Likewise for plain screen.
318 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
320 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
321 use tuiShowFrameInfo instead of tuiSetLocatorContent.
322 * tuiLayout.h (showLayout): Remove.
323 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
324 (_showSourceDisassemCommand): Likewise.
325 (showLayout): Make it static.
326 (lastLayout): Remove.
328 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
330 * tuiSourceWin.c (tui_show_source_line): New function.
331 (tuiShowSourceContent): Call it and avoid clearing the window before
333 (tuiClearAllSourceWinsContent): Remove.
334 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
335 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
336 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
337 (tuiRefreshAll): Don't clear the window.
338 (_makeVisibleWithNewHeight): Don't clear locator line.
339 (tuiResizeAll): Remove unused locals.
340 (_tuiAdjustWinHeights): Likewise.
341 (_makeInvisibleAndSetNewHeight): Likewise.
342 (_newHeightOk): Likewise.
343 * tuiLayout.c (showLayout): Don't clear source windows.
344 (tuiSetLayout): Don't clear the window.
345 (_initAndMakeWin): Likewise for status line.
346 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
347 (makeWindow): Likewise.
348 (tuiClearWin): Remove.
349 * tuiGeneralWin.h (tuiClearWin): Don't declare.
351 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
353 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
354 (tuiAsmWinIsDisplayed): Remove.
355 (tuiShowAllSourceWinsContent): Remove.
356 (tuiUpdateOnEnd): Remove.
357 * tuiGeneralWin.c (scrollWinForward): Remove.
358 (scrollWinBackward): Remove.
359 (_winResize): Don't declare.
360 * tui.h (tuiUpdateOnEnd): Don't declare.
361 (vcatch_errors, va_catch_errors): Likewise.
362 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
363 (tuiShowAllSourceWinsContent): Likewise.
364 * tuiGeneralWin.h (scrollWinForward): Likewise.
365 (scrollWinBackward): Likewise.
367 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
369 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
371 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
374 * tui.c: Disable <termio.h> include.
376 2002-03-15 Andrew Cagney <ac131313@redhat.com>
378 * tui-out.c (XMALLOC): Delete macro. Update copyright.
380 2002-03-01 Andrew Cagney <ac131313@redhat.com>
382 * tui-hooks.c: Add FIXME to explain true/false problem. Update
384 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
385 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
386 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
389 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
390 * tui-hooks.c: Include <curses.h> before "bfd.h".
392 * tuiCommand.c: Likewise.
393 * tuiData.c: Likewise.
394 * tuiDataWin.c: Likewise.
395 * tuiDisassem.c: Likewise.
396 * tuiGeneralWin.c: Likewise.
398 * tuiLayout.c: Likewise.
399 * tuiRegs.c: Likewise.
400 * tuiSource.c: Likewise.
401 * tuiSourceWin.c: Likewise.
402 * tuiStack.c: Likewise.
403 * tuiWin.c: Likewise.
405 2002-02-01 Andrew Cagney <ac131313@redhat.com>
407 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
409 2001-10-20 Andrew Cagney <ac131313@redhat.com>
411 * tuiDisassem.c: Include "value.h".
412 * tuiSourceWin.c: Ditto.
414 2001-09-28 Tom Tromey <tromey@redhat.com>
416 * tuiLayout.h (tui_set_layout): Don't declare.
417 * tui.h (tui_vAddWinToLayout): Don't declare.
418 (tui_vSetLayoutTo): Likewise.
419 (tui_set_layout): Declare.
421 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
423 * tuiSourceWin.c: Use disp_del instead of del.
425 * tuiSource.c: Use disp_del instead of del.
427 * tuiDisassem.c: Use disp_del instead of del.
429 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
431 * tui.c (tui_enable): Remove call to terminal_save_ours().
432 (tui_disable): Likewise.
434 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
436 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
437 set/show configuration variables.
438 (show_tui_cmd): New function.
439 (set_tui_cmd): New function.
441 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
443 * tui-hooks.c: New file, gdb hooks for tui.
444 * tui-out.c: New file, image copied from cli-out.c.
445 (tui_field_int): Identify "line" fields and keep track of them.
446 (tui_field_string): Likewise for "file".
447 (tui_out_new): Use flags = 0 to avoid printing the sources.
449 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
451 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
452 leave it in the command window.
453 (tui_redisplay_readline): Save cursor position to restore the
454 cursor after we go back from background.
455 * tuiData.h (TuiCommandInfo): Add start_line member.
457 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
459 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
460 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
461 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
463 * tui.c (tui_show_source): New function.
464 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
465 (tui_switch_mode): Prep or deprep readline terminal;
466 make sure the \n we return does not redo the last command.
467 * tui.h (tui_show_source): Declare.
468 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
469 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
471 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
473 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
474 if SIGCONT is defined.
475 (tui_cont_sig): New function when SIGCONT is defined.
476 (tui_setup_io): Save tty setting to restore by SIGCONT.
478 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
480 * tui.h (tui_show_assembly): Declare.
481 (tui_is_window_visible): Declare.
482 * tui.c (tui_show_assembly): New function.
483 (tui_is_window_visible): New function.
484 (tui_get_command_dimension): New function.
486 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
488 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
490 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
492 * tui-file.c (tui_file_fputs): Use tui_puts.
494 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
496 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
497 * tuiStack.h (tuiGetLocatorFilename): Declare.
498 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
499 * tuiData.h (addToSourceWindows): Declare.
501 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
503 * tui.c (tui_change_windows): New function.
504 (tui_delete_other_windows): New function.
505 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
506 (tui_enable): Enable the keypad; call tui_update_variables.
507 (strcat_to_buf_with_fmt): Remove.
509 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
511 * tui.h: Remove old declarations, add the new ones.
512 * tui.c (tui_switch_mode): New function.
513 (tui_initialize_readline): New function.
514 (tui_enable): New function.
515 (tui_disable): New function.
516 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
517 (tui_vSelectSourceSymtab): Remove.
518 (tuiInitWindows): Remove.
519 (_initialize_tui): Remove.
520 (_tuiReset): Keep but put arround #if 0.
522 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
524 * tuiIO.h: Remove old declarations and add the new ones.
525 * tuiIO.c: New management for curses and gdb terminal interactions.
527 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
528 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
529 (tui_owns_terminal): Remove.
530 (tui_redisplay_readline): New function.
531 (tui_puts): New function.
532 (tui_prep_terminal): New function.
533 (tui_deprep_terminal): New function.
534 (tui_getc): Rename of tuiGetc, simplify and fix.
535 (tui_setup_io): New function.
536 (tui_initialize_io): New function.
538 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
540 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
541 (_tuiRegisterFormat): Reduce size of format result.
543 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
545 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
546 * tuiWin.h: Declare the new variables.
547 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
548 (tui_update_variables): New function.
549 (translate): New function.
550 (tui_border_kind_enums, tui_border_mode_enums): New tables.
551 (tui_border_mode_translate): New table.
552 (tui_border_kind_translate_*): New tables.
553 (tui_active_border_mode): New variables.
554 (tui_border_*): New variables.
556 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
558 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
559 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
561 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
562 (tui_vUpdateLocatorFilename): Remove.
563 * tuiStack.h: Update prototypes.
565 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
566 (tuiLineIsDisplayed): Split for address and line.
567 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
568 (tuiUpdateSourceWindowAsIs): Likewise.
569 (tuiUpdateSourceWindowsWithAddr): Likewise.
570 (tuiUpdateSourceWindowsWithLine): Likewise.
571 (tuiHorizontalSourceScroll): Likewise.
572 (tuiSetIsExecPointAt): Likewise.
573 (tuiUpdateOnEnd): Likewise.
574 * tuiSourceWin.h: Update prototypes.
576 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
577 (tuiShowSource): Likewise.
578 (tuiVerticalSourceScroll): Likewise.
579 * tuiSource.h (tuiShowSource): Update prototype.
581 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
582 (tuiShowDisassem): Use TuiLineOrAddress type.
583 (tuiShowDisassemAndUpdateSource): Likewise.
584 (tuiVerticalDisassemScroll): Likewise.
585 (tuiShowDisassemAsIs): Remove.
586 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
588 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
589 (clearWinDetail): Likewise.
590 (displayableWinContentOf): Fix address conversion.
591 (tuiNextWin): Fix crash when the window is not yet created.
592 (partialWinByName): Likewise.
594 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
596 * tuiSourceWin.h: Remove unused declarations.
597 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
598 (tui_vUpdateSourceWindowsWithLine): Remove.
599 (tui_vAllSetHasBreakAt): Remove.
601 * tuiLayout.h (tui_set_layout): Declare.
602 (tui_vSetLayoutTo): Remove.
603 (tui_vAddWinToLayout): Remove.
604 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
605 (_tuiToggleLayout_command): Remove.
606 (_tuiToggleSplitLayout_command): Remove.
607 (_tuiLayout_command): Remove.
608 (tui_vSetLayoutTo): Remove.
609 (tui_vAddWinToLayout): Remove.
611 * tuiDataWin.h (tui_vCheckDataValues): Remove.
612 * tuiDataWin.c (tui_vCheckDataValues): Remove.
614 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
616 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
617 (_parseScrollingArgs): Use xstrdup.
618 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
619 (_tuiScrollBackward_command): Likewise.
620 (_tuiScrollLeft_command): Likewise.
621 (_tuiScrollRight_command): Likewise.
622 (_tuiSetFocus): Likewise.
623 (_tuiSetFocus_command): Likewise.
624 (_tuiRefreshAll_command): Likewise.
625 (_tuiSetTabWidth_command): Likewise.
626 (_tuiSetWinHeight): Likewise.
627 (_tuiSetWinHeight_command): Likewise.
628 (_tuiXDBsetWinHeight): Likewise.
629 (_tui_vSetFocus): Remove.
630 (_tui_vSetWinHeight): Remove.
631 (_tui_vXDBsetWinHeight): Remove.
633 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
635 * tuiCommand.h: Remove unused declarations.
636 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
637 (tuiIncrCommandCharCountBy): Remove.
638 (tuiDecrCommandCharCountBy): Remove.
639 (tuiSetCommandCharCountTo): Remove.
640 (tuiClearCommandCharCount): Remove.
642 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
644 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
645 create the tui class help.
646 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
647 * tuiRegs.c (_initialize_tuiRegs): Likewise.
648 * tuiStack.c (_initialize_tuiStack): Likewise.
650 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
652 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
653 (tuiVerticalDisassemScroll): Likewise.
654 (tuiShowDisassemAndUpdateSource): Check for null symtab to
657 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
659 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
660 (tuiRead, tui_vread): Remove.
662 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
663 (vcatch_errors, _tui_vDo): Remove.
664 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
666 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
667 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
668 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
669 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
670 (_tuiLayout_command): Call tui_set_layout.
672 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
673 (_tuiScrollRegsForward_command): Likewise.
674 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
675 (_tuiShowGeneral_command): Likewise.
676 (_tuiShowSpecial_command): Likewise.
677 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
678 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
679 (_tuiScrollForward_command): Call tui_scroll.
680 (_tuiScrollBackward_command): Likewise.
681 (_tuiScrollLeft_command): Likewise.
682 (_tuiScrollRight_command): Likewise.
683 (_tuiSetFocus_command): Call _tuiSetFocus.
684 (_tuiRefreshAll_command): Call tuiRefreshAll.
685 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
686 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
687 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
689 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
691 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
692 (TuiLineOrAddress): Likewise.
693 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
695 (tuiSetDisassemContent): Likewise.
696 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
697 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
698 (tuiSetLayout): Likewise.
699 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
700 (tuiUpdateSourceWindowsWithAddr): Likewise.
701 (tuiUpdateSourceWindowsWithLine): Likewise.
702 (tuiSetHasBreakAt): Likewise.
703 * tuiStack.c (tuiSetLocatorInfo): Likewise.
704 (tuiSwitchFilename): Likewise.
705 (tuiUpdateLocatorInfoFromFrame): Likewise.
706 (tuiSetLocatorContent): Likewise.
707 (tuiShowFrameInfo): Likewise.
708 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
709 * tuiSourceWin.h: Likewise.
710 * tuiStack.h: Likewise.
712 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
714 * tuiWin.c: Add missing includes.
715 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
716 * tuiLayout.c: Add missing includes.
717 (_initAndMakeWin): Don't put curses in echo mode.
718 (_extractDisplayStartAddr): Fix calls to find_line_pc.
719 (_tuiLayout_command): Missing ',' in warning call.
720 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
722 (tuiSetHasBreakAt): Check for null source file.
724 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
726 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
727 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
728 * tui.c (_tui_vToggle_command): Likewise.
730 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
732 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
734 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
736 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
737 each register window.
738 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
739 of the register to check.
740 (_tuiRegValueHasChanged): Likewise.
741 (_tuiRegisterName): Use REGISTER_NAME.
742 (tui_restore_gdbout): New function.
743 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
745 (START_SPECIAL_REGS): Define.
746 (_tuiGetRegisterRawValue): Use get_saved_register.
747 (_tuiDisplayRegister): Fix clearing of register window.
749 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
751 * tui-file.h (fputs_unfiltered_hook): Remove.
752 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
753 (tui_file_fputs): Likewise; simplify
755 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
757 * tuiStack.c: Add missing includes.
758 (tuiShowFrameInfo): Don't crash when there is no symbol table
759 associated with the pc.
760 * tuiSource.c (_hasBreak): Check for null source file.
761 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
762 (_tuiSetFocus): Check for null dataWin.
763 * tuiGeneralWin.c (refreshAll): Check for null list[type].
765 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
767 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
768 to disassemble in the curses window.
770 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
772 * tui.h: Cleanup to avoid inclusion of curses includes.
773 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
774 * tuiData.h: To here; include curses includes here.
775 (setTermHeightTo): Rename of setTermHeight to follow reality.
776 (setTermWidthTo): Likewise with setTermWidth.
778 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
780 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
781 tuiIO.c, tuiData.c: Likewise.
782 tuiDataWin.c, tuiDisassem.c: Likewise.
783 tuiGeneralWin.c, tuiLayout.c: Likewise.
784 tuiRegs.c, tuiSource.c: Likewise.
785 tuiSouceWin.c, tuiStack.c: Likewise.
787 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
789 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
790 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
791 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
792 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
793 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
794 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
796 2001-03-08 Andrew Cagney <ac131313@redhat.com>
798 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
800 2001-03-06 Kevin Buettner <kevinb@redhat.com>
802 * tui-file.h: Update/correct copyright notice.
804 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
806 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
809 2000-12-14 Kevin Buettner <kevinb@redhat.com>
811 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
812 of free() with xfree().
814 2000-06-22 Kevin Buettner <kevinb@redhat.com>
816 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
818 2000-06-20 Kevin Buettner <kevinb@redhat.com>
820 * tuiLayout.c: Eliminate use of PARAMS from this file.
822 2000-06-17 Kevin Buettner <kevinb@redhat.com>
824 * tuiIO.c: Eliminate use of PARAMS from this file.
826 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
828 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
830 (tui_file_fputs): Pass ``file'' and not ``stream'' to
831 tui_file_adjust_strbuf.
833 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
835 * tui.h: Include <ncurses.h> when available.
836 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
838 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
840 * Makefile.in: Delete.
842 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
844 * Makefile.in (distclean, maintainer-clean, realclean,
845 mostlyclean): New targets.
847 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
849 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
850 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
851 ui-file / ``struct ui_file''.
853 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
855 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
856 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
857 tui_file_rewind, tui_file_put, tui_file_fputs,
858 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
859 fputs_unfiltered_hook): Move to here from ../utils.c
861 * tui-file.h, tui-file.c: New files.
863 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
865 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
866 (tuiSetDisassemContent): Replace gdb_file_init_astring with
867 tui_sfileopen. Replace gdb_file_get_strbuf with
870 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
872 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
873 (tuiSetDisassemContent): Repace gdb_file_deallocate with
874 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
876 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
878 * tuiSource.c: Include "source.h".
879 (open_source_file, find_source_lines): Delete declarations.
881 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
883 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
886 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
888 The following changes were made by Jim Blandy <jimb@cygnus.com>,
889 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
890 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
891 Taylor <taylor@cygnus.com>, as part of the project to merge in
892 changes originally made by HP; HP did not create ChangeLog
895 * Makefile.in: New file; we're merging HP's changes into GDB, and
896 we've moved the TUI files into a subdirectory, so we need a new
900 #include <term.h>, if we have it, to get declarations for
901 the termcap functions on Solaris.
902 (tgoto): Add external K&R declaration for this; Solaris doesn't
903 bother to actually declare it in their header files.
904 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
905 we'd rather use the USG mechanisms than the Berkeley mechanisms
906 (TIOCGETC is one of the Berkeley terminal control ioctls).
907 Apologies if this causes trouble later; this should all be handled
909 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
911 (tuiFree): replace safe_free with free.
912 (strcat_to_buf): new function, copied from utils.c.
913 (tuiInit): Add ignored `argv0' argument, to match the type that
914 init_ui_hook expects; updated declaration. Call the
915 initialize_tui_files function constructed above. Initialize
917 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
918 element of the locator window's content allocated. This seems
919 wrong, because it must have been initialized somehow in HP's
920 sources, and we should do it the same way now. But we do get
921 further before it segfaults. [Postscript: HP didn't bother to
922 initialize it; they compile
923 (va_catch_errors, vcatch_errors): Functions moved here from
924 ../utils.c in HP's sources. They're not used anywhere else.
925 (xdb_style): Delete this variable, and remove all references to
926 it. It's always true.
927 (tuiInit, _tui_vDo): References removed.
929 * tui.h: Add prototypes.
930 Don't #include "gendefs.h"; it's only used in the TUI.
931 Integrate its contents into this file:
932 #include <ansidecl.h> here.
933 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
935 * tuiCommand.c: #include "defs.h", so we get the appropriate
936 definition of GDB_FILE.
939 (freeWindow): replace safe_free with free.
940 (tui_version): don't define it here; it's defined in main.c now.
943 (tuiSetDisassemContent): Call strcat_address_numeric instead of
944 strcat_address. Simplify the control structure. Use predefined
945 GDB function to print asm inst address. Use GDB_FILE to collect
949 (tgoto): Add external K&R declaration for this here too.
950 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
951 (tuiPuts_unfiltered): change FILE to GDB_FILE.
952 (tui_tputs): fix prototype for 3rd argument.
954 * tuiIO.h (tuiPuts_unfiltered): change declaration.
957 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
958 that decides which registers to display (i.e. single precision
959 float, double precision float, general, special). Previously,
960 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
961 compiling with -z poses a problem. When the first layout command
962 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
965 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
967 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
968 <stdarg.h>. No idea exactly what's conflicting with what, but the
970 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
971 object, calls pa_do_strcat_registers_info, copies the register
972 info into a buffer, and deallocates the GDB_FILE object. Remove
973 some code that is not executed. Also, call to
974 pa_do_strcat_registers_info has an additional parameter,
975 precision. This code requires some new per-target functions that
976 we don't want to merge. Dyke it out, with #ifdef
977 TUI_EXTENDED_FORMATTERS.
978 (_tuiSetSpecialRegsContent): this function was ifdefed out.
980 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
982 (IS_64BIT): Just define this to be zero; we're not merging in the
984 (tuiShowRegisters): Comment out all references to the "special"
985 regs; we don't have a distinction between the "special" and
986 "non-special" regs in most of our machine descriptions. This code
987 is PA-specific in other ways as well, and needs to be redesigned
988 to be portable to other processors.
990 * tuiWin.c: #include <string.h>, to get a declaration for
993 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
994 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
995 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
996 bool to int throughout. Re-indented, GNU style.
998 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
999 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
1000 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
1001 Changed bool to int throughout.