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