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