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