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