1 2003-06-12 Andreas Schwab <schwab@suse.de>
3 * tuiSource.c (tuiVerticalSourceScroll): Use get_frame_pc.
4 * tuiSourceWin.c (tuiHorizontalSourceScroll): Likewise.
5 * tuiStack.c (tui_get_function_from_frame): Likewise.
6 (tuiShowFrameInfo): Likewise.
7 * tuiWin.c (_makeVisibleWithNewHeight): Likewise.
8 * tui-hooks.c (tui_selected_frame_level_changed_hook): Likewise.
9 * tuiDisassem.c (tuiVerticalDisassemScroll): Likewise.
12 2003-05-08 Andrew Cagney <cagney@redhat.com>
14 * tuiRegs.c: Use MAX_REGISTER_SIZE instead of
15 MAX_REGISTER_RAW_SIZE.
17 2003-05-03 Andrew Cagney <cagney@redhat.com>
19 * tuiDisassem.c (tui_disassemble): Call gdb_print_insn, instead of
20 TARGET_PRINT_INSN. Do not initialize a disassemble_info object.
22 2003-04-30 Andrew Cagney <cagney@redhat.com>
24 * tuiDisassem.c (tui_disassemble): Use
25 "deprecated_tm_print_insn_info" instead of TARGET_PRINT_INSN_INFO,
28 2003-03-14 Andrew Cagney <cagney@redhat.com>
30 * tuiRegs.c (_tuiGetRegisterRawValue): Use frame_read_register,
31 instead of get_saved_register.
33 2003-03-13 Stephane Carrez <stcarrez@nerim.fr>
35 * tui-out.c (tui_out_data): Fix typedef.
37 2003-03-08 Andrew Cagney <cagney@redhat.com>
39 * tui-out.c: Update copyright.
40 (tui_out_data): Define typedef. Use instead of ui_out_data.
42 2003-02-14 Andrew Cagney <ac131313@redhat.com>
44 * tui.c (tui_enable, tui_disable): Don't modify tui_version.
45 (tui_is_window_visible, tui_get_command_dimension): Test
46 tui_active instead of tui_version.
47 * tuiData.h (tui_version): Delete declaration.
48 * tui-hooks.c (tui_init_hook, tui_event_loop): Delete function,
49 moved to "tui-interp.c".
50 (tui_exit, tui_command_loop): Ditto.
51 (_initialize_tui): Don't initialize init_ui_hook. Initialize
52 target_new_objfile_hook.
53 * tui-interp.c: New file.
55 2003-02-12 Andrew Cagney <ac131313@redhat.com>
57 * tuiIO.c (tui_prep_terminal): Add one notused parameter.
58 * tui.c (tui_rl_switch_mode): Add two notused parameters.
59 (tui_rl_change_windows, tui_rl_next_keymap): Ditto.
60 (tui_rl_delete_other_windows): Ditto.
61 (tui_rl_change_windows, tui_rl_delete_other_windows): Update
64 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
66 Import of readline 4.3.
68 * tuiWin.c: Include readline/readline.h.
69 (tui_update_gdb_sizes): Use accessor function rl_get_screen_size.
70 (tuiResizeAll): Ditto.
72 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
74 * tuiStack.c (tuiShowFrameInfo): Fix typo.
76 2002-11-29 Andrew Cagney <ac131313@redhat.com>
78 * tui/tui-hooks.c: Update to use deprecated_selected_frame.
79 * tui/tui.c, tui/tuiDisassem.c, tui/tuiRegs.c: Ditto.
80 * tui/tuiSource.c, tui/tuiSourceWin.c, tui/tuiWin.c: Ditto.
82 2002-11-28 Andrew Cagney <ac131313@redhat.com>
84 * tuiStack.c (tuiShowFrameInfo): Use find_frame_sal instead of
87 2002-11-23 Andrew Cagney <ac131313@redhat.com>
89 * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
90 deprecated_frame_in_dummy. Fix coding style.
92 2002-11-21 Stephane Carrez <stcarrez@nerim.fr>
94 * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific
95 interpreter is installed.
97 2002-11-18 Andrew Cagney <ac131313@redhat.com>
99 * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
100 signal_handler_caller.
102 2002-11-10 Andrew Cagney <ac131313@redhat.com>
104 * tuiStack.c (tuiShowFrameInfo): Replace frame_in_dummy with
105 deprecated_frame_in_dummy.
107 2002-10-26 Stephane Carrez <stcarrez@nerim.fr>
109 * tuiIO.c (tui_prep_terminal): Save the prompt registered in readline.
110 (tui_redisplay_readline): Use the last saved prompt.
111 (tui_rl_saved_prompt): New.
113 2002-10-25 Stephane Carrez <stcarrez@nerim.fr>
116 * tuiWin.c (ACS_LRCORNER, ACS_LLCORNER, ACS_ULCORNER, ACS_URCORNER,
117 ACS_HLINE, ACS_VLINE): Define if they don't exist.
119 2002-10-25 Stephane Carrez <stcarrez@nerim.fr>
122 * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
124 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
126 * tui-hooks.c (selected_frame_level_changed_hook): Use the one
127 exported from frame.h.
129 2002-09-29 Elena Zannoni <ezannoni@redhat.com>
131 * tui.c (tui_show_source): Don't access current_source_symtab, use
132 accessor function instead. Include source.h and symtab.h
133 * tuiDisassem.c (tuiShowDisassemAndUpdateSource,
134 tuiVerticalDisassemScroll): Use accessor functions for current
135 source line and symtab. Include source.h.
136 * tuiLayout.c (_extractDisplayStartAddr): Use accessor functions
137 for current source line and symtab. Include source.h.
138 * tuiWin.c (_makeVisibleWithNewHeight): Ditto.
139 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs,
140 tuiHorizontalSourceScroll): Ditto.
141 * tuiSource.c (tuiVerticalSourceScroll): Ditto.
143 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
145 * tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs.
146 (tui_initialize_readline): Allow to use space to leave SingleKey
147 to enter one gdb command.
148 (tui_enable): Restore the TUI keymap when we are back to TUI.
149 (tui_disable): Restore normal keymap when leaving TUI.
150 * tuiIO.c (tui_redisplay_readline): Restore the SingleKey mode
151 when the buffer becomes empty and we are in tui_one_command_mode.
153 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
155 * tuiIO.c (tui_setup_io): rl_already_prompted must be cleared
156 when leaving TUI mode so that gdb prompt is displayed.
158 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
160 * tuiStack.c (tui_make_status_line): Make sure the local buffer
161 is large enough to hold the complete line.
163 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
165 * tui-hooks.c (tui_event_loop): New function.
166 (tui_command_loop): New function to override gdb loop and make sure
167 uiout is set according to TUI mode.
168 (tui_command_loop): Install the specific TUI command hook.
169 * tuiIO.c (tui_initialize_io): Initialize tui_old_uiout.
170 (tui_uiout, tui_old_uiout): Make public.
171 * tuiIO.h (tui_uiout, tui_old_uiout): Declare.
173 2002-09-04 Stephane Carrez <stcarrez@nerim.fr>
175 * tuiIO.c (tui_putc): New function to print one character.
176 (printable_part): New function from readline/complete.c.
177 (PUTX): New macro, likewise.
178 (print_filename): New function, likewise.
179 (get_y_or_n): New function, likewise and adapted for TUI.
180 (tui_rl_display_match_list): New function from readline/complete.c
181 and writes on TUI command window.
182 (tui_setup_io): Install or remove the readline hook
183 rl_completion_display_matches_hook so that completion is written
184 directly in TUI command window instead of in the TUI pipe.
185 (tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the
186 TUI redirection pipe.
187 (tui_getc): Likewise for call to tui_readline_output.
188 (tui_readline_output): Likewise for function.
189 * tui.c (tui_rl_startup_hook): Always take care of gdb prompt.
191 2002-09-02 Stephane Carrez <stcarrez@nerim.fr>
193 * tuiWin.c (_newHeightOk): Fix compilation warnings.
195 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
197 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
200 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
202 * tui-out.c (tui_out_new): Clear start_of_line.
203 * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
204 to update the current source line.
206 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
208 * tui-hooks.c (tui_detach_hook): New hook to know when a process dies.
209 (tui_install_hooks): Install it.
210 (tui_remove_hooks): Remove it.
212 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
214 * tuiData.h (FILE_PREFIX): Don't define.
215 (blankStr, locationStr, breakStr): Don't declare.
216 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise.
217 (displayableWinContentOf, displayableWinContentAt): Likewise.
218 (winElementHeight, winByName, freeAllWindows): Likewise.
220 * tuiData.c (blankStr, locationStr, breakStr): Remove.
221 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
222 (displayableWinContentOf, displayableWinContentAt): Remove.
223 (winElementHeight, winByName, freeAllWindows): Remove.
225 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
227 * tuiStack.c (tui_make_status_line): New function to create the
229 (tuiShowLocatorContent): Use it instead of displayableWinContentAt.
230 * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
231 (PC_PREFIX): Use upper case.
232 (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
233 (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
235 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
237 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.
238 (tuiClearAllExecInfosContent): Likewise.
239 (tuiEraseAllExecInfosContent): Ditto.
240 (tuiUpdateSourceWindowsFromLocator): Ditto.
241 * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove.
242 * tui.h (tui_vCheckDataValues): Don't declare.
243 (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise.
244 (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto.
245 (tui_vShowFrameInfo): Ditto.
247 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
249 * tui.c (tui_commands): Table of single key commands.
250 (tui_rl_command_key): New function to execute gdb command.
251 (tui_rl_command_mode): New function to temporarily leave SingleKey.
252 (tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
253 (tui_rl_startup_hook): New function to avoid prompt display by
255 (tui_set_key_mode): New function to set the key mode and install
257 (tui_initialize_readline): Create TUI SingleKey readline map.
258 (tui_enable): Install rl_startup_hook.
259 (tui_disable): Remove it.
260 * tui.h (enum tui_key_mode): Declare.
261 (tui_set_key_mode, tui_current_key_mode): Declare.
262 * tuiIO.c (tui_redisplay_readline): Don't display the prompt in
264 * tuiIO.h (tui_redisplay_readline): Declare.
266 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
268 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
271 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
273 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
275 (tuiShowSource): Fix comment indentation.
276 (tuiSourceIsDisplayed): Likewise.
277 (tuiVerticalSourceScroll): Likewise.
279 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
281 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
282 (tui_update_breakpoint_info): Declare.
283 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
285 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
286 information using tui_update_breakpoint_info.
287 (tui_update_all_breakpoint_info): New function to refresh all
289 (tui_update_breakpoint_info): New function to recompute the status
290 of exec info window from breakpoints.
291 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
292 (tuiSetExecInfoContent): Use the exec info flags computed by
293 tui_update_breakpoint_info to display a short status about breakpoints.
295 * tuiData.h (TuiExecInfoContent): New for exec info string.
296 (TuiWhichElement): Use it.
297 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
298 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
299 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
300 (TUI_EXECINFO_SIZE): Likewise.
301 * tuiData.c (initContentElement): Clear exec info string.
303 * tui-hooks.c (get_breakpoint): Remove.
304 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
305 (tui_event_delete_breakpoint): Likewise.
306 (tui_event_modify_breakpoint): Likewise.
308 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
310 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
311 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
312 tui_find_disassembly_address to find the starting address of
315 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
317 * tuiDisassem.c (tui_disassemble): New function to disassemble
318 several lines in a buffer.
319 (tui_find_disassembly_address): New function to search backward
320 or forward a disassembly line.
321 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
322 content and format it in the window.
323 (tuiShowDisassemAndUpdateSource): Remove unused locals.
324 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
325 obtain the address to disassemble for the scrolling.
326 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
327 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
329 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
331 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
333 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
336 * tui.c (tui_disable): Update gdb's knowledge of its terminal
337 using target_terminal_save_ours.
338 (tui_enable): Likewise.
340 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
342 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
343 (tui_rl_change_windows): Renames tui_change_windows.
344 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
345 (tui_initialize_readline): Update.
347 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
349 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
352 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
354 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
355 to find symbol address.
357 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
359 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
360 and use tuiGetBeginAsmAddress.
361 * tuiSourceWin.h (tui_display_main): Declare.
362 * tui.h (tuiDisplayMainFunction): Remove.
363 * tui-hooks.c (tui_new_objfile_hook): Update.
365 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
367 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
368 (tuiShowSourceAsIs): Don't declare.
370 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
372 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
375 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
377 * tuiStack.c (tuiSetLocatorContent): Remove.
378 (tuiUpdateLocatorInfoFromFrame): Remove.
379 (tui_set_locator_info): Allocate the content buffer if necessary.
380 (tui_set_locator_filename): Call tui_set_locator_info directly.
381 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
384 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
386 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
387 tuiUpdateLocatorFilename.
388 * tuiStack.c (tuiSetLocatorInfo): Make it static.
389 (tuiSetLocatorContent): Likewise.
390 (tuiUpdateLocatorInfoFromFrame): Likewise.
391 (tuiSwitchFilename): Remove.
392 (tui_set_locator_filename): New function
393 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
394 use tui_set_locator_filename to record the filename.
395 (tuiUpdateLocatorFilename): Likewise.
396 (tuiUpdateLocatorInfoFromFrame): Update.
397 (tuiSetLocatorContent): Likewise.
398 * tuiStack.h (tuiClearLocatorContent): Don't declare.
399 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
400 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
402 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
404 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
406 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
407 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
408 * tuiData.h (TuiSourceInfo): Add filename member.
409 (TuiGenWinInfo): Add title member.
410 * tuiData.c (initGenericPart): Clear title.
411 (freeWindow): Free title and filename; remove unused locals.
412 (initWinInfo): Clear filename.
413 (tuiDelWindow): Free it; remove unused locals.
415 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
417 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
418 (tuiUpdateLocatorDisplay): Likewise.
419 * tuiStack.c (tuiGetLocatorFilename): Remove.
420 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
421 instead of tuiUpdateLocatorDisplay.
422 (tuiUpdateLocatorDisplay): Remove.
424 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
426 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
427 * tuiStack.c (tuiClearLocatorDisplay): Remove.
428 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
429 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
431 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
433 * tuiStack.c (tui_get_function_from_frame): Rename from
434 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
436 (tuiUpdateLocatorInfoFromFrame): Update.
438 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
440 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
441 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
442 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
443 (_tuiSetFloatRegsContent): Likewise.
444 (_tuiRegisterName): Return a const char*.
445 * tuiData.h (_TuiDataElement): Use const char* for name.
447 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
449 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
450 (tuiShowAllExecInfosContent): Likewise.
451 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
452 (tuiShowAllExecInfosContent): Remove.
453 (tuiAllocSourceBuffer): Remove unused locals.
455 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
457 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
458 to follow other gdb's command names; use execute_command; cleanup.
459 (_initialize_tuiStack): Update.
461 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
463 * tuiWin.h (tui_update_gdb_sizes): Declare.
465 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
467 * tui.c (strcat_to_buf): Use const char* for source item.
468 (tui_enable): Update the windows if there is a selected frame.
469 * tui.h (strcat_to_buf): Update prototype.
470 (strcat_to_buf_with_fmt): Remove.
472 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
474 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
475 is the size of command window.
476 (tuiResizeAll): Call it instead of init_page_info.
477 * tui.c (tui_enable): Call it to resize to TUI command window.
478 (tui_disable): Likewise for plain screen.
480 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
482 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
483 use tuiShowFrameInfo instead of tuiSetLocatorContent.
484 * tuiLayout.h (showLayout): Remove.
485 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
486 (_showSourceDisassemCommand): Likewise.
487 (showLayout): Make it static.
488 (lastLayout): Remove.
490 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
492 * tuiSourceWin.c (tui_show_source_line): New function.
493 (tuiShowSourceContent): Call it and avoid clearing the window before
495 (tuiClearAllSourceWinsContent): Remove.
496 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
497 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
498 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
499 (tuiRefreshAll): Don't clear the window.
500 (_makeVisibleWithNewHeight): Don't clear locator line.
501 (tuiResizeAll): Remove unused locals.
502 (_tuiAdjustWinHeights): Likewise.
503 (_makeInvisibleAndSetNewHeight): Likewise.
504 (_newHeightOk): Likewise.
505 * tuiLayout.c (showLayout): Don't clear source windows.
506 (tuiSetLayout): Don't clear the window.
507 (_initAndMakeWin): Likewise for status line.
508 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
509 (makeWindow): Likewise.
510 (tuiClearWin): Remove.
511 * tuiGeneralWin.h (tuiClearWin): Don't declare.
513 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
515 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
516 (tuiAsmWinIsDisplayed): Remove.
517 (tuiShowAllSourceWinsContent): Remove.
518 (tuiUpdateOnEnd): Remove.
519 * tuiGeneralWin.c (scrollWinForward): Remove.
520 (scrollWinBackward): Remove.
521 (_winResize): Don't declare.
522 * tui.h (tuiUpdateOnEnd): Don't declare.
523 (vcatch_errors, va_catch_errors): Likewise.
524 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
525 (tuiShowAllSourceWinsContent): Likewise.
526 * tuiGeneralWin.h (scrollWinForward): Likewise.
527 (scrollWinBackward): Likewise.
529 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
531 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
533 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
536 * tui.c: Disable <termio.h> include.
538 2002-03-15 Andrew Cagney <ac131313@redhat.com>
540 * tui-out.c (XMALLOC): Delete macro. Update copyright.
542 2002-03-01 Andrew Cagney <ac131313@redhat.com>
544 * tui-hooks.c: Add FIXME to explain true/false problem. Update
546 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
547 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
548 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
551 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
552 * tui-hooks.c: Include <curses.h> before "bfd.h".
554 * tuiCommand.c: Likewise.
555 * tuiData.c: Likewise.
556 * tuiDataWin.c: Likewise.
557 * tuiDisassem.c: Likewise.
558 * tuiGeneralWin.c: Likewise.
560 * tuiLayout.c: Likewise.
561 * tuiRegs.c: Likewise.
562 * tuiSource.c: Likewise.
563 * tuiSourceWin.c: Likewise.
564 * tuiStack.c: Likewise.
565 * tuiWin.c: Likewise.
567 2002-02-01 Andrew Cagney <ac131313@redhat.com>
569 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
571 2001-10-20 Andrew Cagney <ac131313@redhat.com>
573 * tuiDisassem.c: Include "value.h".
574 * tuiSourceWin.c: Ditto.
576 2001-09-28 Tom Tromey <tromey@redhat.com>
578 * tuiLayout.h (tui_set_layout): Don't declare.
579 * tui.h (tui_vAddWinToLayout): Don't declare.
580 (tui_vSetLayoutTo): Likewise.
581 (tui_set_layout): Declare.
583 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
585 * tuiSourceWin.c: Use disp_del instead of del.
587 * tuiSource.c: Use disp_del instead of del.
589 * tuiDisassem.c: Use disp_del instead of del.
591 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
593 * tui.c (tui_enable): Remove call to terminal_save_ours().
594 (tui_disable): Likewise.
596 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
598 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
599 set/show configuration variables.
600 (show_tui_cmd): New function.
601 (set_tui_cmd): New function.
603 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
605 * tui-hooks.c: New file, gdb hooks for tui.
606 * tui-out.c: New file, image copied from cli-out.c.
607 (tui_field_int): Identify "line" fields and keep track of them.
608 (tui_field_string): Likewise for "file".
609 (tui_out_new): Use flags = 0 to avoid printing the sources.
611 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
613 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
614 leave it in the command window.
615 (tui_redisplay_readline): Save cursor position to restore the
616 cursor after we go back from background.
617 * tuiData.h (TuiCommandInfo): Add start_line member.
619 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
621 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
622 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
623 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
625 * tui.c (tui_show_source): New function.
626 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
627 (tui_switch_mode): Prep or deprep readline terminal;
628 make sure the \n we return does not redo the last command.
629 * tui.h (tui_show_source): Declare.
630 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
631 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
633 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
635 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
636 if SIGCONT is defined.
637 (tui_cont_sig): New function when SIGCONT is defined.
638 (tui_setup_io): Save tty setting to restore by SIGCONT.
640 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
642 * tui.h (tui_show_assembly): Declare.
643 (tui_is_window_visible): Declare.
644 * tui.c (tui_show_assembly): New function.
645 (tui_is_window_visible): New function.
646 (tui_get_command_dimension): New function.
648 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
650 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
652 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
654 * tui-file.c (tui_file_fputs): Use tui_puts.
656 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
658 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
659 * tuiStack.h (tuiGetLocatorFilename): Declare.
660 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
661 * tuiData.h (addToSourceWindows): Declare.
663 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
665 * tui.c (tui_change_windows): New function.
666 (tui_delete_other_windows): New function.
667 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
668 (tui_enable): Enable the keypad; call tui_update_variables.
669 (strcat_to_buf_with_fmt): Remove.
671 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
673 * tui.h: Remove old declarations, add the new ones.
674 * tui.c (tui_switch_mode): New function.
675 (tui_initialize_readline): New function.
676 (tui_enable): New function.
677 (tui_disable): New function.
678 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
679 (tui_vSelectSourceSymtab): Remove.
680 (tuiInitWindows): Remove.
681 (_initialize_tui): Remove.
682 (_tuiReset): Keep but put arround #if 0.
684 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
686 * tuiIO.h: Remove old declarations and add the new ones.
687 * tuiIO.c: New management for curses and gdb terminal interactions.
689 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
690 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
691 (tui_owns_terminal): Remove.
692 (tui_redisplay_readline): New function.
693 (tui_puts): New function.
694 (tui_prep_terminal): New function.
695 (tui_deprep_terminal): New function.
696 (tui_getc): Rename of tuiGetc, simplify and fix.
697 (tui_setup_io): New function.
698 (tui_initialize_io): New function.
700 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
702 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
703 (_tuiRegisterFormat): Reduce size of format result.
705 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
707 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
708 * tuiWin.h: Declare the new variables.
709 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
710 (tui_update_variables): New function.
711 (translate): New function.
712 (tui_border_kind_enums, tui_border_mode_enums): New tables.
713 (tui_border_mode_translate): New table.
714 (tui_border_kind_translate_*): New tables.
715 (tui_active_border_mode): New variables.
716 (tui_border_*): New variables.
718 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
720 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
721 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
723 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
724 (tui_vUpdateLocatorFilename): Remove.
725 * tuiStack.h: Update prototypes.
727 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
728 (tuiLineIsDisplayed): Split for address and line.
729 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
730 (tuiUpdateSourceWindowAsIs): Likewise.
731 (tuiUpdateSourceWindowsWithAddr): Likewise.
732 (tuiUpdateSourceWindowsWithLine): Likewise.
733 (tuiHorizontalSourceScroll): Likewise.
734 (tuiSetIsExecPointAt): Likewise.
735 (tuiUpdateOnEnd): Likewise.
736 * tuiSourceWin.h: Update prototypes.
738 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
739 (tuiShowSource): Likewise.
740 (tuiVerticalSourceScroll): Likewise.
741 * tuiSource.h (tuiShowSource): Update prototype.
743 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
744 (tuiShowDisassem): Use TuiLineOrAddress type.
745 (tuiShowDisassemAndUpdateSource): Likewise.
746 (tuiVerticalDisassemScroll): Likewise.
747 (tuiShowDisassemAsIs): Remove.
748 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
750 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
751 (clearWinDetail): Likewise.
752 (displayableWinContentOf): Fix address conversion.
753 (tuiNextWin): Fix crash when the window is not yet created.
754 (partialWinByName): Likewise.
756 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
758 * tuiSourceWin.h: Remove unused declarations.
759 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
760 (tui_vUpdateSourceWindowsWithLine): Remove.
761 (tui_vAllSetHasBreakAt): Remove.
763 * tuiLayout.h (tui_set_layout): Declare.
764 (tui_vSetLayoutTo): Remove.
765 (tui_vAddWinToLayout): Remove.
766 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
767 (_tuiToggleLayout_command): Remove.
768 (_tuiToggleSplitLayout_command): Remove.
769 (_tuiLayout_command): Remove.
770 (tui_vSetLayoutTo): Remove.
771 (tui_vAddWinToLayout): Remove.
773 * tuiDataWin.h (tui_vCheckDataValues): Remove.
774 * tuiDataWin.c (tui_vCheckDataValues): Remove.
776 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
778 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
779 (_parseScrollingArgs): Use xstrdup.
780 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
781 (_tuiScrollBackward_command): Likewise.
782 (_tuiScrollLeft_command): Likewise.
783 (_tuiScrollRight_command): Likewise.
784 (_tuiSetFocus): Likewise.
785 (_tuiSetFocus_command): Likewise.
786 (_tuiRefreshAll_command): Likewise.
787 (_tuiSetTabWidth_command): Likewise.
788 (_tuiSetWinHeight): Likewise.
789 (_tuiSetWinHeight_command): Likewise.
790 (_tuiXDBsetWinHeight): Likewise.
791 (_tui_vSetFocus): Remove.
792 (_tui_vSetWinHeight): Remove.
793 (_tui_vXDBsetWinHeight): Remove.
795 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
797 * tuiCommand.h: Remove unused declarations.
798 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
799 (tuiIncrCommandCharCountBy): Remove.
800 (tuiDecrCommandCharCountBy): Remove.
801 (tuiSetCommandCharCountTo): Remove.
802 (tuiClearCommandCharCount): Remove.
804 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
806 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
807 create the tui class help.
808 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
809 * tuiRegs.c (_initialize_tuiRegs): Likewise.
810 * tuiStack.c (_initialize_tuiStack): Likewise.
812 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
814 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
815 (tuiVerticalDisassemScroll): Likewise.
816 (tuiShowDisassemAndUpdateSource): Check for null symtab to
819 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
821 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
822 (tuiRead, tui_vread): Remove.
824 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
825 (vcatch_errors, _tui_vDo): Remove.
826 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
828 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
829 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
830 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
831 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
832 (_tuiLayout_command): Call tui_set_layout.
834 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
835 (_tuiScrollRegsForward_command): Likewise.
836 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
837 (_tuiShowGeneral_command): Likewise.
838 (_tuiShowSpecial_command): Likewise.
839 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
840 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
841 (_tuiScrollForward_command): Call tui_scroll.
842 (_tuiScrollBackward_command): Likewise.
843 (_tuiScrollLeft_command): Likewise.
844 (_tuiScrollRight_command): Likewise.
845 (_tuiSetFocus_command): Call _tuiSetFocus.
846 (_tuiRefreshAll_command): Call tuiRefreshAll.
847 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
848 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
849 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
851 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
853 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
854 (TuiLineOrAddress): Likewise.
855 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
857 (tuiSetDisassemContent): Likewise.
858 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
859 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
860 (tuiSetLayout): Likewise.
861 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
862 (tuiUpdateSourceWindowsWithAddr): Likewise.
863 (tuiUpdateSourceWindowsWithLine): Likewise.
864 (tuiSetHasBreakAt): Likewise.
865 * tuiStack.c (tuiSetLocatorInfo): Likewise.
866 (tuiSwitchFilename): Likewise.
867 (tuiUpdateLocatorInfoFromFrame): Likewise.
868 (tuiSetLocatorContent): Likewise.
869 (tuiShowFrameInfo): Likewise.
870 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
871 * tuiSourceWin.h: Likewise.
872 * tuiStack.h: Likewise.
874 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
876 * tuiWin.c: Add missing includes.
877 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
878 * tuiLayout.c: Add missing includes.
879 (_initAndMakeWin): Don't put curses in echo mode.
880 (_extractDisplayStartAddr): Fix calls to find_line_pc.
881 (_tuiLayout_command): Missing ',' in warning call.
882 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
884 (tuiSetHasBreakAt): Check for null source file.
886 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
888 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
889 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
890 * tui.c (_tui_vToggle_command): Likewise.
892 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
894 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
896 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
898 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
899 each register window.
900 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
901 of the register to check.
902 (_tuiRegValueHasChanged): Likewise.
903 (_tuiRegisterName): Use REGISTER_NAME.
904 (tui_restore_gdbout): New function.
905 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
907 (START_SPECIAL_REGS): Define.
908 (_tuiGetRegisterRawValue): Use get_saved_register.
909 (_tuiDisplayRegister): Fix clearing of register window.
911 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
913 * tui-file.h (fputs_unfiltered_hook): Remove.
914 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
915 (tui_file_fputs): Likewise; simplify
917 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
919 * tuiStack.c: Add missing includes.
920 (tuiShowFrameInfo): Don't crash when there is no symbol table
921 associated with the pc.
922 * tuiSource.c (_hasBreak): Check for null source file.
923 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
924 (_tuiSetFocus): Check for null dataWin.
925 * tuiGeneralWin.c (refreshAll): Check for null list[type].
927 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
929 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
930 to disassemble in the curses window.
932 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
934 * tui.h: Cleanup to avoid inclusion of curses includes.
935 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
936 * tuiData.h: To here; include curses includes here.
937 (setTermHeightTo): Rename of setTermHeight to follow reality.
938 (setTermWidthTo): Likewise with setTermWidth.
940 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
942 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
943 tuiIO.c, tuiData.c: Likewise.
944 tuiDataWin.c, tuiDisassem.c: Likewise.
945 tuiGeneralWin.c, tuiLayout.c: Likewise.
946 tuiRegs.c, tuiSource.c: Likewise.
947 tuiSouceWin.c, tuiStack.c: Likewise.
949 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
951 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
952 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
953 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
954 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
955 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
956 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
958 2001-03-08 Andrew Cagney <ac131313@redhat.com>
960 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
962 2001-03-06 Kevin Buettner <kevinb@redhat.com>
964 * tui-file.h: Update/correct copyright notice.
966 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
968 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
971 2000-12-14 Kevin Buettner <kevinb@redhat.com>
973 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
974 of free() with xfree().
976 2000-06-22 Kevin Buettner <kevinb@redhat.com>
978 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
980 2000-06-20 Kevin Buettner <kevinb@redhat.com>
982 * tuiLayout.c: Eliminate use of PARAMS from this file.
984 2000-06-17 Kevin Buettner <kevinb@redhat.com>
986 * tuiIO.c: Eliminate use of PARAMS from this file.
988 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
990 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
992 (tui_file_fputs): Pass ``file'' and not ``stream'' to
993 tui_file_adjust_strbuf.
995 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
997 * tui.h: Include <ncurses.h> when available.
998 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
1000 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
1002 * Makefile.in: Delete.
1004 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
1006 * Makefile.in (distclean, maintainer-clean, realclean,
1007 mostlyclean): New targets.
1009 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
1011 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
1012 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
1013 ui-file / ``struct ui_file''.
1015 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
1017 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
1018 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
1019 tui_file_rewind, tui_file_put, tui_file_fputs,
1020 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
1021 fputs_unfiltered_hook): Move to here from ../utils.c
1023 * tui-file.h, tui-file.c: New files.
1025 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1027 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
1028 (tuiSetDisassemContent): Replace gdb_file_init_astring with
1029 tui_sfileopen. Replace gdb_file_get_strbuf with
1030 tui_file_get_strbuf.
1032 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1034 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
1035 (tuiSetDisassemContent): Repace gdb_file_deallocate with
1036 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
1038 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
1040 * tuiSource.c: Include "source.h".
1041 (open_source_file, find_source_lines): Delete declarations.
1043 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
1045 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
1048 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
1050 The following changes were made by Jim Blandy <jimb@cygnus.com>,
1051 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
1052 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
1053 Taylor <taylor@cygnus.com>, as part of the project to merge in
1054 changes originally made by HP; HP did not create ChangeLog
1057 * Makefile.in: New file; we're merging HP's changes into GDB, and
1058 we've moved the TUI files into a subdirectory, so we need a new
1062 #include <term.h>, if we have it, to get declarations for
1063 the termcap functions on Solaris.
1064 (tgoto): Add external K&R declaration for this; Solaris doesn't
1065 bother to actually declare it in their header files.
1066 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
1067 we'd rather use the USG mechanisms than the Berkeley mechanisms
1068 (TIOCGETC is one of the Berkeley terminal control ioctls).
1069 Apologies if this causes trouble later; this should all be handled
1071 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
1073 (tuiFree): replace safe_free with free.
1074 (strcat_to_buf): new function, copied from utils.c.
1075 (tuiInit): Add ignored `argv0' argument, to match the type that
1076 init_ui_hook expects; updated declaration. Call the
1077 initialize_tui_files function constructed above. Initialize
1079 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
1080 element of the locator window's content allocated. This seems
1081 wrong, because it must have been initialized somehow in HP's
1082 sources, and we should do it the same way now. But we do get
1083 further before it segfaults. [Postscript: HP didn't bother to
1084 initialize it; they compile
1085 (va_catch_errors, vcatch_errors): Functions moved here from
1086 ../utils.c in HP's sources. They're not used anywhere else.
1087 (xdb_style): Delete this variable, and remove all references to
1088 it. It's always true.
1089 (tuiInit, _tui_vDo): References removed.
1091 * tui.h: Add prototypes.
1092 Don't #include "gendefs.h"; it's only used in the TUI.
1093 Integrate its contents into this file:
1094 #include <ansidecl.h> here.
1095 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
1097 * tuiCommand.c: #include "defs.h", so we get the appropriate
1098 definition of GDB_FILE.
1101 (freeWindow): replace safe_free with free.
1102 (tui_version): don't define it here; it's defined in main.c now.
1105 (tuiSetDisassemContent): Call strcat_address_numeric instead of
1106 strcat_address. Simplify the control structure. Use predefined
1107 GDB function to print asm inst address. Use GDB_FILE to collect
1108 output into buffers.
1111 (tgoto): Add external K&R declaration for this here too.
1112 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
1113 (tuiPuts_unfiltered): change FILE to GDB_FILE.
1114 (tui_tputs): fix prototype for 3rd argument.
1116 * tuiIO.h (tuiPuts_unfiltered): change declaration.
1119 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
1120 that decides which registers to display (i.e. single precision
1121 float, double precision float, general, special). Previously,
1122 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
1123 compiling with -z poses a problem. When the first layout command
1124 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
1127 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
1129 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
1130 <stdarg.h>. No idea exactly what's conflicting with what, but the
1132 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
1133 object, calls pa_do_strcat_registers_info, copies the register
1134 info into a buffer, and deallocates the GDB_FILE object. Remove
1135 some code that is not executed. Also, call to
1136 pa_do_strcat_registers_info has an additional parameter,
1137 precision. This code requires some new per-target functions that
1138 we don't want to merge. Dyke it out, with #ifdef
1139 TUI_EXTENDED_FORMATTERS.
1140 (_tuiSetSpecialRegsContent): this function was ifdefed out.
1142 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
1144 (IS_64BIT): Just define this to be zero; we're not merging in the
1146 (tuiShowRegisters): Comment out all references to the "special"
1147 regs; we don't have a distinction between the "special" and
1148 "non-special" regs in most of our machine descriptions. This code
1149 is PA-specific in other ways as well, and needs to be redesigned
1150 to be portable to other processors.
1152 * tuiWin.c: #include <string.h>, to get a declaration for
1155 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
1156 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
1157 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
1158 bool to int throughout. Re-indented, GNU style.
1160 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
1161 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
1162 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
1163 Changed bool to int throughout.