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