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