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