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