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