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