1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / tui / ChangeLog
1 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
2
3 The following changes were made by Jim Blandy <jimb@cygnus.com>,
4 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
5 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
6 Taylor <taylor@cygnus.com>, as part of the project to merge in
7 changes originally made by HP; HP did not create ChangeLog
8 entries.
9
10 * Makefile.in: New file; we're merging HP's changes into GDB, and
11 we've moved the TUI files into a subdirectory, so we need a new
12 Makefile.
13
14 * tui.c:
15 #include <term.h>, if we have it, to get declarations for
16 the termcap functions on Solaris.
17 (tgoto): Add external K&R declaration for this; Solaris doesn't
18 bother to actually declare it in their header files.
19 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
20 we'd rather use the USG mechanisms than the Berkeley mechanisms
21 (TIOCGETC is one of the Berkeley terminal control ioctls).
22 Apologies if this causes trouble later; this should all be handled
23 by autoconf...
24 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
25 from ../utils.h.
26 (tuiFree): replace safe_free with free.
27 (strcat_to_buf): new function, copied from utils.c.
28 (tuiInit): Add ignored `argv0' argument, to match the type that
29 init_ui_hook expects; updated declaration. Call the
30 initialize_tui_files function constructed above. Initialize
31 flush_hook to NULL.
32 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
33 element of the locator window's content allocated. This seems
34 wrong, because it must have been initialized somehow in HP's
35 sources, and we should do it the same way now. But we do get
36 further before it segfaults. [Postscript: HP didn't bother to
37 initialize it; they compile
38 (va_catch_errors, vcatch_errors): Functions moved here from
39 ../utils.c in HP's sources. They're not used anywhere else.
40 (xdb_style): Delete this variable, and remove all references to
41 it. It's always true.
42 (tuiInit, _tui_vDo): References removed.
43
44 * tui.h: Add prototypes.
45 Don't #include "gendefs.h"; it's only used in the TUI.
46 Integrate its contents into this file:
47 #include <ansidecl.h> here.
48 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
49
50 * tuiCommand.c: #include "defs.h", so we get the appropriate
51 definition of GDB_FILE.
52
53 * tuiData.c
54 (freeWindow): replace safe_free with free.
55 (tui_version): don't define it here; it's defined in main.c now.
56
57 * tuiDisassem.c
58 (tuiSetDisassemContent): Call strcat_address_numeric instead of
59 strcat_address. Simplify the control structure. Use predefined
60 GDB function to print asm inst address. Use GDB_FILE to collect
61 output into buffers.
62
63 * tuiIO.c
64 (tgoto): Add external K&R declaration for this here too.
65 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
66 (tuiPuts_unfiltered): change FILE to GDB_FILE.
67 (tui_tputs): fix prototype for 3rd argument.
68
69 * tuiIO.h (tuiPuts_unfiltered): change declaration.
70
71 * tuiLayout.c
72 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
73 that decides which registers to display (i.e. single precision
74 float, double precision float, general, special). Previously,
75 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
76 compiling with -z poses a problem. When the first layout command
77 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
78 core dumps.
79
80 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
81
82 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
83 <stdarg.h>. No idea exactly what's conflicting with what, but the
84 errors went away...
85 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
86 object, calls pa_do_strcat_registers_info, copies the register
87 info into a buffer, and deallocates the GDB_FILE object. Remove
88 some code that is not executed. Also, call to
89 pa_do_strcat_registers_info has an additional parameter,
90 precision. This code requires some new per-target functions that
91 we don't want to merge. Dyke it out, with #ifdef
92 TUI_EXTENDED_FORMATTERS.
93 (_tuiSetSpecialRegsContent): this function was ifdefed out.
94 Hooked this up.
95 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
96 out. Hooked it up.
97 (IS_64BIT): Just define this to be zero; we're not merging in the
98 64-bit support.
99 (tuiShowRegisters): Comment out all references to the "special"
100 regs; we don't have a distinction between the "special" and
101 "non-special" regs in most of our machine descriptions. This code
102 is PA-specific in other ways as well, and needs to be redesigned
103 to be portable to other processors.
104
105 * tuiWin.c: #include <string.h>, to get a declaration for
106 strchr.
107
108 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
109 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
110 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
111 bool to int throughout. Re-indented, GNU style.
112
113 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
114 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
115 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
116 Changed bool to int throughout.
This page took 0.031157 seconds and 4 git commands to generate.