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