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