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