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