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