1 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
3 * tuiStack.c (tui_make_status_line): Make sure the local buffer
4 is large enough to hold the complete line.
6 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
8 * tui-hooks.c (tui_event_loop): New function.
9 (tui_command_loop): New function to override gdb loop and make sure
10 uiout is set according to TUI mode.
11 (tui_command_loop): Install the specific TUI command hook.
12 * tuiIO.c (tui_initialize_io): Initialize tui_old_uiout.
13 (tui_uiout, tui_old_uiout): Make public.
14 * tuiIO.h (tui_uiout, tui_old_uiout): Declare.
16 2002-09-04 Stephane Carrez <stcarrez@nerim.fr>
18 * tuiIO.c (tui_putc): New function to print one character.
19 (printable_part): New function from readline/complete.c.
20 (PUTX): New macro, likewise.
21 (print_filename): New function, likewise.
22 (get_y_or_n): New function, likewise and adapted for TUI.
23 (tui_rl_display_match_list): New function from readline/complete.c
24 and writes on TUI command window.
25 (tui_setup_io): Install or remove the readline hook
26 rl_completion_display_matches_hook so that completion is written
27 directly in TUI command window instead of in the TUI pipe.
28 (tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the
30 (tui_getc): Likewise for call to tui_readline_output.
31 (tui_readline_output): Likewise for function.
32 * tui.c (tui_rl_startup_hook): Always take care of gdb prompt.
34 2002-09-02 Stephane Carrez <stcarrez@nerim.fr>
36 * tuiWin.c (_newHeightOk): Fix compilation warnings.
38 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
40 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
43 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
45 * tui-out.c (tui_out_new): Clear start_of_line.
46 * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
47 to update the current source line.
49 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
51 * tui-hooks.c (tui_detach_hook): New hook to know when a process dies.
52 (tui_install_hooks): Install it.
53 (tui_remove_hooks): Remove it.
55 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
57 * tuiData.h (FILE_PREFIX): Don't define.
58 (blankStr, locationStr, breakStr): Don't declare.
59 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise.
60 (displayableWinContentOf, displayableWinContentAt): Likewise.
61 (winElementHeight, winByName, freeAllWindows): Likewise.
63 * tuiData.c (blankStr, locationStr, breakStr): Remove.
64 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
65 (displayableWinContentOf, displayableWinContentAt): Remove.
66 (winElementHeight, winByName, freeAllWindows): Remove.
68 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
70 * tuiStack.c (tui_make_status_line): New function to create the
72 (tuiShowLocatorContent): Use it instead of displayableWinContentAt.
73 * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
74 (PC_PREFIX): Use upper case.
75 (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
76 (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
78 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
80 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.
81 (tuiClearAllExecInfosContent): Likewise.
82 (tuiEraseAllExecInfosContent): Ditto.
83 (tuiUpdateSourceWindowsFromLocator): Ditto.
84 * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove.
85 * tui.h (tui_vCheckDataValues): Don't declare.
86 (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise.
87 (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto.
88 (tui_vShowFrameInfo): Ditto.
90 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
92 * tui.c (tui_commands): Table of single key commands.
93 (tui_rl_command_key): New function to execute gdb command.
94 (tui_rl_command_mode): New function to temporarily leave SingleKey.
95 (tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
96 (tui_rl_startup_hook): New function to avoid prompt display by
98 (tui_set_key_mode): New function to set the key mode and install
100 (tui_initialize_readline): Create TUI SingleKey readline map.
101 (tui_enable): Install rl_startup_hook.
102 (tui_disable): Remove it.
103 * tui.h (enum tui_key_mode): Declare.
104 (tui_set_key_mode, tui_current_key_mode): Declare.
105 * tuiIO.c (tui_redisplay_readline): Don't display the prompt in
107 * tuiIO.h (tui_redisplay_readline): Declare.
109 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
111 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
114 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
116 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
118 (tuiShowSource): Fix comment indentation.
119 (tuiSourceIsDisplayed): Likewise.
120 (tuiVerticalSourceScroll): Likewise.
122 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
124 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
125 (tui_update_breakpoint_info): Declare.
126 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
128 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
129 information using tui_update_breakpoint_info.
130 (tui_update_all_breakpoint_info): New function to refresh all
132 (tui_update_breakpoint_info): New function to recompute the status
133 of exec info window from breakpoints.
134 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
135 (tuiSetExecInfoContent): Use the exec info flags computed by
136 tui_update_breakpoint_info to display a short status about breakpoints.
138 * tuiData.h (TuiExecInfoContent): New for exec info string.
139 (TuiWhichElement): Use it.
140 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
141 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
142 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
143 (TUI_EXECINFO_SIZE): Likewise.
144 * tuiData.c (initContentElement): Clear exec info string.
146 * tui-hooks.c (get_breakpoint): Remove.
147 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
148 (tui_event_delete_breakpoint): Likewise.
149 (tui_event_modify_breakpoint): Likewise.
151 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
153 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
154 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
155 tui_find_disassembly_address to find the starting address of
158 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
160 * tuiDisassem.c (tui_disassemble): New function to disassemble
161 several lines in a buffer.
162 (tui_find_disassembly_address): New function to search backward
163 or forward a disassembly line.
164 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
165 content and format it in the window.
166 (tuiShowDisassemAndUpdateSource): Remove unused locals.
167 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
168 obtain the address to disassemble for the scrolling.
169 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
170 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
172 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
174 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
176 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
179 * tui.c (tui_disable): Update gdb's knowledge of its terminal
180 using target_terminal_save_ours.
181 (tui_enable): Likewise.
183 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
185 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
186 (tui_rl_change_windows): Renames tui_change_windows.
187 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
188 (tui_initialize_readline): Update.
190 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
192 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
195 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
197 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
198 to find symbol address.
200 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
202 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
203 and use tuiGetBeginAsmAddress.
204 * tuiSourceWin.h (tui_display_main): Declare.
205 * tui.h (tuiDisplayMainFunction): Remove.
206 * tui-hooks.c (tui_new_objfile_hook): Update.
208 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
210 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
211 (tuiShowSourceAsIs): Don't declare.
213 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
215 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
218 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
220 * tuiStack.c (tuiSetLocatorContent): Remove.
221 (tuiUpdateLocatorInfoFromFrame): Remove.
222 (tui_set_locator_info): Allocate the content buffer if necessary.
223 (tui_set_locator_filename): Call tui_set_locator_info directly.
224 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
227 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
229 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
230 tuiUpdateLocatorFilename.
231 * tuiStack.c (tuiSetLocatorInfo): Make it static.
232 (tuiSetLocatorContent): Likewise.
233 (tuiUpdateLocatorInfoFromFrame): Likewise.
234 (tuiSwitchFilename): Remove.
235 (tui_set_locator_filename): New function
236 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
237 use tui_set_locator_filename to record the filename.
238 (tuiUpdateLocatorFilename): Likewise.
239 (tuiUpdateLocatorInfoFromFrame): Update.
240 (tuiSetLocatorContent): Likewise.
241 * tuiStack.h (tuiClearLocatorContent): Don't declare.
242 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
243 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
245 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
247 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
249 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
250 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
251 * tuiData.h (TuiSourceInfo): Add filename member.
252 (TuiGenWinInfo): Add title member.
253 * tuiData.c (initGenericPart): Clear title.
254 (freeWindow): Free title and filename; remove unused locals.
255 (initWinInfo): Clear filename.
256 (tuiDelWindow): Free it; remove unused locals.
258 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
260 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
261 (tuiUpdateLocatorDisplay): Likewise.
262 * tuiStack.c (tuiGetLocatorFilename): Remove.
263 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
264 instead of tuiUpdateLocatorDisplay.
265 (tuiUpdateLocatorDisplay): Remove.
267 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
269 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
270 * tuiStack.c (tuiClearLocatorDisplay): Remove.
271 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
272 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
274 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
276 * tuiStack.c (tui_get_function_from_frame): Rename from
277 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
279 (tuiUpdateLocatorInfoFromFrame): Update.
281 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
283 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
284 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
285 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
286 (_tuiSetFloatRegsContent): Likewise.
287 (_tuiRegisterName): Return a const char*.
288 * tuiData.h (_TuiDataElement): Use const char* for name.
290 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
292 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
293 (tuiShowAllExecInfosContent): Likewise.
294 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
295 (tuiShowAllExecInfosContent): Remove.
296 (tuiAllocSourceBuffer): Remove unused locals.
298 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
300 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
301 to follow other gdb's command names; use execute_command; cleanup.
302 (_initialize_tuiStack): Update.
304 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
306 * tuiWin.h (tui_update_gdb_sizes): Declare.
308 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
310 * tui.c (strcat_to_buf): Use const char* for source item.
311 (tui_enable): Update the windows if there is a selected frame.
312 * tui.h (strcat_to_buf): Update prototype.
313 (strcat_to_buf_with_fmt): Remove.
315 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
317 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
318 is the size of command window.
319 (tuiResizeAll): Call it instead of init_page_info.
320 * tui.c (tui_enable): Call it to resize to TUI command window.
321 (tui_disable): Likewise for plain screen.
323 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
325 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
326 use tuiShowFrameInfo instead of tuiSetLocatorContent.
327 * tuiLayout.h (showLayout): Remove.
328 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
329 (_showSourceDisassemCommand): Likewise.
330 (showLayout): Make it static.
331 (lastLayout): Remove.
333 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
335 * tuiSourceWin.c (tui_show_source_line): New function.
336 (tuiShowSourceContent): Call it and avoid clearing the window before
338 (tuiClearAllSourceWinsContent): Remove.
339 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
340 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
341 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
342 (tuiRefreshAll): Don't clear the window.
343 (_makeVisibleWithNewHeight): Don't clear locator line.
344 (tuiResizeAll): Remove unused locals.
345 (_tuiAdjustWinHeights): Likewise.
346 (_makeInvisibleAndSetNewHeight): Likewise.
347 (_newHeightOk): Likewise.
348 * tuiLayout.c (showLayout): Don't clear source windows.
349 (tuiSetLayout): Don't clear the window.
350 (_initAndMakeWin): Likewise for status line.
351 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
352 (makeWindow): Likewise.
353 (tuiClearWin): Remove.
354 * tuiGeneralWin.h (tuiClearWin): Don't declare.
356 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
358 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
359 (tuiAsmWinIsDisplayed): Remove.
360 (tuiShowAllSourceWinsContent): Remove.
361 (tuiUpdateOnEnd): Remove.
362 * tuiGeneralWin.c (scrollWinForward): Remove.
363 (scrollWinBackward): Remove.
364 (_winResize): Don't declare.
365 * tui.h (tuiUpdateOnEnd): Don't declare.
366 (vcatch_errors, va_catch_errors): Likewise.
367 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
368 (tuiShowAllSourceWinsContent): Likewise.
369 * tuiGeneralWin.h (scrollWinForward): Likewise.
370 (scrollWinBackward): Likewise.
372 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
374 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
376 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
379 * tui.c: Disable <termio.h> include.
381 2002-03-15 Andrew Cagney <ac131313@redhat.com>
383 * tui-out.c (XMALLOC): Delete macro. Update copyright.
385 2002-03-01 Andrew Cagney <ac131313@redhat.com>
387 * tui-hooks.c: Add FIXME to explain true/false problem. Update
389 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
390 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
391 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
394 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
395 * tui-hooks.c: Include <curses.h> before "bfd.h".
397 * tuiCommand.c: Likewise.
398 * tuiData.c: Likewise.
399 * tuiDataWin.c: Likewise.
400 * tuiDisassem.c: Likewise.
401 * tuiGeneralWin.c: Likewise.
403 * tuiLayout.c: Likewise.
404 * tuiRegs.c: Likewise.
405 * tuiSource.c: Likewise.
406 * tuiSourceWin.c: Likewise.
407 * tuiStack.c: Likewise.
408 * tuiWin.c: Likewise.
410 2002-02-01 Andrew Cagney <ac131313@redhat.com>
412 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
414 2001-10-20 Andrew Cagney <ac131313@redhat.com>
416 * tuiDisassem.c: Include "value.h".
417 * tuiSourceWin.c: Ditto.
419 2001-09-28 Tom Tromey <tromey@redhat.com>
421 * tuiLayout.h (tui_set_layout): Don't declare.
422 * tui.h (tui_vAddWinToLayout): Don't declare.
423 (tui_vSetLayoutTo): Likewise.
424 (tui_set_layout): Declare.
426 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
428 * tuiSourceWin.c: Use disp_del instead of del.
430 * tuiSource.c: Use disp_del instead of del.
432 * tuiDisassem.c: Use disp_del instead of del.
434 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
436 * tui.c (tui_enable): Remove call to terminal_save_ours().
437 (tui_disable): Likewise.
439 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
441 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
442 set/show configuration variables.
443 (show_tui_cmd): New function.
444 (set_tui_cmd): New function.
446 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
448 * tui-hooks.c: New file, gdb hooks for tui.
449 * tui-out.c: New file, image copied from cli-out.c.
450 (tui_field_int): Identify "line" fields and keep track of them.
451 (tui_field_string): Likewise for "file".
452 (tui_out_new): Use flags = 0 to avoid printing the sources.
454 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
456 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
457 leave it in the command window.
458 (tui_redisplay_readline): Save cursor position to restore the
459 cursor after we go back from background.
460 * tuiData.h (TuiCommandInfo): Add start_line member.
462 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
464 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
465 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
466 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
468 * tui.c (tui_show_source): New function.
469 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
470 (tui_switch_mode): Prep or deprep readline terminal;
471 make sure the \n we return does not redo the last command.
472 * tui.h (tui_show_source): Declare.
473 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
474 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
476 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
478 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
479 if SIGCONT is defined.
480 (tui_cont_sig): New function when SIGCONT is defined.
481 (tui_setup_io): Save tty setting to restore by SIGCONT.
483 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
485 * tui.h (tui_show_assembly): Declare.
486 (tui_is_window_visible): Declare.
487 * tui.c (tui_show_assembly): New function.
488 (tui_is_window_visible): New function.
489 (tui_get_command_dimension): New function.
491 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
493 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
495 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
497 * tui-file.c (tui_file_fputs): Use tui_puts.
499 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
501 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
502 * tuiStack.h (tuiGetLocatorFilename): Declare.
503 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
504 * tuiData.h (addToSourceWindows): Declare.
506 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
508 * tui.c (tui_change_windows): New function.
509 (tui_delete_other_windows): New function.
510 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
511 (tui_enable): Enable the keypad; call tui_update_variables.
512 (strcat_to_buf_with_fmt): Remove.
514 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
516 * tui.h: Remove old declarations, add the new ones.
517 * tui.c (tui_switch_mode): New function.
518 (tui_initialize_readline): New function.
519 (tui_enable): New function.
520 (tui_disable): New function.
521 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
522 (tui_vSelectSourceSymtab): Remove.
523 (tuiInitWindows): Remove.
524 (_initialize_tui): Remove.
525 (_tuiReset): Keep but put arround #if 0.
527 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
529 * tuiIO.h: Remove old declarations and add the new ones.
530 * tuiIO.c: New management for curses and gdb terminal interactions.
532 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
533 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
534 (tui_owns_terminal): Remove.
535 (tui_redisplay_readline): New function.
536 (tui_puts): New function.
537 (tui_prep_terminal): New function.
538 (tui_deprep_terminal): New function.
539 (tui_getc): Rename of tuiGetc, simplify and fix.
540 (tui_setup_io): New function.
541 (tui_initialize_io): New function.
543 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
545 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
546 (_tuiRegisterFormat): Reduce size of format result.
548 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
550 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
551 * tuiWin.h: Declare the new variables.
552 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
553 (tui_update_variables): New function.
554 (translate): New function.
555 (tui_border_kind_enums, tui_border_mode_enums): New tables.
556 (tui_border_mode_translate): New table.
557 (tui_border_kind_translate_*): New tables.
558 (tui_active_border_mode): New variables.
559 (tui_border_*): New variables.
561 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
563 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
564 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
566 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
567 (tui_vUpdateLocatorFilename): Remove.
568 * tuiStack.h: Update prototypes.
570 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
571 (tuiLineIsDisplayed): Split for address and line.
572 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
573 (tuiUpdateSourceWindowAsIs): Likewise.
574 (tuiUpdateSourceWindowsWithAddr): Likewise.
575 (tuiUpdateSourceWindowsWithLine): Likewise.
576 (tuiHorizontalSourceScroll): Likewise.
577 (tuiSetIsExecPointAt): Likewise.
578 (tuiUpdateOnEnd): Likewise.
579 * tuiSourceWin.h: Update prototypes.
581 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
582 (tuiShowSource): Likewise.
583 (tuiVerticalSourceScroll): Likewise.
584 * tuiSource.h (tuiShowSource): Update prototype.
586 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
587 (tuiShowDisassem): Use TuiLineOrAddress type.
588 (tuiShowDisassemAndUpdateSource): Likewise.
589 (tuiVerticalDisassemScroll): Likewise.
590 (tuiShowDisassemAsIs): Remove.
591 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
593 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
594 (clearWinDetail): Likewise.
595 (displayableWinContentOf): Fix address conversion.
596 (tuiNextWin): Fix crash when the window is not yet created.
597 (partialWinByName): Likewise.
599 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
601 * tuiSourceWin.h: Remove unused declarations.
602 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
603 (tui_vUpdateSourceWindowsWithLine): Remove.
604 (tui_vAllSetHasBreakAt): Remove.
606 * tuiLayout.h (tui_set_layout): Declare.
607 (tui_vSetLayoutTo): Remove.
608 (tui_vAddWinToLayout): Remove.
609 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
610 (_tuiToggleLayout_command): Remove.
611 (_tuiToggleSplitLayout_command): Remove.
612 (_tuiLayout_command): Remove.
613 (tui_vSetLayoutTo): Remove.
614 (tui_vAddWinToLayout): Remove.
616 * tuiDataWin.h (tui_vCheckDataValues): Remove.
617 * tuiDataWin.c (tui_vCheckDataValues): Remove.
619 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
621 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
622 (_parseScrollingArgs): Use xstrdup.
623 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
624 (_tuiScrollBackward_command): Likewise.
625 (_tuiScrollLeft_command): Likewise.
626 (_tuiScrollRight_command): Likewise.
627 (_tuiSetFocus): Likewise.
628 (_tuiSetFocus_command): Likewise.
629 (_tuiRefreshAll_command): Likewise.
630 (_tuiSetTabWidth_command): Likewise.
631 (_tuiSetWinHeight): Likewise.
632 (_tuiSetWinHeight_command): Likewise.
633 (_tuiXDBsetWinHeight): Likewise.
634 (_tui_vSetFocus): Remove.
635 (_tui_vSetWinHeight): Remove.
636 (_tui_vXDBsetWinHeight): Remove.
638 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
640 * tuiCommand.h: Remove unused declarations.
641 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
642 (tuiIncrCommandCharCountBy): Remove.
643 (tuiDecrCommandCharCountBy): Remove.
644 (tuiSetCommandCharCountTo): Remove.
645 (tuiClearCommandCharCount): Remove.
647 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
649 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
650 create the tui class help.
651 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
652 * tuiRegs.c (_initialize_tuiRegs): Likewise.
653 * tuiStack.c (_initialize_tuiStack): Likewise.
655 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
657 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
658 (tuiVerticalDisassemScroll): Likewise.
659 (tuiShowDisassemAndUpdateSource): Check for null symtab to
662 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
664 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
665 (tuiRead, tui_vread): Remove.
667 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
668 (vcatch_errors, _tui_vDo): Remove.
669 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
671 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
672 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
673 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
674 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
675 (_tuiLayout_command): Call tui_set_layout.
677 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
678 (_tuiScrollRegsForward_command): Likewise.
679 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
680 (_tuiShowGeneral_command): Likewise.
681 (_tuiShowSpecial_command): Likewise.
682 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
683 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
684 (_tuiScrollForward_command): Call tui_scroll.
685 (_tuiScrollBackward_command): Likewise.
686 (_tuiScrollLeft_command): Likewise.
687 (_tuiScrollRight_command): Likewise.
688 (_tuiSetFocus_command): Call _tuiSetFocus.
689 (_tuiRefreshAll_command): Call tuiRefreshAll.
690 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
691 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
692 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
694 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
696 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
697 (TuiLineOrAddress): Likewise.
698 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
700 (tuiSetDisassemContent): Likewise.
701 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
702 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
703 (tuiSetLayout): Likewise.
704 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
705 (tuiUpdateSourceWindowsWithAddr): Likewise.
706 (tuiUpdateSourceWindowsWithLine): Likewise.
707 (tuiSetHasBreakAt): Likewise.
708 * tuiStack.c (tuiSetLocatorInfo): Likewise.
709 (tuiSwitchFilename): Likewise.
710 (tuiUpdateLocatorInfoFromFrame): Likewise.
711 (tuiSetLocatorContent): Likewise.
712 (tuiShowFrameInfo): Likewise.
713 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
714 * tuiSourceWin.h: Likewise.
715 * tuiStack.h: Likewise.
717 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
719 * tuiWin.c: Add missing includes.
720 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
721 * tuiLayout.c: Add missing includes.
722 (_initAndMakeWin): Don't put curses in echo mode.
723 (_extractDisplayStartAddr): Fix calls to find_line_pc.
724 (_tuiLayout_command): Missing ',' in warning call.
725 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
727 (tuiSetHasBreakAt): Check for null source file.
729 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
731 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
732 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
733 * tui.c (_tui_vToggle_command): Likewise.
735 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
737 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
739 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
741 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
742 each register window.
743 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
744 of the register to check.
745 (_tuiRegValueHasChanged): Likewise.
746 (_tuiRegisterName): Use REGISTER_NAME.
747 (tui_restore_gdbout): New function.
748 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
750 (START_SPECIAL_REGS): Define.
751 (_tuiGetRegisterRawValue): Use get_saved_register.
752 (_tuiDisplayRegister): Fix clearing of register window.
754 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
756 * tui-file.h (fputs_unfiltered_hook): Remove.
757 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
758 (tui_file_fputs): Likewise; simplify
760 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
762 * tuiStack.c: Add missing includes.
763 (tuiShowFrameInfo): Don't crash when there is no symbol table
764 associated with the pc.
765 * tuiSource.c (_hasBreak): Check for null source file.
766 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
767 (_tuiSetFocus): Check for null dataWin.
768 * tuiGeneralWin.c (refreshAll): Check for null list[type].
770 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
772 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
773 to disassemble in the curses window.
775 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
777 * tui.h: Cleanup to avoid inclusion of curses includes.
778 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
779 * tuiData.h: To here; include curses includes here.
780 (setTermHeightTo): Rename of setTermHeight to follow reality.
781 (setTermWidthTo): Likewise with setTermWidth.
783 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
785 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
786 tuiIO.c, tuiData.c: Likewise.
787 tuiDataWin.c, tuiDisassem.c: Likewise.
788 tuiGeneralWin.c, tuiLayout.c: Likewise.
789 tuiRegs.c, tuiSource.c: Likewise.
790 tuiSouceWin.c, tuiStack.c: Likewise.
792 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
794 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
795 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
796 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
797 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
798 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
799 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
801 2001-03-08 Andrew Cagney <ac131313@redhat.com>
803 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
805 2001-03-06 Kevin Buettner <kevinb@redhat.com>
807 * tui-file.h: Update/correct copyright notice.
809 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
811 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
814 2000-12-14 Kevin Buettner <kevinb@redhat.com>
816 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
817 of free() with xfree().
819 2000-06-22 Kevin Buettner <kevinb@redhat.com>
821 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
823 2000-06-20 Kevin Buettner <kevinb@redhat.com>
825 * tuiLayout.c: Eliminate use of PARAMS from this file.
827 2000-06-17 Kevin Buettner <kevinb@redhat.com>
829 * tuiIO.c: Eliminate use of PARAMS from this file.
831 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
833 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
835 (tui_file_fputs): Pass ``file'' and not ``stream'' to
836 tui_file_adjust_strbuf.
838 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
840 * tui.h: Include <ncurses.h> when available.
841 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
843 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
845 * Makefile.in: Delete.
847 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
849 * Makefile.in (distclean, maintainer-clean, realclean,
850 mostlyclean): New targets.
852 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
854 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
855 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
856 ui-file / ``struct ui_file''.
858 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
860 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
861 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
862 tui_file_rewind, tui_file_put, tui_file_fputs,
863 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
864 fputs_unfiltered_hook): Move to here from ../utils.c
866 * tui-file.h, tui-file.c: New files.
868 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
870 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
871 (tuiSetDisassemContent): Replace gdb_file_init_astring with
872 tui_sfileopen. Replace gdb_file_get_strbuf with
875 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
877 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
878 (tuiSetDisassemContent): Repace gdb_file_deallocate with
879 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
881 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
883 * tuiSource.c: Include "source.h".
884 (open_source_file, find_source_lines): Delete declarations.
886 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
888 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
891 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
893 The following changes were made by Jim Blandy <jimb@cygnus.com>,
894 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
895 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
896 Taylor <taylor@cygnus.com>, as part of the project to merge in
897 changes originally made by HP; HP did not create ChangeLog
900 * Makefile.in: New file; we're merging HP's changes into GDB, and
901 we've moved the TUI files into a subdirectory, so we need a new
905 #include <term.h>, if we have it, to get declarations for
906 the termcap functions on Solaris.
907 (tgoto): Add external K&R declaration for this; Solaris doesn't
908 bother to actually declare it in their header files.
909 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
910 we'd rather use the USG mechanisms than the Berkeley mechanisms
911 (TIOCGETC is one of the Berkeley terminal control ioctls).
912 Apologies if this causes trouble later; this should all be handled
914 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
916 (tuiFree): replace safe_free with free.
917 (strcat_to_buf): new function, copied from utils.c.
918 (tuiInit): Add ignored `argv0' argument, to match the type that
919 init_ui_hook expects; updated declaration. Call the
920 initialize_tui_files function constructed above. Initialize
922 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
923 element of the locator window's content allocated. This seems
924 wrong, because it must have been initialized somehow in HP's
925 sources, and we should do it the same way now. But we do get
926 further before it segfaults. [Postscript: HP didn't bother to
927 initialize it; they compile
928 (va_catch_errors, vcatch_errors): Functions moved here from
929 ../utils.c in HP's sources. They're not used anywhere else.
930 (xdb_style): Delete this variable, and remove all references to
931 it. It's always true.
932 (tuiInit, _tui_vDo): References removed.
934 * tui.h: Add prototypes.
935 Don't #include "gendefs.h"; it's only used in the TUI.
936 Integrate its contents into this file:
937 #include <ansidecl.h> here.
938 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
940 * tuiCommand.c: #include "defs.h", so we get the appropriate
941 definition of GDB_FILE.
944 (freeWindow): replace safe_free with free.
945 (tui_version): don't define it here; it's defined in main.c now.
948 (tuiSetDisassemContent): Call strcat_address_numeric instead of
949 strcat_address. Simplify the control structure. Use predefined
950 GDB function to print asm inst address. Use GDB_FILE to collect
954 (tgoto): Add external K&R declaration for this here too.
955 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
956 (tuiPuts_unfiltered): change FILE to GDB_FILE.
957 (tui_tputs): fix prototype for 3rd argument.
959 * tuiIO.h (tuiPuts_unfiltered): change declaration.
962 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
963 that decides which registers to display (i.e. single precision
964 float, double precision float, general, special). Previously,
965 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
966 compiling with -z poses a problem. When the first layout command
967 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
970 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
972 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
973 <stdarg.h>. No idea exactly what's conflicting with what, but the
975 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
976 object, calls pa_do_strcat_registers_info, copies the register
977 info into a buffer, and deallocates the GDB_FILE object. Remove
978 some code that is not executed. Also, call to
979 pa_do_strcat_registers_info has an additional parameter,
980 precision. This code requires some new per-target functions that
981 we don't want to merge. Dyke it out, with #ifdef
982 TUI_EXTENDED_FORMATTERS.
983 (_tuiSetSpecialRegsContent): this function was ifdefed out.
985 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
987 (IS_64BIT): Just define this to be zero; we're not merging in the
989 (tuiShowRegisters): Comment out all references to the "special"
990 regs; we don't have a distinction between the "special" and
991 "non-special" regs in most of our machine descriptions. This code
992 is PA-specific in other ways as well, and needs to be redesigned
993 to be portable to other processors.
995 * tuiWin.c: #include <string.h>, to get a declaration for
998 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
999 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
1000 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
1001 bool to int throughout. Re-indented, GNU style.
1003 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
1004 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
1005 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
1006 Changed bool to int throughout.