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