* memory corruption fix
[external/binutils.git] / sim / arm / ChangeLog
1 Wed Mar 22 15:24:21 2000  glen mccready  <gkm@pobox.com>
2
3         * wrapper.c (sim_open,sim_close): Copy into myname, free myname.
4
5 2000-02-08  Nick Clifton  <nickc@cygnus.com>
6
7         * wrapper.c: Fix compile time warning messages.
8         * armcopro.c: Fix compile time warning messages.
9         * armdefs.h: Fix compile time warning messages.
10         * armemu.c: Fix compile time warning messages.
11         * armemu.h: Fix compile time warning messages.
12         * armos.c: Fix compile time warning messages.
13         * armsupp.c: Fix compile time warning messages.
14         * armvirt.c: Fix compile time warning messages.
15         * bag.c: Fix compile time warning messages.
16         
17 2000-02-02  Bernd Schmidt  <bernds@cygnus.co.uk>
18
19         * *.[ch]: Use indent to make readable.
20
21 1999-11-22  Nick Clifton  <nickc@cygnus.com>
22
23         * armos.c (SWIread): Generate an error message if a huge read is
24         performed.
25         (SWIwrite): Generate an error message if a huge write is
26         performed.
27
28 1999-10-27  Nick Clifton  <nickc@cygnus.com>
29
30         * thumbemu.c (ARMul_ThumbDecode): Accept 0xbebe as a thumb
31         breakpoint. 
32
33 1999-10-08  Ulrich Drepper  <drepper@cygnus.com>
34
35         * armos.c (SWIopen): Always pass third parameter with 0666 since
36         otherwise uninitialized memory gets access if the O_CREAT bit is
37         set and so we possibly cannot access the file afterwards.
38
39 1999-09-29  Doug Evans  <devans@casey.cygnus.com>
40
41         * armos.c (SWIWrite0): Send output to stdout instead of stderr.
42         (ARMul_OSHandleSWI, case SWI_WriteC,AngelSWI_Reason_WriteC): Ditto.
43
44 Thu Sep  2 18:15:53 1999  Andrew Cagney  <cagney@b1.cygnus.com>
45
46         * configure: Regenerated to track ../common/aclocal.m4 changes.
47
48
49 1999-05-08  Felix Lee  <flee@cygnus.com>
50
51         * configure: Regenerated to track ../common/aclocal.m4 changes.
52         
53 1999-04-06  Keith Seitz  <keiths@cygnus.com>
54
55         * wrapper.c (stop_simulator): New global.
56         (sim_stop): Set sim state to STOP and set
57         stop_simulator.
58         (sim_resume): Reset stop_simulator.
59         (sim_stop_reason): If stop_simulator is set, tell gdb
60         that the we took SIGINT.
61         * armemu.c (ARMul_Emulate26): Don't loop forever. Stop if
62         stop_simulator is set.
63
64 1999-04-02  Keith Seitz  <keiths@cygnus.com>
65
66         * armemu.c (ARMul_Emulate26): If NEED_UI_LOOP_HOOK, call ui_loop_hook
67         whenever the counter expires.
68         * Makefile.in (SIM_EXTRA_CFLAGS): Include define NEED_UI_LOOP_HOOK.
69
70 1999-03-24  Nick Clifton  <nickc@cygnus.com>
71
72         * armemu.c (ARMul_Emulate26): Handle new breakpoint value.
73         * thumbemu.c (ARMul_ThumbDecode): Handle new breakpoint value.
74
75 Mon Sep 14 09:00:05 1998  Nick Clifton  <nickc@cygnus.com>
76
77         * wrapper.c (sim_open): Set endianness according to BFD or command
78         line switch.
79
80         * tconfig.in: Define SIM_HAVE_BIENDIAN.
81
82 Thu Aug 27 11:00:05 1998  Nick Clifton  <nickc@cygnus.com>
83
84         * armemu.c (Multiply64): Test for Rm (rather than Rs) not being
85         the same as either RdHi or RdLo.
86
87 Thu Jul  2 10:24:35 1998  Nick Clifton  <nickc@cygnus.com>
88
89         * armos.c (ARMul_OSHandleSWI: AngelSWI_Reason_ReportException):
90         Set Reg[0] based on reason for for the exception.
91
92 Thu Jun  4 15:22:03 1998  Jason Molenda  (crash@bugshack.cygnus.com)
93
94         * armos.c (SWIwrite0): New function.
95         (WriteCommandLineTo): New function.
96         (SWIopen): New function.
97         (SWIread): New function.
98         (SWIwrite): New function.
99         (SWIflen): New function.
100         (ARMul_OSHandleSWI): Call new functions instead of handling     
101         these here.
102         (ARMul_OSHandleSWI): Handle Angel SWIs correctly.
103         (*): Reformat spacing to be a bit more GNUly.
104         Most code taken from a patch by Anthony Thompson 
105         (athompso@cambridge.arm.com)
106
107 Tue Jun  2 15:22:22 1998  Nick Clifton  <nickc@cygnus.com>
108
109         * armos.h: Add Angel SWI and its reason codes.
110         * armos.c (ARMul_OSHandleSWI): Ignore Angel SWIs (for now).
111
112 Mon Jun  1 17:14:19 1998  Anthony Thompson (athompso@cambridge.arm.com)
113
114         * armos.c (ARMul_OSHandleSWI::SWI_Open): Handle special case
115         of ":tt" to catch stdin in addition to stdout.
116         (ARMul_OSHandleSWI::SWI_Seek): Return 0 or 1 to indicate failure
117         or success of lseek().
118
119 Wed May 20 17:36:25 1998  Nick Clifton  <nickc@cygnus.com>
120
121         * armos.c (ARMul_OSHandleSWI): Special case code to catch attempts
122         to open stdout.
123
124 Wed Apr 29 15:29:55 1998  Jeff Johnston  <jjohnstn@cygnus.com>
125
126         * armos.c (ARMul_OSHandleSWI): Added code for SWI_Clock,
127         SWI_Flen, and SWI_Time.  Also fixed SWI_Seek code to only
128         seek from offset 0 and not to use R2 for whence since it is
129         not passed as part of the SWI call.
130
131 Tue Apr 28 18:33:31 1998  Geoffrey Noer  <noer@cygnus.com>
132
133         * configure: Regenerated to track ../common/aclocal.m4 changes.
134
135 Sun Apr 26 15:31:55 1998  Tom Tromey  <tromey@creche>
136
137         * configure: Regenerated to track ../common/aclocal.m4 changes.
138         * config.in: Ditto.
139
140 Sun Apr 26 15:20:26 1998  Tom Tromey  <tromey@cygnus.com>
141
142         * acconfig.h: New file.
143         * configure.in: Reverted change of Apr 24; use sinclude again.
144
145 Fri Apr 24 14:16:40 1998  Tom Tromey  <tromey@creche>
146
147         * configure: Regenerated to track ../common/aclocal.m4 changes.
148         * config.in: Ditto.
149
150 Fri Apr 24 11:20:19 1998  Tom Tromey  <tromey@cygnus.com>
151
152         * configure.in: Don't call sinclude.
153
154 Sat Apr  4 20:36:25 1998  Andrew Cagney  <cagney@b1.cygnus.com>
155
156         * configure: Regenerated to track ../common/aclocal.m4 changes.
157
158 Fri Mar 27 16:15:52 1998  Andrew Cagney  <cagney@b1.cygnus.com>
159
160         * configure: Regenerated to track ../common/aclocal.m4 changes.
161
162 Wed Mar 25 12:35:29 1998  Andrew Cagney  <cagney@b1.cygnus.com>
163
164         * configure: Regenerated to track ../common/aclocal.m4 changes.
165
166 Wed Mar 18 12:38:12 1998  Andrew Cagney  <cagney@b1.cygnus.com>
167
168         * configure: Regenerated to track ../common/aclocal.m4 changes.
169
170 Tue Mar 10 09:26:38 1998  Nick Clifton  <nickc@cygnus.com>
171
172         * armopts.h: Remove definition of LITTLEND - it is not used.
173
174 Tue Feb 17 12:35:54 1998  Andrew Cagney  <cagney@b1.cygnus.com>
175
176         * wrapper.c (sim_store_register, sim_fetch_register): Pass in
177         length parameter. Return -1.
178
179 Sun Feb  1 16:47:51 1998  Andrew Cagney  <cagney@b1.cygnus.com>
180
181         * configure: Regenerated to track ../common/aclocal.m4 changes.
182
183 Sat Jan 31 18:15:41 1998  Andrew Cagney  <cagney@b1.cygnus.com>
184
185         * configure: Regenerated to track ../common/aclocal.m4 changes.
186
187 Mon Jan 19 22:26:29 1998  Doug Evans  <devans@seba>
188
189         * configure: Regenerated to track ../common/aclocal.m4 changes.
190
191 Mon Dec 15 23:17:11 1997  Andrew Cagney  <cagney@b1.cygnus.com>
192
193         * configure: Regenerated to track ../common/aclocal.m4 changes.
194         * config.in: Ditto.
195
196 Tue Dec  9 11:30:48 1997  Nick Clifton  <nickc@cygnus.com>
197
198         * Makefile.in: Updated with changes from branch.
199         * armdefs.h:   ditto
200         * armemu.c:    ditto   these changes
201         * armemu.h:    ditto   add support for
202         * armos.c:     ditto   the Thumb instruction
203         * armsupp.c:   ditto   set and the new v4
204         * armvirt.c:   ditto   architecture.
205         * wrapper.c:   ditto
206         * thumbemu.c:  New file from branch.
207
208
209 Thu Dec  4 09:21:05 1997  Doug Evans  <devans@canuck.cygnus.com>
210
211         * configure: Regenerated to track ../common/aclocal.m4 changes.
212
213 Thu Oct 30 13:54:06 1997  Nick Clifton  <nickc@cygnus.com>
214
215         * armos.c (ARMul_OSHandleSWI): Add support for GetEnv SWI.  Patch
216         from Tony Thompson at ARM: athompso@arm.com 
217
218         * wrapper.c (sim_create_inferior): Add code to create an execution
219         environment.  Patch from Tony Thompson at ARM: athompso@arm.com
220
221 Wed Oct 22 14:43:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
222
223         * wrapper.c (sim_load): Pass lma_p and sim_write args to
224         sim_load_file.
225
226 Fri Oct  3 09:28:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
227
228         * configure: Regenerated to track ../common/aclocal.m4 changes.
229
230 Wed Sep 24 17:38:57 1997  Andrew Cagney  <cagney@b1.cygnus.com>
231
232         * configure: Regenerated to track ../common/aclocal.m4 changes.
233
234 Tue Sep 23 11:04:38 1997  Andrew Cagney  <cagney@b1.cygnus.com>
235
236         * configure: Regenerated to track ../common/aclocal.m4 changes.
237
238 Mon Sep 22 11:46:20 1997  Andrew Cagney  <cagney@b1.cygnus.com>
239
240         * configure: Regenerated to track ../common/aclocal.m4 changes.
241
242 Fri Sep 19 17:45:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
243
244         * configure: Regenerated to track ../common/aclocal.m4 changes.
245
246 Mon Sep 15 17:36:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
247
248         * configure: Regenerated to track ../common/aclocal.m4 changes.
249
250 Thu Sep  4 17:21:23 1997  Doug Evans  <dje@seba>
251
252         * configure: Regenerated to track ../common/aclocal.m4 changes.
253
254 Wed Aug 27 18:13:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
255
256         * configure: Regenerated to track ../common/aclocal.m4 changes.
257         * config.in: Ditto.
258
259 Tue Aug 26 10:37:27 1997  Andrew Cagney  <cagney@b1.cygnus.com>
260
261         * wrapper.c (sim_kill): Delete.
262         (sim_create_inferior): Add ABFD argument.
263         (sim_load): Move setting of PC from here.
264         (sim_create_inferior): To here.
265
266 Mon Aug 25 17:50:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
267
268         * configure: Regenerated to track ../common/aclocal.m4 changes.
269         * config.in: Ditto.
270
271 Mon Aug 25 15:35:45 1997  Andrew Cagney  <cagney@b1.cygnus.com>
272
273         * wrapper.c (sim_open): Add ABFD argument.
274
275 Tue May 20 10:13:26 1997  Andrew Cagney  <cagney@b1.cygnus.com>
276
277         * wrapper.c (sim_open): Add callback argument.
278         (sim_set_callbacks): Drop SIM_DESC argument.
279
280 Thu Apr 24 00:39:51 1997  Doug Evans  <dje@canuck.cygnus.com>
281
282         * configure: Regenerated to track ../common/aclocal.m4 changes.
283
284 Fri Apr 18 13:32:23 1997  Andrew Cagney  <cagney@b1.cygnus.com>
285
286         * wrapper.c (sim_stop): Stub sim_stop function.
287
288 Thu Apr 17 18:33:01 1997  Fred Fish  <fnf@cygnus.com>
289
290         * arminit.c (ARMul_NewState): Preinitialize the state to
291         all zero/NULL.
292
293 Thu Apr 17 02:39:02 1997  Doug Evans  <dje@canuck.cygnus.com>
294
295         * Makefile.in (SIM_OBJS): Add sim-load.o.
296         * wrapper.c (sim_kind,myname): New static locals.
297         (sim_open): Set sim_kind, myname.
298         (sim_load): Call sim_load_file to do work.  Set start address from bfd.
299         (sim_create_inferior): Return SIM_RC.  Delete start_address arg.
300
301 Thu Apr 17 11:48:25 1997  Andrew Cagney  <cagney@b1.cygnus.com>
302
303         * wrapper.c (sim_trace): Update so that it matches prototype.
304
305 Mon Apr  7 15:45:02 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
306
307         * configure: Regenerated to track ../common/aclocal.m4 changes.
308         * config.in: Ditto.
309
310 Mon Apr  7 12:01:17 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
311
312         * Makefile.in (armemu32.o): Replace $< with autoconf recommended
313         $(srcdir)/....
314         (armemu26.o): Ditto.
315
316 Wed Apr  2 15:06:28 1997  Doug Evans  <dje@canuck.cygnus.com>
317
318         * wrapper.c (sim_open): New arg `kind'.
319
320         * configure: Regenerated to track ../common/aclocal.m4 changes.
321
322 Wed Apr  2 14:50:44 1997  Ian Lance Taylor  <ian@cygnus.com>
323
324         * COPYING: Update FSF address.
325
326 Wed Apr  2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
327
328         * configure: Regenerated to track ../common/aclocal.m4 changes.
329
330 Wed Mar 19 01:14:00 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
331
332         * configure: Regenerated to track ../common/aclocal.m4 changes.
333
334 Mon Mar 17 15:10:07 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
335
336         * configure: Re-generate.
337
338 Fri Mar 14 10:34:11 1997  Michael Meissner  <meissner@cygnus.com>
339
340         * configure: Regenerate to track ../common/aclocal.m4 changes.
341
342 Thu Mar 13 12:38:56 1997  Doug Evans  <dje@canuck.cygnus.com>
343
344         * wrapper.c (sim_open): Has result now.
345         (sim_*): New SIM_DESC argument.
346
347 Tue Feb  4 13:22:21 1997  Doug Evans  <dje@canuck.cygnus.com>
348
349         * Makefile.in (@COMMON_MAKEFILE_FRAG@): Use
350         COMMON_{PRE,POST}_CONFIG_FRAG instead.
351         * configure.in: sinclude ../common/aclocal.m4.
352         * configure: Regenerated.
353
354 Thu Jan 23 11:46:23 1997  Stu Grossman  (grossman@critters.cygnus.com)
355
356         * configure configure.in Makefile.in:  Update to new configure
357         scheme which is more compatible with WinGDB builds.
358         * configure.in:  Improve comment on how to run autoconf.
359         * configure:  Re-run autoconf to get new ../common/aclocal.m4.
360         * Makefile.in:  Use autoconf substitution to install common
361         makefile fragment.
362
363 Wed Nov 20 01:05:10 1996  Doug Evans  <dje@canuck.cygnus.com>
364
365         * run.c: Deleted, use one in ../common now.
366         * Makefile.in: Delete everything that's been moved to
367         ../common/Make-common.in.
368         (SIM_OBJS): Define.
369         * configure.in: Simplify using macros in ../common/aclocal.m4.
370         * configure: Regenerated.
371         * config.in: New file.
372         * armos.c: #include config.h.
373         * wrapper.c (mem_size): Value is in bytes now.
374         (sim_callback): New global.
375         (arm_sim_set_profile{,_size}): Delete.
376         (arm_sim_set_mem_size): Rename to sim_size.
377         (sim_do_command): Call printf_filtered via callback.
378         (sim_set_callbacks): Record callback.
379
380 Thu Oct  3 16:10:27 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
381
382         * Makefile.in (mostlyclean): Remove config.log.
383
384 Wed Jun 26 12:17:24 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
385
386         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
387         INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
388         (docdir): Removed.
389         * configure.in (AC_PREREQ): autoconf 2.5 or higher.
390         (AC_PROG_INSTALL): Added.
391         * configure: Rebuilt.
392
393 Wed Feb 21 12:14:31 1996  Ian Lance Taylor  <ian@cygnus.com>
394
395         * configure: Regenerate with autoconf 2.7.
396
397 Fri Dec 15 16:27:30 1995  Ian Lance Taylor  <ian@cygnus.com>
398
399         * run.c (main): Use new bfd_big_endian macro.
400
401 Mon Nov 20 17:40:38 1995  Doug Evans  <dje@canuck.cygnus.com>
402
403         * run.c: Include "getopt.h".
404         (verbose): Delete.
405         (usage): Make static.
406         (main): Call arm_sim_set_verbosity.
407         Only load sections marked SEC_LOAD.
408         * wrapper.c (mem_size, verbosity): New static global.
409         (arm_sim_set_mem_size): Renamed from sim_size.  Callers updated.
410         (arm_sim_set_profile{,_size}): Renamed from sim_foo.  Callers updated.
411         
412 Fri Nov 17 19:35:11 1995  Doug Evans  <dje@canuck.cygnus.com>
413
414         * armdefs.h (ARMul_State): New member `verbose'.
415         * armrdi.c (ARMul_ConsolePrint): Add missing va_end.
416         * run.c (verbose): Make global.
417         * wrapper.c (init): Set state->verbose.
418         (ARMul_ConsolePrint): Don't print anything if !verbose.
419
420 Fri Oct 13 15:30:30 1995  Doug Evans  <dje@canuck.cygnus.com>
421
422         * armos.c: #include dbg_rdi.h.
423         (ARMul_OSHandleSWI): Handle SWI_Breakpoint.
424         * armos.h (SWI_Breakpoint): Define.
425         * wrapper.c: #include armemu.h, dbg_rdi.h.
426         (rc): Delete.
427         (sim_resume): Use state->EndCondition to record stop state.
428         Call FLUSHPIPE before returning.
429         (sim_stop_reason): Determine reason from state->EndCondition.
430
431 Fri Oct 13 15:04:05 1995  steve chamberlain  <sac@slash.cygnus.com>
432
433         * wrapper.c (sim_set_callbacks): New.
434
435 Thu Sep 28 19:45:56 1995  Doug Evans  <dje@deneb.cygnus.com>
436
437         * armos.c (ARMul_OSHandleSWI): Result of read/write calls is
438         number of bytes not read/written (or -1).
439
440 Wed Sep 20 13:35:54 1995  Ian Lance Taylor  <ian@cygnus.com>
441
442         * Makefile.in (maintainer-clean): New synonym for realclean.
443
444 Fri Sep  8 14:27:20 1995  Ian Lance Taylor  <ian@cygnus.com>
445
446         * configure.in: Remove AC_PROG_INSTALL.
447         * configure: Rebuild.
448         * Makefile.in (INSTALL): Revert to using install.sh.
449         (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
450         (INSTALL_XFORM, INSTALL_XFORM1): Restore.
451         (mostlyclean): Make the same as clean, not distclean.
452         (clean): Remove config.log.
453         (install): Don't install in $(tooldir).
454
455 Thu Sep  7 12:00:17 1995  Doug Evans  <dje@canuck.cygnus.com>
456
457         (Try to) Update to new bfd autoconf scheme.
458         * run.c: Don't include sysdep.h.
459         * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
460         (CC, CFLAGS, AR, RANLIB): Likewise.
461         (HDEFINES, TDEFINES): Define.
462         (CC_FOR_BUILD): Delete.
463         (host_makefile_frag): Delete.
464         (Makefile): Don't depend on frags.
465         * configure.in (sysdep.h): Don't create symlink.
466         (host_makefile_frag, frags): Deleted.
467         (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
468         * configure: Regenerated.
469
470 Thu Aug  3 10:45:37 1995  Fred Fish  <fnf@cygnus.com>
471
472         * Update all FSF addresses except those in COPYING* files.
473
474 Wed Jul  5 16:15:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
475
476         * Makefile.in (clean): Remove run, libsim.a.
477
478         * Makefile.in, configure.in: converted to autoconf.
479         * configure: New file, generated with autconf 2.4.
480
481         * arm.mt: Removed.
482
483 Fri Jun 30 16:49:47 1995  Stan Shebs  <shebs@andros.cygnus.com>
484
485         * wrapper.c (sim_do_command): New function.
486
487 Tue Jun 13 10:57:32 1995  Steve Chamberlain  <sac@slash.cygnus.com>
488
489         * armos.c (ARMul_OSHandleSWI): New version to work with
490         newlib simply.
491
492 Thu Jun  8 14:37:14 1995  Steve Chamberlain  <sac@slash.cygnus.com>
493
494         * run.c (main): Grab return value from right register.
495
496 Wed May 24 14:37:31 1995  Steve Chamberlain  <sac@slash.cygnus.com>
497
498         * New.
499
500