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