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