1 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
3 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
4 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
5 tui_find_disassembly_address to find the starting address of
8 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
10 * tuiDisassem.c (tui_disassemble): New function to disassemble
11 several lines in a buffer.
12 (tui_find_disassembly_address): New function to search backward
13 or forward a disassembly line.
14 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
15 content and format it in the window.
16 (tuiShowDisassemAndUpdateSource): Remove unused locals.
17 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
18 obtain the address to disassemble for the scrolling.
19 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
20 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
22 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
24 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
26 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
29 * tui.c (tui_disable): Update gdb's knowledge of its terminal
30 using target_terminal_save_ours.
31 (tui_enable): Likewise.
33 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
35 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
36 (tui_rl_change_windows): Renames tui_change_windows.
37 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
38 (tui_initialize_readline): Update.
40 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
42 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
45 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
47 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
48 to find symbol address.
50 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
52 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
53 and use tuiGetBeginAsmAddress.
54 * tuiSourceWin.h (tui_display_main): Declare.
55 * tui.h (tuiDisplayMainFunction): Remove.
56 * tui-hooks.c (tui_new_objfile_hook): Update.
58 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
60 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
61 (tuiShowSourceAsIs): Don't declare.
63 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
65 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
68 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
70 * tuiStack.c (tuiSetLocatorContent): Remove.
71 (tuiUpdateLocatorInfoFromFrame): Remove.
72 (tui_set_locator_info): Allocate the content buffer if necessary.
73 (tui_set_locator_filename): Call tui_set_locator_info directly.
74 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
77 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
79 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
80 tuiUpdateLocatorFilename.
81 * tuiStack.c (tuiSetLocatorInfo): Make it static.
82 (tuiSetLocatorContent): Likewise.
83 (tuiUpdateLocatorInfoFromFrame): Likewise.
84 (tuiSwitchFilename): Remove.
85 (tui_set_locator_filename): New function
86 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
87 use tui_set_locator_filename to record the filename.
88 (tuiUpdateLocatorFilename): Likewise.
89 (tuiUpdateLocatorInfoFromFrame): Update.
90 (tuiSetLocatorContent): Likewise.
91 * tuiStack.h (tuiClearLocatorContent): Don't declare.
92 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
93 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
95 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
97 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
99 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
100 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
101 * tuiData.h (TuiSourceInfo): Add filename member.
102 (TuiGenWinInfo): Add title member.
103 * tuiData.c (initGenericPart): Clear title.
104 (freeWindow): Free title and filename; remove unused locals.
105 (initWinInfo): Clear filename.
106 (tuiDelWindow): Free it; remove unused locals.
108 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
110 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
111 (tuiUpdateLocatorDisplay): Likewise.
112 * tuiStack.c (tuiGetLocatorFilename): Remove.
113 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
114 instead of tuiUpdateLocatorDisplay.
115 (tuiUpdateLocatorDisplay): Remove.
117 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
119 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
120 * tuiStack.c (tuiClearLocatorDisplay): Remove.
121 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
122 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
124 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
126 * tuiStack.c (tui_get_function_from_frame): Rename from
127 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
129 (tuiUpdateLocatorInfoFromFrame): Update.
131 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
133 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
134 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
135 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
136 (_tuiSetFloatRegsContent): Likewise.
137 (_tuiRegisterName): Return a const char*.
138 * tuiData.h (_TuiDataElement): Use const char* for name.
140 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
142 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
143 (tuiShowAllExecInfosContent): Likewise.
144 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
145 (tuiShowAllExecInfosContent): Remove.
146 (tuiAllocSourceBuffer): Remove unused locals.
148 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
150 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
151 to follow other gdb's command names; use execute_command; cleanup.
152 (_initialize_tuiStack): Update.
154 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
156 * tuiWin.h (tui_update_gdb_sizes): Declare.
158 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
160 * tui.c (strcat_to_buf): Use const char* for source item.
161 (tui_enable): Update the windows if there is a selected frame.
162 * tui.h (strcat_to_buf): Update prototype.
163 (strcat_to_buf_with_fmt): Remove.
165 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
167 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
168 is the size of command window.
169 (tuiResizeAll): Call it instead of init_page_info.
170 * tui.c (tui_enable): Call it to resize to TUI command window.
171 (tui_disable): Likewise for plain screen.
173 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
175 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
176 use tuiShowFrameInfo instead of tuiSetLocatorContent.
177 * tuiLayout.h (showLayout): Remove.
178 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
179 (_showSourceDisassemCommand): Likewise.
180 (showLayout): Make it static.
181 (lastLayout): Remove.
183 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
185 * tuiSourceWin.c (tui_show_source_line): New function.
186 (tuiShowSourceContent): Call it and avoid clearing the window before
188 (tuiClearAllSourceWinsContent): Remove.
189 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
190 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
191 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
192 (tuiRefreshAll): Don't clear the window.
193 (_makeVisibleWithNewHeight): Don't clear locator line.
194 (tuiResizeAll): Remove unused locals.
195 (_tuiAdjustWinHeights): Likewise.
196 (_makeInvisibleAndSetNewHeight): Likewise.
197 (_newHeightOk): Likewise.
198 * tuiLayout.c (showLayout): Don't clear source windows.
199 (tuiSetLayout): Don't clear the window.
200 (_initAndMakeWin): Likewise for status line.
201 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
202 (makeWindow): Likewise.
203 (tuiClearWin): Remove.
204 * tuiGeneralWin.h (tuiClearWin): Don't declare.
206 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
208 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
209 (tuiAsmWinIsDisplayed): Remove.
210 (tuiShowAllSourceWinsContent): Remove.
211 (tuiUpdateOnEnd): Remove.
212 * tuiGeneralWin.c (scrollWinForward): Remove.
213 (scrollWinBackward): Remove.
214 (_winResize): Don't declare.
215 * tui.h (tuiUpdateOnEnd): Don't declare.
216 (vcatch_errors, va_catch_errors): Likewise.
217 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
218 (tuiShowAllSourceWinsContent): Likewise.
219 * tuiGeneralWin.h (scrollWinForward): Likewise.
220 (scrollWinBackward): Likewise.
222 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
224 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
226 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
229 * tui.c: Disable <termio.h> include.
231 2002-03-15 Andrew Cagney <ac131313@redhat.com>
233 * tui-out.c (XMALLOC): Delete macro. Update copyright.
235 2002-03-01 Andrew Cagney <ac131313@redhat.com>
237 * tui-hooks.c: Add FIXME to explain true/false problem. Update
239 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
240 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
241 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
244 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
245 * tui-hooks.c: Include <curses.h> before "bfd.h".
247 * tuiCommand.c: Likewise.
248 * tuiData.c: Likewise.
249 * tuiDataWin.c: Likewise.
250 * tuiDisassem.c: Likewise.
251 * tuiGeneralWin.c: Likewise.
253 * tuiLayout.c: Likewise.
254 * tuiRegs.c: Likewise.
255 * tuiSource.c: Likewise.
256 * tuiSourceWin.c: Likewise.
257 * tuiStack.c: Likewise.
258 * tuiWin.c: Likewise.
260 2002-02-01 Andrew Cagney <ac131313@redhat.com>
262 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
264 2001-10-20 Andrew Cagney <ac131313@redhat.com>
266 * tuiDisassem.c: Include "value.h".
267 * tuiSourceWin.c: Ditto.
269 2001-09-28 Tom Tromey <tromey@redhat.com>
271 * tuiLayout.h (tui_set_layout): Don't declare.
272 * tui.h (tui_vAddWinToLayout): Don't declare.
273 (tui_vSetLayoutTo): Likewise.
274 (tui_set_layout): Declare.
276 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
278 * tuiSourceWin.c: Use disp_del instead of del.
280 * tuiSource.c: Use disp_del instead of del.
282 * tuiDisassem.c: Use disp_del instead of del.
284 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
286 * tui.c (tui_enable): Remove call to terminal_save_ours().
287 (tui_disable): Likewise.
289 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
291 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
292 set/show configuration variables.
293 (show_tui_cmd): New function.
294 (set_tui_cmd): New function.
296 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
298 * tui-hooks.c: New file, gdb hooks for tui.
299 * tui-out.c: New file, image copied from cli-out.c.
300 (tui_field_int): Identify "line" fields and keep track of them.
301 (tui_field_string): Likewise for "file".
302 (tui_out_new): Use flags = 0 to avoid printing the sources.
304 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
306 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
307 leave it in the command window.
308 (tui_redisplay_readline): Save cursor position to restore the
309 cursor after we go back from background.
310 * tuiData.h (TuiCommandInfo): Add start_line member.
312 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
314 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
315 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
316 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
318 * tui.c (tui_show_source): New function.
319 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
320 (tui_switch_mode): Prep or deprep readline terminal;
321 make sure the \n we return does not redo the last command.
322 * tui.h (tui_show_source): Declare.
323 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
324 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
326 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
328 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
329 if SIGCONT is defined.
330 (tui_cont_sig): New function when SIGCONT is defined.
331 (tui_setup_io): Save tty setting to restore by SIGCONT.
333 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
335 * tui.h (tui_show_assembly): Declare.
336 (tui_is_window_visible): Declare.
337 * tui.c (tui_show_assembly): New function.
338 (tui_is_window_visible): New function.
339 (tui_get_command_dimension): New function.
341 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
343 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
345 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
347 * tui-file.c (tui_file_fputs): Use tui_puts.
349 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
351 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
352 * tuiStack.h (tuiGetLocatorFilename): Declare.
353 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
354 * tuiData.h (addToSourceWindows): Declare.
356 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
358 * tui.c (tui_change_windows): New function.
359 (tui_delete_other_windows): New function.
360 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
361 (tui_enable): Enable the keypad; call tui_update_variables.
362 (strcat_to_buf_with_fmt): Remove.
364 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
366 * tui.h: Remove old declarations, add the new ones.
367 * tui.c (tui_switch_mode): New function.
368 (tui_initialize_readline): New function.
369 (tui_enable): New function.
370 (tui_disable): New function.
371 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
372 (tui_vSelectSourceSymtab): Remove.
373 (tuiInitWindows): Remove.
374 (_initialize_tui): Remove.
375 (_tuiReset): Keep but put arround #if 0.
377 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
379 * tuiIO.h: Remove old declarations and add the new ones.
380 * tuiIO.c: New management for curses and gdb terminal interactions.
382 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
383 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
384 (tui_owns_terminal): Remove.
385 (tui_redisplay_readline): New function.
386 (tui_puts): New function.
387 (tui_prep_terminal): New function.
388 (tui_deprep_terminal): New function.
389 (tui_getc): Rename of tuiGetc, simplify and fix.
390 (tui_setup_io): New function.
391 (tui_initialize_io): New function.
393 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
395 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
396 (_tuiRegisterFormat): Reduce size of format result.
398 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
400 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
401 * tuiWin.h: Declare the new variables.
402 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
403 (tui_update_variables): New function.
404 (translate): New function.
405 (tui_border_kind_enums, tui_border_mode_enums): New tables.
406 (tui_border_mode_translate): New table.
407 (tui_border_kind_translate_*): New tables.
408 (tui_active_border_mode): New variables.
409 (tui_border_*): New variables.
411 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
413 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
414 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
416 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
417 (tui_vUpdateLocatorFilename): Remove.
418 * tuiStack.h: Update prototypes.
420 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
421 (tuiLineIsDisplayed): Split for address and line.
422 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
423 (tuiUpdateSourceWindowAsIs): Likewise.
424 (tuiUpdateSourceWindowsWithAddr): Likewise.
425 (tuiUpdateSourceWindowsWithLine): Likewise.
426 (tuiHorizontalSourceScroll): Likewise.
427 (tuiSetIsExecPointAt): Likewise.
428 (tuiUpdateOnEnd): Likewise.
429 * tuiSourceWin.h: Update prototypes.
431 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
432 (tuiShowSource): Likewise.
433 (tuiVerticalSourceScroll): Likewise.
434 * tuiSource.h (tuiShowSource): Update prototype.
436 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
437 (tuiShowDisassem): Use TuiLineOrAddress type.
438 (tuiShowDisassemAndUpdateSource): Likewise.
439 (tuiVerticalDisassemScroll): Likewise.
440 (tuiShowDisassemAsIs): Remove.
441 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
443 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
444 (clearWinDetail): Likewise.
445 (displayableWinContentOf): Fix address conversion.
446 (tuiNextWin): Fix crash when the window is not yet created.
447 (partialWinByName): Likewise.
449 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
451 * tuiSourceWin.h: Remove unused declarations.
452 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
453 (tui_vUpdateSourceWindowsWithLine): Remove.
454 (tui_vAllSetHasBreakAt): Remove.
456 * tuiLayout.h (tui_set_layout): Declare.
457 (tui_vSetLayoutTo): Remove.
458 (tui_vAddWinToLayout): Remove.
459 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
460 (_tuiToggleLayout_command): Remove.
461 (_tuiToggleSplitLayout_command): Remove.
462 (_tuiLayout_command): Remove.
463 (tui_vSetLayoutTo): Remove.
464 (tui_vAddWinToLayout): Remove.
466 * tuiDataWin.h (tui_vCheckDataValues): Remove.
467 * tuiDataWin.c (tui_vCheckDataValues): Remove.
469 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
471 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
472 (_parseScrollingArgs): Use xstrdup.
473 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
474 (_tuiScrollBackward_command): Likewise.
475 (_tuiScrollLeft_command): Likewise.
476 (_tuiScrollRight_command): Likewise.
477 (_tuiSetFocus): Likewise.
478 (_tuiSetFocus_command): Likewise.
479 (_tuiRefreshAll_command): Likewise.
480 (_tuiSetTabWidth_command): Likewise.
481 (_tuiSetWinHeight): Likewise.
482 (_tuiSetWinHeight_command): Likewise.
483 (_tuiXDBsetWinHeight): Likewise.
484 (_tui_vSetFocus): Remove.
485 (_tui_vSetWinHeight): Remove.
486 (_tui_vXDBsetWinHeight): Remove.
488 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
490 * tuiCommand.h: Remove unused declarations.
491 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
492 (tuiIncrCommandCharCountBy): Remove.
493 (tuiDecrCommandCharCountBy): Remove.
494 (tuiSetCommandCharCountTo): Remove.
495 (tuiClearCommandCharCount): Remove.
497 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
499 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
500 create the tui class help.
501 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
502 * tuiRegs.c (_initialize_tuiRegs): Likewise.
503 * tuiStack.c (_initialize_tuiStack): Likewise.
505 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
507 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
508 (tuiVerticalDisassemScroll): Likewise.
509 (tuiShowDisassemAndUpdateSource): Check for null symtab to
512 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
514 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
515 (tuiRead, tui_vread): Remove.
517 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
518 (vcatch_errors, _tui_vDo): Remove.
519 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
521 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
522 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
523 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
524 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
525 (_tuiLayout_command): Call tui_set_layout.
527 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
528 (_tuiScrollRegsForward_command): Likewise.
529 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
530 (_tuiShowGeneral_command): Likewise.
531 (_tuiShowSpecial_command): Likewise.
532 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
533 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
534 (_tuiScrollForward_command): Call tui_scroll.
535 (_tuiScrollBackward_command): Likewise.
536 (_tuiScrollLeft_command): Likewise.
537 (_tuiScrollRight_command): Likewise.
538 (_tuiSetFocus_command): Call _tuiSetFocus.
539 (_tuiRefreshAll_command): Call tuiRefreshAll.
540 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
541 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
542 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
544 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
546 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
547 (TuiLineOrAddress): Likewise.
548 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
550 (tuiSetDisassemContent): Likewise.
551 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
552 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
553 (tuiSetLayout): Likewise.
554 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
555 (tuiUpdateSourceWindowsWithAddr): Likewise.
556 (tuiUpdateSourceWindowsWithLine): Likewise.
557 (tuiSetHasBreakAt): Likewise.
558 * tuiStack.c (tuiSetLocatorInfo): Likewise.
559 (tuiSwitchFilename): Likewise.
560 (tuiUpdateLocatorInfoFromFrame): Likewise.
561 (tuiSetLocatorContent): Likewise.
562 (tuiShowFrameInfo): Likewise.
563 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
564 * tuiSourceWin.h: Likewise.
565 * tuiStack.h: Likewise.
567 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
569 * tuiWin.c: Add missing includes.
570 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
571 * tuiLayout.c: Add missing includes.
572 (_initAndMakeWin): Don't put curses in echo mode.
573 (_extractDisplayStartAddr): Fix calls to find_line_pc.
574 (_tuiLayout_command): Missing ',' in warning call.
575 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
577 (tuiSetHasBreakAt): Check for null source file.
579 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
581 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
582 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
583 * tui.c (_tui_vToggle_command): Likewise.
585 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
587 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
589 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
591 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
592 each register window.
593 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
594 of the register to check.
595 (_tuiRegValueHasChanged): Likewise.
596 (_tuiRegisterName): Use REGISTER_NAME.
597 (tui_restore_gdbout): New function.
598 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
600 (START_SPECIAL_REGS): Define.
601 (_tuiGetRegisterRawValue): Use get_saved_register.
602 (_tuiDisplayRegister): Fix clearing of register window.
604 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
606 * tui-file.h (fputs_unfiltered_hook): Remove.
607 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
608 (tui_file_fputs): Likewise; simplify
610 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
612 * tuiStack.c: Add missing includes.
613 (tuiShowFrameInfo): Don't crash when there is no symbol table
614 associated with the pc.
615 * tuiSource.c (_hasBreak): Check for null source file.
616 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
617 (_tuiSetFocus): Check for null dataWin.
618 * tuiGeneralWin.c (refreshAll): Check for null list[type].
620 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
622 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
623 to disassemble in the curses window.
625 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
627 * tui.h: Cleanup to avoid inclusion of curses includes.
628 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
629 * tuiData.h: To here; include curses includes here.
630 (setTermHeightTo): Rename of setTermHeight to follow reality.
631 (setTermWidthTo): Likewise with setTermWidth.
633 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
635 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
636 tuiIO.c, tuiData.c: Likewise.
637 tuiDataWin.c, tuiDisassem.c: Likewise.
638 tuiGeneralWin.c, tuiLayout.c: Likewise.
639 tuiRegs.c, tuiSource.c: Likewise.
640 tuiSouceWin.c, tuiStack.c: Likewise.
642 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
644 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
645 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
646 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
647 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
648 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
649 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
651 2001-03-08 Andrew Cagney <ac131313@redhat.com>
653 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
655 2001-03-06 Kevin Buettner <kevinb@redhat.com>
657 * tui-file.h: Update/correct copyright notice.
659 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
661 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
664 2000-12-14 Kevin Buettner <kevinb@redhat.com>
666 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
667 of free() with xfree().
669 2000-06-22 Kevin Buettner <kevinb@redhat.com>
671 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
673 2000-06-20 Kevin Buettner <kevinb@redhat.com>
675 * tuiLayout.c: Eliminate use of PARAMS from this file.
677 2000-06-17 Kevin Buettner <kevinb@redhat.com>
679 * tuiIO.c: Eliminate use of PARAMS from this file.
681 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
683 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
685 (tui_file_fputs): Pass ``file'' and not ``stream'' to
686 tui_file_adjust_strbuf.
688 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
690 * tui.h: Include <ncurses.h> when available.
691 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
693 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
695 * Makefile.in: Delete.
697 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
699 * Makefile.in (distclean, maintainer-clean, realclean,
700 mostlyclean): New targets.
702 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
704 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
705 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
706 ui-file / ``struct ui_file''.
708 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
710 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
711 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
712 tui_file_rewind, tui_file_put, tui_file_fputs,
713 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
714 fputs_unfiltered_hook): Move to here from ../utils.c
716 * tui-file.h, tui-file.c: New files.
718 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
720 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
721 (tuiSetDisassemContent): Replace gdb_file_init_astring with
722 tui_sfileopen. Replace gdb_file_get_strbuf with
725 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
727 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
728 (tuiSetDisassemContent): Repace gdb_file_deallocate with
729 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
731 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
733 * tuiSource.c: Include "source.h".
734 (open_source_file, find_source_lines): Delete declarations.
736 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
738 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
741 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
743 The following changes were made by Jim Blandy <jimb@cygnus.com>,
744 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
745 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
746 Taylor <taylor@cygnus.com>, as part of the project to merge in
747 changes originally made by HP; HP did not create ChangeLog
750 * Makefile.in: New file; we're merging HP's changes into GDB, and
751 we've moved the TUI files into a subdirectory, so we need a new
755 #include <term.h>, if we have it, to get declarations for
756 the termcap functions on Solaris.
757 (tgoto): Add external K&R declaration for this; Solaris doesn't
758 bother to actually declare it in their header files.
759 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
760 we'd rather use the USG mechanisms than the Berkeley mechanisms
761 (TIOCGETC is one of the Berkeley terminal control ioctls).
762 Apologies if this causes trouble later; this should all be handled
764 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
766 (tuiFree): replace safe_free with free.
767 (strcat_to_buf): new function, copied from utils.c.
768 (tuiInit): Add ignored `argv0' argument, to match the type that
769 init_ui_hook expects; updated declaration. Call the
770 initialize_tui_files function constructed above. Initialize
772 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
773 element of the locator window's content allocated. This seems
774 wrong, because it must have been initialized somehow in HP's
775 sources, and we should do it the same way now. But we do get
776 further before it segfaults. [Postscript: HP didn't bother to
777 initialize it; they compile
778 (va_catch_errors, vcatch_errors): Functions moved here from
779 ../utils.c in HP's sources. They're not used anywhere else.
780 (xdb_style): Delete this variable, and remove all references to
781 it. It's always true.
782 (tuiInit, _tui_vDo): References removed.
784 * tui.h: Add prototypes.
785 Don't #include "gendefs.h"; it's only used in the TUI.
786 Integrate its contents into this file:
787 #include <ansidecl.h> here.
788 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
790 * tuiCommand.c: #include "defs.h", so we get the appropriate
791 definition of GDB_FILE.
794 (freeWindow): replace safe_free with free.
795 (tui_version): don't define it here; it's defined in main.c now.
798 (tuiSetDisassemContent): Call strcat_address_numeric instead of
799 strcat_address. Simplify the control structure. Use predefined
800 GDB function to print asm inst address. Use GDB_FILE to collect
804 (tgoto): Add external K&R declaration for this here too.
805 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
806 (tuiPuts_unfiltered): change FILE to GDB_FILE.
807 (tui_tputs): fix prototype for 3rd argument.
809 * tuiIO.h (tuiPuts_unfiltered): change declaration.
812 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
813 that decides which registers to display (i.e. single precision
814 float, double precision float, general, special). Previously,
815 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
816 compiling with -z poses a problem. When the first layout command
817 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
820 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
822 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
823 <stdarg.h>. No idea exactly what's conflicting with what, but the
825 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
826 object, calls pa_do_strcat_registers_info, copies the register
827 info into a buffer, and deallocates the GDB_FILE object. Remove
828 some code that is not executed. Also, call to
829 pa_do_strcat_registers_info has an additional parameter,
830 precision. This code requires some new per-target functions that
831 we don't want to merge. Dyke it out, with #ifdef
832 TUI_EXTENDED_FORMATTERS.
833 (_tuiSetSpecialRegsContent): this function was ifdefed out.
835 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
837 (IS_64BIT): Just define this to be zero; we're not merging in the
839 (tuiShowRegisters): Comment out all references to the "special"
840 regs; we don't have a distinction between the "special" and
841 "non-special" regs in most of our machine descriptions. This code
842 is PA-specific in other ways as well, and needs to be redesigned
843 to be portable to other processors.
845 * tuiWin.c: #include <string.h>, to get a declaration for
848 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
849 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
850 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
851 bool to int throughout. Re-indented, GNU style.
853 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
854 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
855 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
856 Changed bool to int throughout.