1 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
3 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
5 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
8 * tui.c (tui_disable): Update gdb's knowledge of its terminal
9 using target_terminal_save_ours.
10 (tui_enable): Likewise.
12 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
14 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
15 (tui_rl_change_windows): Renames tui_change_windows.
16 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
17 (tui_initialize_readline): Update.
19 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
21 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
24 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
26 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
27 to find symbol address.
29 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
31 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
32 and use tuiGetBeginAsmAddress.
33 * tuiSourceWin.h (tui_display_main): Declare.
34 * tui.h (tuiDisplayMainFunction): Remove.
35 * tui-hooks.c (tui_new_objfile_hook): Update.
37 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
39 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
40 (tuiShowSourceAsIs): Don't declare.
42 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
44 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
47 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
49 * tuiStack.c (tuiSetLocatorContent): Remove.
50 (tuiUpdateLocatorInfoFromFrame): Remove.
51 (tui_set_locator_info): Allocate the content buffer if necessary.
52 (tui_set_locator_filename): Call tui_set_locator_info directly.
53 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
56 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
58 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
59 tuiUpdateLocatorFilename.
60 * tuiStack.c (tuiSetLocatorInfo): Make it static.
61 (tuiSetLocatorContent): Likewise.
62 (tuiUpdateLocatorInfoFromFrame): Likewise.
63 (tuiSwitchFilename): Remove.
64 (tui_set_locator_filename): New function
65 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
66 use tui_set_locator_filename to record the filename.
67 (tuiUpdateLocatorFilename): Likewise.
68 (tuiUpdateLocatorInfoFromFrame): Update.
69 (tuiSetLocatorContent): Likewise.
70 * tuiStack.h (tuiClearLocatorContent): Don't declare.
71 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
72 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
74 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
76 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
78 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
79 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
80 * tuiData.h (TuiSourceInfo): Add filename member.
81 (TuiGenWinInfo): Add title member.
82 * tuiData.c (initGenericPart): Clear title.
83 (freeWindow): Free title and filename; remove unused locals.
84 (initWinInfo): Clear filename.
85 (tuiDelWindow): Free it; remove unused locals.
87 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
89 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
90 (tuiUpdateLocatorDisplay): Likewise.
91 * tuiStack.c (tuiGetLocatorFilename): Remove.
92 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
93 instead of tuiUpdateLocatorDisplay.
94 (tuiUpdateLocatorDisplay): Remove.
96 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
98 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
99 * tuiStack.c (tuiClearLocatorDisplay): Remove.
100 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
101 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
103 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
105 * tuiStack.c (tui_get_function_from_frame): Rename from
106 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
108 (tuiUpdateLocatorInfoFromFrame): Update.
110 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
112 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
113 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
114 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
115 (_tuiSetFloatRegsContent): Likewise.
116 (_tuiRegisterName): Return a const char*.
117 * tuiData.h (_TuiDataElement): Use const char* for name.
119 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
121 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
122 (tuiShowAllExecInfosContent): Likewise.
123 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
124 (tuiShowAllExecInfosContent): Remove.
125 (tuiAllocSourceBuffer): Remove unused locals.
127 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
129 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
130 to follow other gdb's command names; use execute_command; cleanup.
131 (_initialize_tuiStack): Update.
133 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
135 * tuiWin.h (tui_update_gdb_sizes): Declare.
137 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
139 * tui.c (strcat_to_buf): Use const char* for source item.
140 (tui_enable): Update the windows if there is a selected frame.
141 * tui.h (strcat_to_buf): Update prototype.
142 (strcat_to_buf_with_fmt): Remove.
144 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
146 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
147 is the size of command window.
148 (tuiResizeAll): Call it instead of init_page_info.
149 * tui.c (tui_enable): Call it to resize to TUI command window.
150 (tui_disable): Likewise for plain screen.
152 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
154 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
155 use tuiShowFrameInfo instead of tuiSetLocatorContent.
156 * tuiLayout.h (showLayout): Remove.
157 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
158 (_showSourceDisassemCommand): Likewise.
159 (showLayout): Make it static.
160 (lastLayout): Remove.
162 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
164 * tuiSourceWin.c (tui_show_source_line): New function.
165 (tuiShowSourceContent): Call it and avoid clearing the window before
167 (tuiClearAllSourceWinsContent): Remove.
168 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
169 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
170 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
171 (tuiRefreshAll): Don't clear the window.
172 (_makeVisibleWithNewHeight): Don't clear locator line.
173 (tuiResizeAll): Remove unused locals.
174 (_tuiAdjustWinHeights): Likewise.
175 (_makeInvisibleAndSetNewHeight): Likewise.
176 (_newHeightOk): Likewise.
177 * tuiLayout.c (showLayout): Don't clear source windows.
178 (tuiSetLayout): Don't clear the window.
179 (_initAndMakeWin): Likewise for status line.
180 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
181 (makeWindow): Likewise.
182 (tuiClearWin): Remove.
183 * tuiGeneralWin.h (tuiClearWin): Don't declare.
185 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
187 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
188 (tuiAsmWinIsDisplayed): Remove.
189 (tuiShowAllSourceWinsContent): Remove.
190 (tuiUpdateOnEnd): Remove.
191 * tuiGeneralWin.c (scrollWinForward): Remove.
192 (scrollWinBackward): Remove.
193 (_winResize): Don't declare.
194 * tui.h (tuiUpdateOnEnd): Don't declare.
195 (vcatch_errors, va_catch_errors): Likewise.
196 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
197 (tuiShowAllSourceWinsContent): Likewise.
198 * tuiGeneralWin.h (scrollWinForward): Likewise.
199 (scrollWinBackward): Likewise.
201 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
203 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
205 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
208 * tui.c: Disable <termio.h> include.
210 2002-03-15 Andrew Cagney <ac131313@redhat.com>
212 * tui-out.c (XMALLOC): Delete macro. Update copyright.
214 2002-03-01 Andrew Cagney <ac131313@redhat.com>
216 * tui-hooks.c: Add FIXME to explain true/false problem. Update
218 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
219 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
220 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
223 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
224 * tui-hooks.c: Include <curses.h> before "bfd.h".
226 * tuiCommand.c: Likewise.
227 * tuiData.c: Likewise.
228 * tuiDataWin.c: Likewise.
229 * tuiDisassem.c: Likewise.
230 * tuiGeneralWin.c: Likewise.
232 * tuiLayout.c: Likewise.
233 * tuiRegs.c: Likewise.
234 * tuiSource.c: Likewise.
235 * tuiSourceWin.c: Likewise.
236 * tuiStack.c: Likewise.
237 * tuiWin.c: Likewise.
239 2002-02-01 Andrew Cagney <ac131313@redhat.com>
241 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
243 2001-10-20 Andrew Cagney <ac131313@redhat.com>
245 * tuiDisassem.c: Include "value.h".
246 * tuiSourceWin.c: Ditto.
248 2001-09-28 Tom Tromey <tromey@redhat.com>
250 * tuiLayout.h (tui_set_layout): Don't declare.
251 * tui.h (tui_vAddWinToLayout): Don't declare.
252 (tui_vSetLayoutTo): Likewise.
253 (tui_set_layout): Declare.
255 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
257 * tuiSourceWin.c: Use disp_del instead of del.
259 * tuiSource.c: Use disp_del instead of del.
261 * tuiDisassem.c: Use disp_del instead of del.
263 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
265 * tui.c (tui_enable): Remove call to terminal_save_ours().
266 (tui_disable): Likewise.
268 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
270 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
271 set/show configuration variables.
272 (show_tui_cmd): New function.
273 (set_tui_cmd): New function.
275 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
277 * tui-hooks.c: New file, gdb hooks for tui.
278 * tui-out.c: New file, image copied from cli-out.c.
279 (tui_field_int): Identify "line" fields and keep track of them.
280 (tui_field_string): Likewise for "file".
281 (tui_out_new): Use flags = 0 to avoid printing the sources.
283 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
285 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
286 leave it in the command window.
287 (tui_redisplay_readline): Save cursor position to restore the
288 cursor after we go back from background.
289 * tuiData.h (TuiCommandInfo): Add start_line member.
291 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
293 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
294 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
295 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
297 * tui.c (tui_show_source): New function.
298 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
299 (tui_switch_mode): Prep or deprep readline terminal;
300 make sure the \n we return does not redo the last command.
301 * tui.h (tui_show_source): Declare.
302 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
303 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
305 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
307 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
308 if SIGCONT is defined.
309 (tui_cont_sig): New function when SIGCONT is defined.
310 (tui_setup_io): Save tty setting to restore by SIGCONT.
312 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
314 * tui.h (tui_show_assembly): Declare.
315 (tui_is_window_visible): Declare.
316 * tui.c (tui_show_assembly): New function.
317 (tui_is_window_visible): New function.
318 (tui_get_command_dimension): New function.
320 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
322 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
324 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
326 * tui-file.c (tui_file_fputs): Use tui_puts.
328 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
330 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
331 * tuiStack.h (tuiGetLocatorFilename): Declare.
332 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
333 * tuiData.h (addToSourceWindows): Declare.
335 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
337 * tui.c (tui_change_windows): New function.
338 (tui_delete_other_windows): New function.
339 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
340 (tui_enable): Enable the keypad; call tui_update_variables.
341 (strcat_to_buf_with_fmt): Remove.
343 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
345 * tui.h: Remove old declarations, add the new ones.
346 * tui.c (tui_switch_mode): New function.
347 (tui_initialize_readline): New function.
348 (tui_enable): New function.
349 (tui_disable): New function.
350 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
351 (tui_vSelectSourceSymtab): Remove.
352 (tuiInitWindows): Remove.
353 (_initialize_tui): Remove.
354 (_tuiReset): Keep but put arround #if 0.
356 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
358 * tuiIO.h: Remove old declarations and add the new ones.
359 * tuiIO.c: New management for curses and gdb terminal interactions.
361 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
362 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
363 (tui_owns_terminal): Remove.
364 (tui_redisplay_readline): New function.
365 (tui_puts): New function.
366 (tui_prep_terminal): New function.
367 (tui_deprep_terminal): New function.
368 (tui_getc): Rename of tuiGetc, simplify and fix.
369 (tui_setup_io): New function.
370 (tui_initialize_io): New function.
372 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
374 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
375 (_tuiRegisterFormat): Reduce size of format result.
377 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
379 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
380 * tuiWin.h: Declare the new variables.
381 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
382 (tui_update_variables): New function.
383 (translate): New function.
384 (tui_border_kind_enums, tui_border_mode_enums): New tables.
385 (tui_border_mode_translate): New table.
386 (tui_border_kind_translate_*): New tables.
387 (tui_active_border_mode): New variables.
388 (tui_border_*): New variables.
390 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
392 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
393 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
395 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
396 (tui_vUpdateLocatorFilename): Remove.
397 * tuiStack.h: Update prototypes.
399 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
400 (tuiLineIsDisplayed): Split for address and line.
401 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
402 (tuiUpdateSourceWindowAsIs): Likewise.
403 (tuiUpdateSourceWindowsWithAddr): Likewise.
404 (tuiUpdateSourceWindowsWithLine): Likewise.
405 (tuiHorizontalSourceScroll): Likewise.
406 (tuiSetIsExecPointAt): Likewise.
407 (tuiUpdateOnEnd): Likewise.
408 * tuiSourceWin.h: Update prototypes.
410 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
411 (tuiShowSource): Likewise.
412 (tuiVerticalSourceScroll): Likewise.
413 * tuiSource.h (tuiShowSource): Update prototype.
415 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
416 (tuiShowDisassem): Use TuiLineOrAddress type.
417 (tuiShowDisassemAndUpdateSource): Likewise.
418 (tuiVerticalDisassemScroll): Likewise.
419 (tuiShowDisassemAsIs): Remove.
420 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
422 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
423 (clearWinDetail): Likewise.
424 (displayableWinContentOf): Fix address conversion.
425 (tuiNextWin): Fix crash when the window is not yet created.
426 (partialWinByName): Likewise.
428 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
430 * tuiSourceWin.h: Remove unused declarations.
431 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
432 (tui_vUpdateSourceWindowsWithLine): Remove.
433 (tui_vAllSetHasBreakAt): Remove.
435 * tuiLayout.h (tui_set_layout): Declare.
436 (tui_vSetLayoutTo): Remove.
437 (tui_vAddWinToLayout): Remove.
438 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
439 (_tuiToggleLayout_command): Remove.
440 (_tuiToggleSplitLayout_command): Remove.
441 (_tuiLayout_command): Remove.
442 (tui_vSetLayoutTo): Remove.
443 (tui_vAddWinToLayout): Remove.
445 * tuiDataWin.h (tui_vCheckDataValues): Remove.
446 * tuiDataWin.c (tui_vCheckDataValues): Remove.
448 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
450 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
451 (_parseScrollingArgs): Use xstrdup.
452 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
453 (_tuiScrollBackward_command): Likewise.
454 (_tuiScrollLeft_command): Likewise.
455 (_tuiScrollRight_command): Likewise.
456 (_tuiSetFocus): Likewise.
457 (_tuiSetFocus_command): Likewise.
458 (_tuiRefreshAll_command): Likewise.
459 (_tuiSetTabWidth_command): Likewise.
460 (_tuiSetWinHeight): Likewise.
461 (_tuiSetWinHeight_command): Likewise.
462 (_tuiXDBsetWinHeight): Likewise.
463 (_tui_vSetFocus): Remove.
464 (_tui_vSetWinHeight): Remove.
465 (_tui_vXDBsetWinHeight): Remove.
467 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
469 * tuiCommand.h: Remove unused declarations.
470 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
471 (tuiIncrCommandCharCountBy): Remove.
472 (tuiDecrCommandCharCountBy): Remove.
473 (tuiSetCommandCharCountTo): Remove.
474 (tuiClearCommandCharCount): Remove.
476 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
478 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
479 create the tui class help.
480 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
481 * tuiRegs.c (_initialize_tuiRegs): Likewise.
482 * tuiStack.c (_initialize_tuiStack): Likewise.
484 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
486 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
487 (tuiVerticalDisassemScroll): Likewise.
488 (tuiShowDisassemAndUpdateSource): Check for null symtab to
491 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
493 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
494 (tuiRead, tui_vread): Remove.
496 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
497 (vcatch_errors, _tui_vDo): Remove.
498 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
500 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
501 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
502 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
503 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
504 (_tuiLayout_command): Call tui_set_layout.
506 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
507 (_tuiScrollRegsForward_command): Likewise.
508 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
509 (_tuiShowGeneral_command): Likewise.
510 (_tuiShowSpecial_command): Likewise.
511 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
512 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
513 (_tuiScrollForward_command): Call tui_scroll.
514 (_tuiScrollBackward_command): Likewise.
515 (_tuiScrollLeft_command): Likewise.
516 (_tuiScrollRight_command): Likewise.
517 (_tuiSetFocus_command): Call _tuiSetFocus.
518 (_tuiRefreshAll_command): Call tuiRefreshAll.
519 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
520 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
521 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
523 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
525 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
526 (TuiLineOrAddress): Likewise.
527 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
529 (tuiSetDisassemContent): Likewise.
530 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
531 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
532 (tuiSetLayout): Likewise.
533 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
534 (tuiUpdateSourceWindowsWithAddr): Likewise.
535 (tuiUpdateSourceWindowsWithLine): Likewise.
536 (tuiSetHasBreakAt): Likewise.
537 * tuiStack.c (tuiSetLocatorInfo): Likewise.
538 (tuiSwitchFilename): Likewise.
539 (tuiUpdateLocatorInfoFromFrame): Likewise.
540 (tuiSetLocatorContent): Likewise.
541 (tuiShowFrameInfo): Likewise.
542 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
543 * tuiSourceWin.h: Likewise.
544 * tuiStack.h: Likewise.
546 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
548 * tuiWin.c: Add missing includes.
549 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
550 * tuiLayout.c: Add missing includes.
551 (_initAndMakeWin): Don't put curses in echo mode.
552 (_extractDisplayStartAddr): Fix calls to find_line_pc.
553 (_tuiLayout_command): Missing ',' in warning call.
554 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
556 (tuiSetHasBreakAt): Check for null source file.
558 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
560 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
561 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
562 * tui.c (_tui_vToggle_command): Likewise.
564 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
566 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
568 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
570 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
571 each register window.
572 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
573 of the register to check.
574 (_tuiRegValueHasChanged): Likewise.
575 (_tuiRegisterName): Use REGISTER_NAME.
576 (tui_restore_gdbout): New function.
577 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
579 (START_SPECIAL_REGS): Define.
580 (_tuiGetRegisterRawValue): Use get_saved_register.
581 (_tuiDisplayRegister): Fix clearing of register window.
583 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
585 * tui-file.h (fputs_unfiltered_hook): Remove.
586 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
587 (tui_file_fputs): Likewise; simplify
589 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
591 * tuiStack.c: Add missing includes.
592 (tuiShowFrameInfo): Don't crash when there is no symbol table
593 associated with the pc.
594 * tuiSource.c (_hasBreak): Check for null source file.
595 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
596 (_tuiSetFocus): Check for null dataWin.
597 * tuiGeneralWin.c (refreshAll): Check for null list[type].
599 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
601 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
602 to disassemble in the curses window.
604 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
606 * tui.h: Cleanup to avoid inclusion of curses includes.
607 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
608 * tuiData.h: To here; include curses includes here.
609 (setTermHeightTo): Rename of setTermHeight to follow reality.
610 (setTermWidthTo): Likewise with setTermWidth.
612 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
614 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
615 tuiIO.c, tuiData.c: Likewise.
616 tuiDataWin.c, tuiDisassem.c: Likewise.
617 tuiGeneralWin.c, tuiLayout.c: Likewise.
618 tuiRegs.c, tuiSource.c: Likewise.
619 tuiSouceWin.c, tuiStack.c: Likewise.
621 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
623 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
624 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
625 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
626 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
627 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
628 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
630 2001-03-08 Andrew Cagney <ac131313@redhat.com>
632 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
634 2001-03-06 Kevin Buettner <kevinb@redhat.com>
636 * tui-file.h: Update/correct copyright notice.
638 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
640 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
643 2000-12-14 Kevin Buettner <kevinb@redhat.com>
645 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
646 of free() with xfree().
648 2000-06-22 Kevin Buettner <kevinb@redhat.com>
650 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
652 2000-06-20 Kevin Buettner <kevinb@redhat.com>
654 * tuiLayout.c: Eliminate use of PARAMS from this file.
656 2000-06-17 Kevin Buettner <kevinb@redhat.com>
658 * tuiIO.c: Eliminate use of PARAMS from this file.
660 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
662 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
664 (tui_file_fputs): Pass ``file'' and not ``stream'' to
665 tui_file_adjust_strbuf.
667 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
669 * tui.h: Include <ncurses.h> when available.
670 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
672 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
674 * Makefile.in: Delete.
676 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
678 * Makefile.in (distclean, maintainer-clean, realclean,
679 mostlyclean): New targets.
681 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
683 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
684 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
685 ui-file / ``struct ui_file''.
687 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
689 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
690 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
691 tui_file_rewind, tui_file_put, tui_file_fputs,
692 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
693 fputs_unfiltered_hook): Move to here from ../utils.c
695 * tui-file.h, tui-file.c: New files.
697 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
699 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
700 (tuiSetDisassemContent): Replace gdb_file_init_astring with
701 tui_sfileopen. Replace gdb_file_get_strbuf with
704 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
706 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
707 (tuiSetDisassemContent): Repace gdb_file_deallocate with
708 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
710 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
712 * tuiSource.c: Include "source.h".
713 (open_source_file, find_source_lines): Delete declarations.
715 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
717 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
720 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
722 The following changes were made by Jim Blandy <jimb@cygnus.com>,
723 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
724 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
725 Taylor <taylor@cygnus.com>, as part of the project to merge in
726 changes originally made by HP; HP did not create ChangeLog
729 * Makefile.in: New file; we're merging HP's changes into GDB, and
730 we've moved the TUI files into a subdirectory, so we need a new
734 #include <term.h>, if we have it, to get declarations for
735 the termcap functions on Solaris.
736 (tgoto): Add external K&R declaration for this; Solaris doesn't
737 bother to actually declare it in their header files.
738 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
739 we'd rather use the USG mechanisms than the Berkeley mechanisms
740 (TIOCGETC is one of the Berkeley terminal control ioctls).
741 Apologies if this causes trouble later; this should all be handled
743 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
745 (tuiFree): replace safe_free with free.
746 (strcat_to_buf): new function, copied from utils.c.
747 (tuiInit): Add ignored `argv0' argument, to match the type that
748 init_ui_hook expects; updated declaration. Call the
749 initialize_tui_files function constructed above. Initialize
751 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
752 element of the locator window's content allocated. This seems
753 wrong, because it must have been initialized somehow in HP's
754 sources, and we should do it the same way now. But we do get
755 further before it segfaults. [Postscript: HP didn't bother to
756 initialize it; they compile
757 (va_catch_errors, vcatch_errors): Functions moved here from
758 ../utils.c in HP's sources. They're not used anywhere else.
759 (xdb_style): Delete this variable, and remove all references to
760 it. It's always true.
761 (tuiInit, _tui_vDo): References removed.
763 * tui.h: Add prototypes.
764 Don't #include "gendefs.h"; it's only used in the TUI.
765 Integrate its contents into this file:
766 #include <ansidecl.h> here.
767 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
769 * tuiCommand.c: #include "defs.h", so we get the appropriate
770 definition of GDB_FILE.
773 (freeWindow): replace safe_free with free.
774 (tui_version): don't define it here; it's defined in main.c now.
777 (tuiSetDisassemContent): Call strcat_address_numeric instead of
778 strcat_address. Simplify the control structure. Use predefined
779 GDB function to print asm inst address. Use GDB_FILE to collect
783 (tgoto): Add external K&R declaration for this here too.
784 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
785 (tuiPuts_unfiltered): change FILE to GDB_FILE.
786 (tui_tputs): fix prototype for 3rd argument.
788 * tuiIO.h (tuiPuts_unfiltered): change declaration.
791 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
792 that decides which registers to display (i.e. single precision
793 float, double precision float, general, special). Previously,
794 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
795 compiling with -z poses a problem. When the first layout command
796 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
799 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
801 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
802 <stdarg.h>. No idea exactly what's conflicting with what, but the
804 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
805 object, calls pa_do_strcat_registers_info, copies the register
806 info into a buffer, and deallocates the GDB_FILE object. Remove
807 some code that is not executed. Also, call to
808 pa_do_strcat_registers_info has an additional parameter,
809 precision. This code requires some new per-target functions that
810 we don't want to merge. Dyke it out, with #ifdef
811 TUI_EXTENDED_FORMATTERS.
812 (_tuiSetSpecialRegsContent): this function was ifdefed out.
814 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
816 (IS_64BIT): Just define this to be zero; we're not merging in the
818 (tuiShowRegisters): Comment out all references to the "special"
819 regs; we don't have a distinction between the "special" and
820 "non-special" regs in most of our machine descriptions. This code
821 is PA-specific in other ways as well, and needs to be redesigned
822 to be portable to other processors.
824 * tuiWin.c: #include <string.h>, to get a declaration for
827 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
828 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
829 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
830 bool to int throughout. Re-indented, GNU style.
832 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
833 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
834 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
835 Changed bool to int throughout.