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