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