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