1 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
3 * tuiData.h (FILE_PREFIX): Don't define.
4 (blankStr, locationStr, breakStr): Don't declare.
5 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise.
6 (displayableWinContentOf, displayableWinContentAt): Likewise.
7 (winElementHeight, winByName, freeAllWindows): Likewise.
9 * tuiData.c (blankStr, locationStr, breakStr): Remove.
10 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
11 (displayableWinContentOf, displayableWinContentAt): Remove.
12 (winElementHeight, winByName, freeAllWindows): Remove.
14 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
16 * tuiStack.c (tui_make_status_line): New function to create the
18 (tuiShowLocatorContent): Use it instead of displayableWinContentAt.
19 * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
20 (PC_PREFIX): Use upper case.
21 (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
22 (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
24 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
26 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.
27 (tuiClearAllExecInfosContent): Likewise.
28 (tuiEraseAllExecInfosContent): Ditto.
29 (tuiUpdateSourceWindowsFromLocator): Ditto.
30 * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove.
31 * tui.h (tui_vCheckDataValues): Don't declare.
32 (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise.
33 (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto.
34 (tui_vShowFrameInfo): Ditto.
36 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
38 * tui.c (tui_commands): Table of single key commands.
39 (tui_rl_command_key): New function to execute gdb command.
40 (tui_rl_command_mode): New function to temporarily leave SingleKey.
41 (tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
42 (tui_rl_startup_hook): New function to avoid prompt display by
44 (tui_set_key_mode): New function to set the key mode and install
46 (tui_initialize_readline): Create TUI SingleKey readline map.
47 (tui_enable): Install rl_startup_hook.
48 (tui_disable): Remove it.
49 * tui.h (enum tui_key_mode): Declare.
50 (tui_set_key_mode, tui_current_key_mode): Declare.
51 * tuiIO.c (tui_redisplay_readline): Don't display the prompt in
53 * tuiIO.h (tui_redisplay_readline): Declare.
55 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
57 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
60 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
62 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
64 (tuiShowSource): Fix comment indentation.
65 (tuiSourceIsDisplayed): Likewise.
66 (tuiVerticalSourceScroll): Likewise.
68 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
70 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
71 (tui_update_breakpoint_info): Declare.
72 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
74 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
75 information using tui_update_breakpoint_info.
76 (tui_update_all_breakpoint_info): New function to refresh all
78 (tui_update_breakpoint_info): New function to recompute the status
79 of exec info window from breakpoints.
80 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
81 (tuiSetExecInfoContent): Use the exec info flags computed by
82 tui_update_breakpoint_info to display a short status about breakpoints.
84 * tuiData.h (TuiExecInfoContent): New for exec info string.
85 (TuiWhichElement): Use it.
86 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
87 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
88 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
89 (TUI_EXECINFO_SIZE): Likewise.
90 * tuiData.c (initContentElement): Clear exec info string.
92 * tui-hooks.c (get_breakpoint): Remove.
93 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
94 (tui_event_delete_breakpoint): Likewise.
95 (tui_event_modify_breakpoint): Likewise.
97 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
99 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
100 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
101 tui_find_disassembly_address to find the starting address of
104 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
106 * tuiDisassem.c (tui_disassemble): New function to disassemble
107 several lines in a buffer.
108 (tui_find_disassembly_address): New function to search backward
109 or forward a disassembly line.
110 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
111 content and format it in the window.
112 (tuiShowDisassemAndUpdateSource): Remove unused locals.
113 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
114 obtain the address to disassemble for the scrolling.
115 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
116 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
118 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
120 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
122 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
125 * tui.c (tui_disable): Update gdb's knowledge of its terminal
126 using target_terminal_save_ours.
127 (tui_enable): Likewise.
129 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
131 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
132 (tui_rl_change_windows): Renames tui_change_windows.
133 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
134 (tui_initialize_readline): Update.
136 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
138 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
141 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
143 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
144 to find symbol address.
146 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
148 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
149 and use tuiGetBeginAsmAddress.
150 * tuiSourceWin.h (tui_display_main): Declare.
151 * tui.h (tuiDisplayMainFunction): Remove.
152 * tui-hooks.c (tui_new_objfile_hook): Update.
154 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
156 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
157 (tuiShowSourceAsIs): Don't declare.
159 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
161 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
164 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
166 * tuiStack.c (tuiSetLocatorContent): Remove.
167 (tuiUpdateLocatorInfoFromFrame): Remove.
168 (tui_set_locator_info): Allocate the content buffer if necessary.
169 (tui_set_locator_filename): Call tui_set_locator_info directly.
170 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
173 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
175 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
176 tuiUpdateLocatorFilename.
177 * tuiStack.c (tuiSetLocatorInfo): Make it static.
178 (tuiSetLocatorContent): Likewise.
179 (tuiUpdateLocatorInfoFromFrame): Likewise.
180 (tuiSwitchFilename): Remove.
181 (tui_set_locator_filename): New function
182 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
183 use tui_set_locator_filename to record the filename.
184 (tuiUpdateLocatorFilename): Likewise.
185 (tuiUpdateLocatorInfoFromFrame): Update.
186 (tuiSetLocatorContent): Likewise.
187 * tuiStack.h (tuiClearLocatorContent): Don't declare.
188 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
189 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
191 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
193 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
195 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
196 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
197 * tuiData.h (TuiSourceInfo): Add filename member.
198 (TuiGenWinInfo): Add title member.
199 * tuiData.c (initGenericPart): Clear title.
200 (freeWindow): Free title and filename; remove unused locals.
201 (initWinInfo): Clear filename.
202 (tuiDelWindow): Free it; remove unused locals.
204 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
206 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
207 (tuiUpdateLocatorDisplay): Likewise.
208 * tuiStack.c (tuiGetLocatorFilename): Remove.
209 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
210 instead of tuiUpdateLocatorDisplay.
211 (tuiUpdateLocatorDisplay): Remove.
213 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
215 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
216 * tuiStack.c (tuiClearLocatorDisplay): Remove.
217 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
218 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
220 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
222 * tuiStack.c (tui_get_function_from_frame): Rename from
223 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
225 (tuiUpdateLocatorInfoFromFrame): Update.
227 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
229 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
230 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
231 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
232 (_tuiSetFloatRegsContent): Likewise.
233 (_tuiRegisterName): Return a const char*.
234 * tuiData.h (_TuiDataElement): Use const char* for name.
236 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
238 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
239 (tuiShowAllExecInfosContent): Likewise.
240 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
241 (tuiShowAllExecInfosContent): Remove.
242 (tuiAllocSourceBuffer): Remove unused locals.
244 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
246 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
247 to follow other gdb's command names; use execute_command; cleanup.
248 (_initialize_tuiStack): Update.
250 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
252 * tuiWin.h (tui_update_gdb_sizes): Declare.
254 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
256 * tui.c (strcat_to_buf): Use const char* for source item.
257 (tui_enable): Update the windows if there is a selected frame.
258 * tui.h (strcat_to_buf): Update prototype.
259 (strcat_to_buf_with_fmt): Remove.
261 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
263 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
264 is the size of command window.
265 (tuiResizeAll): Call it instead of init_page_info.
266 * tui.c (tui_enable): Call it to resize to TUI command window.
267 (tui_disable): Likewise for plain screen.
269 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
271 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
272 use tuiShowFrameInfo instead of tuiSetLocatorContent.
273 * tuiLayout.h (showLayout): Remove.
274 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
275 (_showSourceDisassemCommand): Likewise.
276 (showLayout): Make it static.
277 (lastLayout): Remove.
279 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
281 * tuiSourceWin.c (tui_show_source_line): New function.
282 (tuiShowSourceContent): Call it and avoid clearing the window before
284 (tuiClearAllSourceWinsContent): Remove.
285 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
286 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
287 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
288 (tuiRefreshAll): Don't clear the window.
289 (_makeVisibleWithNewHeight): Don't clear locator line.
290 (tuiResizeAll): Remove unused locals.
291 (_tuiAdjustWinHeights): Likewise.
292 (_makeInvisibleAndSetNewHeight): Likewise.
293 (_newHeightOk): Likewise.
294 * tuiLayout.c (showLayout): Don't clear source windows.
295 (tuiSetLayout): Don't clear the window.
296 (_initAndMakeWin): Likewise for status line.
297 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
298 (makeWindow): Likewise.
299 (tuiClearWin): Remove.
300 * tuiGeneralWin.h (tuiClearWin): Don't declare.
302 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
304 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
305 (tuiAsmWinIsDisplayed): Remove.
306 (tuiShowAllSourceWinsContent): Remove.
307 (tuiUpdateOnEnd): Remove.
308 * tuiGeneralWin.c (scrollWinForward): Remove.
309 (scrollWinBackward): Remove.
310 (_winResize): Don't declare.
311 * tui.h (tuiUpdateOnEnd): Don't declare.
312 (vcatch_errors, va_catch_errors): Likewise.
313 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
314 (tuiShowAllSourceWinsContent): Likewise.
315 * tuiGeneralWin.h (scrollWinForward): Likewise.
316 (scrollWinBackward): Likewise.
318 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
320 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
322 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
325 * tui.c: Disable <termio.h> include.
327 2002-03-15 Andrew Cagney <ac131313@redhat.com>
329 * tui-out.c (XMALLOC): Delete macro. Update copyright.
331 2002-03-01 Andrew Cagney <ac131313@redhat.com>
333 * tui-hooks.c: Add FIXME to explain true/false problem. Update
335 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
336 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
337 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
340 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
341 * tui-hooks.c: Include <curses.h> before "bfd.h".
343 * tuiCommand.c: Likewise.
344 * tuiData.c: Likewise.
345 * tuiDataWin.c: Likewise.
346 * tuiDisassem.c: Likewise.
347 * tuiGeneralWin.c: Likewise.
349 * tuiLayout.c: Likewise.
350 * tuiRegs.c: Likewise.
351 * tuiSource.c: Likewise.
352 * tuiSourceWin.c: Likewise.
353 * tuiStack.c: Likewise.
354 * tuiWin.c: Likewise.
356 2002-02-01 Andrew Cagney <ac131313@redhat.com>
358 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
360 2001-10-20 Andrew Cagney <ac131313@redhat.com>
362 * tuiDisassem.c: Include "value.h".
363 * tuiSourceWin.c: Ditto.
365 2001-09-28 Tom Tromey <tromey@redhat.com>
367 * tuiLayout.h (tui_set_layout): Don't declare.
368 * tui.h (tui_vAddWinToLayout): Don't declare.
369 (tui_vSetLayoutTo): Likewise.
370 (tui_set_layout): Declare.
372 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
374 * tuiSourceWin.c: Use disp_del instead of del.
376 * tuiSource.c: Use disp_del instead of del.
378 * tuiDisassem.c: Use disp_del instead of del.
380 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
382 * tui.c (tui_enable): Remove call to terminal_save_ours().
383 (tui_disable): Likewise.
385 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
387 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
388 set/show configuration variables.
389 (show_tui_cmd): New function.
390 (set_tui_cmd): New function.
392 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
394 * tui-hooks.c: New file, gdb hooks for tui.
395 * tui-out.c: New file, image copied from cli-out.c.
396 (tui_field_int): Identify "line" fields and keep track of them.
397 (tui_field_string): Likewise for "file".
398 (tui_out_new): Use flags = 0 to avoid printing the sources.
400 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
402 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
403 leave it in the command window.
404 (tui_redisplay_readline): Save cursor position to restore the
405 cursor after we go back from background.
406 * tuiData.h (TuiCommandInfo): Add start_line member.
408 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
410 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
411 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
412 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
414 * tui.c (tui_show_source): New function.
415 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
416 (tui_switch_mode): Prep or deprep readline terminal;
417 make sure the \n we return does not redo the last command.
418 * tui.h (tui_show_source): Declare.
419 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
420 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
422 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
424 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
425 if SIGCONT is defined.
426 (tui_cont_sig): New function when SIGCONT is defined.
427 (tui_setup_io): Save tty setting to restore by SIGCONT.
429 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
431 * tui.h (tui_show_assembly): Declare.
432 (tui_is_window_visible): Declare.
433 * tui.c (tui_show_assembly): New function.
434 (tui_is_window_visible): New function.
435 (tui_get_command_dimension): New function.
437 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
439 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
441 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
443 * tui-file.c (tui_file_fputs): Use tui_puts.
445 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
447 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
448 * tuiStack.h (tuiGetLocatorFilename): Declare.
449 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
450 * tuiData.h (addToSourceWindows): Declare.
452 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
454 * tui.c (tui_change_windows): New function.
455 (tui_delete_other_windows): New function.
456 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
457 (tui_enable): Enable the keypad; call tui_update_variables.
458 (strcat_to_buf_with_fmt): Remove.
460 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
462 * tui.h: Remove old declarations, add the new ones.
463 * tui.c (tui_switch_mode): New function.
464 (tui_initialize_readline): New function.
465 (tui_enable): New function.
466 (tui_disable): New function.
467 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
468 (tui_vSelectSourceSymtab): Remove.
469 (tuiInitWindows): Remove.
470 (_initialize_tui): Remove.
471 (_tuiReset): Keep but put arround #if 0.
473 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
475 * tuiIO.h: Remove old declarations and add the new ones.
476 * tuiIO.c: New management for curses and gdb terminal interactions.
478 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
479 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
480 (tui_owns_terminal): Remove.
481 (tui_redisplay_readline): New function.
482 (tui_puts): New function.
483 (tui_prep_terminal): New function.
484 (tui_deprep_terminal): New function.
485 (tui_getc): Rename of tuiGetc, simplify and fix.
486 (tui_setup_io): New function.
487 (tui_initialize_io): New function.
489 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
491 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
492 (_tuiRegisterFormat): Reduce size of format result.
494 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
496 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
497 * tuiWin.h: Declare the new variables.
498 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
499 (tui_update_variables): New function.
500 (translate): New function.
501 (tui_border_kind_enums, tui_border_mode_enums): New tables.
502 (tui_border_mode_translate): New table.
503 (tui_border_kind_translate_*): New tables.
504 (tui_active_border_mode): New variables.
505 (tui_border_*): New variables.
507 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
509 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
510 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
512 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
513 (tui_vUpdateLocatorFilename): Remove.
514 * tuiStack.h: Update prototypes.
516 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
517 (tuiLineIsDisplayed): Split for address and line.
518 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
519 (tuiUpdateSourceWindowAsIs): Likewise.
520 (tuiUpdateSourceWindowsWithAddr): Likewise.
521 (tuiUpdateSourceWindowsWithLine): Likewise.
522 (tuiHorizontalSourceScroll): Likewise.
523 (tuiSetIsExecPointAt): Likewise.
524 (tuiUpdateOnEnd): Likewise.
525 * tuiSourceWin.h: Update prototypes.
527 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
528 (tuiShowSource): Likewise.
529 (tuiVerticalSourceScroll): Likewise.
530 * tuiSource.h (tuiShowSource): Update prototype.
532 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
533 (tuiShowDisassem): Use TuiLineOrAddress type.
534 (tuiShowDisassemAndUpdateSource): Likewise.
535 (tuiVerticalDisassemScroll): Likewise.
536 (tuiShowDisassemAsIs): Remove.
537 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
539 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
540 (clearWinDetail): Likewise.
541 (displayableWinContentOf): Fix address conversion.
542 (tuiNextWin): Fix crash when the window is not yet created.
543 (partialWinByName): Likewise.
545 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
547 * tuiSourceWin.h: Remove unused declarations.
548 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
549 (tui_vUpdateSourceWindowsWithLine): Remove.
550 (tui_vAllSetHasBreakAt): Remove.
552 * tuiLayout.h (tui_set_layout): Declare.
553 (tui_vSetLayoutTo): Remove.
554 (tui_vAddWinToLayout): Remove.
555 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
556 (_tuiToggleLayout_command): Remove.
557 (_tuiToggleSplitLayout_command): Remove.
558 (_tuiLayout_command): Remove.
559 (tui_vSetLayoutTo): Remove.
560 (tui_vAddWinToLayout): Remove.
562 * tuiDataWin.h (tui_vCheckDataValues): Remove.
563 * tuiDataWin.c (tui_vCheckDataValues): Remove.
565 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
567 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
568 (_parseScrollingArgs): Use xstrdup.
569 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
570 (_tuiScrollBackward_command): Likewise.
571 (_tuiScrollLeft_command): Likewise.
572 (_tuiScrollRight_command): Likewise.
573 (_tuiSetFocus): Likewise.
574 (_tuiSetFocus_command): Likewise.
575 (_tuiRefreshAll_command): Likewise.
576 (_tuiSetTabWidth_command): Likewise.
577 (_tuiSetWinHeight): Likewise.
578 (_tuiSetWinHeight_command): Likewise.
579 (_tuiXDBsetWinHeight): Likewise.
580 (_tui_vSetFocus): Remove.
581 (_tui_vSetWinHeight): Remove.
582 (_tui_vXDBsetWinHeight): Remove.
584 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
586 * tuiCommand.h: Remove unused declarations.
587 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
588 (tuiIncrCommandCharCountBy): Remove.
589 (tuiDecrCommandCharCountBy): Remove.
590 (tuiSetCommandCharCountTo): Remove.
591 (tuiClearCommandCharCount): Remove.
593 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
595 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
596 create the tui class help.
597 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
598 * tuiRegs.c (_initialize_tuiRegs): Likewise.
599 * tuiStack.c (_initialize_tuiStack): Likewise.
601 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
603 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
604 (tuiVerticalDisassemScroll): Likewise.
605 (tuiShowDisassemAndUpdateSource): Check for null symtab to
608 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
610 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
611 (tuiRead, tui_vread): Remove.
613 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
614 (vcatch_errors, _tui_vDo): Remove.
615 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
617 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
618 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
619 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
620 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
621 (_tuiLayout_command): Call tui_set_layout.
623 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
624 (_tuiScrollRegsForward_command): Likewise.
625 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
626 (_tuiShowGeneral_command): Likewise.
627 (_tuiShowSpecial_command): Likewise.
628 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
629 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
630 (_tuiScrollForward_command): Call tui_scroll.
631 (_tuiScrollBackward_command): Likewise.
632 (_tuiScrollLeft_command): Likewise.
633 (_tuiScrollRight_command): Likewise.
634 (_tuiSetFocus_command): Call _tuiSetFocus.
635 (_tuiRefreshAll_command): Call tuiRefreshAll.
636 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
637 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
638 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
640 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
642 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
643 (TuiLineOrAddress): Likewise.
644 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
646 (tuiSetDisassemContent): Likewise.
647 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
648 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
649 (tuiSetLayout): Likewise.
650 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
651 (tuiUpdateSourceWindowsWithAddr): Likewise.
652 (tuiUpdateSourceWindowsWithLine): Likewise.
653 (tuiSetHasBreakAt): Likewise.
654 * tuiStack.c (tuiSetLocatorInfo): Likewise.
655 (tuiSwitchFilename): Likewise.
656 (tuiUpdateLocatorInfoFromFrame): Likewise.
657 (tuiSetLocatorContent): Likewise.
658 (tuiShowFrameInfo): Likewise.
659 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
660 * tuiSourceWin.h: Likewise.
661 * tuiStack.h: Likewise.
663 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
665 * tuiWin.c: Add missing includes.
666 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
667 * tuiLayout.c: Add missing includes.
668 (_initAndMakeWin): Don't put curses in echo mode.
669 (_extractDisplayStartAddr): Fix calls to find_line_pc.
670 (_tuiLayout_command): Missing ',' in warning call.
671 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
673 (tuiSetHasBreakAt): Check for null source file.
675 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
677 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
678 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
679 * tui.c (_tui_vToggle_command): Likewise.
681 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
683 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
685 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
687 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
688 each register window.
689 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
690 of the register to check.
691 (_tuiRegValueHasChanged): Likewise.
692 (_tuiRegisterName): Use REGISTER_NAME.
693 (tui_restore_gdbout): New function.
694 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
696 (START_SPECIAL_REGS): Define.
697 (_tuiGetRegisterRawValue): Use get_saved_register.
698 (_tuiDisplayRegister): Fix clearing of register window.
700 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
702 * tui-file.h (fputs_unfiltered_hook): Remove.
703 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
704 (tui_file_fputs): Likewise; simplify
706 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
708 * tuiStack.c: Add missing includes.
709 (tuiShowFrameInfo): Don't crash when there is no symbol table
710 associated with the pc.
711 * tuiSource.c (_hasBreak): Check for null source file.
712 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
713 (_tuiSetFocus): Check for null dataWin.
714 * tuiGeneralWin.c (refreshAll): Check for null list[type].
716 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
718 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
719 to disassemble in the curses window.
721 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
723 * tui.h: Cleanup to avoid inclusion of curses includes.
724 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
725 * tuiData.h: To here; include curses includes here.
726 (setTermHeightTo): Rename of setTermHeight to follow reality.
727 (setTermWidthTo): Likewise with setTermWidth.
729 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
731 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
732 tuiIO.c, tuiData.c: Likewise.
733 tuiDataWin.c, tuiDisassem.c: Likewise.
734 tuiGeneralWin.c, tuiLayout.c: Likewise.
735 tuiRegs.c, tuiSource.c: Likewise.
736 tuiSouceWin.c, tuiStack.c: Likewise.
738 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
740 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
741 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
742 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
743 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
744 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
745 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
747 2001-03-08 Andrew Cagney <ac131313@redhat.com>
749 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
751 2001-03-06 Kevin Buettner <kevinb@redhat.com>
753 * tui-file.h: Update/correct copyright notice.
755 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
757 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
760 2000-12-14 Kevin Buettner <kevinb@redhat.com>
762 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
763 of free() with xfree().
765 2000-06-22 Kevin Buettner <kevinb@redhat.com>
767 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
769 2000-06-20 Kevin Buettner <kevinb@redhat.com>
771 * tuiLayout.c: Eliminate use of PARAMS from this file.
773 2000-06-17 Kevin Buettner <kevinb@redhat.com>
775 * tuiIO.c: Eliminate use of PARAMS from this file.
777 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
779 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
781 (tui_file_fputs): Pass ``file'' and not ``stream'' to
782 tui_file_adjust_strbuf.
784 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
786 * tui.h: Include <ncurses.h> when available.
787 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
789 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
791 * Makefile.in: Delete.
793 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
795 * Makefile.in (distclean, maintainer-clean, realclean,
796 mostlyclean): New targets.
798 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
800 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
801 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
802 ui-file / ``struct ui_file''.
804 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
806 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
807 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
808 tui_file_rewind, tui_file_put, tui_file_fputs,
809 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
810 fputs_unfiltered_hook): Move to here from ../utils.c
812 * tui-file.h, tui-file.c: New files.
814 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
816 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
817 (tuiSetDisassemContent): Replace gdb_file_init_astring with
818 tui_sfileopen. Replace gdb_file_get_strbuf with
821 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
823 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
824 (tuiSetDisassemContent): Repace gdb_file_deallocate with
825 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
827 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
829 * tuiSource.c: Include "source.h".
830 (open_source_file, find_source_lines): Delete declarations.
832 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
834 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
837 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
839 The following changes were made by Jim Blandy <jimb@cygnus.com>,
840 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
841 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
842 Taylor <taylor@cygnus.com>, as part of the project to merge in
843 changes originally made by HP; HP did not create ChangeLog
846 * Makefile.in: New file; we're merging HP's changes into GDB, and
847 we've moved the TUI files into a subdirectory, so we need a new
851 #include <term.h>, if we have it, to get declarations for
852 the termcap functions on Solaris.
853 (tgoto): Add external K&R declaration for this; Solaris doesn't
854 bother to actually declare it in their header files.
855 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
856 we'd rather use the USG mechanisms than the Berkeley mechanisms
857 (TIOCGETC is one of the Berkeley terminal control ioctls).
858 Apologies if this causes trouble later; this should all be handled
860 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
862 (tuiFree): replace safe_free with free.
863 (strcat_to_buf): new function, copied from utils.c.
864 (tuiInit): Add ignored `argv0' argument, to match the type that
865 init_ui_hook expects; updated declaration. Call the
866 initialize_tui_files function constructed above. Initialize
868 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
869 element of the locator window's content allocated. This seems
870 wrong, because it must have been initialized somehow in HP's
871 sources, and we should do it the same way now. But we do get
872 further before it segfaults. [Postscript: HP didn't bother to
873 initialize it; they compile
874 (va_catch_errors, vcatch_errors): Functions moved here from
875 ../utils.c in HP's sources. They're not used anywhere else.
876 (xdb_style): Delete this variable, and remove all references to
877 it. It's always true.
878 (tuiInit, _tui_vDo): References removed.
880 * tui.h: Add prototypes.
881 Don't #include "gendefs.h"; it's only used in the TUI.
882 Integrate its contents into this file:
883 #include <ansidecl.h> here.
884 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
886 * tuiCommand.c: #include "defs.h", so we get the appropriate
887 definition of GDB_FILE.
890 (freeWindow): replace safe_free with free.
891 (tui_version): don't define it here; it's defined in main.c now.
894 (tuiSetDisassemContent): Call strcat_address_numeric instead of
895 strcat_address. Simplify the control structure. Use predefined
896 GDB function to print asm inst address. Use GDB_FILE to collect
900 (tgoto): Add external K&R declaration for this here too.
901 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
902 (tuiPuts_unfiltered): change FILE to GDB_FILE.
903 (tui_tputs): fix prototype for 3rd argument.
905 * tuiIO.h (tuiPuts_unfiltered): change declaration.
908 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
909 that decides which registers to display (i.e. single precision
910 float, double precision float, general, special). Previously,
911 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
912 compiling with -z poses a problem. When the first layout command
913 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
916 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
918 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
919 <stdarg.h>. No idea exactly what's conflicting with what, but the
921 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
922 object, calls pa_do_strcat_registers_info, copies the register
923 info into a buffer, and deallocates the GDB_FILE object. Remove
924 some code that is not executed. Also, call to
925 pa_do_strcat_registers_info has an additional parameter,
926 precision. This code requires some new per-target functions that
927 we don't want to merge. Dyke it out, with #ifdef
928 TUI_EXTENDED_FORMATTERS.
929 (_tuiSetSpecialRegsContent): this function was ifdefed out.
931 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
933 (IS_64BIT): Just define this to be zero; we're not merging in the
935 (tuiShowRegisters): Comment out all references to the "special"
936 regs; we don't have a distinction between the "special" and
937 "non-special" regs in most of our machine descriptions. This code
938 is PA-specific in other ways as well, and needs to be redesigned
939 to be portable to other processors.
941 * tuiWin.c: #include <string.h>, to get a declaration for
944 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
945 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
946 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
947 bool to int throughout. Re-indented, GNU style.
949 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
950 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
951 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
952 Changed bool to int throughout.