* tui-out.c (tui_out_data): Fix typedef.
[deliverable/binutils-gdb.git] / gdb / tui / ChangeLog
1 2003-03-13 Stephane Carrez <stcarrez@nerim.fr>
2
3 * tui-out.c (tui_out_data): Fix typedef.
4
5 2003-03-08 Andrew Cagney <cagney@redhat.com>
6
7 * tui-out.c: Update copyright.
8 (tui_out_data): Define typedef. Use instead of ui_out_data.
9
10 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11
12 * tui.c (tui_enable, tui_disable): Don't modify tui_version.
13 (tui_is_window_visible, tui_get_command_dimension): Test
14 tui_active instead of tui_version.
15 * tuiData.h (tui_version): Delete declaration.
16 * tui-hooks.c (tui_init_hook, tui_event_loop): Delete function,
17 moved to "tui-interp.c".
18 (tui_exit, tui_command_loop): Ditto.
19 (_initialize_tui): Don't initialize init_ui_hook. Initialize
20 target_new_objfile_hook.
21 * tui-interp.c: New file.
22
23 2003-02-12 Andrew Cagney <ac131313@redhat.com>
24
25 * tuiIO.c (tui_prep_terminal): Add one notused parameter.
26 * tui.c (tui_rl_switch_mode): Add two notused parameters.
27 (tui_rl_change_windows, tui_rl_next_keymap): Ditto.
28 (tui_rl_delete_other_windows): Ditto.
29 (tui_rl_change_windows, tui_rl_delete_other_windows): Update
30 calls.
31
32 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
33
34 Import of readline 4.3.
35 Fix PR gdb/675
36 * tuiWin.c: Include readline/readline.h.
37 (tui_update_gdb_sizes): Use accessor function rl_get_screen_size.
38 (tuiResizeAll): Ditto.
39
40 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
41
42 * tuiStack.c (tuiShowFrameInfo): Fix typo.
43
44 2002-11-29 Andrew Cagney <ac131313@redhat.com>
45
46 * tui/tui-hooks.c: Update to use deprecated_selected_frame.
47 * tui/tui.c, tui/tuiDisassem.c, tui/tuiRegs.c: Ditto.
48 * tui/tuiSource.c, tui/tuiSourceWin.c, tui/tuiWin.c: Ditto.
49
50 2002-11-28 Andrew Cagney <ac131313@redhat.com>
51
52 * tuiStack.c (tuiShowFrameInfo): Use find_frame_sal instead of
53 find_pc_line.
54
55 2002-11-23 Andrew Cagney <ac131313@redhat.com>
56
57 * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
58 deprecated_frame_in_dummy. Fix coding style.
59
60 2002-11-21 Stephane Carrez <stcarrez@nerim.fr>
61
62 * tui-hooks.c (tui_init_hook): Don't enable the TUI if a specific
63 interpreter is installed.
64
65 2002-11-18 Andrew Cagney <ac131313@redhat.com>
66
67 * tuiStack.c (tuiShowFrameInfo): Use get_frame_type instead of
68 signal_handler_caller.
69
70 2002-11-10 Andrew Cagney <ac131313@redhat.com>
71
72 * tuiStack.c (tuiShowFrameInfo): Replace frame_in_dummy with
73 deprecated_frame_in_dummy.
74
75 2002-10-26 Stephane Carrez <stcarrez@nerim.fr>
76
77 * tuiIO.c (tui_prep_terminal): Save the prompt registered in readline.
78 (tui_redisplay_readline): Use the last saved prompt.
79 (tui_rl_saved_prompt): New.
80
81 2002-10-25 Stephane Carrez <stcarrez@nerim.fr>
82
83 Fix PR gdb/787
84 * tuiWin.c (ACS_LRCORNER, ACS_LLCORNER, ACS_ULCORNER, ACS_URCORNER,
85 ACS_HLINE, ACS_VLINE): Define if they don't exist.
86
87 2002-10-25 Stephane Carrez <stcarrez@nerim.fr>
88
89 Fix PR gdb/478
90 * tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
91
92 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
93
94 * tui-hooks.c (selected_frame_level_changed_hook): Use the one
95 exported from frame.h.
96
97 2002-09-29 Elena Zannoni <ezannoni@redhat.com>
98
99 * tui.c (tui_show_source): Don't access current_source_symtab, use
100 accessor function instead. Include source.h and symtab.h
101 * tuiDisassem.c (tuiShowDisassemAndUpdateSource,
102 tuiVerticalDisassemScroll): Use accessor functions for current
103 source line and symtab. Include source.h.
104 * tuiLayout.c (_extractDisplayStartAddr): Use accessor functions
105 for current source line and symtab. Include source.h.
106 * tuiWin.c (_makeVisibleWithNewHeight): Ditto.
107 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs,
108 tuiHorizontalSourceScroll): Ditto.
109 * tuiSource.c (tuiVerticalSourceScroll): Ditto.
110
111 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
112
113 * tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs.
114 (tui_initialize_readline): Allow to use space to leave SingleKey
115 to enter one gdb command.
116 (tui_enable): Restore the TUI keymap when we are back to TUI.
117 (tui_disable): Restore normal keymap when leaving TUI.
118 * tuiIO.c (tui_redisplay_readline): Restore the SingleKey mode
119 when the buffer becomes empty and we are in tui_one_command_mode.
120
121 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
122
123 * tuiIO.c (tui_setup_io): rl_already_prompted must be cleared
124 when leaving TUI mode so that gdb prompt is displayed.
125
126 2002-09-13 Stephane Carrez <stcarrez@nerim.fr>
127
128 * tuiStack.c (tui_make_status_line): Make sure the local buffer
129 is large enough to hold the complete line.
130
131 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
132
133 * tui-hooks.c (tui_event_loop): New function.
134 (tui_command_loop): New function to override gdb loop and make sure
135 uiout is set according to TUI mode.
136 (tui_command_loop): Install the specific TUI command hook.
137 * tuiIO.c (tui_initialize_io): Initialize tui_old_uiout.
138 (tui_uiout, tui_old_uiout): Make public.
139 * tuiIO.h (tui_uiout, tui_old_uiout): Declare.
140
141 2002-09-04 Stephane Carrez <stcarrez@nerim.fr>
142
143 * tuiIO.c (tui_putc): New function to print one character.
144 (printable_part): New function from readline/complete.c.
145 (PUTX): New macro, likewise.
146 (print_filename): New function, likewise.
147 (get_y_or_n): New function, likewise and adapted for TUI.
148 (tui_rl_display_match_list): New function from readline/complete.c
149 and writes on TUI command window.
150 (tui_setup_io): Install or remove the readline hook
151 rl_completion_display_matches_hook so that completion is written
152 directly in TUI command window instead of in the TUI pipe.
153 (tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the
154 TUI redirection pipe.
155 (tui_getc): Likewise for call to tui_readline_output.
156 (tui_readline_output): Likewise for function.
157 * tui.c (tui_rl_startup_hook): Always take care of gdb prompt.
158
159 2002-09-02 Stephane Carrez <stcarrez@nerim.fr>
160
161 * tuiWin.c (_newHeightOk): Fix compilation warnings.
162
163 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
164
165 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
166 is not displayed.
167
168 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
169
170 * tui-out.c (tui_out_new): Clear start_of_line.
171 * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
172 to update the current source line.
173
174 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
175
176 * tui-hooks.c (tui_detach_hook): New hook to know when a process dies.
177 (tui_install_hooks): Install it.
178 (tui_remove_hooks): Remove it.
179
180 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
181
182 * tuiData.h (FILE_PREFIX): Don't define.
183 (blankStr, locationStr, breakStr): Don't declare.
184 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise.
185 (displayableWinContentOf, displayableWinContentAt): Likewise.
186 (winElementHeight, winByName, freeAllWindows): Likewise.
187
188 * tuiData.c (blankStr, locationStr, breakStr): Remove.
189 (breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
190 (displayableWinContentOf, displayableWinContentAt): Remove.
191 (winElementHeight, winByName, freeAllWindows): Remove.
192
193 2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
194
195 * tuiStack.c (tui_make_status_line): New function to create the
196 status line.
197 (tuiShowLocatorContent): Use it instead of displayableWinContentAt.
198 * tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
199 (PC_PREFIX): Use upper case.
200 (SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
201 (MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
202
203 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
204
205 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.
206 (tuiClearAllExecInfosContent): Likewise.
207 (tuiEraseAllExecInfosContent): Ditto.
208 (tuiUpdateSourceWindowsFromLocator): Ditto.
209 * tuiSourceWin.c (tuiUpdateAllExecInfos): Remove.
210 * tui.h (tui_vCheckDataValues): Don't declare.
211 (tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise.
212 (tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto.
213 (tui_vShowFrameInfo): Ditto.
214
215 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
216
217 * tui.c (tui_commands): Table of single key commands.
218 (tui_rl_command_key): New function to execute gdb command.
219 (tui_rl_command_mode): New function to temporarily leave SingleKey.
220 (tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
221 (tui_rl_startup_hook): New function to avoid prompt display by
222 readline functions.
223 (tui_set_key_mode): New function to set the key mode and install
224 the readline keymap.
225 (tui_initialize_readline): Create TUI SingleKey readline map.
226 (tui_enable): Install rl_startup_hook.
227 (tui_disable): Remove it.
228 * tui.h (enum tui_key_mode): Declare.
229 (tui_set_key_mode, tui_current_key_mode): Declare.
230 * tuiIO.c (tui_redisplay_readline): Don't display the prompt in
231 SingleKey mode.
232 * tuiIO.h (tui_redisplay_readline): Declare.
233
234 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
235
236 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
237 current line.
238
239 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
240
241 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
242 (_hasBreak): Remove.
243 (tuiShowSource): Fix comment indentation.
244 (tuiSourceIsDisplayed): Likewise.
245 (tuiVerticalSourceScroll): Likewise.
246
247 2002-08-30 Stephane Carrez <stcarrez@nerim.fr>
248
249 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
250 (tui_update_breakpoint_info): Declare.
251 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
252
253 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
254 information using tui_update_breakpoint_info.
255 (tui_update_all_breakpoint_info): New function to refresh all
256 execution windows.
257 (tui_update_breakpoint_info): New function to recompute the status
258 of exec info window from breakpoints.
259 (tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
260 (tuiSetExecInfoContent): Use the exec info flags computed by
261 tui_update_breakpoint_info to display a short status about breakpoints.
262
263 * tuiData.h (TuiExecInfoContent): New for exec info string.
264 (TuiWhichElement): Use it.
265 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
266 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
267 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
268 (TUI_EXECINFO_SIZE): Likewise.
269 * tuiData.c (initContentElement): Clear exec info string.
270
271 * tui-hooks.c (get_breakpoint): Remove.
272 (tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
273 (tui_event_delete_breakpoint): Likewise.
274 (tui_event_modify_breakpoint): Likewise.
275
276 2002-08-29 Stephane Carrez <stcarrez@nerim.fr>
277
278 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
279 * tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
280 tui_find_disassembly_address to find the starting address of
281 disassemble window.
282
283 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
284
285 * tuiDisassem.c (tui_disassemble): New function to disassemble
286 several lines in a buffer.
287 (tui_find_disassembly_address): New function to search backward
288 or forward a disassembly line.
289 (tuiSetDisassemContent): Use tui_disassemble to obtain the real
290 content and format it in the window.
291 (tuiShowDisassemAndUpdateSource): Remove unused locals.
292 (tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
293 obtain the address to disassemble for the scrolling.
294 * tuiDisassem.h (tuiGetBeginAsmAddress): Update.
295 * tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
296
297 2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
298
299 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
300
301 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
302
303 Fix PR gdb/393:
304 * tui.c (tui_disable): Update gdb's knowledge of its terminal
305 using target_terminal_save_ours.
306 (tui_enable): Likewise.
307
308 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
309
310 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
311 (tui_rl_change_windows): Renames tui_change_windows.
312 (tui_rl_delete_other_windows): Renames tui_delete_other_windows.
313 (tui_initialize_readline): Update.
314
315 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
316
317 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
318 (_hasBreak): Remove.
319
320 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
321
322 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
323 to find symbol address.
324
325 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
326
327 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
328 and use tuiGetBeginAsmAddress.
329 * tuiSourceWin.h (tui_display_main): Declare.
330 * tui.h (tuiDisplayMainFunction): Remove.
331 * tui-hooks.c (tui_new_objfile_hook): Update.
332
333 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
334
335 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
336 (tuiShowSourceAsIs): Don't declare.
337
338 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
339
340 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
341 the frame position.
342
343 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
344
345 * tuiStack.c (tuiSetLocatorContent): Remove.
346 (tuiUpdateLocatorInfoFromFrame): Remove.
347 (tui_set_locator_info): Allocate the content buffer if necessary.
348 (tui_set_locator_filename): Call tui_set_locator_info directly.
349 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
350 find_pc_symtab.
351
352 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
353
354 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
355 tuiUpdateLocatorFilename.
356 * tuiStack.c (tuiSetLocatorInfo): Make it static.
357 (tuiSetLocatorContent): Likewise.
358 (tuiUpdateLocatorInfoFromFrame): Likewise.
359 (tuiSwitchFilename): Remove.
360 (tui_set_locator_filename): New function
361 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
362 use tui_set_locator_filename to record the filename.
363 (tuiUpdateLocatorFilename): Likewise.
364 (tuiUpdateLocatorInfoFromFrame): Update.
365 (tuiSetLocatorContent): Likewise.
366 * tuiStack.h (tuiClearLocatorContent): Don't declare.
367 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
368 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
369
370 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
371
372 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
373 comparison; cleanup.
374 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
375 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
376 * tuiData.h (TuiSourceInfo): Add filename member.
377 (TuiGenWinInfo): Add title member.
378 * tuiData.c (initGenericPart): Clear title.
379 (freeWindow): Free title and filename; remove unused locals.
380 (initWinInfo): Clear filename.
381 (tuiDelWindow): Free it; remove unused locals.
382
383 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
384
385 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
386 (tuiUpdateLocatorDisplay): Likewise.
387 * tuiStack.c (tuiGetLocatorFilename): Remove.
388 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
389 instead of tuiUpdateLocatorDisplay.
390 (tuiUpdateLocatorDisplay): Remove.
391
392 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
393
394 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
395 * tuiStack.c (tuiClearLocatorDisplay): Remove.
396 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
397 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
398
399 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
400
401 * tuiStack.c (tui_get_function_from_frame): Rename from
402 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
403 name of address.
404 (tuiUpdateLocatorInfoFromFrame): Update.
405
406 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
407
408 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
409 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
410 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
411 (_tuiSetFloatRegsContent): Likewise.
412 (_tuiRegisterName): Return a const char*.
413 * tuiData.h (_TuiDataElement): Use const char* for name.
414
415 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
416
417 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
418 (tuiShowAllExecInfosContent): Likewise.
419 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
420 (tuiShowAllExecInfosContent): Remove.
421 (tuiAllocSourceBuffer): Remove unused locals.
422
423 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
424
425 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
426 to follow other gdb's command names; use execute_command; cleanup.
427 (_initialize_tuiStack): Update.
428
429 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
430
431 * tuiWin.h (tui_update_gdb_sizes): Declare.
432
433 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
434
435 * tui.c (strcat_to_buf): Use const char* for source item.
436 (tui_enable): Update the windows if there is a selected frame.
437 * tui.h (strcat_to_buf): Update prototype.
438 (strcat_to_buf_with_fmt): Remove.
439
440 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
441
442 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
443 is the size of command window.
444 (tuiResizeAll): Call it instead of init_page_info.
445 * tui.c (tui_enable): Call it to resize to TUI command window.
446 (tui_disable): Likewise for plain screen.
447
448 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
449
450 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
451 use tuiShowFrameInfo instead of tuiSetLocatorContent.
452 * tuiLayout.h (showLayout): Remove.
453 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
454 (_showSourceDisassemCommand): Likewise.
455 (showLayout): Make it static.
456 (lastLayout): Remove.
457
458 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
459
460 * tuiSourceWin.c (tui_show_source_line): New function.
461 (tuiShowSourceContent): Call it and avoid clearing the window before
462 redrawing it.
463 (tuiClearAllSourceWinsContent): Remove.
464 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
465 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
466 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
467 (tuiRefreshAll): Don't clear the window.
468 (_makeVisibleWithNewHeight): Don't clear locator line.
469 (tuiResizeAll): Remove unused locals.
470 (_tuiAdjustWinHeights): Likewise.
471 (_makeInvisibleAndSetNewHeight): Likewise.
472 (_newHeightOk): Likewise.
473 * tuiLayout.c (showLayout): Don't clear source windows.
474 (tuiSetLayout): Don't clear the window.
475 (_initAndMakeWin): Likewise for status line.
476 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
477 (makeWindow): Likewise.
478 (tuiClearWin): Remove.
479 * tuiGeneralWin.h (tuiClearWin): Don't declare.
480
481 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
482
483 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
484 (tuiAsmWinIsDisplayed): Remove.
485 (tuiShowAllSourceWinsContent): Remove.
486 (tuiUpdateOnEnd): Remove.
487 * tuiGeneralWin.c (scrollWinForward): Remove.
488 (scrollWinBackward): Remove.
489 (_winResize): Don't declare.
490 * tui.h (tuiUpdateOnEnd): Don't declare.
491 (vcatch_errors, va_catch_errors): Likewise.
492 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
493 (tuiShowAllSourceWinsContent): Likewise.
494 * tuiGeneralWin.h (scrollWinForward): Likewise.
495 (scrollWinBackward): Likewise.
496
497 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
498
499 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
500
501 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
502
503 Fix PR gdb/655
504 * tui.c: Disable <termio.h> include.
505
506 2002-03-15 Andrew Cagney <ac131313@redhat.com>
507
508 * tui-out.c (XMALLOC): Delete macro. Update copyright.
509
510 2002-03-01 Andrew Cagney <ac131313@redhat.com>
511
512 * tui-hooks.c: Add FIXME to explain true/false problem. Update
513 copyright.
514 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
515 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
516 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
517 * tuiWin.c: Ditto.
518
519 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
520 * tui-hooks.c: Include <curses.h> before "bfd.h".
521 * tui.c: Likewise.
522 * tuiCommand.c: Likewise.
523 * tuiData.c: Likewise.
524 * tuiDataWin.c: Likewise.
525 * tuiDisassem.c: Likewise.
526 * tuiGeneralWin.c: Likewise.
527 * tuiIO.c: Likewise.
528 * tuiLayout.c: Likewise.
529 * tuiRegs.c: Likewise.
530 * tuiSource.c: Likewise.
531 * tuiSourceWin.c: Likewise.
532 * tuiStack.c: Likewise.
533 * tuiWin.c: Likewise.
534
535 2002-02-01 Andrew Cagney <ac131313@redhat.com>
536
537 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
538
539 2001-10-20 Andrew Cagney <ac131313@redhat.com>
540
541 * tuiDisassem.c: Include "value.h".
542 * tuiSourceWin.c: Ditto.
543
544 2001-09-28 Tom Tromey <tromey@redhat.com>
545
546 * tuiLayout.h (tui_set_layout): Don't declare.
547 * tui.h (tui_vAddWinToLayout): Don't declare.
548 (tui_vSetLayoutTo): Likewise.
549 (tui_set_layout): Declare.
550
551 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
552
553 * tuiSourceWin.c: Use disp_del instead of del.
554
555 * tuiSource.c: Use disp_del instead of del.
556
557 * tuiDisassem.c: Use disp_del instead of del.
558
559 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
560
561 * tui.c (tui_enable): Remove call to terminal_save_ours().
562 (tui_disable): Likewise.
563
564 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
565
566 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
567 set/show configuration variables.
568 (show_tui_cmd): New function.
569 (set_tui_cmd): New function.
570
571 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
572
573 * tui-hooks.c: New file, gdb hooks for tui.
574 * tui-out.c: New file, image copied from cli-out.c.
575 (tui_field_int): Identify "line" fields and keep track of them.
576 (tui_field_string): Likewise for "file".
577 (tui_out_new): Use flags = 0 to avoid printing the sources.
578
579 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
580
581 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
582 leave it in the command window.
583 (tui_redisplay_readline): Save cursor position to restore the
584 cursor after we go back from background.
585 * tuiData.h (TuiCommandInfo): Add start_line member.
586
587 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
588
589 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
590 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
591 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
592 to add_set_enum_cmd.
593 * tui.c (tui_show_source): New function.
594 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
595 (tui_switch_mode): Prep or deprep readline terminal;
596 make sure the \n we return does not redo the last command.
597 * tui.h (tui_show_source): Declare.
598 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
599 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
600
601 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
602
603 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
604 if SIGCONT is defined.
605 (tui_cont_sig): New function when SIGCONT is defined.
606 (tui_setup_io): Save tty setting to restore by SIGCONT.
607
608 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
609
610 * tui.h (tui_show_assembly): Declare.
611 (tui_is_window_visible): Declare.
612 * tui.c (tui_show_assembly): New function.
613 (tui_is_window_visible): New function.
614 (tui_get_command_dimension): New function.
615
616 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
617
618 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
619
620 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
621
622 * tui-file.c (tui_file_fputs): Use tui_puts.
623
624 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
625
626 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
627 * tuiStack.h (tuiGetLocatorFilename): Declare.
628 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
629 * tuiData.h (addToSourceWindows): Declare.
630
631 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
632
633 * tui.c (tui_change_windows): New function.
634 (tui_delete_other_windows): New function.
635 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
636 (tui_enable): Enable the keypad; call tui_update_variables.
637 (strcat_to_buf_with_fmt): Remove.
638
639 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
640
641 * tui.h: Remove old declarations, add the new ones.
642 * tui.c (tui_switch_mode): New function.
643 (tui_initialize_readline): New function.
644 (tui_enable): New function.
645 (tui_disable): New function.
646 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
647 (tui_vSelectSourceSymtab): Remove.
648 (tuiInitWindows): Remove.
649 (_initialize_tui): Remove.
650 (_tuiReset): Keep but put arround #if 0.
651
652 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
653
654 * tuiIO.h: Remove old declarations and add the new ones.
655 * tuiIO.c: New management for curses and gdb terminal interactions.
656 (tui_tputs): Remove.
657 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
658 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
659 (tui_owns_terminal): Remove.
660 (tui_redisplay_readline): New function.
661 (tui_puts): New function.
662 (tui_prep_terminal): New function.
663 (tui_deprep_terminal): New function.
664 (tui_getc): Rename of tuiGetc, simplify and fix.
665 (tui_setup_io): New function.
666 (tui_initialize_io): New function.
667
668 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
669
670 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
671 (_tuiRegisterFormat): Reduce size of format result.
672
673 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
674
675 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
676 * tuiWin.h: Declare the new variables.
677 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
678 (tui_update_variables): New function.
679 (translate): New function.
680 (tui_border_kind_enums, tui_border_mode_enums): New tables.
681 (tui_border_mode_translate): New table.
682 (tui_border_kind_translate_*): New tables.
683 (tui_active_border_mode): New variables.
684 (tui_border_*): New variables.
685
686 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
687
688 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
689 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
690
691 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
692 (tui_vUpdateLocatorFilename): Remove.
693 * tuiStack.h: Update prototypes.
694
695 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
696 (tuiLineIsDisplayed): Split for address and line.
697 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
698 (tuiUpdateSourceWindowAsIs): Likewise.
699 (tuiUpdateSourceWindowsWithAddr): Likewise.
700 (tuiUpdateSourceWindowsWithLine): Likewise.
701 (tuiHorizontalSourceScroll): Likewise.
702 (tuiSetIsExecPointAt): Likewise.
703 (tuiUpdateOnEnd): Likewise.
704 * tuiSourceWin.h: Update prototypes.
705
706 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
707 (tuiShowSource): Likewise.
708 (tuiVerticalSourceScroll): Likewise.
709 * tuiSource.h (tuiShowSource): Update prototype.
710
711 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
712 (tuiShowDisassem): Use TuiLineOrAddress type.
713 (tuiShowDisassemAndUpdateSource): Likewise.
714 (tuiVerticalDisassemScroll): Likewise.
715 (tuiShowDisassemAsIs): Remove.
716 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
717
718 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
719 (clearWinDetail): Likewise.
720 (displayableWinContentOf): Fix address conversion.
721 (tuiNextWin): Fix crash when the window is not yet created.
722 (partialWinByName): Likewise.
723
724 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
725
726 * tuiSourceWin.h: Remove unused declarations.
727 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
728 (tui_vUpdateSourceWindowsWithLine): Remove.
729 (tui_vAllSetHasBreakAt): Remove.
730
731 * tuiLayout.h (tui_set_layout): Declare.
732 (tui_vSetLayoutTo): Remove.
733 (tui_vAddWinToLayout): Remove.
734 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
735 (_tuiToggleLayout_command): Remove.
736 (_tuiToggleSplitLayout_command): Remove.
737 (_tuiLayout_command): Remove.
738 (tui_vSetLayoutTo): Remove.
739 (tui_vAddWinToLayout): Remove.
740
741 * tuiDataWin.h (tui_vCheckDataValues): Remove.
742 * tuiDataWin.c (tui_vCheckDataValues): Remove.
743
744 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
745
746 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
747 (_parseScrollingArgs): Use xstrdup.
748 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
749 (_tuiScrollBackward_command): Likewise.
750 (_tuiScrollLeft_command): Likewise.
751 (_tuiScrollRight_command): Likewise.
752 (_tuiSetFocus): Likewise.
753 (_tuiSetFocus_command): Likewise.
754 (_tuiRefreshAll_command): Likewise.
755 (_tuiSetTabWidth_command): Likewise.
756 (_tuiSetWinHeight): Likewise.
757 (_tuiSetWinHeight_command): Likewise.
758 (_tuiXDBsetWinHeight): Likewise.
759 (_tui_vSetFocus): Remove.
760 (_tui_vSetWinHeight): Remove.
761 (_tui_vXDBsetWinHeight): Remove.
762
763 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
764
765 * tuiCommand.h: Remove unused declarations.
766 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
767 (tuiIncrCommandCharCountBy): Remove.
768 (tuiDecrCommandCharCountBy): Remove.
769 (tuiSetCommandCharCountTo): Remove.
770 (tuiClearCommandCharCount): Remove.
771
772 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
773
774 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
775 create the tui class help.
776 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
777 * tuiRegs.c (_initialize_tuiRegs): Likewise.
778 * tuiStack.c (_initialize_tuiStack): Likewise.
779
780 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
781
782 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
783 (tuiVerticalDisassemScroll): Likewise.
784 (tuiShowDisassemAndUpdateSource): Check for null symtab to
785 prevent a crash.
786
787 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
788
789 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
790 (tuiRead, tui_vread): Remove.
791
792 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
793 (vcatch_errors, _tui_vDo): Remove.
794 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
795
796 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
797 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
798 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
799 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
800 (_tuiLayout_command): Call tui_set_layout.
801
802 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
803 (_tuiScrollRegsForward_command): Likewise.
804 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
805 (_tuiShowGeneral_command): Likewise.
806 (_tuiShowSpecial_command): Likewise.
807 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
808 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
809 (_tuiScrollForward_command): Call tui_scroll.
810 (_tuiScrollBackward_command): Likewise.
811 (_tuiScrollLeft_command): Likewise.
812 (_tuiScrollRight_command): Likewise.
813 (_tuiSetFocus_command): Call _tuiSetFocus.
814 (_tuiRefreshAll_command): Call tuiRefreshAll.
815 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
816 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
817 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
818
819 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
820
821 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
822 (TuiLineOrAddress): Likewise.
823 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
824 an address.
825 (tuiSetDisassemContent): Likewise.
826 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
827 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
828 (tuiSetLayout): Likewise.
829 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
830 (tuiUpdateSourceWindowsWithAddr): Likewise.
831 (tuiUpdateSourceWindowsWithLine): Likewise.
832 (tuiSetHasBreakAt): Likewise.
833 * tuiStack.c (tuiSetLocatorInfo): Likewise.
834 (tuiSwitchFilename): Likewise.
835 (tuiUpdateLocatorInfoFromFrame): Likewise.
836 (tuiSetLocatorContent): Likewise.
837 (tuiShowFrameInfo): Likewise.
838 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
839 * tuiSourceWin.h: Likewise.
840 * tuiStack.h: Likewise.
841
842 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
843
844 * tuiWin.c: Add missing includes.
845 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
846 * tuiLayout.c: Add missing includes.
847 (_initAndMakeWin): Don't put curses in echo mode.
848 (_extractDisplayStartAddr): Fix calls to find_line_pc.
849 (_tuiLayout_command): Missing ',' in warning call.
850 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
851 find_line_pc.
852 (tuiSetHasBreakAt): Check for null source file.
853
854 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
855
856 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
857 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
858 * tui.c (_tui_vToggle_command): Likewise.
859
860 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
861
862 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
863
864 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
865
866 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
867 each register window.
868 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
869 of the register to check.
870 (_tuiRegValueHasChanged): Likewise.
871 (_tuiRegisterName): Use REGISTER_NAME.
872 (tui_restore_gdbout): New function.
873 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
874 to a string.
875 (START_SPECIAL_REGS): Define.
876 (_tuiGetRegisterRawValue): Use get_saved_register.
877 (_tuiDisplayRegister): Fix clearing of register window.
878
879 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
880
881 * tui-file.h (fputs_unfiltered_hook): Remove.
882 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
883 (tui_file_fputs): Likewise; simplify
884
885 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
886
887 * tuiStack.c: Add missing includes.
888 (tuiShowFrameInfo): Don't crash when there is no symbol table
889 associated with the pc.
890 * tuiSource.c (_hasBreak): Check for null source file.
891 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
892 (_tuiSetFocus): Check for null dataWin.
893 * tuiGeneralWin.c (refreshAll): Check for null list[type].
894
895 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
896
897 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
898 to disassemble in the curses window.
899
900 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
901
902 * tui.h: Cleanup to avoid inclusion of curses includes.
903 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
904 * tuiData.h: To here; include curses includes here.
905 (setTermHeightTo): Rename of setTermHeight to follow reality.
906 (setTermWidthTo): Likewise with setTermWidth.
907
908 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
909
910 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
911 tuiIO.c, tuiData.c: Likewise.
912 tuiDataWin.c, tuiDisassem.c: Likewise.
913 tuiGeneralWin.c, tuiLayout.c: Likewise.
914 tuiRegs.c, tuiSource.c: Likewise.
915 tuiSouceWin.c, tuiStack.c: Likewise.
916
917 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
918
919 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
920 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
921 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
922 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
923 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
924 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
925
926 2001-03-08 Andrew Cagney <ac131313@redhat.com>
927
928 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
929
930 2001-03-06 Kevin Buettner <kevinb@redhat.com>
931
932 * tui-file.h: Update/correct copyright notice.
933
934 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
935
936 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
937 internal_error.
938
939 2000-12-14 Kevin Buettner <kevinb@redhat.com>
940
941 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
942 of free() with xfree().
943
944 2000-06-22 Kevin Buettner <kevinb@redhat.com>
945
946 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
947
948 2000-06-20 Kevin Buettner <kevinb@redhat.com>
949
950 * tuiLayout.c: Eliminate use of PARAMS from this file.
951
952 2000-06-17 Kevin Buettner <kevinb@redhat.com>
953
954 * tuiIO.c: Eliminate use of PARAMS from this file.
955
956 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
957
958 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
959 "tuiCommand.h".
960 (tui_file_fputs): Pass ``file'' and not ``stream'' to
961 tui_file_adjust_strbuf.
962
963 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
964
965 * tui.h: Include <ncurses.h> when available.
966 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
967
968 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
969
970 * Makefile.in: Delete.
971
972 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
973
974 * Makefile.in (distclean, maintainer-clean, realclean,
975 mostlyclean): New targets.
976
977 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
978
979 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
980 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
981 ui-file / ``struct ui_file''.
982
983 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
984
985 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
986 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
987 tui_file_rewind, tui_file_put, tui_file_fputs,
988 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
989 fputs_unfiltered_hook): Move to here from ../utils.c
990
991 * tui-file.h, tui-file.c: New files.
992
993 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
994
995 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
996 (tuiSetDisassemContent): Replace gdb_file_init_astring with
997 tui_sfileopen. Replace gdb_file_get_strbuf with
998 tui_file_get_strbuf.
999
1000 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1001
1002 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
1003 (tuiSetDisassemContent): Repace gdb_file_deallocate with
1004 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
1005
1006 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
1007
1008 * tuiSource.c: Include "source.h".
1009 (open_source_file, find_source_lines): Delete declarations.
1010
1011 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
1012
1013 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
1014 system.
1015
1016 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
1017
1018 The following changes were made by Jim Blandy <jimb@cygnus.com>,
1019 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
1020 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
1021 Taylor <taylor@cygnus.com>, as part of the project to merge in
1022 changes originally made by HP; HP did not create ChangeLog
1023 entries.
1024
1025 * Makefile.in: New file; we're merging HP's changes into GDB, and
1026 we've moved the TUI files into a subdirectory, so we need a new
1027 Makefile.
1028
1029 * tui.c:
1030 #include <term.h>, if we have it, to get declarations for
1031 the termcap functions on Solaris.
1032 (tgoto): Add external K&R declaration for this; Solaris doesn't
1033 bother to actually declare it in their header files.
1034 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
1035 we'd rather use the USG mechanisms than the Berkeley mechanisms
1036 (TIOCGETC is one of the Berkeley terminal control ioctls).
1037 Apologies if this causes trouble later; this should all be handled
1038 by autoconf...
1039 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
1040 from ../utils.h.
1041 (tuiFree): replace safe_free with free.
1042 (strcat_to_buf): new function, copied from utils.c.
1043 (tuiInit): Add ignored `argv0' argument, to match the type that
1044 init_ui_hook expects; updated declaration. Call the
1045 initialize_tui_files function constructed above. Initialize
1046 flush_hook to NULL.
1047 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
1048 element of the locator window's content allocated. This seems
1049 wrong, because it must have been initialized somehow in HP's
1050 sources, and we should do it the same way now. But we do get
1051 further before it segfaults. [Postscript: HP didn't bother to
1052 initialize it; they compile
1053 (va_catch_errors, vcatch_errors): Functions moved here from
1054 ../utils.c in HP's sources. They're not used anywhere else.
1055 (xdb_style): Delete this variable, and remove all references to
1056 it. It's always true.
1057 (tuiInit, _tui_vDo): References removed.
1058
1059 * tui.h: Add prototypes.
1060 Don't #include "gendefs.h"; it's only used in the TUI.
1061 Integrate its contents into this file:
1062 #include <ansidecl.h> here.
1063 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
1064
1065 * tuiCommand.c: #include "defs.h", so we get the appropriate
1066 definition of GDB_FILE.
1067
1068 * tuiData.c
1069 (freeWindow): replace safe_free with free.
1070 (tui_version): don't define it here; it's defined in main.c now.
1071
1072 * tuiDisassem.c
1073 (tuiSetDisassemContent): Call strcat_address_numeric instead of
1074 strcat_address. Simplify the control structure. Use predefined
1075 GDB function to print asm inst address. Use GDB_FILE to collect
1076 output into buffers.
1077
1078 * tuiIO.c
1079 (tgoto): Add external K&R declaration for this here too.
1080 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
1081 (tuiPuts_unfiltered): change FILE to GDB_FILE.
1082 (tui_tputs): fix prototype for 3rd argument.
1083
1084 * tuiIO.h (tuiPuts_unfiltered): change declaration.
1085
1086 * tuiLayout.c
1087 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
1088 that decides which registers to display (i.e. single precision
1089 float, double precision float, general, special). Previously,
1090 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
1091 compiling with -z poses a problem. When the first layout command
1092 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
1093 core dumps.
1094
1095 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
1096
1097 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
1098 <stdarg.h>. No idea exactly what's conflicting with what, but the
1099 errors went away...
1100 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
1101 object, calls pa_do_strcat_registers_info, copies the register
1102 info into a buffer, and deallocates the GDB_FILE object. Remove
1103 some code that is not executed. Also, call to
1104 pa_do_strcat_registers_info has an additional parameter,
1105 precision. This code requires some new per-target functions that
1106 we don't want to merge. Dyke it out, with #ifdef
1107 TUI_EXTENDED_FORMATTERS.
1108 (_tuiSetSpecialRegsContent): this function was ifdefed out.
1109 Hooked this up.
1110 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
1111 out. Hooked it up.
1112 (IS_64BIT): Just define this to be zero; we're not merging in the
1113 64-bit support.
1114 (tuiShowRegisters): Comment out all references to the "special"
1115 regs; we don't have a distinction between the "special" and
1116 "non-special" regs in most of our machine descriptions. This code
1117 is PA-specific in other ways as well, and needs to be redesigned
1118 to be portable to other processors.
1119
1120 * tuiWin.c: #include <string.h>, to get a declaration for
1121 strchr.
1122
1123 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
1124 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
1125 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
1126 bool to int throughout. Re-indented, GNU style.
1127
1128 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
1129 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
1130 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
1131 Changed bool to int throughout.
This page took 0.053758 seconds and 4 git commands to generate.