1 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
3 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
5 (tuiShowSource): Fix comment indentation.
6 (tuiSourceIsDisplayed): Likewise.
7 (tuiVerticalSourceScroll): Likewise.
9 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
11 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
12 (tui_update_breakpoint_info): Declare.
13 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
15 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
16 information using tui_update_breakpoint_info.
17 (tui_update_all_breakpoint_info): New function to refresh all
19 (tui_update_breakpoint_info): New function to recompute the status
20 of exec info window from breakpoints.
21 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
22 (tuiSetExecInfoContent): Use the exec info flags computed by
23 tui_update_breakpoint_info to display a short status about breakpoints.
25 * tuiData.h (TuiExecInfoContent): New for exec info string.
26 (TuiWhichElement): Use it.
27 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
28 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
29 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
30 (TUI_EXECINFO_SIZE): Likewise.
31 * tuiData.c (initContentElement): Clear exec info string.
33 * tui-hooks.c (get_breakpoint): Remove.
34 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
35 (tui_event_delete_breakpoint): Likewise.
36 (tui_event_modify_breakpoint): Likewise.
38 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
40 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
41 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
42 tui_find_disassembly_address to find the starting address of
45 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
47 * tuiDisassem.c (tui_disassemble): New function to disassemble
48 several lines in a buffer.
49 (tui_find_disassembly_address): New function to search backward
50 or forward a disassembly line.
51 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
52 content and format it in the window.
53 (tuiShowDisassemAndUpdateSource): Remove unused locals.
54 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
55 obtain the address to disassemble for the scrolling.
56 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
57 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
59 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
61 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
63 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
66 * tui.c (tui_disable): Update gdb's knowledge of its terminal
67 using target_terminal_save_ours.
68 (tui_enable): Likewise.
70 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
72 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
73 (tui_rl_change_windows): Renames tui_change_windows.
74 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
75 (tui_initialize_readline): Update.
77 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
79 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
82 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
84 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
85 to find symbol address.
87 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
89 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
90 and use tuiGetBeginAsmAddress.
91 * tuiSourceWin.h (tui_display_main): Declare.
92 * tui.h (tuiDisplayMainFunction): Remove.
93 * tui-hooks.c (tui_new_objfile_hook): Update.
95 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
97 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
98 (tuiShowSourceAsIs): Don't declare.
100 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
102 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
105 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
107 * tuiStack.c (tuiSetLocatorContent): Remove.
108 (tuiUpdateLocatorInfoFromFrame): Remove.
109 (tui_set_locator_info): Allocate the content buffer if necessary.
110 (tui_set_locator_filename): Call tui_set_locator_info directly.
111 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
114 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
116 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
117 tuiUpdateLocatorFilename.
118 * tuiStack.c (tuiSetLocatorInfo): Make it static.
119 (tuiSetLocatorContent): Likewise.
120 (tuiUpdateLocatorInfoFromFrame): Likewise.
121 (tuiSwitchFilename): Remove.
122 (tui_set_locator_filename): New function
123 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
124 use tui_set_locator_filename to record the filename.
125 (tuiUpdateLocatorFilename): Likewise.
126 (tuiUpdateLocatorInfoFromFrame): Update.
127 (tuiSetLocatorContent): Likewise.
128 * tuiStack.h (tuiClearLocatorContent): Don't declare.
129 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
130 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
132 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
134 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
136 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
137 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
138 * tuiData.h (TuiSourceInfo): Add filename member.
139 (TuiGenWinInfo): Add title member.
140 * tuiData.c (initGenericPart): Clear title.
141 (freeWindow): Free title and filename; remove unused locals.
142 (initWinInfo): Clear filename.
143 (tuiDelWindow): Free it; remove unused locals.
145 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
147 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
148 (tuiUpdateLocatorDisplay): Likewise.
149 * tuiStack.c (tuiGetLocatorFilename): Remove.
150 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
151 instead of tuiUpdateLocatorDisplay.
152 (tuiUpdateLocatorDisplay): Remove.
154 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
156 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
157 * tuiStack.c (tuiClearLocatorDisplay): Remove.
158 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
159 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
161 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
163 * tuiStack.c (tui_get_function_from_frame): Rename from
164 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
166 (tuiUpdateLocatorInfoFromFrame): Update.
168 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
170 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
171 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
172 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
173 (_tuiSetFloatRegsContent): Likewise.
174 (_tuiRegisterName): Return a const char*.
175 * tuiData.h (_TuiDataElement): Use const char* for name.
177 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
179 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
180 (tuiShowAllExecInfosContent): Likewise.
181 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
182 (tuiShowAllExecInfosContent): Remove.
183 (tuiAllocSourceBuffer): Remove unused locals.
185 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
187 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
188 to follow other gdb's command names; use execute_command; cleanup.
189 (_initialize_tuiStack): Update.
191 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
193 * tuiWin.h (tui_update_gdb_sizes): Declare.
195 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
197 * tui.c (strcat_to_buf): Use const char* for source item.
198 (tui_enable): Update the windows if there is a selected frame.
199 * tui.h (strcat_to_buf): Update prototype.
200 (strcat_to_buf_with_fmt): Remove.
202 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
204 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
205 is the size of command window.
206 (tuiResizeAll): Call it instead of init_page_info.
207 * tui.c (tui_enable): Call it to resize to TUI command window.
208 (tui_disable): Likewise for plain screen.
210 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
212 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
213 use tuiShowFrameInfo instead of tuiSetLocatorContent.
214 * tuiLayout.h (showLayout): Remove.
215 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
216 (_showSourceDisassemCommand): Likewise.
217 (showLayout): Make it static.
218 (lastLayout): Remove.
220 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
222 * tuiSourceWin.c (tui_show_source_line): New function.
223 (tuiShowSourceContent): Call it and avoid clearing the window before
225 (tuiClearAllSourceWinsContent): Remove.
226 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
227 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
228 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
229 (tuiRefreshAll): Don't clear the window.
230 (_makeVisibleWithNewHeight): Don't clear locator line.
231 (tuiResizeAll): Remove unused locals.
232 (_tuiAdjustWinHeights): Likewise.
233 (_makeInvisibleAndSetNewHeight): Likewise.
234 (_newHeightOk): Likewise.
235 * tuiLayout.c (showLayout): Don't clear source windows.
236 (tuiSetLayout): Don't clear the window.
237 (_initAndMakeWin): Likewise for status line.
238 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
239 (makeWindow): Likewise.
240 (tuiClearWin): Remove.
241 * tuiGeneralWin.h (tuiClearWin): Don't declare.
243 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
245 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
246 (tuiAsmWinIsDisplayed): Remove.
247 (tuiShowAllSourceWinsContent): Remove.
248 (tuiUpdateOnEnd): Remove.
249 * tuiGeneralWin.c (scrollWinForward): Remove.
250 (scrollWinBackward): Remove.
251 (_winResize): Don't declare.
252 * tui.h (tuiUpdateOnEnd): Don't declare.
253 (vcatch_errors, va_catch_errors): Likewise.
254 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
255 (tuiShowAllSourceWinsContent): Likewise.
256 * tuiGeneralWin.h (scrollWinForward): Likewise.
257 (scrollWinBackward): Likewise.
259 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
261 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
263 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
266 * tui.c: Disable <termio.h> include.
268 2002-03-15 Andrew Cagney <ac131313@redhat.com>
270 * tui-out.c (XMALLOC): Delete macro. Update copyright.
272 2002-03-01 Andrew Cagney <ac131313@redhat.com>
274 * tui-hooks.c: Add FIXME to explain true/false problem. Update
276 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
277 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
278 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
281 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
282 * tui-hooks.c: Include <curses.h> before "bfd.h".
284 * tuiCommand.c: Likewise.
285 * tuiData.c: Likewise.
286 * tuiDataWin.c: Likewise.
287 * tuiDisassem.c: Likewise.
288 * tuiGeneralWin.c: Likewise.
290 * tuiLayout.c: Likewise.
291 * tuiRegs.c: Likewise.
292 * tuiSource.c: Likewise.
293 * tuiSourceWin.c: Likewise.
294 * tuiStack.c: Likewise.
295 * tuiWin.c: Likewise.
297 2002-02-01 Andrew Cagney <ac131313@redhat.com>
299 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
301 2001-10-20 Andrew Cagney <ac131313@redhat.com>
303 * tuiDisassem.c: Include "value.h".
304 * tuiSourceWin.c: Ditto.
306 2001-09-28 Tom Tromey <tromey@redhat.com>
308 * tuiLayout.h (tui_set_layout): Don't declare.
309 * tui.h (tui_vAddWinToLayout): Don't declare.
310 (tui_vSetLayoutTo): Likewise.
311 (tui_set_layout): Declare.
313 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
315 * tuiSourceWin.c: Use disp_del instead of del.
317 * tuiSource.c: Use disp_del instead of del.
319 * tuiDisassem.c: Use disp_del instead of del.
321 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
323 * tui.c (tui_enable): Remove call to terminal_save_ours().
324 (tui_disable): Likewise.
326 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
328 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
329 set/show configuration variables.
330 (show_tui_cmd): New function.
331 (set_tui_cmd): New function.
333 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
335 * tui-hooks.c: New file, gdb hooks for tui.
336 * tui-out.c: New file, image copied from cli-out.c.
337 (tui_field_int): Identify "line" fields and keep track of them.
338 (tui_field_string): Likewise for "file".
339 (tui_out_new): Use flags = 0 to avoid printing the sources.
341 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
343 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
344 leave it in the command window.
345 (tui_redisplay_readline): Save cursor position to restore the
346 cursor after we go back from background.
347 * tuiData.h (TuiCommandInfo): Add start_line member.
349 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
351 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
352 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
353 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
355 * tui.c (tui_show_source): New function.
356 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
357 (tui_switch_mode): Prep or deprep readline terminal;
358 make sure the \n we return does not redo the last command.
359 * tui.h (tui_show_source): Declare.
360 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
361 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
363 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
365 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
366 if SIGCONT is defined.
367 (tui_cont_sig): New function when SIGCONT is defined.
368 (tui_setup_io): Save tty setting to restore by SIGCONT.
370 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
372 * tui.h (tui_show_assembly): Declare.
373 (tui_is_window_visible): Declare.
374 * tui.c (tui_show_assembly): New function.
375 (tui_is_window_visible): New function.
376 (tui_get_command_dimension): New function.
378 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
380 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
382 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
384 * tui-file.c (tui_file_fputs): Use tui_puts.
386 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
388 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
389 * tuiStack.h (tuiGetLocatorFilename): Declare.
390 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
391 * tuiData.h (addToSourceWindows): Declare.
393 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
395 * tui.c (tui_change_windows): New function.
396 (tui_delete_other_windows): New function.
397 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
398 (tui_enable): Enable the keypad; call tui_update_variables.
399 (strcat_to_buf_with_fmt): Remove.
401 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
403 * tui.h: Remove old declarations, add the new ones.
404 * tui.c (tui_switch_mode): New function.
405 (tui_initialize_readline): New function.
406 (tui_enable): New function.
407 (tui_disable): New function.
408 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
409 (tui_vSelectSourceSymtab): Remove.
410 (tuiInitWindows): Remove.
411 (_initialize_tui): Remove.
412 (_tuiReset): Keep but put arround #if 0.
414 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
416 * tuiIO.h: Remove old declarations and add the new ones.
417 * tuiIO.c: New management for curses and gdb terminal interactions.
419 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
420 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
421 (tui_owns_terminal): Remove.
422 (tui_redisplay_readline): New function.
423 (tui_puts): New function.
424 (tui_prep_terminal): New function.
425 (tui_deprep_terminal): New function.
426 (tui_getc): Rename of tuiGetc, simplify and fix.
427 (tui_setup_io): New function.
428 (tui_initialize_io): New function.
430 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
432 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
433 (_tuiRegisterFormat): Reduce size of format result.
435 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
437 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
438 * tuiWin.h: Declare the new variables.
439 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
440 (tui_update_variables): New function.
441 (translate): New function.
442 (tui_border_kind_enums, tui_border_mode_enums): New tables.
443 (tui_border_mode_translate): New table.
444 (tui_border_kind_translate_*): New tables.
445 (tui_active_border_mode): New variables.
446 (tui_border_*): New variables.
448 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
450 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
451 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
453 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
454 (tui_vUpdateLocatorFilename): Remove.
455 * tuiStack.h: Update prototypes.
457 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
458 (tuiLineIsDisplayed): Split for address and line.
459 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
460 (tuiUpdateSourceWindowAsIs): Likewise.
461 (tuiUpdateSourceWindowsWithAddr): Likewise.
462 (tuiUpdateSourceWindowsWithLine): Likewise.
463 (tuiHorizontalSourceScroll): Likewise.
464 (tuiSetIsExecPointAt): Likewise.
465 (tuiUpdateOnEnd): Likewise.
466 * tuiSourceWin.h: Update prototypes.
468 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
469 (tuiShowSource): Likewise.
470 (tuiVerticalSourceScroll): Likewise.
471 * tuiSource.h (tuiShowSource): Update prototype.
473 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
474 (tuiShowDisassem): Use TuiLineOrAddress type.
475 (tuiShowDisassemAndUpdateSource): Likewise.
476 (tuiVerticalDisassemScroll): Likewise.
477 (tuiShowDisassemAsIs): Remove.
478 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
480 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
481 (clearWinDetail): Likewise.
482 (displayableWinContentOf): Fix address conversion.
483 (tuiNextWin): Fix crash when the window is not yet created.
484 (partialWinByName): Likewise.
486 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
488 * tuiSourceWin.h: Remove unused declarations.
489 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
490 (tui_vUpdateSourceWindowsWithLine): Remove.
491 (tui_vAllSetHasBreakAt): Remove.
493 * tuiLayout.h (tui_set_layout): Declare.
494 (tui_vSetLayoutTo): Remove.
495 (tui_vAddWinToLayout): Remove.
496 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
497 (_tuiToggleLayout_command): Remove.
498 (_tuiToggleSplitLayout_command): Remove.
499 (_tuiLayout_command): Remove.
500 (tui_vSetLayoutTo): Remove.
501 (tui_vAddWinToLayout): Remove.
503 * tuiDataWin.h (tui_vCheckDataValues): Remove.
504 * tuiDataWin.c (tui_vCheckDataValues): Remove.
506 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
508 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
509 (_parseScrollingArgs): Use xstrdup.
510 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
511 (_tuiScrollBackward_command): Likewise.
512 (_tuiScrollLeft_command): Likewise.
513 (_tuiScrollRight_command): Likewise.
514 (_tuiSetFocus): Likewise.
515 (_tuiSetFocus_command): Likewise.
516 (_tuiRefreshAll_command): Likewise.
517 (_tuiSetTabWidth_command): Likewise.
518 (_tuiSetWinHeight): Likewise.
519 (_tuiSetWinHeight_command): Likewise.
520 (_tuiXDBsetWinHeight): Likewise.
521 (_tui_vSetFocus): Remove.
522 (_tui_vSetWinHeight): Remove.
523 (_tui_vXDBsetWinHeight): Remove.
525 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
527 * tuiCommand.h: Remove unused declarations.
528 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
529 (tuiIncrCommandCharCountBy): Remove.
530 (tuiDecrCommandCharCountBy): Remove.
531 (tuiSetCommandCharCountTo): Remove.
532 (tuiClearCommandCharCount): Remove.
534 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
536 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
537 create the tui class help.
538 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
539 * tuiRegs.c (_initialize_tuiRegs): Likewise.
540 * tuiStack.c (_initialize_tuiStack): Likewise.
542 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
544 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
545 (tuiVerticalDisassemScroll): Likewise.
546 (tuiShowDisassemAndUpdateSource): Check for null symtab to
549 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
551 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
552 (tuiRead, tui_vread): Remove.
554 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
555 (vcatch_errors, _tui_vDo): Remove.
556 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
558 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
559 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
560 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
561 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
562 (_tuiLayout_command): Call tui_set_layout.
564 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
565 (_tuiScrollRegsForward_command): Likewise.
566 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
567 (_tuiShowGeneral_command): Likewise.
568 (_tuiShowSpecial_command): Likewise.
569 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
570 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
571 (_tuiScrollForward_command): Call tui_scroll.
572 (_tuiScrollBackward_command): Likewise.
573 (_tuiScrollLeft_command): Likewise.
574 (_tuiScrollRight_command): Likewise.
575 (_tuiSetFocus_command): Call _tuiSetFocus.
576 (_tuiRefreshAll_command): Call tuiRefreshAll.
577 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
578 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
579 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
581 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
583 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
584 (TuiLineOrAddress): Likewise.
585 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
587 (tuiSetDisassemContent): Likewise.
588 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
589 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
590 (tuiSetLayout): Likewise.
591 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
592 (tuiUpdateSourceWindowsWithAddr): Likewise.
593 (tuiUpdateSourceWindowsWithLine): Likewise.
594 (tuiSetHasBreakAt): Likewise.
595 * tuiStack.c (tuiSetLocatorInfo): Likewise.
596 (tuiSwitchFilename): Likewise.
597 (tuiUpdateLocatorInfoFromFrame): Likewise.
598 (tuiSetLocatorContent): Likewise.
599 (tuiShowFrameInfo): Likewise.
600 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
601 * tuiSourceWin.h: Likewise.
602 * tuiStack.h: Likewise.
604 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
606 * tuiWin.c: Add missing includes.
607 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
608 * tuiLayout.c: Add missing includes.
609 (_initAndMakeWin): Don't put curses in echo mode.
610 (_extractDisplayStartAddr): Fix calls to find_line_pc.
611 (_tuiLayout_command): Missing ',' in warning call.
612 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
614 (tuiSetHasBreakAt): Check for null source file.
616 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
618 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
619 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
620 * tui.c (_tui_vToggle_command): Likewise.
622 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
624 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
626 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
628 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
629 each register window.
630 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
631 of the register to check.
632 (_tuiRegValueHasChanged): Likewise.
633 (_tuiRegisterName): Use REGISTER_NAME.
634 (tui_restore_gdbout): New function.
635 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
637 (START_SPECIAL_REGS): Define.
638 (_tuiGetRegisterRawValue): Use get_saved_register.
639 (_tuiDisplayRegister): Fix clearing of register window.
641 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
643 * tui-file.h (fputs_unfiltered_hook): Remove.
644 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
645 (tui_file_fputs): Likewise; simplify
647 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
649 * tuiStack.c: Add missing includes.
650 (tuiShowFrameInfo): Don't crash when there is no symbol table
651 associated with the pc.
652 * tuiSource.c (_hasBreak): Check for null source file.
653 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
654 (_tuiSetFocus): Check for null dataWin.
655 * tuiGeneralWin.c (refreshAll): Check for null list[type].
657 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
659 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
660 to disassemble in the curses window.
662 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
664 * tui.h: Cleanup to avoid inclusion of curses includes.
665 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
666 * tuiData.h: To here; include curses includes here.
667 (setTermHeightTo): Rename of setTermHeight to follow reality.
668 (setTermWidthTo): Likewise with setTermWidth.
670 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
672 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
673 tuiIO.c, tuiData.c: Likewise.
674 tuiDataWin.c, tuiDisassem.c: Likewise.
675 tuiGeneralWin.c, tuiLayout.c: Likewise.
676 tuiRegs.c, tuiSource.c: Likewise.
677 tuiSouceWin.c, tuiStack.c: Likewise.
679 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
681 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
682 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
683 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
684 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
685 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
686 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
688 2001-03-08 Andrew Cagney <ac131313@redhat.com>
690 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
692 2001-03-06 Kevin Buettner <kevinb@redhat.com>
694 * tui-file.h: Update/correct copyright notice.
696 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
698 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
701 2000-12-14 Kevin Buettner <kevinb@redhat.com>
703 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
704 of free() with xfree().
706 2000-06-22 Kevin Buettner <kevinb@redhat.com>
708 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
710 2000-06-20 Kevin Buettner <kevinb@redhat.com>
712 * tuiLayout.c: Eliminate use of PARAMS from this file.
714 2000-06-17 Kevin Buettner <kevinb@redhat.com>
716 * tuiIO.c: Eliminate use of PARAMS from this file.
718 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
720 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
722 (tui_file_fputs): Pass ``file'' and not ``stream'' to
723 tui_file_adjust_strbuf.
725 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
727 * tui.h: Include <ncurses.h> when available.
728 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
730 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
732 * Makefile.in: Delete.
734 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
736 * Makefile.in (distclean, maintainer-clean, realclean,
737 mostlyclean): New targets.
739 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
741 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
742 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
743 ui-file / ``struct ui_file''.
745 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
747 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
748 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
749 tui_file_rewind, tui_file_put, tui_file_fputs,
750 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
751 fputs_unfiltered_hook): Move to here from ../utils.c
753 * tui-file.h, tui-file.c: New files.
755 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
757 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
758 (tuiSetDisassemContent): Replace gdb_file_init_astring with
759 tui_sfileopen. Replace gdb_file_get_strbuf with
762 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
764 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
765 (tuiSetDisassemContent): Repace gdb_file_deallocate with
766 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
768 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
770 * tuiSource.c: Include "source.h".
771 (open_source_file, find_source_lines): Delete declarations.
773 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
775 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
778 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
780 The following changes were made by Jim Blandy <jimb@cygnus.com>,
781 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
782 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
783 Taylor <taylor@cygnus.com>, as part of the project to merge in
784 changes originally made by HP; HP did not create ChangeLog
787 * Makefile.in: New file; we're merging HP's changes into GDB, and
788 we've moved the TUI files into a subdirectory, so we need a new
792 #include <term.h>, if we have it, to get declarations for
793 the termcap functions on Solaris.
794 (tgoto): Add external K&R declaration for this; Solaris doesn't
795 bother to actually declare it in their header files.
796 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
797 we'd rather use the USG mechanisms than the Berkeley mechanisms
798 (TIOCGETC is one of the Berkeley terminal control ioctls).
799 Apologies if this causes trouble later; this should all be handled
801 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
803 (tuiFree): replace safe_free with free.
804 (strcat_to_buf): new function, copied from utils.c.
805 (tuiInit): Add ignored `argv0' argument, to match the type that
806 init_ui_hook expects; updated declaration. Call the
807 initialize_tui_files function constructed above. Initialize
809 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
810 element of the locator window's content allocated. This seems
811 wrong, because it must have been initialized somehow in HP's
812 sources, and we should do it the same way now. But we do get
813 further before it segfaults. [Postscript: HP didn't bother to
814 initialize it; they compile
815 (va_catch_errors, vcatch_errors): Functions moved here from
816 ../utils.c in HP's sources. They're not used anywhere else.
817 (xdb_style): Delete this variable, and remove all references to
818 it. It's always true.
819 (tuiInit, _tui_vDo): References removed.
821 * tui.h: Add prototypes.
822 Don't #include "gendefs.h"; it's only used in the TUI.
823 Integrate its contents into this file:
824 #include <ansidecl.h> here.
825 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
827 * tuiCommand.c: #include "defs.h", so we get the appropriate
828 definition of GDB_FILE.
831 (freeWindow): replace safe_free with free.
832 (tui_version): don't define it here; it's defined in main.c now.
835 (tuiSetDisassemContent): Call strcat_address_numeric instead of
836 strcat_address. Simplify the control structure. Use predefined
837 GDB function to print asm inst address. Use GDB_FILE to collect
841 (tgoto): Add external K&R declaration for this here too.
842 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
843 (tuiPuts_unfiltered): change FILE to GDB_FILE.
844 (tui_tputs): fix prototype for 3rd argument.
846 * tuiIO.h (tuiPuts_unfiltered): change declaration.
849 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
850 that decides which registers to display (i.e. single precision
851 float, double precision float, general, special). Previously,
852 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
853 compiling with -z poses a problem. When the first layout command
854 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
857 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
859 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
860 <stdarg.h>. No idea exactly what's conflicting with what, but the
862 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
863 object, calls pa_do_strcat_registers_info, copies the register
864 info into a buffer, and deallocates the GDB_FILE object. Remove
865 some code that is not executed. Also, call to
866 pa_do_strcat_registers_info has an additional parameter,
867 precision. This code requires some new per-target functions that
868 we don't want to merge. Dyke it out, with #ifdef
869 TUI_EXTENDED_FORMATTERS.
870 (_tuiSetSpecialRegsContent): this function was ifdefed out.
872 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
874 (IS_64BIT): Just define this to be zero; we're not merging in the
876 (tuiShowRegisters): Comment out all references to the "special"
877 regs; we don't have a distinction between the "special" and
878 "non-special" regs in most of our machine descriptions. This code
879 is PA-specific in other ways as well, and needs to be redesigned
880 to be portable to other processors.
882 * tuiWin.c: #include <string.h>, to get a declaration for
885 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
886 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
887 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
888 bool to int throughout. Re-indented, GNU style.
890 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
891 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
892 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
893 Changed bool to int throughout.