Fix os_printf_filtered; Flush stdout after calling printf_filtered
[platform/upstream/binutils.git] / sim / common / ChangeLog
1 Thu Mar 13 10:24:05 1997  Michael Meissner  <meissner@cygnus.com>
2
3         * callback.c (os_printf_filtered): Do not call exit(1) or print a
4         final newline.
5
6 Thu Mar  6 15:50:28 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
7
8         * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
9         Route stdout through buffered IO.
10
11         * callback.c: Add os_flush_stderr, os_write_stderr,
12         os_evprintf_filtered functions to route error output through
13         stderr.
14         
15         * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
16         Correct return type - should be void.
17
18 Fri Mar  7 20:14:37 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
19
20         * sim-basics.h: Clean up.  Many macro's moved to sim-inline.h.
21
22         * sim-config.h: Ditto.  For some options - eg WITH_DEVICES - do
23         not provide a default value as undefined indicates disable code.
24
25 Thu Mar  6 15:50:28 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
26
27         * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
28         directory.
29         * sim-events.h, sim-events.c: Ditto.
30         * sim-io.h, sim-io.c: Ditto.
31         
32 Tue Mar  4 09:35:56 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
33         
34         * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
35
36         * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
37         extract the tail or least signifiant bits from an integer of the
38         specified size.
39         
40         * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
41         WITH_TARGET_BITSIZE so that the compilation will fail when an
42         unsupported bitsize value is defined.
43
44         (INSERTED*): Convert to functions.
45         (EXTRACTED*): Ditto.
46         
47         (SIGN_EXTEND, SEXT): Change to more terse name.
48         
49 Tue Mar  4 09:35:56 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
50
51         * sim-inline.h: Allow explicit control over which .c files will be
52         included by their header.
53
54         * sim-inline.h: Allow explicit control over which .c files use the
55         alternative - REGPARM - parameter passing mechanism.
56         
57         * sim-inline.h, sim-inline.c: Don't attempt to include any of
58         icache.c, idecode.c, semantics.c or support.c.  Those names are
59         not generally applicable.
60         
61 Thu Feb 27 10:17:23 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
62
63         * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
64         in a fashion similar to sim-endian-n.
65
66         * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
67         both value and address macro's.
68
69 Tue Feb 25 18:51:57 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
70
71         * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
72
73         * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
74         generic L_word, H_word macro's.
75
76 Thu Feb 20 18:36:55 1997  Andrew Cagney  <cagney@critters.cygnus.com>
77
78         * sim-basics.h: Borrow code from ppc directory.
79         * sim-bits.c: Ditto.
80         * sim-bits.h: Ditto.
81         * sim-config.h: Ditto.
82         * sim-endian-n.h: Ditto.
83         * sim-endian.c: Ditto.
84         * sim-endian.h: Ditto.
85         * sim-inline.c: Ditto.
86         * sim-inline.h: Ditto.
87         * sim-types.h: Ditto.
88
89 Wed Feb 19 12:40:50 1997  Andrew Cagney  <cagney@critters.cygnus.com>
90
91         * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
92         all the ALU size alternatives and then auto-configure a default.
93         
94         * sim-alu.h: Copy ppc/idecode_expression.h.
95
96 Mon Feb 17 10:44:18 1997  Andrew Cagney  <cagney@critters.cygnus.com>
97
98         * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
99         sign extend a bit within a value.
100
101         * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
102         a pointer into the middle of a host word.
103         * sim-endian.h (MS2W_4, LS2W_4): Use this function.
104         
105 Tue Feb 11 13:46:49 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
106
107         * callback.c: If HAVE_CONFIG_H is defined, include config.h from
108         autoconf.  If HAVE_UNISTD_H is defined, include unistd.h to get
109         appropriate definitions of read, write, etc.  Add prototype for
110         system.
111
112 Tue Feb  4 13:24:44 1997  Doug Evans  <dje@canuck.cygnus.com>
113
114         * Makefile.in (libcommon.a): Delete.
115         (callback.o,targ-map.o): Delete, moved to Make-common.in.
116         (gentmap,targ-vals.h,targ-map.c): Likewise.
117         (run-autoconf): Delete.
118         * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
119         (common makefile fragment): Moved back into ...
120         * Make-common.in: Resurrect.
121         * configure.in (AC_LINK_FILES): Delete, unnecessary now.
122         * configure: Regenerated.
123
124 Fri Jan 31 07:16:49 1997  Doug Evans  <dje@canuck.cygnus.com>
125
126         * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
127         (SIM_AC_OUTPUT): To here.
128
129 Fri Jan 24 10:37:17 1997  Stu Grossman  (grossman@critters.cygnus.com)
130
131         * aclocal.m4 (COMMON_MAKEFILE_FRAG):  Quote a couple of $'s in
132         comments and single quotes.  Fixes a problem found on hpux.
133
134 Thu Jan 23 13:35:03 1997  Stu Grossman  (grossman@critters.cygnus.com)
135
136         * aclocal.m4:  Remove Make-common.in from dependencies.
137         * (distclean):  Remove targ-vals.def.
138
139         * aclocal.m4 (SIM_AC_COMMON):  Move contents of Make-common.in
140         into here.  Makes insertion into makefiles easier.  Also, change
141         the way that callback.o, gentmap, targ-vals.h, targ-map.c,
142         targ-map.o, and run are built.  They are now built in the
143         individual simulator directories, taking sources from ../common as
144         necessary.  This replaces the merging of libcommon.a into
145         linsim.a, which was problematic for the WinGDB build process.
146         * run.c:  Include config.h from . instead of ../common.
147         * Make-common.in:  Remove.  It's no longer necessary.
148
149 Mon Dec 16 15:02:33 1996  Ian Lance Taylor  <ian@cygnus.com>
150
151         * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
152         (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
153
154 Wed Dec 11 11:30:58 1996  Jim Wilson  <wilson@cygnus.com>
155
156         * run.c (main): Set target_byte_order before call to sim_open.
157
158 Sun Dec  8 18:22:06 1996  Doug Evans  <dje@canuck.cygnus.com>
159
160         * callback.c: #include <stdlib.h>
161         (os_error): New function.
162         (default_callback): Add os_error.
163
164 Mon Nov 25 19:44:35 1996  Doug Evans  <dje@canuck.cygnus.com>
165
166         * Make-common.in (Makefile): Set CONFIG_HEADERS="".
167         * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
168         specific.
169         (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
170
171 Wed Nov 20 01:11:04 1996  Doug Evans  <dje@canuck.cygnus.com>
172
173         * run.c: #include ../common/config.h, tconfig.h.
174         (myname): New static global.
175         (main): Recognize new options -a, -c.  Also recognize -h if h8/300.
176         Only process -c ifdef SIM_HAVE_SIMCACHE.
177         Only process -p/-s ifdef SIM_HAVE_PROFILE.
178         Parse program name from argv[0] and use in error messages.
179         Pass sim_args to sim_open.  Pass prog_args to sim_create_inferior.
180         Add support for incomplete h8/300 termination indicators.
181         (usage): Make more verbose.
182         * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
183         * Makefile.in,Make-common.in,callback.c: New files.
184         * nltvals.def,gentmap.c,gentvals.sh: New files.
185
186 Tue Nov 12 13:34:00 1996  Dawn Perchik  <dawn@cygnus.com>   
187
188         * run.c: Include stdarg.h if __STDC__.
189
190 Tue Oct 15 11:16:31 1996  Jeffrey A Law  (law@cygnus.com)
191
192         * run.c (main): Don't print out anything if the signal
193         number is zero (ie no signal).
194
195 Tue Oct 15 11:20:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
196
197         * run.c (main): Print out if the program raised a signal.
198
199 Wed Sep 18 09:52:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
200
201         * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
202         (main): Ditto.
203
204 Tue Sep 17 11:04:50 1996  James G. Smith  <jsmith@cygnus.co.uk>
205
206         * run.c (main): Explicitly cast malloc() parameter.
207
208 Thu Sep 12 11:27:21 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
209
210         * run.c (sim_bfd): New global to hold the bfd pointer for the
211         executable.
212         (main): Initialize sim_bfd.
213
214 Fri Dec 15 16:27:49 1995  Ian Lance Taylor  <ian@cygnus.com>
215
216         * run.c (main): Use new bfd_big_endian macro.
217
218 Wed Nov  8 15:49:49 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
219
220         * run.c (main): Removed SH specific comments, so source is
221         generic. Also updated to only load relevant sections. Moved
222         sim_open() to after callback attach (to match GDB).
223
224         * run.1: Removed SH specific comments.
225
226 Sat Oct 21 12:31:01 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
227
228         * run.c (main): Always return sigrc at end.
229
230 Tue Oct 10 12:03:13 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
231
232         * run.c (main): Print error diagnostic and exit if bfd_openr() or
233         bfd_check_format() fails.
234
235 Thu Sep 28 15:40:36 1995  steve chamberlain  <sac@slash.cygnus.com>
236
237         * run.c, run.1: From sh directory.
238
239