Check a program to run is present.
[platform/upstream/binutils.git] / sim / common / ChangeLog
1 Mon Apr  7 15:53:21 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
2
3         * run.c (main): Check that a program to run was specified.
4
5 Mon Apr  7 15:45:02 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
6
7         * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
8
9         * configure: Regenerated to track ../common/aclocal.m4 changes.
10         * config.in: Ditto.
11
12 Wed Apr  2 15:06:28 1997  Doug Evans  <dje@canuck.cygnus.com>
13
14         * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
15         * sim-config.h: To here.
16
17         * Make-common.in (SIM_EXTRA_DEPS): New config var.
18         (sim_main_headers): Define.
19         (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
20         (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
21         (clean): Use it.
22         (sim-utils.o): Add rule for.
23         * sim-utils.o: New file.
24         * sim-basics.h: #include sim-base.h.
25         (zalloc): Make argument unsigned long.
26         * sim-base.h: New file.
27         * sim-inline.h (SIM_IO support): Delete.
28         * sim-io.h: Delete inline support.
29         * sim-io.c: Likewise.  sim-state.h renamed to sim-main.h.
30         * sim-config.c: sim-state.h renamed to sim-main.h.
31         * sim-core.c: Likewise.
32         * sim-events.c: Likewise.
33
34         * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
35
36         * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
37         (sim-debug): Allow arguments.  Define WITH_DEBUG in addition to
38         -DDEBUG.
39         * configure: Regenerated to track ../common/aclocal.m4 changes.
40
41 Wed Apr  2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
42
43         * configure: Regenerated to track ../common/aclocal.m4 changes.
44
45 Wed Apr  2 11:08:11 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
46
47         * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
48         WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
49         are defined by the configure.
50
51         * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
52         
53         * aclocal.m4 (floating-point, xor-endian, alignment, smp,
54         reserved-bits): Always define.
55         
56         * sim-config.h, sim-config.c (sim_config): New function - and new
57         file - co-ordinate the setting/checking of the common simulator
58         configuration options.
59
60         * Make-common.in (sim-config.o): Add rule.
61
62 Fri Mar 28 15:32:00 1997  Mike Meissner  <meissner@cygnus.com>
63
64         * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
65         va_list from void *, since va_list might not be a pointer type.
66
67 Mon Mar 24 15:27:12 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
68
69         * sim-n-endian.h (offset_N): Correct assertion - word and sub word
70         in wrong order.
71         (offset_N): Correct computation of LE offset.
72
73         * sim-io.c (sim_io_error): Include a new line when reporting
74         errors.
75
76         * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
77         `/'.
78
79 Thu Mar 20 22:31:06 1997  Jeffrey A Law  (law@cygnus.com)
80
81         * run.c: Include alloca-conf.h.
82
83         * callback.c (os_evprintf_filtered): Fix typo.
84
85 Fri Mar 21 13:36:20 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
86
87         * run.c (string.h, strings.h, stdlib.h): Include.
88
89         * sim-events.c (sim_events_tick): Recent cleanup failed to return
90         0 when nothing pending.
91
92         * run.c (sim_size, sim_trace): Plicate GCC - these two functions
93         will soon be going away.
94         (getopt): Plicate GCC.
95
96         * sim-endian.c (sim-io.h): Plicate GCC.
97         * sim-bits.c (sim-io.h): Ditto.
98         * sim-n-bits.h (ROTn): Ditto.
99
100         * sim-io.c (sim_io_error): Correct check for NULL.
101
102         * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
103         the __FILE__.
104         * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
105         path.
106
107 Wed Mar 19 01:12:06 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
108
109         * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
110         SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
111
112 Tue Mar 18 20:48:12 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
113
114         * sim-alu.h: Include sim-xcat.h.
115         
116 Tue Mar 18 13:58:18 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
117
118         * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
119         sim-events.c, sim-inline.c, sim-io.c): Define rules for building
120         these.
121
122         * sim-events.c (sim_events_at_large_int): New function.  Just
123         schedules an event every large-int ticks.
124         (sim_events_init): Call.
125         (sim_events_tick, sim_events_process): Move async handing to
126         sim_events_process.  Move timer decrement so that it occures after
127         events have been processed.
128         
129         * sim-basics.h (struct _engine): Remove declaration.
130
131         * sim-events.h, sim-events.c: Rename type to sim_events.  Prefix
132         everything with same.  Rename global struct to SIM_DESC.
133         * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
134         * sim-io.h, sim-io.c: Ditto.
135         
136         * sim-assert.h: New file. Optional assertion checking macros.
137         * sim-io.c (sim_io_error): Make just this function tolerant to
138         null pointers.
139         
140         * sim-xcat.h: New file. Define concatenate macros.
141         * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
142         * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
143         concat macros.
144         
145
146 Tue Mar 18 12:44:55 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
147
148         * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
149
150 Mon Mar 17 18:10:05 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
151
152         * sim-inline.h: Add definitions for sim-types.
153         (ALL_BY_MODULE): New macro, encapsulate full inlining by the
154         module.
155
156 Mon Mar 17 15:38:27 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
157         
158         * sim-events.h: Remove defunct reference to callback struct.
159
160 Mon Mar 17 15:10:07 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
161
162         * configure: Re-generate.
163
164 Mon Mar 17 15:04:47 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
165
166         * Make-common.in (CSEARCH): Do not include the gdb directory in
167         the search path.
168
169 Mon Mar 17 13:16:26 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
170
171         * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
172         SIM_WARNING): Drop, requiring the simulator specific Makefile.in
173         to explicitly incorporate these.
174
175         * aclocal.m4 (--enable-sim-alignment); New option. Strongly
176         specify the alignment restrictions of the target architecture -
177         without this option all alignment restrictions are accomodated.
178         (--enable-sim-assert): New option.  Conditionally compile in
179         assertion statements.
180         (--enable-sim-float): New option. Strongly specify the target's
181         floating point support.
182         (--enable-sim-hardware): New option.  Specify the hardware devices
183         included in the simulation.
184         (--enable-sim-packages): New option.  Specify the hardware
185         packages included in the simulation.
186         (--enable-sim-regparm): New option.  Specify that parameters be
187         passed in registers instead of on the stack.
188         (--enable-sim-reserved-bits): New option. Specify that reserved
189         bits within an instruction are are correctly set.
190         (--enable-sim-smp): New option. Specify the level of SMP support
191         to be included in the simulator.
192         (--enable-sim-stdcall): New option.  Specify an alternative
193         function call convention.
194         (--enable-sim-xor-endian): New option.  Configure xor-endian
195         support used by some targets to implement bi-endian support.
196         
197 Fri Mar 14 19:51:21 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
198
199         * aclocal.m4 (--enable-sim-hostendian): New option.  Allow the
200         host endianness to be overridden.
201         (--enable-sim-endian): Allow the target platform's byte order
202         to be overridden.
203         (--enable-sim-inline): Control the inlining of common components.
204         (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
205         (--enable-sim-warnings): Enable additional GCC compiler checks.
206         * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
207         SIM_WARNINGS): Add.
208         
209         * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
210         sim-*-n.h so that the names are uniq on dos machines
211         * sim-core.c, sim-bits.c, sim-endian.c: Update.
212         
213 Thu Mar 13 12:32:42 1997  Doug Evans  <dje@canuck.cygnus.com>
214
215         * run.c: #include "libiberty.h".
216         (main): New locals sd,no_args,sim_argv.
217         Run buildargv on -a option.  Pass argv to sim_open, argv[0]
218         is program name.  Update call to sim_set_callbacks.
219         Record result of sim_open, pass to other sim_foo routines.
220
221 Thu Mar 13 10:24:05 1997  Michael Meissner  <meissner@cygnus.com>
222
223         * callback.c (os_printf_filtered): Do not call exit(1) or print a
224         final newline.
225
226 Thu Mar  6 15:50:28 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
227
228         * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
229         Route stdout through buffered IO.
230
231         * callback.c: Add os_flush_stderr, os_write_stderr,
232         os_evprintf_filtered functions to route error output through
233         stderr.
234         
235         * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
236         Correct return type - should be void.
237
238 Fri Mar  7 20:14:37 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
239
240         * sim-basics.h: Clean up.  Many macro's moved to sim-inline.h.
241
242         * sim-config.h: Ditto.  For some options - eg WITH_DEVICES - do
243         not provide a default value as undefined indicates disable code.
244
245 Thu Mar  6 15:50:28 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
246
247         * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
248         directory.
249         * sim-events.h, sim-events.c: Ditto.
250         * sim-io.h, sim-io.c: Ditto.
251         
252 Tue Mar  4 09:35:56 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
253         
254         * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
255
256         * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
257         extract the tail or least signifiant bits from an integer of the
258         specified size.
259         
260         * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
261         WITH_TARGET_BITSIZE so that the compilation will fail when an
262         unsupported bitsize value is defined.
263
264         (INSERTED*): Convert to functions.
265         (EXTRACTED*): Ditto.
266         
267         (SIGN_EXTEND, SEXT): Change to more terse name.
268         
269 Tue Mar  4 09:35:56 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
270
271         * sim-inline.h: Allow explicit control over which .c files will be
272         included by their header.
273
274         * sim-inline.h: Allow explicit control over which .c files use the
275         alternative - REGPARM - parameter passing mechanism.
276         
277         * sim-inline.h, sim-inline.c: Don't attempt to include any of
278         icache.c, idecode.c, semantics.c or support.c.  Those names are
279         not generally applicable.
280         
281 Thu Feb 27 10:17:23 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
282
283         * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
284         in a fashion similar to sim-endian-n.
285
286         * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
287         both value and address macro's.
288
289 Tue Feb 25 18:51:57 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
290
291         * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
292
293         * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
294         generic L_word, H_word macro's.
295
296 Thu Feb 20 18:36:55 1997  Andrew Cagney  <cagney@critters.cygnus.com>
297
298         * sim-basics.h: Borrow code from ppc directory.
299         * sim-bits.c: Ditto.
300         * sim-bits.h: Ditto.
301         * sim-config.h: Ditto.
302         * sim-endian-n.h: Ditto.
303         * sim-endian.c: Ditto.
304         * sim-endian.h: Ditto.
305         * sim-inline.c: Ditto.
306         * sim-inline.h: Ditto.
307         * sim-types.h: Ditto.
308
309 Wed Feb 19 12:40:50 1997  Andrew Cagney  <cagney@critters.cygnus.com>
310
311         * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
312         all the ALU size alternatives and then auto-configure a default.
313         
314         * sim-alu.h: Copy ppc/idecode_expression.h.
315
316 Mon Feb 17 10:44:18 1997  Andrew Cagney  <cagney@critters.cygnus.com>
317
318         * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
319         sign extend a bit within a value.
320
321         * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
322         a pointer into the middle of a host word.
323         * sim-endian.h (MS2W_4, LS2W_4): Use this function.
324         
325 Tue Feb 11 13:46:49 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
326
327         * callback.c: If HAVE_CONFIG_H is defined, include config.h from
328         autoconf.  If HAVE_UNISTD_H is defined, include unistd.h to get
329         appropriate definitions of read, write, etc.  Add prototype for
330         system.
331
332 Tue Feb  4 13:24:44 1997  Doug Evans  <dje@canuck.cygnus.com>
333
334         * Makefile.in (libcommon.a): Delete.
335         (callback.o,targ-map.o): Delete, moved to Make-common.in.
336         (gentmap,targ-vals.h,targ-map.c): Likewise.
337         (run-autoconf): Delete.
338         * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
339         (common makefile fragment): Moved back into ...
340         * Make-common.in: Resurrect.
341         * configure.in (AC_LINK_FILES): Delete, unnecessary now.
342         * configure: Regenerated.
343
344 Fri Jan 31 07:16:49 1997  Doug Evans  <dje@canuck.cygnus.com>
345
346         * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
347         (SIM_AC_OUTPUT): To here.
348
349 Fri Jan 24 10:37:17 1997  Stu Grossman  (grossman@critters.cygnus.com)
350
351         * aclocal.m4 (COMMON_MAKEFILE_FRAG):  Quote a couple of $'s in
352         comments and single quotes.  Fixes a problem found on hpux.
353
354 Thu Jan 23 13:35:03 1997  Stu Grossman  (grossman@critters.cygnus.com)
355
356         * aclocal.m4:  Remove Make-common.in from dependencies.
357         * (distclean):  Remove targ-vals.def.
358
359         * aclocal.m4 (SIM_AC_COMMON):  Move contents of Make-common.in
360         into here.  Makes insertion into makefiles easier.  Also, change
361         the way that callback.o, gentmap, targ-vals.h, targ-map.c,
362         targ-map.o, and run are built.  They are now built in the
363         individual simulator directories, taking sources from ../common as
364         necessary.  This replaces the merging of libcommon.a into
365         linsim.a, which was problematic for the WinGDB build process.
366         * run.c:  Include config.h from . instead of ../common.
367         * Make-common.in:  Remove.  It's no longer necessary.
368
369 Mon Dec 16 15:02:33 1996  Ian Lance Taylor  <ian@cygnus.com>
370
371         * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
372         (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
373
374 Wed Dec 11 11:30:58 1996  Jim Wilson  <wilson@cygnus.com>
375
376         * run.c (main): Set target_byte_order before call to sim_open.
377
378 Sun Dec  8 18:22:06 1996  Doug Evans  <dje@canuck.cygnus.com>
379
380         * callback.c: #include <stdlib.h>
381         (os_error): New function.
382         (default_callback): Add os_error.
383
384 Mon Nov 25 19:44:35 1996  Doug Evans  <dje@canuck.cygnus.com>
385
386         * Make-common.in (Makefile): Set CONFIG_HEADERS="".
387         * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
388         specific.
389         (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
390
391 Wed Nov 20 01:11:04 1996  Doug Evans  <dje@canuck.cygnus.com>
392
393         * run.c: #include ../common/config.h, tconfig.h.
394         (myname): New static global.
395         (main): Recognize new options -a, -c.  Also recognize -h if h8/300.
396         Only process -c ifdef SIM_HAVE_SIMCACHE.
397         Only process -p/-s ifdef SIM_HAVE_PROFILE.
398         Parse program name from argv[0] and use in error messages.
399         Pass sim_args to sim_open.  Pass prog_args to sim_create_inferior.
400         Add support for incomplete h8/300 termination indicators.
401         (usage): Make more verbose.
402         * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
403         * Makefile.in,Make-common.in,callback.c: New files.
404         * nltvals.def,gentmap.c,gentvals.sh: New files.
405
406 Tue Nov 12 13:34:00 1996  Dawn Perchik  <dawn@cygnus.com>   
407
408         * run.c: Include stdarg.h if __STDC__.
409
410 Tue Oct 15 11:16:31 1996  Jeffrey A Law  (law@cygnus.com)
411
412         * run.c (main): Don't print out anything if the signal
413         number is zero (ie no signal).
414
415 Tue Oct 15 11:20:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
416
417         * run.c (main): Print out if the program raised a signal.
418
419 Wed Sep 18 09:52:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
420
421         * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
422         (main): Ditto.
423
424 Tue Sep 17 11:04:50 1996  James G. Smith  <jsmith@cygnus.co.uk>
425
426         * run.c (main): Explicitly cast malloc() parameter.
427
428 Thu Sep 12 11:27:21 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
429
430         * run.c (sim_bfd): New global to hold the bfd pointer for the
431         executable.
432         (main): Initialize sim_bfd.
433
434 Fri Dec 15 16:27:49 1995  Ian Lance Taylor  <ian@cygnus.com>
435
436         * run.c (main): Use new bfd_big_endian macro.
437
438 Wed Nov  8 15:49:49 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
439
440         * run.c (main): Removed SH specific comments, so source is
441         generic. Also updated to only load relevant sections. Moved
442         sim_open() to after callback attach (to match GDB).
443
444         * run.1: Removed SH specific comments.
445
446 Sat Oct 21 12:31:01 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
447
448         * run.c (main): Always return sigrc at end.
449
450 Tue Oct 10 12:03:13 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
451
452         * run.c (main): Print error diagnostic and exit if bfd_openr() or
453         bfd_check_format() fails.
454
455 Thu Sep 28 15:40:36 1995  steve chamberlain  <sac@slash.cygnus.com>
456
457         * run.c, run.1: From sh directory.
458
459