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