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