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