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