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