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