12003-09-27 Andrew Cagney <cagney@redhat.com> 2 3 * tuiRegs.c: Rename REGISTER_RAW_SIZE to 4 DEPRECATED_REGISTER_RAW_SIZE. 5 62003-09-13 Andrew Cagney <cagney@redhat.com> 7 8 * tui.h (struct ui_file): Add opaque declaration. 9 102003-08-04 Daniel Jacobowitz <drow@mvista.com> 11 12 * tui-interp.c: Include "cli-out.h". 13 (tui_resume): Update tui_old_uiout's stream to gdb_stdout. 14 152003-07-24 Stephane Carrez <stcarrez@nerim.fr> 16 17 * tui.c (tui_rl_other_window): New function to switch the TUI active 18 window and give focus to a next window. 19 (tui_initialize_readline): Bind it to c-x o. 20 (tui_rl_next_keymap): Activate TUI mode when entering SingleKey mode. 21 222003-07-23 Stephane Carrez <stcarrez@nerim.fr> 23 24 * tui.c (tui_enable): Call tuiRefreshAll to make sure the window 25 is accurate. 26 272003-07-23 Stephane Carrez <stcarrez@nerim.fr> 28 29 * tui-interp.c (tui_resume): Enable tui when we expected it. 30 (tui_suspend): Remember in which TUI mode we are. 31 (_initialize_tui_interp): Use the tui interpreter even when no 32 other interpreter was set and define in which TUI mode to start. 33 342003-06-28 Daniel Jacobowitz <drow@mvista.com> 35 36 * tui-out.c (tui_ui_out_impl): Add NULL for redirect member. 37 382003-06-22 Daniel Jacobowitz <drow@mvista.com> 39 40 * tui-hooks.c: Update include order. 41 * tui.c: Likewise. 42 * tuiCommand.c: Likewise. 43 * tuiData.c: Likewise. 44 * tuiDataWin.c: Likewise. 45 * tuiDisassem.c: Likewise. 46 * tuiGeneralWin.c: Likewise. 47 * tuiIO.c: Likewise. 48 * tuiLayout.c: Likewise. 49 * tuiRegs.c: Likewise. 50 * tuiSource.c: Likewise. 51 * tuiSourceWin.c: Likewise. 52 * tuiStack.c: Likewise. 53 * tuiWin.c: Likewise. 54 552003-06-12 Andreas Schwab <schwab@suse.de> 56 57 * tuiSource.c (tuiVerticalSourceScroll): Use get_frame_pc. 58 * tuiSourceWin.c (tuiHorizontalSourceScroll): Likewise. 59 * tuiStack.c (tui_get_function_from_frame): Likewise. 60 (tuiShowFrameInfo): Likewise. 61 * tuiWin.c (_makeVisibleWithNewHeight): Likewise. 62 * tui-hooks.c (tui_selected_frame_level_changed_hook): Likewise. 63 * tuiDisassem.c (tuiVerticalDisassemScroll): Likewise. 64 Include "disasm.h". 65 662003-05-08 Andrew Cagney <cagney@redhat.com> 67 68 * tuiRegs.c: Use MAX_REGISTER_SIZE instead of 69 MAX_REGISTER_RAW_SIZE. 70 712003-05-03 Andrew Cagney <cagney@redhat.com> 72 73 * tuiDisassem.c (tui_disassemble): Call gdb_print_insn, instead of 74 TARGET_PRINT_INSN. Do not initialize a disassemble_info object. 75 762003-04-30 Andrew Cagney <cagney@redhat.com> 77 78 * tuiDisassem.c (tui_disassemble): Use 79 "deprecated_tm_print_insn_info" instead of TARGET_PRINT_INSN_INFO, 80 add comment. 81 822003-03-14 Andrew Cagney <cagney@redhat.com> 83 84 * tuiRegs.c (_tuiGetRegisterRawValue): Use frame_read_register, 85 instead of get_saved_register. 86 872003-03-13 Stephane Carrez <stcarrez@nerim.fr> 88 89 * tui-out.c (tui_out_data): Fix typedef. 90 912003-03-08 Andrew Cagney <cagney@redhat.com> 92 93 * tui-out.c: Update copyright. 94 (tui_out_data): Define typedef. Use instead of ui_out_data. 95 962003-02-14 Andrew Cagney <ac131313@redhat.com> 97 98 * tui.c (tui_enable, tui_disable): Don't modify tui_version. 99 (tui_is_window_visible, tui_get_command_dimension): Test 100 tui_active instead of tui_version. 101 * tuiData.h (tui_version): Delete declaration. 102 * tui-hooks.c (tui_init_hook, tui_event_loop): Delete function, 103 moved to "tui-interp.c". 104 (tui_exit, tui_command_loop): Ditto. 105 (_initialize_tui): Don't initialize init_ui_hook. Initialize 106 target_new_objfile_hook. 107 * tui-interp.c: New file. 108 1092003-02-12 Andrew Cagney <ac131313@redhat.com> 110 111 * tuiIO.c (tui_prep_terminal): Add one notused parameter. 112 * tui.c (tui_rl_switch_mode): Add two notused parameters. 113 (tui_rl_change_windows, tui_rl_next_keymap): Ditto. 114 (tui_rl_delete_other_windows): Ditto. 115 (tui_rl_change_windows, tui_rl_delete_other_windows): Update 116 calls. 117 1182002-12-08 Elena Zannoni <ezannoni@redhat.com> 119 120 Import of readline 4.3. 121 Fix PR gdb/675 122 * tuiWin.c: Include readline/readline.h. 123 (tui_update_gdb_sizes): Use accessor function rl_get_screen_size. 124 (tuiResizeAll): Ditto. 125 1262002-12-06 Elena Zannoni <ezannoni@redhat.com> 127 128 * tuiStack.c (tuiShowFrameInfo): Fix typo. 129 1302002-11-29 Andrew Cagney <ac131313@redhat.com> 131 132 * tui/tui-hooks.c: Update to use deprecated_selected_frame. 133 * tui/tui.c, tui/tuiDisassem.c, tui/tuiRegs.c: Ditto. 134 * tui/tuiSource.c, tui/tuiSourceWin.c, tui/tuiWin.c: Ditto. 135 1362002-11-28 Andrew Cagney <ac131313@redhat.com> 137 138 * tuiStack.c (tuiShowFrameInfo): Use find_frame_sal instead of 139 find_pc_line. 140 1412002-11-23 Andrew Cagney <ac131313@redhat.com> 142 143 * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of 144 deprecated_frame_in_dummy. Fix coding style. 145 1462002-11-21 Stephane Carrez <stcarrez@nerim.fr> 147 148 * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific 149 interpreter is installed. 150 1512002-11-18 Andrew Cagney <ac131313@redhat.com> 152 153 * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of 154 signal_handler_caller. 155 1562002-11-10 Andrew Cagney <ac131313@redhat.com> 157 158 * tuiStack.c (tuiShowFrameInfo): Replace frame_in_dummy with 159 deprecated_frame_in_dummy. 160 1612002-10-26 Stephane Carrez <stcarrez@nerim.fr> 162 163 * tuiIO.c (tui_prep_terminal): Save the prompt registered in readline. 164 (tui_redisplay_readline): Use the last saved prompt. 165 (tui_rl_saved_prompt): New. 166 1672002-10-25 Stephane Carrez <stcarrez@nerim.fr> 168 169 Fix PR gdb/787 170 * tuiWin.c (ACS_LRCORNER, ACS_LLCORNER, ACS_ULCORNER, ACS_URCORNER, 171 ACS_HLINE, ACS_VLINE): Define if they don't exist. 172 1732002-10-25 Stephane Carrez <stcarrez@nerim.fr> 174 175 Fix PR gdb/478 176 * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable. 177 1782002-10-02 Elena Zannoni <ezannoni@redhat.com> 179 180 * tui-hooks.c (selected_frame_level_changed_hook): Use the one 181 exported from frame.h. 182 1832002-09-29 Elena Zannoni <ezannoni@redhat.com> 184 185 * tui.c (tui_show_source): Don't access current_source_symtab, use 186 accessor function instead. Include source.h and symtab.h 187 * tuiDisassem.c (tuiShowDisassemAndUpdateSource, 188 tuiVerticalDisassemScroll): Use accessor functions for current 189 source line and symtab. Include source.h. 190 * tuiLayout.c (_extractDisplayStartAddr): Use accessor functions 191 for current source line and symtab. Include source.h. 192 * tuiWin.c (_makeVisibleWithNewHeight): Ditto. 193 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs, 194 tuiHorizontalSourceScroll): Ditto. 195 * tuiSource.c (tuiVerticalSourceScroll): Ditto. 196 1972002-09-13 Stephane Carrez <stcarrez@nerim.fr> 198 199 * tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs. 200 (tui_initialize_readline): Allow to use space to leave SingleKey 201 to enter one gdb command. 202 (tui_enable): Restore the TUI keymap when we are back to TUI. 203 (tui_disable): Restore normal keymap when leaving TUI. 204 * tuiIO.c (tui_redisplay_readline): Restore the SingleKey mode 205 when the buffer becomes empty and we are in tui_one_command_mode. 206 2072002-09-13 Stephane Carrez <stcarrez@nerim.fr> 208 209 * tuiIO.c (tui_setup_io): rl_already_prompted must be cleared 210 when leaving TUI mode so that gdb prompt is displayed. 211 2122002-09-13 Stephane Carrez <stcarrez@nerim.fr> 213 214 * tuiStack.c (tui_make_status_line): Make sure the local buffer 215 is large enough to hold the complete line. 216 2172002-09-10 Stephane Carrez <stcarrez@nerim.fr> 218 219 * tui-hooks.c (tui_event_loop): New function. 220 (tui_command_loop): New function to override gdb loop and make sure 221 uiout is set according to TUI mode. 222 (tui_command_loop): Install the specific TUI command hook. 223 * tuiIO.c (tui_initialize_io): Initialize tui_old_uiout. 224 (tui_uiout, tui_old_uiout): Make public. 225 * tuiIO.h (tui_uiout, tui_old_uiout): Declare. 226 2272002-09-04 Stephane Carrez <stcarrez@nerim.fr> 228 229 * tuiIO.c (tui_putc): New function to print one character. 230 (printable_part): New function from readline/complete.c. 231 (PUTX): New macro, likewise. 232 (print_filename): New function, likewise. 233 (get_y_or_n): New function, likewise and adapted for TUI. 234 (tui_rl_display_match_list): New function from readline/complete.c 235 and writes on TUI command window. 236 (tui_setup_io): Install or remove the readline hook 237 rl_completion_display_matches_hook so that completion is written 238 directly in TUI command window instead of in the TUI pipe. 239 (tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the 240 TUI redirection pipe. 241 (tui_getc): Likewise for call to tui_readline_output. 242 (tui_readline_output): Likewise for function. 243 * tui.c (tui_rl_startup_hook): Always take care of gdb prompt. 244 2452002-09-02 Stephane Carrez <stcarrez@nerim.fr> 246 247 * tuiWin.c (_newHeightOk): Fix compilation warnings. 248 2492002-09-01 Stephane Carrez <stcarrez@nerim.fr> 250 251 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window 252 is not displayed. 253 2542002-09-01 Stephane Carrez <stcarrez@nerim.fr> 255 256 * tui-out.c (tui_out_new): Clear start_of_line. 257 * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines 258 to update the current source line. 259 2602002-09-01 Stephane Carrez <stcarrez@nerim.fr> 261 262 * tui-hooks.c (tui_detach_hook): New hook to know when a process dies. 263 (tui_install_hooks): Install it. 264 (tui_remove_hooks): Remove it. 265 2662002-09-01 Stephane Carrez <stcarrez@nerim.fr> 267 268 * tuiData.h (FILE_PREFIX): Don't define. 269 (blankStr, locationStr, breakStr): Don't declare. 270 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise. 271 (displayableWinContentOf, displayableWinContentAt): Likewise. 272 (winElementHeight, winByName, freeAllWindows): Likewise. 273 274 * tuiData.c (blankStr, locationStr, breakStr): Remove. 275 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove. 276 (displayableWinContentOf, displayableWinContentAt): Remove. 277 (winElementHeight, winByName, freeAllWindows): Remove. 278 2792002-09-01 Stephane Carrez <stcarrez@nerim.fr> 280 281 * tuiStack.c (tui_make_status_line): New function to create the 282 status line. 283 (tuiShowLocatorContent): Use it instead of displayableWinContentAt. 284 * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix. 285 (PC_PREFIX): Use upper case. 286 (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define. 287 (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define. 288 2892002-08-31 Stephane Carrez <stcarrez@nerim.fr> 290 291 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare. 292 (tuiClearAllExecInfosContent): Likewise. 293 (tuiEraseAllExecInfosContent): Ditto. 294 (tuiUpdateSourceWindowsFromLocator): Ditto. 295 * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove. 296 * tui.h (tui_vCheckDataValues): Don't declare. 297 (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise. 298 (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto. 299 (tui_vShowFrameInfo): Ditto. 300 3012002-08-31 Stephane Carrez <stcarrez@nerim.fr> 302 303 * tui.c (tui_commands): Table of single key commands. 304 (tui_rl_command_key): New function to execute gdb command. 305 (tui_rl_command_mode): New function to temporarily leave SingleKey. 306 (tui_rl_next_keymap): New function to enter/leave the SingleKey mode. 307 (tui_rl_startup_hook): New function to avoid prompt display by 308 readline functions. 309 (tui_set_key_mode): New function to set the key mode and install 310 the readline keymap. 311 (tui_initialize_readline): Create TUI SingleKey readline map. 312 (tui_enable): Install rl_startup_hook. 313 (tui_disable): Remove it. 314 * tui.h (enum tui_key_mode): Declare. 315 (tui_set_key_mode, tui_current_key_mode): Declare. 316 * tuiIO.c (tui_redisplay_readline): Don't display the prompt in 317 SingleKey mode. 318 * tuiIO.h (tui_redisplay_readline): Declare. 319 3202002-08-31 Stephane Carrez <stcarrez@nerim.fr> 321 322 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and 323 current line. 324 3252002-08-31 Stephane Carrez <stcarrez@nerim.fr> 326 327 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code. 328 (_hasBreak): Remove. 329 (tuiShowSource): Fix comment indentation. 330 (tuiSourceIsDisplayed): Likewise. 331 (tuiVerticalSourceScroll): Likewise. 332 3332002-08-30 Stephane Carrez <stcarrez@nerim.fr> 334 335 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare. 336 (tui_update_breakpoint_info): Declare. 337 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove. 338 339 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint 340 information using tui_update_breakpoint_info. 341 (tui_update_all_breakpoint_info): New function to refresh all 342 execution windows. 343 (tui_update_breakpoint_info): New function to recompute the status 344 of exec info window from breakpoints. 345 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove. 346 (tuiSetExecInfoContent): Use the exec info flags computed by 347 tui_update_breakpoint_info to display a short status about breakpoints. 348 349 * tuiData.h (TuiExecInfoContent): New for exec info string. 350 (TuiWhichElement): Use it. 351 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines. 352 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines. 353 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise. 354 (TUI_EXECINFO_SIZE): Likewise. 355 * tuiData.c (initContentElement): Clear exec info string. 356 357 * tui-hooks.c (get_breakpoint): Remove. 358 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info. 359 (tui_event_delete_breakpoint): Likewise. 360 (tui_event_modify_breakpoint): Likewise. 361 3622002-08-29 Stephane Carrez <stcarrez@nerim.fr> 363 364 * tui.c (tuiGetLowDisassemblyAddress): Moved from here. 365 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use 366 tui_find_disassembly_address to find the starting address of 367 disassemble window. 368 3692002-08-28 Stephane Carrez <stcarrez@nerim.fr> 370 371 * tuiDisassem.c (tui_disassemble): New function to disassemble 372 several lines in a buffer. 373 (tui_find_disassembly_address): New function to search backward 374 or forward a disassembly line. 375 (tuiSetDisassemContent): Use tui_disassemble to obtain the real 376 content and format it in the window. 377 (tuiShowDisassemAndUpdateSource): Remove unused locals. 378 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to 379 obtain the address to disassemble for the scrolling. 380 * tuiDisassem.h (tuiGetBeginAsmAddress): Update. 381 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab. 382 3832002-08-28 Stephane Carrez <stcarrez@nerim.fr> 384 385 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition. 386 3872002-08-26 Stephane Carrez <stcarrez@nerim.fr> 388 389 Fix PR gdb/393: 390 * tui.c (tui_disable): Update gdb's knowledge of its terminal 391 using target_terminal_save_ours. 392 (tui_enable): Likewise. 393 3942002-08-25 Stephane Carrez <stcarrez@nerim.fr> 395 396 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode. 397 (tui_rl_change_windows): Renames tui_change_windows. 398 (tui_rl_delete_other_windows): Renames tui_delete_other_windows. 399 (tui_initialize_readline): Update. 400 4012002-08-25 Stephane Carrez <stcarrez@nerim.fr> 402 403 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p. 404 (_hasBreak): Remove. 405 4062002-08-25 Stephane Carrez <stcarrez@nerim.fr> 407 408 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol 409 to find symbol address. 410 4112002-08-25 Stephane Carrez <stcarrez@nerim.fr> 412 413 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction 414 and use tuiGetBeginAsmAddress. 415 * tuiSourceWin.h (tui_display_main): Declare. 416 * tui.h (tuiDisplayMainFunction): Remove. 417 * tui-hooks.c (tui_new_objfile_hook): Update. 418 4192002-08-25 Stephane Carrez <stcarrez@nerim.fr> 420 421 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro. 422 (tuiShowSourceAsIs): Don't declare. 423 4242002-08-25 Stephane Carrez <stcarrez@nerim.fr> 425 426 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update 427 the frame position. 428 4292002-08-25 Stephane Carrez <stcarrez@nerim.fr> 430 431 * tuiStack.c (tuiSetLocatorContent): Remove. 432 (tuiUpdateLocatorInfoFromFrame): Remove. 433 (tui_set_locator_info): Allocate the content buffer if necessary. 434 (tui_set_locator_filename): Call tui_set_locator_info directly. 435 (tuiShowFrameInfo): Likewise and use find_pc_line instead of 436 find_pc_symtab. 437 4382002-08-25 Stephane Carrez <stcarrez@nerim.fr> 439 440 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use 441 tuiUpdateLocatorFilename. 442 * tuiStack.c (tuiSetLocatorInfo): Make it static. 443 (tuiSetLocatorContent): Likewise. 444 (tuiUpdateLocatorInfoFromFrame): Likewise. 445 (tuiSwitchFilename): Remove. 446 (tui_set_locator_filename): New function 447 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify; 448 use tui_set_locator_filename to record the filename. 449 (tuiUpdateLocatorFilename): Likewise. 450 (tuiUpdateLocatorInfoFromFrame): Update. 451 (tuiSetLocatorContent): Likewise. 452 * tuiStack.h (tuiClearLocatorContent): Don't declare. 453 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise. 454 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise. 455 4562002-08-25 Stephane Carrez <stcarrez@nerim.fr> 457 458 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint 459 comparison; cleanup. 460 * tuiSource.c (tuiSetSourceContent): Set window title and filename. 461 * tuiGeneralWin.c (boxWin): Print optional title on top of window. 462 * tuiData.h (TuiSourceInfo): Add filename member. 463 (TuiGenWinInfo): Add title member. 464 * tuiData.c (initGenericPart): Clear title. 465 (freeWindow): Free title and filename; remove unused locals. 466 (initWinInfo): Clear filename. 467 (tuiDelWindow): Free it; remove unused locals. 468 4692002-08-25 Stephane Carrez <stcarrez@nerim.fr> 470 471 * tuiStack.h (tuiGetLocatorFilename): Don't declare. 472 (tuiUpdateLocatorDisplay): Likewise. 473 * tuiStack.c (tuiGetLocatorFilename): Remove. 474 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent 475 instead of tuiUpdateLocatorDisplay. 476 (tuiUpdateLocatorDisplay): Remove. 477 4782002-08-25 Stephane Carrez <stcarrez@nerim.fr> 479 480 * tuiStack.h (tuiClearLocatorDisplay): Don't declare. 481 * tuiStack.c (tuiClearLocatorDisplay): Remove. 482 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line. 483 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay. 484 4852002-08-25 Stephane Carrez <stcarrez@nerim.fr> 486 487 * tuiStack.c (tui_get_function_from_frame): Rename from 488 _getFuncNameFromFrame; use print_address_symbolic to get symbolic 489 name of address. 490 (tuiUpdateLocatorInfoFromFrame): Update. 491 4922002-08-25 Stephane Carrez <stcarrez@nerim.fr> 493 494 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals. 495 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise. 496 (_tuiSetGeneralAndSpecialRegsContent): Likewise. 497 (_tuiSetFloatRegsContent): Likewise. 498 (_tuiRegisterName): Return a const char*. 499 * tuiData.h (_TuiDataElement): Use const char* for name. 500 5012002-08-25 Stephane Carrez <stcarrez@nerim.fr> 502 503 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare. 504 (tuiShowAllExecInfosContent): Likewise. 505 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove. 506 (tuiShowAllExecInfosContent): Remove. 507 (tuiAllocSourceBuffer): Remove unused locals. 508 5092002-08-25 Stephane Carrez <stcarrez@nerim.fr> 510 511 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command 512 to follow other gdb's command names; use execute_command; cleanup. 513 (_initialize_tuiStack): Update. 514 5152002-08-25 Stephane Carrez <stcarrez@nerim.fr> 516 517 * tuiWin.h (tui_update_gdb_sizes): Declare. 518 5192002-08-24 Stephane Carrez <stcarrez@nerim.fr> 520 521 * tui.c (strcat_to_buf): Use const char* for source item. 522 (tui_enable): Update the windows if there is a selected frame. 523 * tui.h (strcat_to_buf): Update prototype. 524 (strcat_to_buf_with_fmt): Remove. 525 5262002-08-24 Stephane Carrez <stcarrez@nerim.fr> 527 528 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what 529 is the size of command window. 530 (tuiResizeAll): Call it instead of init_page_info. 531 * tui.c (tui_enable): Call it to resize to TUI command window. 532 (tui_disable): Likewise for plain screen. 533 5342002-08-24 Stephane Carrez <stcarrez@nerim.fr> 535 536 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and 537 use tuiShowFrameInfo instead of tuiSetLocatorContent. 538 * tuiLayout.h (showLayout): Remove. 539 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals. 540 (_showSourceDisassemCommand): Likewise. 541 (showLayout): Make it static. 542 (lastLayout): Remove. 543 5442002-08-24 Stephane Carrez <stcarrez@nerim.fr> 545 546 * tuiSourceWin.c (tui_show_source_line): New function. 547 (tuiShowSourceContent): Call it and avoid clearing the window before 548 redrawing it. 549 (tuiClearAllSourceWinsContent): Remove. 550 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare. 551 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare. 552 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove. 553 (tuiRefreshAll): Don't clear the window. 554 (_makeVisibleWithNewHeight): Don't clear locator line. 555 (tuiResizeAll): Remove unused locals. 556 (_tuiAdjustWinHeights): Likewise. 557 (_makeInvisibleAndSetNewHeight): Likewise. 558 (_newHeightOk): Likewise. 559 * tuiLayout.c (showLayout): Don't clear source windows. 560 (tuiSetLayout): Don't clear the window. 561 (_initAndMakeWin): Likewise for status line. 562 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window. 563 (makeWindow): Likewise. 564 (tuiClearWin): Remove. 565 * tuiGeneralWin.h (tuiClearWin): Don't declare. 566 5672002-08-24 Stephane Carrez <stcarrez@nerim.fr> 568 569 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove. 570 (tuiAsmWinIsDisplayed): Remove. 571 (tuiShowAllSourceWinsContent): Remove. 572 (tuiUpdateOnEnd): Remove. 573 * tuiGeneralWin.c (scrollWinForward): Remove. 574 (scrollWinBackward): Remove. 575 (_winResize): Don't declare. 576 * tui.h (tuiUpdateOnEnd): Don't declare. 577 (vcatch_errors, va_catch_errors): Likewise. 578 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise. 579 (tuiShowAllSourceWinsContent): Likewise. 580 * tuiGeneralWin.h (scrollWinForward): Likewise. 581 (scrollWinBackward): Likewise. 582 5832002-08-24 Stephane Carrez <stcarrez@nerim.fr> 584 585 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info. 586 5872002-08-18 Daniel Jacobowitz <drow@mvista.com> 588 589 Fix PR gdb/655 590 * tui.c: Disable <termio.h> include. 591 5922002-03-15 Andrew Cagney <ac131313@redhat.com> 593 594 * tui-out.c (XMALLOC): Delete macro. Update copyright. 595 5962002-03-01 Andrew Cagney <ac131313@redhat.com> 597 598 * tui-hooks.c: Add FIXME to explain true/false problem. Update 599 copyright. 600 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto. 601 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto. 602 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto. 603 * tuiWin.c: Ditto. 604 605 2002-02-08 Daniel Jacobowitz <drow@mvista.com> 606 * tui-hooks.c: Include <curses.h> before "bfd.h". 607 * tui.c: Likewise. 608 * tuiCommand.c: Likewise. 609 * tuiData.c: Likewise. 610 * tuiDataWin.c: Likewise. 611 * tuiDisassem.c: Likewise. 612 * tuiGeneralWin.c: Likewise. 613 * tuiIO.c: Likewise. 614 * tuiLayout.c: Likewise. 615 * tuiRegs.c: Likewise. 616 * tuiSource.c: Likewise. 617 * tuiSourceWin.c: Likewise. 618 * tuiStack.c: Likewise. 619 * tuiWin.c: Likewise. 620 6212002-02-01 Andrew Cagney <ac131313@redhat.com> 622 623 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL. 624 6252001-10-20 Andrew Cagney <ac131313@redhat.com> 626 627 * tuiDisassem.c: Include "value.h". 628 * tuiSourceWin.c: Ditto. 629 6302001-09-28 Tom Tromey <tromey@redhat.com> 631 632 * tuiLayout.h (tui_set_layout): Don't declare. 633 * tui.h (tui_vAddWinToLayout): Don't declare. 634 (tui_vSetLayoutTo): Likewise. 635 (tui_set_layout): Declare. 636 6372001-08-02 Eli Zaretskii <eliz@is.elta.co.il> 638 639 * tuiSourceWin.c: Use disp_del instead of del. 640 641 * tuiSource.c: Use disp_del instead of del. 642 643 * tuiDisassem.c: Use disp_del instead of del. 644 6452001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr> 646 647 * tui.c (tui_enable): Remove call to terminal_save_ours(). 648 (tui_disable): Likewise. 649 6502001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr> 651 652 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for 653 set/show configuration variables. 654 (show_tui_cmd): New function. 655 (set_tui_cmd): New function. 656 6572001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr> 658 659 * tui-hooks.c: New file, gdb hooks for tui. 660 * tui-out.c: New file, image copied from cli-out.c. 661 (tui_field_int): Identify "line" fields and keep track of them. 662 (tui_field_string): Likewise for "file". 663 (tui_out_new): Use flags = 0 to avoid printing the sources. 664 6652001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr> 666 667 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to 668 leave it in the command window. 669 (tui_redisplay_readline): Save cursor position to restore the 670 cursor after we go back from background. 671 * tuiData.h (TuiCommandInfo): Add start_line member. 672 6732001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr> 674 675 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*. 676 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype. 677 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls 678 to add_set_enum_cmd. 679 * tui.c (tui_show_source): New function. 680 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow. 681 (tui_switch_mode): Prep or deprep readline terminal; 682 make sure the \n we return does not redo the last command. 683 * tui.h (tui_show_source): Declare. 684 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise. 685 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise. 686 6872001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr> 688 689 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler 690 if SIGCONT is defined. 691 (tui_cont_sig): New function when SIGCONT is defined. 692 (tui_setup_io): Save tty setting to restore by SIGCONT. 693 6942001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr> 695 696 * tui.h (tui_show_assembly): Declare. 697 (tui_is_window_visible): Declare. 698 * tui.c (tui_show_assembly): New function. 699 (tui_is_window_visible): New function. 700 (tui_get_command_dimension): New function. 701 7022001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 703 704 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh. 705 7062001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 707 708 * tui-file.c (tui_file_fputs): Use tui_puts. 709 7102001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 711 712 * tuiStack.c (tuiSetLocatorInfo): Cleanup. 713 * tuiStack.h (tuiGetLocatorFilename): Declare. 714 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare. 715 * tuiData.h (addToSourceWindows): Declare. 716 7172001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 718 719 * tui.c (tui_change_windows): New function. 720 (tui_delete_other_windows): New function. 721 (tui_initialize_readline): Bind them to C-X 1 and C-X 2. 722 (tui_enable): Enable the keypad; call tui_update_variables. 723 (strcat_to_buf_with_fmt): Remove. 724 7252001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 726 727 * tui.h: Remove old declarations, add the new ones. 728 * tui.c (tui_switch_mode): New function. 729 (tui_initialize_readline): New function. 730 (tui_enable): New function. 731 (tui_disable): New function. 732 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup. 733 (tui_vSelectSourceSymtab): Remove. 734 (tuiInitWindows): Remove. 735 (_initialize_tui): Remove. 736 (_tuiReset): Keep but put arround #if 0. 737 7382001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 739 740 * tuiIO.h: Remove old declarations and add the new ones. 741 * tuiIO.c: New management for curses and gdb terminal interactions. 742 (tui_tputs): Remove. 743 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops. 744 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove. 745 (tui_owns_terminal): Remove. 746 (tui_redisplay_readline): New function. 747 (tui_puts): New function. 748 (tui_prep_terminal): New function. 749 (tui_deprep_terminal): New function. 750 (tui_getc): Rename of tuiGetc, simplify and fix. 751 (tui_setup_io): New function. 752 (tui_initialize_io): New function. 753 7542001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 755 756 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin. 757 (_tuiRegisterFormat): Reduce size of format result. 758 7592001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 760 761 * tuiGeneralWin.c (boxWin): Use the tui configuration variables. 762 * tuiWin.h: Declare the new variables. 763 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables. 764 (tui_update_variables): New function. 765 (translate): New function. 766 (tui_border_kind_enums, tui_border_mode_enums): New tables. 767 (tui_border_mode_translate): New table. 768 (tui_border_kind_translate_*): New tables. 769 (tui_active_border_mode): New variables. 770 (tui_border_*): New variables. 771 7722001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 773 774 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable. 775 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type. 776 777 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type. 778 (tui_vUpdateLocatorFilename): Remove. 779 * tuiStack.h: Update prototypes. 780 781 * tuiSourceWin.c (tuiAddrIsDisplayed): New function. 782 (tuiLineIsDisplayed): Split for address and line. 783 (tuiUpdateSourceWindow): Use TuiLineOrAddress type. 784 (tuiUpdateSourceWindowAsIs): Likewise. 785 (tuiUpdateSourceWindowsWithAddr): Likewise. 786 (tuiUpdateSourceWindowsWithLine): Likewise. 787 (tuiHorizontalSourceScroll): Likewise. 788 (tuiSetIsExecPointAt): Likewise. 789 (tuiUpdateOnEnd): Likewise. 790 * tuiSourceWin.h: Update prototypes. 791 792 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type. 793 (tuiShowSource): Likewise. 794 (tuiVerticalSourceScroll): Likewise. 795 * tuiSource.h (tuiShowSource): Update prototype. 796 797 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address. 798 (tuiShowDisassem): Use TuiLineOrAddress type. 799 (tuiShowDisassemAndUpdateSource): Likewise. 800 (tuiVerticalDisassemScroll): Likewise. 801 (tuiShowDisassemAsIs): Remove. 802 * tuiDisassem.h (tuiSetDisassemContent): Update prototype. 803 804 * tuiData.c (initWinInfo): Use CORE_ADDR for address. 805 (clearWinDetail): Likewise. 806 (displayableWinContentOf): Fix address conversion. 807 (tuiNextWin): Fix crash when the window is not yet created. 808 (partialWinByName): Likewise. 809 8102001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 811 812 * tuiSourceWin.h: Remove unused declarations. 813 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove. 814 (tui_vUpdateSourceWindowsWithLine): Remove. 815 (tui_vAllSetHasBreakAt): Remove. 816 817 * tuiLayout.h (tui_set_layout): Declare. 818 (tui_vSetLayoutTo): Remove. 819 (tui_vAddWinToLayout): Remove. 820 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI. 821 (_tuiToggleLayout_command): Remove. 822 (_tuiToggleSplitLayout_command): Remove. 823 (_tuiLayout_command): Remove. 824 (tui_vSetLayoutTo): Remove. 825 (tui_vAddWinToLayout): Remove. 826 827 * tuiDataWin.h (tui_vCheckDataValues): Remove. 828 * tuiDataWin.c (tui_vCheckDataValues): Remove. 829 8302001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr> 831 832 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup. 833 (_parseScrollingArgs): Use xstrdup. 834 (_tuiScrollForward_command): Call tui_enable() to force TUI mode. 835 (_tuiScrollBackward_command): Likewise. 836 (_tuiScrollLeft_command): Likewise. 837 (_tuiScrollRight_command): Likewise. 838 (_tuiSetFocus): Likewise. 839 (_tuiSetFocus_command): Likewise. 840 (_tuiRefreshAll_command): Likewise. 841 (_tuiSetTabWidth_command): Likewise. 842 (_tuiSetWinHeight): Likewise. 843 (_tuiSetWinHeight_command): Likewise. 844 (_tuiXDBsetWinHeight): Likewise. 845 (_tui_vSetFocus): Remove. 846 (_tui_vSetWinHeight): Remove. 847 (_tui_vXDBsetWinHeight): Remove. 848 8492001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr> 850 851 * tuiCommand.h: Remove unused declarations. 852 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences. 853 (tuiIncrCommandCharCountBy): Remove. 854 (tuiDecrCommandCharCountBy): Remove. 855 (tuiSetCommandCharCountTo): Remove. 856 (tuiClearCommandCharCount): Remove. 857 8582001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr> 859 860 * tuiWin.c (_initialize_tuiWin): Always define the tui commands; 861 create the tui class help. 862 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands. 863 * tuiRegs.c (_initialize_tuiRegs): Likewise. 864 * tuiStack.c (_initialize_tuiStack): Likewise. 865 8662001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr> 867 868 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR. 869 (tuiVerticalDisassemScroll): Likewise. 870 (tuiShowDisassemAndUpdateSource): Check for null symtab to 871 prevent a crash. 872 8732001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr> 874 875 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll. 876 (tuiRead, tui_vread): Remove. 877 878 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove. 879 (vcatch_errors, _tui_vDo): Remove. 880 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove. 881 882 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors. 883 (tui_set_layout): Rename of _tuiSetLayoutTo, public. 884 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command. 885 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command. 886 (_tuiLayout_command): Call tui_set_layout. 887 888 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll. 889 (_tuiScrollRegsForward_command): Likewise. 890 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport. 891 (_tuiShowGeneral_command): Likewise. 892 (_tuiShowSpecial_command): Likewise. 893 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs. 894 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters. 895 (_tuiScrollForward_command): Call tui_scroll. 896 (_tuiScrollBackward_command): Likewise. 897 (_tuiScrollLeft_command): Likewise. 898 (_tuiScrollRight_command): Likewise. 899 (_tuiSetFocus_command): Call _tuiSetFocus. 900 (_tuiRefreshAll_command): Call tuiRefreshAll. 901 (_tuiSetWinHeight_command): Call _tuiSetWinHeight. 902 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight. 903 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters. 904 9052001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr> 906 907 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member. 908 (TuiLineOrAddress): Likewise. 909 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify 910 an address. 911 (tuiSetDisassemContent): Likewise. 912 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise. 913 * tuiLayout.c (_extractDisplayStartAddr): Likewise. 914 (tuiSetLayout): Likewise. 915 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise. 916 (tuiUpdateSourceWindowsWithAddr): Likewise. 917 (tuiUpdateSourceWindowsWithLine): Likewise. 918 (tuiSetHasBreakAt): Likewise. 919 * tuiStack.c (tuiSetLocatorInfo): Likewise. 920 (tuiSwitchFilename): Likewise. 921 (tuiUpdateLocatorInfoFromFrame): Likewise. 922 (tuiSetLocatorContent): Likewise. 923 (tuiShowFrameInfo): Likewise. 924 * tuiDisassem.h: Update prototypes to use CORE_ADDR. 925 * tuiSourceWin.h: Likewise. 926 * tuiStack.h: Likewise. 927 9282001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr> 929 930 * tuiWin.c: Add missing includes. 931 (_makeVisibleWithNewHeight): Fix call to find_line_pc. 932 * tuiLayout.c: Add missing includes. 933 (_initAndMakeWin): Don't put curses in echo mode. 934 (_extractDisplayStartAddr): Fix calls to find_line_pc. 935 (_tuiLayout_command): Missing ',' in warning call. 936 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to 937 find_line_pc. 938 (tuiSetHasBreakAt): Check for null source file. 939 9402001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr> 941 942 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare. 943 * tuiLayout.c (_tuiSetLayoutTo): Likewise. 944 * tui.c (_tui_vToggle_command): Likewise. 945 9462001-07-17 Elena Zannoni <ezannoni@redhat.com> 947 948 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered. 949 9502001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr> 951 952 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in 953 each register window. 954 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size 955 of the register to check. 956 (_tuiRegValueHasChanged): Likewise. 957 (_tuiRegisterName): Use REGISTER_NAME. 958 (tui_restore_gdbout): New function. 959 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected 960 to a string. 961 (START_SPECIAL_REGS): Define. 962 (_tuiGetRegisterRawValue): Use get_saved_register. 963 (_tuiDisplayRegister): Fix clearing of register window. 964 9652001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr> 966 967 * tui-file.h (fputs_unfiltered_hook): Remove. 968 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook. 969 (tui_file_fputs): Likewise; simplify 970 9712001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr> 972 973 * tuiStack.c: Add missing includes. 974 (tuiShowFrameInfo): Don't crash when there is no symbol table 975 associated with the pc. 976 * tuiSource.c (_hasBreak): Check for null source file. 977 * tuiWin.c (tuiRefreshAll): Check for null winList[type]. 978 (_tuiSetFocus): Check for null dataWin. 979 * tuiGeneralWin.c (refreshAll): Check for null list[type]. 980 9812001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr> 982 983 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info 984 to disassemble in the curses window. 985 9862001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr> 987 988 * tui.h: Cleanup to avoid inclusion of curses includes. 989 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here. 990 * tuiData.h: To here; include curses includes here. 991 (setTermHeightTo): Rename of setTermHeight to follow reality. 992 (setTermWidthTo): Likewise with setTermWidth. 993 9942001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr> 995 996 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype. 997 tuiIO.c, tuiData.c: Likewise. 998 tuiDataWin.c, tuiDisassem.c: Likewise. 999 tuiGeneralWin.c, tuiLayout.c: Likewise. 1000 tuiRegs.c, tuiSource.c: Likewise. 1001 tuiSouceWin.c, tuiStack.c: Likewise. 1002 10032001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr> 1004 1005 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright. 1006 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise. 1007 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise. 1008 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise. 1009 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise. 1010 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise. 1011 10122001-03-08 Andrew Cagney <ac131313@redhat.com> 1013 1014 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS. 1015 10162001-03-06 Kevin Buettner <kevinb@redhat.com> 1017 1018 * tui-file.h: Update/correct copyright notice. 1019 1020Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com> 1021 1022 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to 1023 internal_error. 1024 10252000-12-14 Kevin Buettner <kevinb@redhat.com> 1026 1027 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences 1028 of free() with xfree(). 1029 10302000-06-22 Kevin Buettner <kevinb@redhat.com> 1031 1032 * tuiSourceWin.h: Eliminate use of PARAMS from this file. 1033 10342000-06-20 Kevin Buettner <kevinb@redhat.com> 1035 1036 * tuiLayout.c: Eliminate use of PARAMS from this file. 1037 10382000-06-17 Kevin Buettner <kevinb@redhat.com> 1039 1040 * tuiIO.c: Eliminate use of PARAMS from this file. 1041 1042Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com> 1043 1044 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and 1045 "tuiCommand.h". 1046 (tui_file_fputs): Pass ``file'' and not ``stream'' to 1047 tui_file_adjust_strbuf. 1048 1049Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com> 1050 1051 * tui.h: Include <ncurses.h> when available. 1052 * tui.c, tuiGeneralWin.c: Do not include <curses.h>. 1053 1054Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com> 1055 1056 * Makefile.in: Delete. 1057 1058Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com> 1059 1060 * Makefile.in (distclean, maintainer-clean, realclean, 1061 mostlyclean): New targets. 1062 1063Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com> 1064 1065 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h, 1066 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to 1067 ui-file / ``struct ui_file''. 1068 1069Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com> 1070 1071 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new, 1072 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty, 1073 tui_file_rewind, tui_file_put, tui_file_fputs, 1074 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush, 1075 fputs_unfiltered_hook): Move to here from ../utils.c 1076 1077 * tui-file.h, tui-file.c: New files. 1078 1079Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com> 1080 1081 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c 1082 (tuiSetDisassemContent): Replace gdb_file_init_astring with 1083 tui_sfileopen. Replace gdb_file_get_strbuf with 1084 tui_file_get_strbuf. 1085 1086Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com> 1087 1088 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c 1089 (tuiSetDisassemContent): Repace gdb_file_deallocate with 1090 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen. 1091 1092Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com> 1093 1094 * tuiSource.c: Include "source.h". 1095 (open_source_file, find_source_lines): Delete declarations. 1096 10971999-01-26 Jason Molenda (jsm@bugshack.cygnus.com) 1098 1099 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish 1100 system. 1101 1102Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com> 1103 1104 The following changes were made by Jim Blandy <jimb@cygnus.com>, 1105 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni 1106 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David 1107 Taylor <taylor@cygnus.com>, as part of the project to merge in 1108 changes originally made by HP; HP did not create ChangeLog 1109 entries. 1110 1111 * Makefile.in: New file; we're merging HP's changes into GDB, and 1112 we've moved the TUI files into a subdirectory, so we need a new 1113 Makefile. 1114 1115 * tui.c: 1116 #include <term.h>, if we have it, to get declarations for 1117 the termcap functions on Solaris. 1118 (tgoto): Add external K&R declaration for this; Solaris doesn't 1119 bother to actually declare it in their header files. 1120 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined; 1121 we'd rather use the USG mechanisms than the Berkeley mechanisms 1122 (TIOCGETC is one of the Berkeley terminal control ioctls). 1123 Apologies if this causes trouble later; this should all be handled 1124 by autoconf... 1125 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here 1126 from ../utils.h. 1127 (tuiFree): replace safe_free with free. 1128 (strcat_to_buf): new function, copied from utils.c. 1129 (tuiInit): Add ignored `argv0' argument, to match the type that 1130 init_ui_hook expects; updated declaration. Call the 1131 initialize_tui_files function constructed above. Initialize 1132 flush_hook to NULL. 1133 (tuiInitWindows): Call tuiSetLocatorContent, to get the first 1134 element of the locator window's content allocated. This seems 1135 wrong, because it must have been initialized somehow in HP's 1136 sources, and we should do it the same way now. But we do get 1137 further before it segfaults. [Postscript: HP didn't bother to 1138 initialize it; they compile 1139 (va_catch_errors, vcatch_errors): Functions moved here from 1140 ../utils.c in HP's sources. They're not used anywhere else. 1141 (xdb_style): Delete this variable, and remove all references to 1142 it. It's always true. 1143 (tuiInit, _tui_vDo): References removed. 1144 1145 * tui.h: Add prototypes. 1146 Don't #include "gendefs.h"; it's only used in the TUI. 1147 Integrate its contents into this file: 1148 #include <ansidecl.h> here. 1149 (Opaque, OpaqueFuncPtr): Typedefs moved to here. 1150 1151 * tuiCommand.c: #include "defs.h", so we get the appropriate 1152 definition of GDB_FILE. 1153 1154 * tuiData.c 1155 (freeWindow): replace safe_free with free. 1156 (tui_version): don't define it here; it's defined in main.c now. 1157 1158 * tuiDisassem.c 1159 (tuiSetDisassemContent): Call strcat_address_numeric instead of 1160 strcat_address. Simplify the control structure. Use predefined 1161 GDB function to print asm inst address. Use GDB_FILE to collect 1162 output into buffers. 1163 1164 * tuiIO.c 1165 (tgoto): Add external K&R declaration for this here too. 1166 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same. 1167 (tuiPuts_unfiltered): change FILE to GDB_FILE. 1168 (tui_tputs): fix prototype for 3rd argument. 1169 1170 * tuiIO.h (tuiPuts_unfiltered): change declaration. 1171 1172 * tuiLayout.c 1173 (_tuiSetLayoutTo): for displaying registers, hook up the HP code 1174 that decides which registers to display (i.e. single precision 1175 float, double precision float, general, special). Previously, 1176 only handled TUI_GENERAL_REGS. Now that the code is hooked up, 1177 compiling with -z poses a problem. When the first layout command 1178 is 'layout regs', dataWin->detail is a NULL pointer, and gdb 1179 core dumps. 1180 1181 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free. 1182 1183 * tuiRegs.c #include "defs.h" earlier, to avoid problems in 1184 <stdarg.h>. No idea exactly what's conflicting with what, but the 1185 errors went away... 1186 (_tuiRegisterFormat): Change so that function creates a GDB_FILE 1187 object, calls pa_do_strcat_registers_info, copies the register 1188 info into a buffer, and deallocates the GDB_FILE object. Remove 1189 some code that is not executed. Also, call to 1190 pa_do_strcat_registers_info has an additional parameter, 1191 precision. This code requires some new per-target functions that 1192 we don't want to merge. Dyke it out, with #ifdef 1193 TUI_EXTENDED_FORMATTERS. 1194 (_tuiSetSpecialRegsContent): this function was ifdefed out. 1195 Hooked this up. 1196 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed 1197 out. Hooked it up. 1198 (IS_64BIT): Just define this to be zero; we're not merging in the 1199 64-bit support. 1200 (tuiShowRegisters): Comment out all references to the "special" 1201 regs; we don't have a distinction between the "special" and 1202 "non-special" regs in most of our machine descriptions. This code 1203 is PA-specific in other ways as well, and needs to be redesigned 1204 to be portable to other processors. 1205 1206 * tuiWin.c: #include <string.h>, to get a declaration for 1207 strchr. 1208 1209 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c, 1210 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c, 1211 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed 1212 bool to int throughout. Re-indented, GNU style. 1213 1214 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h, 1215 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h, 1216 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP). 1217 Changed bool to int throughout. 1218