1 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
3 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
4 * tuiStack.c (tuiClearLocatorDisplay): Remove.
5 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
6 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
8 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
10 * tuiStack.c (tui_get_function_from_frame): Rename from
11 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
13 (tuiUpdateLocatorInfoFromFrame): Update.
15 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
17 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
18 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
19 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
20 (_tuiSetFloatRegsContent): Likewise.
21 (_tuiRegisterName): Return a const char*.
22 * tuiData.h (_TuiDataElement): Use const char* for name.
24 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
26 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
27 (tuiShowAllExecInfosContent): Likewise.
28 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
29 (tuiShowAllExecInfosContent): Remove.
30 (tuiAllocSourceBuffer): Remove unused locals.
32 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
34 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
35 to follow other gdb's command names; use execute_command; cleanup.
36 (_initialize_tuiStack): Update.
38 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
40 * tuiWin.h (tui_update_gdb_sizes): Declare.
42 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
44 * tui.c (strcat_to_buf): Use const char* for source item.
45 (tui_enable): Update the windows if there is a selected frame.
46 * tui.h (strcat_to_buf): Update prototype.
47 (strcat_to_buf_with_fmt): Remove.
49 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
51 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
52 is the size of command window.
53 (tuiResizeAll): Call it instead of init_page_info.
54 * tui.c (tui_enable): Call it to resize to TUI command window.
55 (tui_disable): Likewise for plain screen.
57 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
59 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
60 use tuiShowFrameInfo instead of tuiSetLocatorContent.
61 * tuiLayout.h (showLayout): Remove.
62 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
63 (_showSourceDisassemCommand): Likewise.
64 (showLayout): Make it static.
67 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
69 * tuiSourceWin.c (tui_show_source_line): New function.
70 (tuiShowSourceContent): Call it and avoid clearing the window before
72 (tuiClearAllSourceWinsContent): Remove.
73 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
74 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
75 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
76 (tuiRefreshAll): Don't clear the window.
77 (_makeVisibleWithNewHeight): Don't clear locator line.
78 (tuiResizeAll): Remove unused locals.
79 (_tuiAdjustWinHeights): Likewise.
80 (_makeInvisibleAndSetNewHeight): Likewise.
81 (_newHeightOk): Likewise.
82 * tuiLayout.c (showLayout): Don't clear source windows.
83 (tuiSetLayout): Don't clear the window.
84 (_initAndMakeWin): Likewise for status line.
85 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
86 (makeWindow): Likewise.
87 (tuiClearWin): Remove.
88 * tuiGeneralWin.h (tuiClearWin): Don't declare.
90 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
92 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
93 (tuiAsmWinIsDisplayed): Remove.
94 (tuiShowAllSourceWinsContent): Remove.
95 (tuiUpdateOnEnd): Remove.
96 * tuiGeneralWin.c (scrollWinForward): Remove.
97 (scrollWinBackward): Remove.
98 (_winResize): Don't declare.
99 * tui.h (tuiUpdateOnEnd): Don't declare.
100 (vcatch_errors, va_catch_errors): Likewise.
101 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
102 (tuiShowAllSourceWinsContent): Likewise.
103 * tuiGeneralWin.h (scrollWinForward): Likewise.
104 (scrollWinBackward): Likewise.
106 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
108 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
110 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
113 * tui.c: Disable <termio.h> include.
115 2002-03-15 Andrew Cagney <ac131313@redhat.com>
117 * tui-out.c (XMALLOC): Delete macro. Update copyright.
119 2002-03-01 Andrew Cagney <ac131313@redhat.com>
121 * tui-hooks.c: Add FIXME to explain true/false problem. Update
123 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
124 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
125 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
128 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
129 * tui-hooks.c: Include <curses.h> before "bfd.h".
131 * tuiCommand.c: Likewise.
132 * tuiData.c: Likewise.
133 * tuiDataWin.c: Likewise.
134 * tuiDisassem.c: Likewise.
135 * tuiGeneralWin.c: Likewise.
137 * tuiLayout.c: Likewise.
138 * tuiRegs.c: Likewise.
139 * tuiSource.c: Likewise.
140 * tuiSourceWin.c: Likewise.
141 * tuiStack.c: Likewise.
142 * tuiWin.c: Likewise.
144 2002-02-01 Andrew Cagney <ac131313@redhat.com>
146 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
148 2001-10-20 Andrew Cagney <ac131313@redhat.com>
150 * tuiDisassem.c: Include "value.h".
151 * tuiSourceWin.c: Ditto.
153 2001-09-28 Tom Tromey <tromey@redhat.com>
155 * tuiLayout.h (tui_set_layout): Don't declare.
156 * tui.h (tui_vAddWinToLayout): Don't declare.
157 (tui_vSetLayoutTo): Likewise.
158 (tui_set_layout): Declare.
160 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
162 * tuiSourceWin.c: Use disp_del instead of del.
164 * tuiSource.c: Use disp_del instead of del.
166 * tuiDisassem.c: Use disp_del instead of del.
168 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
170 * tui.c (tui_enable): Remove call to terminal_save_ours().
171 (tui_disable): Likewise.
173 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
175 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
176 set/show configuration variables.
177 (show_tui_cmd): New function.
178 (set_tui_cmd): New function.
180 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
182 * tui-hooks.c: New file, gdb hooks for tui.
183 * tui-out.c: New file, image copied from cli-out.c.
184 (tui_field_int): Identify "line" fields and keep track of them.
185 (tui_field_string): Likewise for "file".
186 (tui_out_new): Use flags = 0 to avoid printing the sources.
188 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
190 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
191 leave it in the command window.
192 (tui_redisplay_readline): Save cursor position to restore the
193 cursor after we go back from background.
194 * tuiData.h (TuiCommandInfo): Add start_line member.
196 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
198 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
199 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
200 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
202 * tui.c (tui_show_source): New function.
203 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
204 (tui_switch_mode): Prep or deprep readline terminal;
205 make sure the \n we return does not redo the last command.
206 * tui.h (tui_show_source): Declare.
207 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
208 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
210 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
212 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
213 if SIGCONT is defined.
214 (tui_cont_sig): New function when SIGCONT is defined.
215 (tui_setup_io): Save tty setting to restore by SIGCONT.
217 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
219 * tui.h (tui_show_assembly): Declare.
220 (tui_is_window_visible): Declare.
221 * tui.c (tui_show_assembly): New function.
222 (tui_is_window_visible): New function.
223 (tui_get_command_dimension): New function.
225 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
227 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
229 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
231 * tui-file.c (tui_file_fputs): Use tui_puts.
233 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
235 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
236 * tuiStack.h (tuiGetLocatorFilename): Declare.
237 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
238 * tuiData.h (addToSourceWindows): Declare.
240 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
242 * tui.c (tui_change_windows): New function.
243 (tui_delete_other_windows): New function.
244 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
245 (tui_enable): Enable the keypad; call tui_update_variables.
246 (strcat_to_buf_with_fmt): Remove.
248 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
250 * tui.h: Remove old declarations, add the new ones.
251 * tui.c (tui_switch_mode): New function.
252 (tui_initialize_readline): New function.
253 (tui_enable): New function.
254 (tui_disable): New function.
255 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
256 (tui_vSelectSourceSymtab): Remove.
257 (tuiInitWindows): Remove.
258 (_initialize_tui): Remove.
259 (_tuiReset): Keep but put arround #if 0.
261 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
263 * tuiIO.h: Remove old declarations and add the new ones.
264 * tuiIO.c: New management for curses and gdb terminal interactions.
266 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
267 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
268 (tui_owns_terminal): Remove.
269 (tui_redisplay_readline): New function.
270 (tui_puts): New function.
271 (tui_prep_terminal): New function.
272 (tui_deprep_terminal): New function.
273 (tui_getc): Rename of tuiGetc, simplify and fix.
274 (tui_setup_io): New function.
275 (tui_initialize_io): New function.
277 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
279 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
280 (_tuiRegisterFormat): Reduce size of format result.
282 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
284 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
285 * tuiWin.h: Declare the new variables.
286 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
287 (tui_update_variables): New function.
288 (translate): New function.
289 (tui_border_kind_enums, tui_border_mode_enums): New tables.
290 (tui_border_mode_translate): New table.
291 (tui_border_kind_translate_*): New tables.
292 (tui_active_border_mode): New variables.
293 (tui_border_*): New variables.
295 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
297 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
298 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
300 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
301 (tui_vUpdateLocatorFilename): Remove.
302 * tuiStack.h: Update prototypes.
304 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
305 (tuiLineIsDisplayed): Split for address and line.
306 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
307 (tuiUpdateSourceWindowAsIs): Likewise.
308 (tuiUpdateSourceWindowsWithAddr): Likewise.
309 (tuiUpdateSourceWindowsWithLine): Likewise.
310 (tuiHorizontalSourceScroll): Likewise.
311 (tuiSetIsExecPointAt): Likewise.
312 (tuiUpdateOnEnd): Likewise.
313 * tuiSourceWin.h: Update prototypes.
315 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
316 (tuiShowSource): Likewise.
317 (tuiVerticalSourceScroll): Likewise.
318 * tuiSource.h (tuiShowSource): Update prototype.
320 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
321 (tuiShowDisassem): Use TuiLineOrAddress type.
322 (tuiShowDisassemAndUpdateSource): Likewise.
323 (tuiVerticalDisassemScroll): Likewise.
324 (tuiShowDisassemAsIs): Remove.
325 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
327 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
328 (clearWinDetail): Likewise.
329 (displayableWinContentOf): Fix address conversion.
330 (tuiNextWin): Fix crash when the window is not yet created.
331 (partialWinByName): Likewise.
333 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
335 * tuiSourceWin.h: Remove unused declarations.
336 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
337 (tui_vUpdateSourceWindowsWithLine): Remove.
338 (tui_vAllSetHasBreakAt): Remove.
340 * tuiLayout.h (tui_set_layout): Declare.
341 (tui_vSetLayoutTo): Remove.
342 (tui_vAddWinToLayout): Remove.
343 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
344 (_tuiToggleLayout_command): Remove.
345 (_tuiToggleSplitLayout_command): Remove.
346 (_tuiLayout_command): Remove.
347 (tui_vSetLayoutTo): Remove.
348 (tui_vAddWinToLayout): Remove.
350 * tuiDataWin.h (tui_vCheckDataValues): Remove.
351 * tuiDataWin.c (tui_vCheckDataValues): Remove.
353 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
355 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
356 (_parseScrollingArgs): Use xstrdup.
357 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
358 (_tuiScrollBackward_command): Likewise.
359 (_tuiScrollLeft_command): Likewise.
360 (_tuiScrollRight_command): Likewise.
361 (_tuiSetFocus): Likewise.
362 (_tuiSetFocus_command): Likewise.
363 (_tuiRefreshAll_command): Likewise.
364 (_tuiSetTabWidth_command): Likewise.
365 (_tuiSetWinHeight): Likewise.
366 (_tuiSetWinHeight_command): Likewise.
367 (_tuiXDBsetWinHeight): Likewise.
368 (_tui_vSetFocus): Remove.
369 (_tui_vSetWinHeight): Remove.
370 (_tui_vXDBsetWinHeight): Remove.
372 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
374 * tuiCommand.h: Remove unused declarations.
375 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
376 (tuiIncrCommandCharCountBy): Remove.
377 (tuiDecrCommandCharCountBy): Remove.
378 (tuiSetCommandCharCountTo): Remove.
379 (tuiClearCommandCharCount): Remove.
381 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
383 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
384 create the tui class help.
385 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
386 * tuiRegs.c (_initialize_tuiRegs): Likewise.
387 * tuiStack.c (_initialize_tuiStack): Likewise.
389 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
391 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
392 (tuiVerticalDisassemScroll): Likewise.
393 (tuiShowDisassemAndUpdateSource): Check for null symtab to
396 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
398 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
399 (tuiRead, tui_vread): Remove.
401 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
402 (vcatch_errors, _tui_vDo): Remove.
403 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
405 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
406 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
407 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
408 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
409 (_tuiLayout_command): Call tui_set_layout.
411 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
412 (_tuiScrollRegsForward_command): Likewise.
413 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
414 (_tuiShowGeneral_command): Likewise.
415 (_tuiShowSpecial_command): Likewise.
416 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
417 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
418 (_tuiScrollForward_command): Call tui_scroll.
419 (_tuiScrollBackward_command): Likewise.
420 (_tuiScrollLeft_command): Likewise.
421 (_tuiScrollRight_command): Likewise.
422 (_tuiSetFocus_command): Call _tuiSetFocus.
423 (_tuiRefreshAll_command): Call tuiRefreshAll.
424 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
425 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
426 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
428 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
430 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
431 (TuiLineOrAddress): Likewise.
432 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
434 (tuiSetDisassemContent): Likewise.
435 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
436 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
437 (tuiSetLayout): Likewise.
438 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
439 (tuiUpdateSourceWindowsWithAddr): Likewise.
440 (tuiUpdateSourceWindowsWithLine): Likewise.
441 (tuiSetHasBreakAt): Likewise.
442 * tuiStack.c (tuiSetLocatorInfo): Likewise.
443 (tuiSwitchFilename): Likewise.
444 (tuiUpdateLocatorInfoFromFrame): Likewise.
445 (tuiSetLocatorContent): Likewise.
446 (tuiShowFrameInfo): Likewise.
447 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
448 * tuiSourceWin.h: Likewise.
449 * tuiStack.h: Likewise.
451 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
453 * tuiWin.c: Add missing includes.
454 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
455 * tuiLayout.c: Add missing includes.
456 (_initAndMakeWin): Don't put curses in echo mode.
457 (_extractDisplayStartAddr): Fix calls to find_line_pc.
458 (_tuiLayout_command): Missing ',' in warning call.
459 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
461 (tuiSetHasBreakAt): Check for null source file.
463 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
465 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
466 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
467 * tui.c (_tui_vToggle_command): Likewise.
469 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
471 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
473 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
475 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
476 each register window.
477 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
478 of the register to check.
479 (_tuiRegValueHasChanged): Likewise.
480 (_tuiRegisterName): Use REGISTER_NAME.
481 (tui_restore_gdbout): New function.
482 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
484 (START_SPECIAL_REGS): Define.
485 (_tuiGetRegisterRawValue): Use get_saved_register.
486 (_tuiDisplayRegister): Fix clearing of register window.
488 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
490 * tui-file.h (fputs_unfiltered_hook): Remove.
491 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
492 (tui_file_fputs): Likewise; simplify
494 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
496 * tuiStack.c: Add missing includes.
497 (tuiShowFrameInfo): Don't crash when there is no symbol table
498 associated with the pc.
499 * tuiSource.c (_hasBreak): Check for null source file.
500 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
501 (_tuiSetFocus): Check for null dataWin.
502 * tuiGeneralWin.c (refreshAll): Check for null list[type].
504 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
506 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
507 to disassemble in the curses window.
509 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
511 * tui.h: Cleanup to avoid inclusion of curses includes.
512 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
513 * tuiData.h: To here; include curses includes here.
514 (setTermHeightTo): Rename of setTermHeight to follow reality.
515 (setTermWidthTo): Likewise with setTermWidth.
517 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
519 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
520 tuiIO.c, tuiData.c: Likewise.
521 tuiDataWin.c, tuiDisassem.c: Likewise.
522 tuiGeneralWin.c, tuiLayout.c: Likewise.
523 tuiRegs.c, tuiSource.c: Likewise.
524 tuiSouceWin.c, tuiStack.c: Likewise.
526 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
528 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
529 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
530 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
531 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
532 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
533 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
535 2001-03-08 Andrew Cagney <ac131313@redhat.com>
537 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
539 2001-03-06 Kevin Buettner <kevinb@redhat.com>
541 * tui-file.h: Update/correct copyright notice.
543 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
545 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
548 2000-12-14 Kevin Buettner <kevinb@redhat.com>
550 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
551 of free() with xfree().
553 2000-06-22 Kevin Buettner <kevinb@redhat.com>
555 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
557 2000-06-20 Kevin Buettner <kevinb@redhat.com>
559 * tuiLayout.c: Eliminate use of PARAMS from this file.
561 2000-06-17 Kevin Buettner <kevinb@redhat.com>
563 * tuiIO.c: Eliminate use of PARAMS from this file.
565 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
567 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
569 (tui_file_fputs): Pass ``file'' and not ``stream'' to
570 tui_file_adjust_strbuf.
572 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
574 * tui.h: Include <ncurses.h> when available.
575 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
577 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
579 * Makefile.in: Delete.
581 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
583 * Makefile.in (distclean, maintainer-clean, realclean,
584 mostlyclean): New targets.
586 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
588 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
589 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
590 ui-file / ``struct ui_file''.
592 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
594 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
595 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
596 tui_file_rewind, tui_file_put, tui_file_fputs,
597 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
598 fputs_unfiltered_hook): Move to here from ../utils.c
600 * tui-file.h, tui-file.c: New files.
602 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
604 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
605 (tuiSetDisassemContent): Replace gdb_file_init_astring with
606 tui_sfileopen. Replace gdb_file_get_strbuf with
609 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
611 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
612 (tuiSetDisassemContent): Repace gdb_file_deallocate with
613 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
615 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
617 * tuiSource.c: Include "source.h".
618 (open_source_file, find_source_lines): Delete declarations.
620 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
622 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
625 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
627 The following changes were made by Jim Blandy <jimb@cygnus.com>,
628 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
629 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
630 Taylor <taylor@cygnus.com>, as part of the project to merge in
631 changes originally made by HP; HP did not create ChangeLog
634 * Makefile.in: New file; we're merging HP's changes into GDB, and
635 we've moved the TUI files into a subdirectory, so we need a new
639 #include <term.h>, if we have it, to get declarations for
640 the termcap functions on Solaris.
641 (tgoto): Add external K&R declaration for this; Solaris doesn't
642 bother to actually declare it in their header files.
643 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
644 we'd rather use the USG mechanisms than the Berkeley mechanisms
645 (TIOCGETC is one of the Berkeley terminal control ioctls).
646 Apologies if this causes trouble later; this should all be handled
648 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
650 (tuiFree): replace safe_free with free.
651 (strcat_to_buf): new function, copied from utils.c.
652 (tuiInit): Add ignored `argv0' argument, to match the type that
653 init_ui_hook expects; updated declaration. Call the
654 initialize_tui_files function constructed above. Initialize
656 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
657 element of the locator window's content allocated. This seems
658 wrong, because it must have been initialized somehow in HP's
659 sources, and we should do it the same way now. But we do get
660 further before it segfaults. [Postscript: HP didn't bother to
661 initialize it; they compile
662 (va_catch_errors, vcatch_errors): Functions moved here from
663 ../utils.c in HP's sources. They're not used anywhere else.
664 (xdb_style): Delete this variable, and remove all references to
665 it. It's always true.
666 (tuiInit, _tui_vDo): References removed.
668 * tui.h: Add prototypes.
669 Don't #include "gendefs.h"; it's only used in the TUI.
670 Integrate its contents into this file:
671 #include <ansidecl.h> here.
672 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
674 * tuiCommand.c: #include "defs.h", so we get the appropriate
675 definition of GDB_FILE.
678 (freeWindow): replace safe_free with free.
679 (tui_version): don't define it here; it's defined in main.c now.
682 (tuiSetDisassemContent): Call strcat_address_numeric instead of
683 strcat_address. Simplify the control structure. Use predefined
684 GDB function to print asm inst address. Use GDB_FILE to collect
688 (tgoto): Add external K&R declaration for this here too.
689 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
690 (tuiPuts_unfiltered): change FILE to GDB_FILE.
691 (tui_tputs): fix prototype for 3rd argument.
693 * tuiIO.h (tuiPuts_unfiltered): change declaration.
696 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
697 that decides which registers to display (i.e. single precision
698 float, double precision float, general, special). Previously,
699 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
700 compiling with -z poses a problem. When the first layout command
701 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
704 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
706 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
707 <stdarg.h>. No idea exactly what's conflicting with what, but the
709 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
710 object, calls pa_do_strcat_registers_info, copies the register
711 info into a buffer, and deallocates the GDB_FILE object. Remove
712 some code that is not executed. Also, call to
713 pa_do_strcat_registers_info has an additional parameter,
714 precision. This code requires some new per-target functions that
715 we don't want to merge. Dyke it out, with #ifdef
716 TUI_EXTENDED_FORMATTERS.
717 (_tuiSetSpecialRegsContent): this function was ifdefed out.
719 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
721 (IS_64BIT): Just define this to be zero; we're not merging in the
723 (tuiShowRegisters): Comment out all references to the "special"
724 regs; we don't have a distinction between the "special" and
725 "non-special" regs in most of our machine descriptions. This code
726 is PA-specific in other ways as well, and needs to be redesigned
727 to be portable to other processors.
729 * tuiWin.c: #include <string.h>, to get a declaration for
732 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
733 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
734 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
735 bool to int throughout. Re-indented, GNU style.
737 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
738 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
739 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
740 Changed bool to int throughout.