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