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