* gdbint.texinfo: Remove extraneous START-INFO-DIR-ENTRY
[deliverable/binutils-gdb.git] / gdb / tui / ChangeLog
CommitLineData
c9684879
SC
12001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2
3 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
4 set/show configuration variables.
5 (show_tui_cmd): New function.
6 (set_tui_cmd): New function.
7
2611b1a5
SC
82001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9
10 * tui-hooks.c: New file, gdb hooks for tui.
11 * tui-out.c: New file, image copied from cli-out.c.
12 (tui_field_int): Identify "line" fields and keep track of them.
13 (tui_field_string): Likewise for "file".
14 (tui_out_new): Use flags = 0 to avoid printing the sources.
15
114bf287
SC
162001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17
18 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
19 leave it in the command window.
20 (tui_redisplay_readline): Save cursor position to restore the
21 cursor after we go back from background.
22 * tuiData.h (TuiCommandInfo): Add start_line member.
23
242001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
25
26 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
27 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
28 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
29 to add_set_enum_cmd.
30 * tui.c (tui_show_source): New function.
31 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
32 (tui_switch_mode): Prep or deprep readline terminal;
33 make sure the \n we return does not redo the last command.
34 * tui.h (tui_show_source): Declare.
35 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
36 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
37
9d876a16
SC
382001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
39
40 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
41 if SIGCONT is defined.
42 (tui_cont_sig): New function when SIGCONT is defined.
43 (tui_setup_io): Save tty setting to restore by SIGCONT.
44
1403b519
SC
452001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
46
47 * tui.h (tui_show_assembly): Declare.
48 (tui_is_window_visible): Declare.
49 * tui.c (tui_show_assembly): New function.
50 (tui_is_window_visible): New function.
51 (tui_get_command_dimension): New function.
52
3e266828
SC
532001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
54
55 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
56
174a4a09
SC
572001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
58
59 * tui-file.c (tui_file_fputs): Use tui_puts.
60
c7c228ed
SC
612001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
62
63 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
64 * tuiStack.h (tuiGetLocatorFilename): Declare.
65 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
66 * tuiData.h (addToSourceWindows): Declare.
67
377c38ea
SC
682001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
69
70 * tui.c (tui_change_windows): New function.
71 (tui_delete_other_windows): New function.
72 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
73 (tui_enable): Enable the keypad; call tui_update_variables.
74 (strcat_to_buf_with_fmt): Remove.
75
762001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
77
78 * tui.h: Remove old declarations, add the new ones.
79 * tui.c (tui_switch_mode): New function.
80 (tui_initialize_readline): New function.
81 (tui_enable): New function.
82 (tui_disable): New function.
83 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
84 (tui_vSelectSourceSymtab): Remove.
85 (tuiInitWindows): Remove.
86 (_initialize_tui): Remove.
87 (_tuiReset): Keep but put arround #if 0.
88
a198b876
SC
892001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
90
91 * tuiIO.h: Remove old declarations and add the new ones.
92 * tuiIO.c: New management for curses and gdb terminal interactions.
93 (tui_tputs): Remove.
94 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
95 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
96 (tui_owns_terminal): Remove.
97 (tui_redisplay_readline): New function.
98 (tui_puts): New function.
99 (tui_prep_terminal): New function.
100 (tui_deprep_terminal): New function.
101 (tui_getc): Rename of tuiGetc, simplify and fix.
102 (tui_setup_io): New function.
103 (tui_initialize_io): New function.
104
fea14702
SC
1052001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
106
107 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
108 (_tuiRegisterFormat): Reduce size of format result.
109
af101512
SC
1102001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
111
112 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
113 * tuiWin.h: Declare the new variables.
114 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
115 (tui_update_variables): New function.
116 (translate): New function.
117 (tui_border_kind_enums, tui_border_mode_enums): New tables.
118 (tui_border_mode_translate): New table.
119 (tui_border_kind_translate_*): New tables.
120 (tui_active_border_mode): New variables.
121 (tui_border_*): New variables.
122
a4b99e53
SC
1232001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
124
125 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
126 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
127
128 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
129 (tui_vUpdateLocatorFilename): Remove.
130 * tuiStack.h: Update prototypes.
131
132 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
133 (tuiLineIsDisplayed): Split for address and line.
134 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
135 (tuiUpdateSourceWindowAsIs): Likewise.
136 (tuiUpdateSourceWindowsWithAddr): Likewise.
137 (tuiUpdateSourceWindowsWithLine): Likewise.
138 (tuiHorizontalSourceScroll): Likewise.
139 (tuiSetIsExecPointAt): Likewise.
140 (tuiUpdateOnEnd): Likewise.
141 * tuiSourceWin.h: Update prototypes.
142
143 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
144 (tuiShowSource): Likewise.
145 (tuiVerticalSourceScroll): Likewise.
146 * tuiSource.h (tuiShowSource): Update prototype.
147
148 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
149 (tuiShowDisassem): Use TuiLineOrAddress type.
150 (tuiShowDisassemAndUpdateSource): Likewise.
151 (tuiVerticalDisassemScroll): Likewise.
152 (tuiShowDisassemAsIs): Remove.
153 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
154
155 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
156 (clearWinDetail): Likewise.
157 (displayableWinContentOf): Fix address conversion.
158 (tuiNextWin): Fix crash when the window is not yet created.
159 (partialWinByName): Likewise.
160
19eb139b
SC
1612001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
162
163 * tuiSourceWin.h: Remove unused declarations.
164 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
165 (tui_vUpdateSourceWindowsWithLine): Remove.
166 (tui_vAllSetHasBreakAt): Remove.
167
168 * tuiLayout.h (tui_set_layout): Declare.
169 (tui_vSetLayoutTo): Remove.
170 (tui_vAddWinToLayout): Remove.
171 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
172 (_tuiToggleLayout_command): Remove.
173 (_tuiToggleSplitLayout_command): Remove.
174 (_tuiLayout_command): Remove.
175 (tui_vSetLayoutTo): Remove.
176 (tui_vAddWinToLayout): Remove.
177
178 * tuiDataWin.h (tui_vCheckDataValues): Remove.
179 * tuiDataWin.c (tui_vCheckDataValues): Remove.
180
1854bb21
SC
1812001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
182
183 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
184 (_parseScrollingArgs): Use xstrdup.
185 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
186 (_tuiScrollBackward_command): Likewise.
187 (_tuiScrollLeft_command): Likewise.
188 (_tuiScrollRight_command): Likewise.
189 (_tuiSetFocus): Likewise.
190 (_tuiSetFocus_command): Likewise.
191 (_tuiRefreshAll_command): Likewise.
192 (_tuiSetTabWidth_command): Likewise.
193 (_tuiSetWinHeight): Likewise.
194 (_tuiSetWinHeight_command): Likewise.
195 (_tuiXDBsetWinHeight): Likewise.
196 (_tui_vSetFocus): Remove.
197 (_tui_vSetWinHeight): Remove.
198 (_tui_vXDBsetWinHeight): Remove.
199
9b2d6cca
SC
2002001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
201
202 * tuiCommand.h: Remove unused declarations.
203 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
204 (tuiIncrCommandCharCountBy): Remove.
205 (tuiDecrCommandCharCountBy): Remove.
206 (tuiSetCommandCharCountTo): Remove.
207 (tuiClearCommandCharCount): Remove.
208
41783295
SC
2092001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
210
211 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
212 create the tui class help.
213 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
214 * tuiRegs.c (_initialize_tuiRegs): Likewise.
215 * tuiStack.c (_initialize_tuiStack): Likewise.
216
3024f13a
SC
2172001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
218
219 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
220 (tuiVerticalDisassemScroll): Likewise.
221 (tuiShowDisassemAndUpdateSource): Check for null symtab to
222 prevent a crash.
223
e8b915dc
SC
2242001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
225
226 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
227 (tuiRead, tui_vread): Remove.
228
229 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
230 (vcatch_errors, _tui_vDo): Remove.
231 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
232
233 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
234 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
235 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
236 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
237 (_tuiLayout_command): Call tui_set_layout.
238
239 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
240 (_tuiScrollRegsForward_command): Likewise.
241 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
242 (_tuiShowGeneral_command): Likewise.
243 (_tuiShowSpecial_command): Likewise.
244 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
245 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
246 (_tuiScrollForward_command): Call tui_scroll.
247 (_tuiScrollBackward_command): Likewise.
248 (_tuiScrollLeft_command): Likewise.
249 (_tuiScrollRight_command): Likewise.
250 (_tuiSetFocus_command): Call _tuiSetFocus.
251 (_tuiRefreshAll_command): Call tuiRefreshAll.
252 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
253 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
254 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
255
c774cec6
SC
2562001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
257
258 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
259 (TuiLineOrAddress): Likewise.
260 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
261 an address.
262 (tuiSetDisassemContent): Likewise.
263 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
264 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
265 (tuiSetLayout): Likewise.
266 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
267 (tuiUpdateSourceWindowsWithAddr): Likewise.
268 (tuiUpdateSourceWindowsWithLine): Likewise.
269 (tuiSetHasBreakAt): Likewise.
270 * tuiStack.c (tuiSetLocatorInfo): Likewise.
271 (tuiSwitchFilename): Likewise.
272 (tuiUpdateLocatorInfoFromFrame): Likewise.
273 (tuiSetLocatorContent): Likewise.
274 (tuiShowFrameInfo): Likewise.
275 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
276 * tuiSourceWin.h: Likewise.
277 * tuiStack.h: Likewise.
278
84b1e7c7
SC
2792001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
280
281 * tuiWin.c: Add missing includes.
282 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
283 * tuiLayout.c: Add missing includes.
284 (_initAndMakeWin): Don't put curses in echo mode.
285 (_extractDisplayStartAddr): Fix calls to find_line_pc.
286 (_tuiLayout_command): Missing ',' in warning call.
287 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
288 find_line_pc.
289 (tuiSetHasBreakAt): Check for null source file.
290
0963fc96
SC
2912001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
292
293 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
294 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
295 * tui.c (_tui_vToggle_command): Likewise.
296
f9eb4b01
EZ
2972001-07-17 Elena Zannoni <ezannoni@redhat.com>
298
299 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
300
c46cc7df
SC
3012001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
302
303 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
304 each register window.
305 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
306 of the register to check.
307 (_tuiRegValueHasChanged): Likewise.
308 (_tuiRegisterName): Use REGISTER_NAME.
309 (tui_restore_gdbout): New function.
310 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
311 to a string.
312 (START_SPECIAL_REGS): Define.
313 (_tuiGetRegisterRawValue): Use get_saved_register.
314 (_tuiDisplayRegister): Fix clearing of register window.
315
e42acc6b
SC
3162001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
317
318 * tui-file.h (fputs_unfiltered_hook): Remove.
319 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
320 (tui_file_fputs): Likewise; simplify
321
75fd9bc1
SC
3222001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
323
324 * tuiStack.c: Add missing includes.
325 (tuiShowFrameInfo): Don't crash when there is no symbol table
326 associated with the pc.
327 * tuiSource.c (_hasBreak): Check for null source file.
328 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
329 (_tuiSetFocus): Check for null dataWin.
330 * tuiGeneralWin.c (refreshAll): Check for null list[type].
331
a8080b7f
SC
3322001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
333
334 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
335 to disassemble in the curses window.
336
2a5127c4
SC
3372001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
338
339 * tui.h: Cleanup to avoid inclusion of curses includes.
340 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
341 * tuiData.h: To here; include curses includes here.
342 (setTermHeightTo): Rename of setTermHeight to follow reality.
343 (setTermWidthTo): Likewise with setTermWidth.
344
eca6576c
SC
3452001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
346
347 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
348 tuiIO.c, tuiData.c: Likewise.
349 tuiDataWin.c, tuiDisassem.c: Likewise.
350 tuiGeneralWin.c, tuiLayout.c: Likewise.
351 tuiRegs.c, tuiSource.c: Likewise.
352 tuiSouceWin.c, tuiStack.c: Likewise.
353
f377b406
SC
3542001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
355
356 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
357 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
358 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
359 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
360 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
361 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
362
a728f042
AC
3632001-03-08 Andrew Cagney <ac131313@redhat.com>
364
365 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
366
b6ba6518
KB
3672001-03-06 Kevin Buettner <kevinb@redhat.com>
368
369 * tui-file.h: Update/correct copyright notice.
370
8e65ff28
AC
371Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
372
373 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
374 internal_error.
375
46c6187f
KB
3762000-12-14 Kevin Buettner <kevinb@redhat.com>
377
e7b044d6
KB
378 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
379 of free() with xfree().
46c6187f 380
f7778913
KB
3812000-06-22 Kevin Buettner <kevinb@redhat.com>
382
383 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
384
f6dd1e70
KB
3852000-06-20 Kevin Buettner <kevinb@redhat.com>
386
387 * tuiLayout.c: Eliminate use of PARAMS from this file.
388
692248f3
KB
3892000-06-17 Kevin Buettner <kevinb@redhat.com>
390
391 * tuiIO.c: Eliminate use of PARAMS from this file.
392
fbc75a32
AC
393Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
394
395 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
396 "tuiCommand.h".
397 (tui_file_fputs): Pass ``file'' and not ``stream'' to
398 tui_file_adjust_strbuf.
399
2894793a
AC
400Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
401
402 * tui.h: Include <ncurses.h> when available.
403 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
404
ed952ac5
AC
405Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
406
407 * Makefile.in: Delete.
408
784f35f9
AC
409Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
410
411 * Makefile.in (distclean, maintainer-clean, realclean,
412 mostlyclean): New targets.
413
d9fcf2fb
JM
414Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
415
416 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
417 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
418 ui-file / ``struct ui_file''.
419
da59e081
JM
420Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
421
422 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
423 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
424 tui_file_rewind, tui_file_put, tui_file_fputs,
425 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
426 fputs_unfiltered_hook): Move to here from ../utils.c
427
428 * tui-file.h, tui-file.c: New files.
429
11cf8741
JM
430Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
431
432 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
433 (tuiSetDisassemContent): Replace gdb_file_init_astring with
434 tui_sfileopen. Replace gdb_file_get_strbuf with
435 tui_file_get_strbuf.
436
437Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
438
439 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
440 (tuiSetDisassemContent): Repace gdb_file_deallocate with
441 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
442
c2c6d25f
JM
443Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
444
445 * tuiSource.c: Include "source.h".
446 (open_source_file, find_source_lines): Delete declarations.
447
c906108c
SS
4481999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
449
450 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
451 system.
452
453Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
454
455 The following changes were made by Jim Blandy <jimb@cygnus.com>,
456 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
457 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
458 Taylor <taylor@cygnus.com>, as part of the project to merge in
459 changes originally made by HP; HP did not create ChangeLog
460 entries.
461
462 * Makefile.in: New file; we're merging HP's changes into GDB, and
463 we've moved the TUI files into a subdirectory, so we need a new
464 Makefile.
465
466 * tui.c:
467 #include <term.h>, if we have it, to get declarations for
468 the termcap functions on Solaris.
469 (tgoto): Add external K&R declaration for this; Solaris doesn't
470 bother to actually declare it in their header files.
471 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
472 we'd rather use the USG mechanisms than the Berkeley mechanisms
473 (TIOCGETC is one of the Berkeley terminal control ioctls).
474 Apologies if this causes trouble later; this should all be handled
475 by autoconf...
476 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
477 from ../utils.h.
478 (tuiFree): replace safe_free with free.
479 (strcat_to_buf): new function, copied from utils.c.
480 (tuiInit): Add ignored `argv0' argument, to match the type that
481 init_ui_hook expects; updated declaration. Call the
482 initialize_tui_files function constructed above. Initialize
483 flush_hook to NULL.
484 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
485 element of the locator window's content allocated. This seems
486 wrong, because it must have been initialized somehow in HP's
487 sources, and we should do it the same way now. But we do get
488 further before it segfaults. [Postscript: HP didn't bother to
489 initialize it; they compile
490 (va_catch_errors, vcatch_errors): Functions moved here from
491 ../utils.c in HP's sources. They're not used anywhere else.
492 (xdb_style): Delete this variable, and remove all references to
493 it. It's always true.
494 (tuiInit, _tui_vDo): References removed.
495
496 * tui.h: Add prototypes.
497 Don't #include "gendefs.h"; it's only used in the TUI.
498 Integrate its contents into this file:
499 #include <ansidecl.h> here.
500 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
501
502 * tuiCommand.c: #include "defs.h", so we get the appropriate
503 definition of GDB_FILE.
504
505 * tuiData.c
506 (freeWindow): replace safe_free with free.
507 (tui_version): don't define it here; it's defined in main.c now.
508
509 * tuiDisassem.c
510 (tuiSetDisassemContent): Call strcat_address_numeric instead of
511 strcat_address. Simplify the control structure. Use predefined
512 GDB function to print asm inst address. Use GDB_FILE to collect
513 output into buffers.
514
515 * tuiIO.c
516 (tgoto): Add external K&R declaration for this here too.
517 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
518 (tuiPuts_unfiltered): change FILE to GDB_FILE.
519 (tui_tputs): fix prototype for 3rd argument.
520
521 * tuiIO.h (tuiPuts_unfiltered): change declaration.
522
523 * tuiLayout.c
524 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
525 that decides which registers to display (i.e. single precision
526 float, double precision float, general, special). Previously,
527 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
528 compiling with -z poses a problem. When the first layout command
529 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
530 core dumps.
531
532 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
533
534 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
535 <stdarg.h>. No idea exactly what's conflicting with what, but the
536 errors went away...
537 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
538 object, calls pa_do_strcat_registers_info, copies the register
539 info into a buffer, and deallocates the GDB_FILE object. Remove
540 some code that is not executed. Also, call to
541 pa_do_strcat_registers_info has an additional parameter,
542 precision. This code requires some new per-target functions that
543 we don't want to merge. Dyke it out, with #ifdef
544 TUI_EXTENDED_FORMATTERS.
545 (_tuiSetSpecialRegsContent): this function was ifdefed out.
546 Hooked this up.
547 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
548 out. Hooked it up.
549 (IS_64BIT): Just define this to be zero; we're not merging in the
550 64-bit support.
551 (tuiShowRegisters): Comment out all references to the "special"
552 regs; we don't have a distinction between the "special" and
553 "non-special" regs in most of our machine descriptions. This code
554 is PA-specific in other ways as well, and needs to be redesigned
555 to be portable to other processors.
556
557 * tuiWin.c: #include <string.h>, to get a declaration for
558 strchr.
559
560 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
561 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
562 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
563 bool to int throughout. Re-indented, GNU style.
564
565 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
566 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
567 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
568 Changed bool to int throughout.
This page took 0.200229 seconds and 4 git commands to generate.