1 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
3 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
6 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
8 * tui-out.c (tui_out_new): Clear start_of_line.
9 * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
10 to update the current source line.
12 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
14 * tui-hooks.c (tui_detach_hook): New hook to know when a process dies.
15 (tui_install_hooks): Install it.
16 (tui_remove_hooks): Remove it.
18 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
20 * tuiData.h (FILE_PREFIX): Don't define.
21 (blankStr, locationStr, breakStr): Don't declare.
22 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise.
23 (displayableWinContentOf, displayableWinContentAt): Likewise.
24 (winElementHeight, winByName, freeAllWindows): Likewise.
26 * tuiData.c (blankStr, locationStr, breakStr): Remove.
27 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
28 (displayableWinContentOf, displayableWinContentAt): Remove.
29 (winElementHeight, winByName, freeAllWindows): Remove.
31 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
33 * tuiStack.c (tui_make_status_line): New function to create the
35 (tuiShowLocatorContent): Use it instead of displayableWinContentAt.
36 * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
37 (PC_PREFIX): Use upper case.
38 (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
39 (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
41 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
43 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.
44 (tuiClearAllExecInfosContent): Likewise.
45 (tuiEraseAllExecInfosContent): Ditto.
46 (tuiUpdateSourceWindowsFromLocator): Ditto.
47 * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove.
48 * tui.h (tui_vCheckDataValues): Don't declare.
49 (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise.
50 (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto.
51 (tui_vShowFrameInfo): Ditto.
53 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
55 * tui.c (tui_commands): Table of single key commands.
56 (tui_rl_command_key): New function to execute gdb command.
57 (tui_rl_command_mode): New function to temporarily leave SingleKey.
58 (tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
59 (tui_rl_startup_hook): New function to avoid prompt display by
61 (tui_set_key_mode): New function to set the key mode and install
63 (tui_initialize_readline): Create TUI SingleKey readline map.
64 (tui_enable): Install rl_startup_hook.
65 (tui_disable): Remove it.
66 * tui.h (enum tui_key_mode): Declare.
67 (tui_set_key_mode, tui_current_key_mode): Declare.
68 * tuiIO.c (tui_redisplay_readline): Don't display the prompt in
70 * tuiIO.h (tui_redisplay_readline): Declare.
72 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
74 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
77 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
79 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
81 (tuiShowSource): Fix comment indentation.
82 (tuiSourceIsDisplayed): Likewise.
83 (tuiVerticalSourceScroll): Likewise.
85 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
87 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
88 (tui_update_breakpoint_info): Declare.
89 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
91 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
92 information using tui_update_breakpoint_info.
93 (tui_update_all_breakpoint_info): New function to refresh all
95 (tui_update_breakpoint_info): New function to recompute the status
96 of exec info window from breakpoints.
97 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
98 (tuiSetExecInfoContent): Use the exec info flags computed by
99 tui_update_breakpoint_info to display a short status about breakpoints.
101 * tuiData.h (TuiExecInfoContent): New for exec info string.
102 (TuiWhichElement): Use it.
103 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
104 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
105 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
106 (TUI_EXECINFO_SIZE): Likewise.
107 * tuiData.c (initContentElement): Clear exec info string.
109 * tui-hooks.c (get_breakpoint): Remove.
110 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
111 (tui_event_delete_breakpoint): Likewise.
112 (tui_event_modify_breakpoint): Likewise.
114 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
116 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
117 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
118 tui_find_disassembly_address to find the starting address of
121 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
123 * tuiDisassem.c (tui_disassemble): New function to disassemble
124 several lines in a buffer.
125 (tui_find_disassembly_address): New function to search backward
126 or forward a disassembly line.
127 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
128 content and format it in the window.
129 (tuiShowDisassemAndUpdateSource): Remove unused locals.
130 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
131 obtain the address to disassemble for the scrolling.
132 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
133 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
135 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
137 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
139 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
142 * tui.c (tui_disable): Update gdb's knowledge of its terminal
143 using target_terminal_save_ours.
144 (tui_enable): Likewise.
146 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
148 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
149 (tui_rl_change_windows): Renames tui_change_windows.
150 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
151 (tui_initialize_readline): Update.
153 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
155 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
158 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
160 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
161 to find symbol address.
163 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
165 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
166 and use tuiGetBeginAsmAddress.
167 * tuiSourceWin.h (tui_display_main): Declare.
168 * tui.h (tuiDisplayMainFunction): Remove.
169 * tui-hooks.c (tui_new_objfile_hook): Update.
171 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
173 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
174 (tuiShowSourceAsIs): Don't declare.
176 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
178 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
181 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
183 * tuiStack.c (tuiSetLocatorContent): Remove.
184 (tuiUpdateLocatorInfoFromFrame): Remove.
185 (tui_set_locator_info): Allocate the content buffer if necessary.
186 (tui_set_locator_filename): Call tui_set_locator_info directly.
187 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
190 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
192 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
193 tuiUpdateLocatorFilename.
194 * tuiStack.c (tuiSetLocatorInfo): Make it static.
195 (tuiSetLocatorContent): Likewise.
196 (tuiUpdateLocatorInfoFromFrame): Likewise.
197 (tuiSwitchFilename): Remove.
198 (tui_set_locator_filename): New function
199 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
200 use tui_set_locator_filename to record the filename.
201 (tuiUpdateLocatorFilename): Likewise.
202 (tuiUpdateLocatorInfoFromFrame): Update.
203 (tuiSetLocatorContent): Likewise.
204 * tuiStack.h (tuiClearLocatorContent): Don't declare.
205 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
206 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
208 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
210 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
212 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
213 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
214 * tuiData.h (TuiSourceInfo): Add filename member.
215 (TuiGenWinInfo): Add title member.
216 * tuiData.c (initGenericPart): Clear title.
217 (freeWindow): Free title and filename; remove unused locals.
218 (initWinInfo): Clear filename.
219 (tuiDelWindow): Free it; remove unused locals.
221 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
223 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
224 (tuiUpdateLocatorDisplay): Likewise.
225 * tuiStack.c (tuiGetLocatorFilename): Remove.
226 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
227 instead of tuiUpdateLocatorDisplay.
228 (tuiUpdateLocatorDisplay): Remove.
230 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
232 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
233 * tuiStack.c (tuiClearLocatorDisplay): Remove.
234 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
235 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
237 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
239 * tuiStack.c (tui_get_function_from_frame): Rename from
240 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
242 (tuiUpdateLocatorInfoFromFrame): Update.
244 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
246 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
247 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
248 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
249 (_tuiSetFloatRegsContent): Likewise.
250 (_tuiRegisterName): Return a const char*.
251 * tuiData.h (_TuiDataElement): Use const char* for name.
253 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
255 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
256 (tuiShowAllExecInfosContent): Likewise.
257 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
258 (tuiShowAllExecInfosContent): Remove.
259 (tuiAllocSourceBuffer): Remove unused locals.
261 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
263 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
264 to follow other gdb's command names; use execute_command; cleanup.
265 (_initialize_tuiStack): Update.
267 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
269 * tuiWin.h (tui_update_gdb_sizes): Declare.
271 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
273 * tui.c (strcat_to_buf): Use const char* for source item.
274 (tui_enable): Update the windows if there is a selected frame.
275 * tui.h (strcat_to_buf): Update prototype.
276 (strcat_to_buf_with_fmt): Remove.
278 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
280 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
281 is the size of command window.
282 (tuiResizeAll): Call it instead of init_page_info.
283 * tui.c (tui_enable): Call it to resize to TUI command window.
284 (tui_disable): Likewise for plain screen.
286 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
288 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
289 use tuiShowFrameInfo instead of tuiSetLocatorContent.
290 * tuiLayout.h (showLayout): Remove.
291 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
292 (_showSourceDisassemCommand): Likewise.
293 (showLayout): Make it static.
294 (lastLayout): Remove.
296 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
298 * tuiSourceWin.c (tui_show_source_line): New function.
299 (tuiShowSourceContent): Call it and avoid clearing the window before
301 (tuiClearAllSourceWinsContent): Remove.
302 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
303 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
304 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
305 (tuiRefreshAll): Don't clear the window.
306 (_makeVisibleWithNewHeight): Don't clear locator line.
307 (tuiResizeAll): Remove unused locals.
308 (_tuiAdjustWinHeights): Likewise.
309 (_makeInvisibleAndSetNewHeight): Likewise.
310 (_newHeightOk): Likewise.
311 * tuiLayout.c (showLayout): Don't clear source windows.
312 (tuiSetLayout): Don't clear the window.
313 (_initAndMakeWin): Likewise for status line.
314 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
315 (makeWindow): Likewise.
316 (tuiClearWin): Remove.
317 * tuiGeneralWin.h (tuiClearWin): Don't declare.
319 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
321 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
322 (tuiAsmWinIsDisplayed): Remove.
323 (tuiShowAllSourceWinsContent): Remove.
324 (tuiUpdateOnEnd): Remove.
325 * tuiGeneralWin.c (scrollWinForward): Remove.
326 (scrollWinBackward): Remove.
327 (_winResize): Don't declare.
328 * tui.h (tuiUpdateOnEnd): Don't declare.
329 (vcatch_errors, va_catch_errors): Likewise.
330 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
331 (tuiShowAllSourceWinsContent): Likewise.
332 * tuiGeneralWin.h (scrollWinForward): Likewise.
333 (scrollWinBackward): Likewise.
335 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
337 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
339 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
342 * tui.c: Disable <termio.h> include.
344 2002-03-15 Andrew Cagney <ac131313@redhat.com>
346 * tui-out.c (XMALLOC): Delete macro. Update copyright.
348 2002-03-01 Andrew Cagney <ac131313@redhat.com>
350 * tui-hooks.c: Add FIXME to explain true/false problem. Update
352 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
353 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
354 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
357 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
358 * tui-hooks.c: Include <curses.h> before "bfd.h".
360 * tuiCommand.c: Likewise.
361 * tuiData.c: Likewise.
362 * tuiDataWin.c: Likewise.
363 * tuiDisassem.c: Likewise.
364 * tuiGeneralWin.c: Likewise.
366 * tuiLayout.c: Likewise.
367 * tuiRegs.c: Likewise.
368 * tuiSource.c: Likewise.
369 * tuiSourceWin.c: Likewise.
370 * tuiStack.c: Likewise.
371 * tuiWin.c: Likewise.
373 2002-02-01 Andrew Cagney <ac131313@redhat.com>
375 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
377 2001-10-20 Andrew Cagney <ac131313@redhat.com>
379 * tuiDisassem.c: Include "value.h".
380 * tuiSourceWin.c: Ditto.
382 2001-09-28 Tom Tromey <tromey@redhat.com>
384 * tuiLayout.h (tui_set_layout): Don't declare.
385 * tui.h (tui_vAddWinToLayout): Don't declare.
386 (tui_vSetLayoutTo): Likewise.
387 (tui_set_layout): Declare.
389 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
391 * tuiSourceWin.c: Use disp_del instead of del.
393 * tuiSource.c: Use disp_del instead of del.
395 * tuiDisassem.c: Use disp_del instead of del.
397 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
399 * tui.c (tui_enable): Remove call to terminal_save_ours().
400 (tui_disable): Likewise.
402 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
404 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
405 set/show configuration variables.
406 (show_tui_cmd): New function.
407 (set_tui_cmd): New function.
409 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
411 * tui-hooks.c: New file, gdb hooks for tui.
412 * tui-out.c: New file, image copied from cli-out.c.
413 (tui_field_int): Identify "line" fields and keep track of them.
414 (tui_field_string): Likewise for "file".
415 (tui_out_new): Use flags = 0 to avoid printing the sources.
417 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
419 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
420 leave it in the command window.
421 (tui_redisplay_readline): Save cursor position to restore the
422 cursor after we go back from background.
423 * tuiData.h (TuiCommandInfo): Add start_line member.
425 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
427 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
428 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
429 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
431 * tui.c (tui_show_source): New function.
432 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
433 (tui_switch_mode): Prep or deprep readline terminal;
434 make sure the \n we return does not redo the last command.
435 * tui.h (tui_show_source): Declare.
436 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
437 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
439 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
441 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
442 if SIGCONT is defined.
443 (tui_cont_sig): New function when SIGCONT is defined.
444 (tui_setup_io): Save tty setting to restore by SIGCONT.
446 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
448 * tui.h (tui_show_assembly): Declare.
449 (tui_is_window_visible): Declare.
450 * tui.c (tui_show_assembly): New function.
451 (tui_is_window_visible): New function.
452 (tui_get_command_dimension): New function.
454 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
456 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
458 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
460 * tui-file.c (tui_file_fputs): Use tui_puts.
462 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
464 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
465 * tuiStack.h (tuiGetLocatorFilename): Declare.
466 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
467 * tuiData.h (addToSourceWindows): Declare.
469 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
471 * tui.c (tui_change_windows): New function.
472 (tui_delete_other_windows): New function.
473 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
474 (tui_enable): Enable the keypad; call tui_update_variables.
475 (strcat_to_buf_with_fmt): Remove.
477 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
479 * tui.h: Remove old declarations, add the new ones.
480 * tui.c (tui_switch_mode): New function.
481 (tui_initialize_readline): New function.
482 (tui_enable): New function.
483 (tui_disable): New function.
484 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
485 (tui_vSelectSourceSymtab): Remove.
486 (tuiInitWindows): Remove.
487 (_initialize_tui): Remove.
488 (_tuiReset): Keep but put arround #if 0.
490 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
492 * tuiIO.h: Remove old declarations and add the new ones.
493 * tuiIO.c: New management for curses and gdb terminal interactions.
495 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
496 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
497 (tui_owns_terminal): Remove.
498 (tui_redisplay_readline): New function.
499 (tui_puts): New function.
500 (tui_prep_terminal): New function.
501 (tui_deprep_terminal): New function.
502 (tui_getc): Rename of tuiGetc, simplify and fix.
503 (tui_setup_io): New function.
504 (tui_initialize_io): New function.
506 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
508 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
509 (_tuiRegisterFormat): Reduce size of format result.
511 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
513 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
514 * tuiWin.h: Declare the new variables.
515 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
516 (tui_update_variables): New function.
517 (translate): New function.
518 (tui_border_kind_enums, tui_border_mode_enums): New tables.
519 (tui_border_mode_translate): New table.
520 (tui_border_kind_translate_*): New tables.
521 (tui_active_border_mode): New variables.
522 (tui_border_*): New variables.
524 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
526 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
527 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
529 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
530 (tui_vUpdateLocatorFilename): Remove.
531 * tuiStack.h: Update prototypes.
533 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
534 (tuiLineIsDisplayed): Split for address and line.
535 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
536 (tuiUpdateSourceWindowAsIs): Likewise.
537 (tuiUpdateSourceWindowsWithAddr): Likewise.
538 (tuiUpdateSourceWindowsWithLine): Likewise.
539 (tuiHorizontalSourceScroll): Likewise.
540 (tuiSetIsExecPointAt): Likewise.
541 (tuiUpdateOnEnd): Likewise.
542 * tuiSourceWin.h: Update prototypes.
544 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
545 (tuiShowSource): Likewise.
546 (tuiVerticalSourceScroll): Likewise.
547 * tuiSource.h (tuiShowSource): Update prototype.
549 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
550 (tuiShowDisassem): Use TuiLineOrAddress type.
551 (tuiShowDisassemAndUpdateSource): Likewise.
552 (tuiVerticalDisassemScroll): Likewise.
553 (tuiShowDisassemAsIs): Remove.
554 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
556 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
557 (clearWinDetail): Likewise.
558 (displayableWinContentOf): Fix address conversion.
559 (tuiNextWin): Fix crash when the window is not yet created.
560 (partialWinByName): Likewise.
562 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
564 * tuiSourceWin.h: Remove unused declarations.
565 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
566 (tui_vUpdateSourceWindowsWithLine): Remove.
567 (tui_vAllSetHasBreakAt): Remove.
569 * tuiLayout.h (tui_set_layout): Declare.
570 (tui_vSetLayoutTo): Remove.
571 (tui_vAddWinToLayout): Remove.
572 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
573 (_tuiToggleLayout_command): Remove.
574 (_tuiToggleSplitLayout_command): Remove.
575 (_tuiLayout_command): Remove.
576 (tui_vSetLayoutTo): Remove.
577 (tui_vAddWinToLayout): Remove.
579 * tuiDataWin.h (tui_vCheckDataValues): Remove.
580 * tuiDataWin.c (tui_vCheckDataValues): Remove.
582 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
584 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
585 (_parseScrollingArgs): Use xstrdup.
586 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
587 (_tuiScrollBackward_command): Likewise.
588 (_tuiScrollLeft_command): Likewise.
589 (_tuiScrollRight_command): Likewise.
590 (_tuiSetFocus): Likewise.
591 (_tuiSetFocus_command): Likewise.
592 (_tuiRefreshAll_command): Likewise.
593 (_tuiSetTabWidth_command): Likewise.
594 (_tuiSetWinHeight): Likewise.
595 (_tuiSetWinHeight_command): Likewise.
596 (_tuiXDBsetWinHeight): Likewise.
597 (_tui_vSetFocus): Remove.
598 (_tui_vSetWinHeight): Remove.
599 (_tui_vXDBsetWinHeight): Remove.
601 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
603 * tuiCommand.h: Remove unused declarations.
604 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
605 (tuiIncrCommandCharCountBy): Remove.
606 (tuiDecrCommandCharCountBy): Remove.
607 (tuiSetCommandCharCountTo): Remove.
608 (tuiClearCommandCharCount): Remove.
610 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
612 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
613 create the tui class help.
614 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
615 * tuiRegs.c (_initialize_tuiRegs): Likewise.
616 * tuiStack.c (_initialize_tuiStack): Likewise.
618 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
620 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
621 (tuiVerticalDisassemScroll): Likewise.
622 (tuiShowDisassemAndUpdateSource): Check for null symtab to
625 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
627 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
628 (tuiRead, tui_vread): Remove.
630 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
631 (vcatch_errors, _tui_vDo): Remove.
632 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
634 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
635 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
636 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
637 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
638 (_tuiLayout_command): Call tui_set_layout.
640 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
641 (_tuiScrollRegsForward_command): Likewise.
642 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
643 (_tuiShowGeneral_command): Likewise.
644 (_tuiShowSpecial_command): Likewise.
645 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
646 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
647 (_tuiScrollForward_command): Call tui_scroll.
648 (_tuiScrollBackward_command): Likewise.
649 (_tuiScrollLeft_command): Likewise.
650 (_tuiScrollRight_command): Likewise.
651 (_tuiSetFocus_command): Call _tuiSetFocus.
652 (_tuiRefreshAll_command): Call tuiRefreshAll.
653 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
654 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
655 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
657 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
659 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
660 (TuiLineOrAddress): Likewise.
661 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
663 (tuiSetDisassemContent): Likewise.
664 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
665 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
666 (tuiSetLayout): Likewise.
667 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
668 (tuiUpdateSourceWindowsWithAddr): Likewise.
669 (tuiUpdateSourceWindowsWithLine): Likewise.
670 (tuiSetHasBreakAt): Likewise.
671 * tuiStack.c (tuiSetLocatorInfo): Likewise.
672 (tuiSwitchFilename): Likewise.
673 (tuiUpdateLocatorInfoFromFrame): Likewise.
674 (tuiSetLocatorContent): Likewise.
675 (tuiShowFrameInfo): Likewise.
676 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
677 * tuiSourceWin.h: Likewise.
678 * tuiStack.h: Likewise.
680 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
682 * tuiWin.c: Add missing includes.
683 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
684 * tuiLayout.c: Add missing includes.
685 (_initAndMakeWin): Don't put curses in echo mode.
686 (_extractDisplayStartAddr): Fix calls to find_line_pc.
687 (_tuiLayout_command): Missing ',' in warning call.
688 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
690 (tuiSetHasBreakAt): Check for null source file.
692 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
694 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
695 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
696 * tui.c (_tui_vToggle_command): Likewise.
698 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
700 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
702 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
704 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
705 each register window.
706 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
707 of the register to check.
708 (_tuiRegValueHasChanged): Likewise.
709 (_tuiRegisterName): Use REGISTER_NAME.
710 (tui_restore_gdbout): New function.
711 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
713 (START_SPECIAL_REGS): Define.
714 (_tuiGetRegisterRawValue): Use get_saved_register.
715 (_tuiDisplayRegister): Fix clearing of register window.
717 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
719 * tui-file.h (fputs_unfiltered_hook): Remove.
720 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
721 (tui_file_fputs): Likewise; simplify
723 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
725 * tuiStack.c: Add missing includes.
726 (tuiShowFrameInfo): Don't crash when there is no symbol table
727 associated with the pc.
728 * tuiSource.c (_hasBreak): Check for null source file.
729 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
730 (_tuiSetFocus): Check for null dataWin.
731 * tuiGeneralWin.c (refreshAll): Check for null list[type].
733 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
735 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
736 to disassemble in the curses window.
738 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
740 * tui.h: Cleanup to avoid inclusion of curses includes.
741 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
742 * tuiData.h: To here; include curses includes here.
743 (setTermHeightTo): Rename of setTermHeight to follow reality.
744 (setTermWidthTo): Likewise with setTermWidth.
746 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
748 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
749 tuiIO.c, tuiData.c: Likewise.
750 tuiDataWin.c, tuiDisassem.c: Likewise.
751 tuiGeneralWin.c, tuiLayout.c: Likewise.
752 tuiRegs.c, tuiSource.c: Likewise.
753 tuiSouceWin.c, tuiStack.c: Likewise.
755 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
757 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
758 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
759 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
760 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
761 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
762 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
764 2001-03-08 Andrew Cagney <ac131313@redhat.com>
766 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
768 2001-03-06 Kevin Buettner <kevinb@redhat.com>
770 * tui-file.h: Update/correct copyright notice.
772 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
774 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
777 2000-12-14 Kevin Buettner <kevinb@redhat.com>
779 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
780 of free() with xfree().
782 2000-06-22 Kevin Buettner <kevinb@redhat.com>
784 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
786 2000-06-20 Kevin Buettner <kevinb@redhat.com>
788 * tuiLayout.c: Eliminate use of PARAMS from this file.
790 2000-06-17 Kevin Buettner <kevinb@redhat.com>
792 * tuiIO.c: Eliminate use of PARAMS from this file.
794 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
796 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
798 (tui_file_fputs): Pass ``file'' and not ``stream'' to
799 tui_file_adjust_strbuf.
801 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
803 * tui.h: Include <ncurses.h> when available.
804 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
806 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
808 * Makefile.in: Delete.
810 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
812 * Makefile.in (distclean, maintainer-clean, realclean,
813 mostlyclean): New targets.
815 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
817 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
818 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
819 ui-file / ``struct ui_file''.
821 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
823 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
824 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
825 tui_file_rewind, tui_file_put, tui_file_fputs,
826 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
827 fputs_unfiltered_hook): Move to here from ../utils.c
829 * tui-file.h, tui-file.c: New files.
831 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
833 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
834 (tuiSetDisassemContent): Replace gdb_file_init_astring with
835 tui_sfileopen. Replace gdb_file_get_strbuf with
838 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
840 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
841 (tuiSetDisassemContent): Repace gdb_file_deallocate with
842 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
844 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
846 * tuiSource.c: Include "source.h".
847 (open_source_file, find_source_lines): Delete declarations.
849 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
851 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
854 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
856 The following changes were made by Jim Blandy <jimb@cygnus.com>,
857 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
858 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
859 Taylor <taylor@cygnus.com>, as part of the project to merge in
860 changes originally made by HP; HP did not create ChangeLog
863 * Makefile.in: New file; we're merging HP's changes into GDB, and
864 we've moved the TUI files into a subdirectory, so we need a new
868 #include <term.h>, if we have it, to get declarations for
869 the termcap functions on Solaris.
870 (tgoto): Add external K&R declaration for this; Solaris doesn't
871 bother to actually declare it in their header files.
872 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
873 we'd rather use the USG mechanisms than the Berkeley mechanisms
874 (TIOCGETC is one of the Berkeley terminal control ioctls).
875 Apologies if this causes trouble later; this should all be handled
877 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
879 (tuiFree): replace safe_free with free.
880 (strcat_to_buf): new function, copied from utils.c.
881 (tuiInit): Add ignored `argv0' argument, to match the type that
882 init_ui_hook expects; updated declaration. Call the
883 initialize_tui_files function constructed above. Initialize
885 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
886 element of the locator window's content allocated. This seems
887 wrong, because it must have been initialized somehow in HP's
888 sources, and we should do it the same way now. But we do get
889 further before it segfaults. [Postscript: HP didn't bother to
890 initialize it; they compile
891 (va_catch_errors, vcatch_errors): Functions moved here from
892 ../utils.c in HP's sources. They're not used anywhere else.
893 (xdb_style): Delete this variable, and remove all references to
894 it. It's always true.
895 (tuiInit, _tui_vDo): References removed.
897 * tui.h: Add prototypes.
898 Don't #include "gendefs.h"; it's only used in the TUI.
899 Integrate its contents into this file:
900 #include <ansidecl.h> here.
901 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
903 * tuiCommand.c: #include "defs.h", so we get the appropriate
904 definition of GDB_FILE.
907 (freeWindow): replace safe_free with free.
908 (tui_version): don't define it here; it's defined in main.c now.
911 (tuiSetDisassemContent): Call strcat_address_numeric instead of
912 strcat_address. Simplify the control structure. Use predefined
913 GDB function to print asm inst address. Use GDB_FILE to collect
917 (tgoto): Add external K&R declaration for this here too.
918 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
919 (tuiPuts_unfiltered): change FILE to GDB_FILE.
920 (tui_tputs): fix prototype for 3rd argument.
922 * tuiIO.h (tuiPuts_unfiltered): change declaration.
925 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
926 that decides which registers to display (i.e. single precision
927 float, double precision float, general, special). Previously,
928 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
929 compiling with -z poses a problem. When the first layout command
930 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
933 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
935 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
936 <stdarg.h>. No idea exactly what's conflicting with what, but the
938 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
939 object, calls pa_do_strcat_registers_info, copies the register
940 info into a buffer, and deallocates the GDB_FILE object. Remove
941 some code that is not executed. Also, call to
942 pa_do_strcat_registers_info has an additional parameter,
943 precision. This code requires some new per-target functions that
944 we don't want to merge. Dyke it out, with #ifdef
945 TUI_EXTENDED_FORMATTERS.
946 (_tuiSetSpecialRegsContent): this function was ifdefed out.
948 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
950 (IS_64BIT): Just define this to be zero; we're not merging in the
952 (tuiShowRegisters): Comment out all references to the "special"
953 regs; we don't have a distinction between the "special" and
954 "non-special" regs in most of our machine descriptions. This code
955 is PA-specific in other ways as well, and needs to be redesigned
956 to be portable to other processors.
958 * tuiWin.c: #include <string.h>, to get a declaration for
961 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
962 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
963 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
964 bool to int throughout. Re-indented, GNU style.
966 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
967 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
968 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
969 Changed bool to int throughout.