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