3 * support.c: Include <errno.h>
7 * configure: Regenerated to track ../common/aclocal.m4 changes.
9 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
11 * configure: Regenerated to track ../common/aclocal.m4 changes.
16 * acconfig.h: New file.
17 * configure.in: Reverted change of Apr 24; use sinclude again.
19 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
21 * configure: Regenerated to track ../common/aclocal.m4 changes.
26 * configure.in: Don't use sinclude.
30 * configure: Regenerated to track ../common/aclocal.m4 changes.
34 * configure: Regenerated to track ../common/aclocal.m4 changes.
38 * configure: Regenerated to track ../common/aclocal.m4 changes.
42 * configure: Regenerated to track ../common/aclocal.m4 changes.
46 * iface.c (sim_store_register, sim_fetch_register): Pass in length
51 * configure: Regenerated to track ../common/aclocal.m4 changes.
55 * configure: Regenerated to track ../common/aclocal.m4 changes.
57 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
59 * configure: Regenerated to track ../common/aclocal.m4 changes.
63 * configure: Regenerated to track ../common/aclocal.m4 changes.
68 * configure: Regenerated to track ../common/aclocal.m4 changes.
72 * iface.c (sim_load): Pass lma_p and sim_write args to
77 * configure: Regenerated to track ../common/aclocal.m4 changes.
81 * configure: Regenerated to track ../common/aclocal.m4 changes.
85 * configure: Regenerated to track ../common/aclocal.m4 changes.
89 * configure: Regenerated to track ../common/aclocal.m4 changes.
93 * configure: Regenerated to track ../common/aclocal.m4 changes.
97 * Makefile.in (CONFIG_H): Use config.h from local directory.
101 * configure: Regenerated to track ../common/aclocal.m4 changes.
103 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
105 * configure: Regenerated to track ../common/aclocal.m4 changes.
109 * configure: Regenerated to track ../common/aclocal.m4 changes.
114 * iface.c (sim_kill): Delete.
115 (sim_create_inferior): Add ABFD argument.
116 (sim_load): Move setting of PC from here.
117 (sim_create_inferior): To here.
118 (sim_open, sim_load): Add FIXME about need to move arch test to
123 * configure: Regenerated to track ../common/aclocal.m4 changes.
128 * iface.c (sim_open): Add ABFD argument. Change ARGV to PARGV.
132 * iface.c (sim_set_callbacs): Delete SIM_DESC argument.
133 (sim_open): Add callback argument.
137 * iface.c (sim_load): Set sim_z8001_mode if bfd_mach_z8001.
138 * tconfig.in (SIM_PRE_LOAD): Delete, no longer used.
142 * configure: Regenerated to track ../common/aclocal.m4 changes.
146 * mem.h (Z8k_PAGE_SIZE): Rename from PAGE_SIZE. Is it used?
148 * iface.c (sim_stop): New function.
149 (NULL): Define if not already.
153 * Makefile.in (SIM_OBJS): Add sim-load.o.
154 * iface.c: #include bfd.h.
155 (z8k_callback): New global.
156 (sim_kind, myname): New static locals.
157 (sim_open): Set sim_kind, myname.
158 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
159 load file into simulator. Set start address from bfd.
160 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
161 (sim_set_callbacks): Set z8k_callback.
165 * tm.h (sim_trace) : Remove prototype - now in remote-sim.h
166 * support.c (sim_trace): Update.
170 * configure: Regenerated to track ../common/aclocal.m4 changes.
175 * iface.c (sim_open): New arg `kind'.
177 * configure: Regenerated to track ../common/aclocal.m4 changes.
181 * configure: Regenerated to track ../common/aclocal.m4 changes.
185 * configure: Regenerated to track ../common/aclocal.m4 changes.
189 * configure: Re-generate.
193 * configure: Regenerate to track ../common/aclocal.m4 changes.
197 * iface.c (sim_open): New SIM_DESC result. Argument is now
199 (other sim_*): New SIM_DESC argument.
203 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
204 COMMON_{PRE,POST}_CONFIG_FRAG instead.
205 * configure.in: sinclude ../common/aclocal.m4.
206 * configure: Regenerated.
210 * configure configure.in Makefile.in: Update to new configure
211 scheme which is more compatible with WinGDB builds.
212 * configure.in: Improve comment on how to run autoconf.
213 * configure: Re-run autoconf to get new ../common/aclocal.m4.
214 * Makefile.in: Use autoconf substitution to install common
219 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
220 (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
221 * configure.in: Simplify using macros in ../common/aclocal.m4.
222 * configure: Regenerated.
223 * iface.c (sim_size): New function.
224 (sim_stop_reason): Properly set sim_exited return code.
225 * support.c: #include "callback.h".
226 * run.c: Deleted, using one in ../common now.
227 * tconfig.in: New file.
231 * Makefile.in (mostlyclean): Don't remove config.log here.
235 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
236 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
238 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
239 (AC_PROG_INSTALL): Added.
240 * configure: Rebuilt.
244 * configure: Regenerate with autoconf 2.7.
248 * writecode.c (info_args, case CLASS_DISP8): Sign extend using
249 shifts instead of char cast.
254 * mem.c (get_page_and_offset): Allocate 16MB not 8MB.
258 * iface.c (sim_set_callbacks): New.
262 * Makefile.in (BISON): Remove macro.
266 * Makefile.in (maintainer-clean): New synonym for realclean.
270 * Makefile.in (install): Don't install in $(tooldir).
272 * configure.in: Call AC_CONFIG_HEADER. Don't try to use
273 bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
274 AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR,
275 and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files.
276 Touch stamp.h if creating config.h.
277 * configure: Rebuild.
278 * config.in: New file, created by autoheader.
279 * Makefile.in (AR): Define as @AR@.
280 (CC): New variable, defined as @CC@.
281 (CFLAGS): Define as @CFLAGS@.
282 (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
283 (RANLIB): Define as @RANLIB@.
284 (HDEFINES, TDEFINES): New variables.
285 (@host_makefile_frag@): Remove.
286 (support.o, comped1.o, comped3.o): Depend upon config.h.
287 (compedb3.o, comped2.o): Likewise.
289 (tc-gen2.h): Depend upon writecode, not quick.c.
290 (writecode): Build using $(CC_FOR_BUILD).
291 (writecode.o, list.o, quick.o): New targets.
292 (mostlyclean): Make the same as clean, not distclean.
293 (clean): Remove config.log.
294 (distclean): Remove config.h and stamp-h.
295 (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
296 invoking config.status.
297 (config.h, stamp-h): New targets.
298 * comped1.c: Don't include "sysdep.h".
299 (INLINE): Define as inline, not static inline.
300 * comped3.c, compedb3.c, run.c: Don't include "sysdep.h".
301 * mem.c: Include "config.h". Don't include "sysdep.h". Include
302 <stdlib.h> if it exists.
303 * support.c: Include "config.h". Don't include "sysdep.h".
304 Include <stdio.h>. Include <time.h> and <sys/times.h> if they
305 exists. Include <sys/types.h> and <sys/stat.h>.
306 (get_now): Only use times if <sys/times.h> exists; otherwise use
308 * writecode.c: Include "config.h". Include <stdio.h>. Include
309 <stdlib.h> and <string.h> if they exist. Include <strings.h> if
310 it exists and <string.h> does not.
314 * Update all FSF addresses except those in COPYING* files.
318 * support.c (normal_flags_16): Calculate carry correctly.
319 (support_call): Return values in std regs too.
323 * inlines.h (put_byte_mem_da): Moved.
324 * run.c (main): Return program result.
325 * support.c (support_call): Return exit argument.
326 * writecode.c (rotate): Fix a load of bugs.
327 (info_decode): Insert missing break after OPC_rrc.
331 * Makefile.in, configure.in: converted to autoconf.
332 * configure: New file, generated with autconf 2.4.
338 * iface.c (sim_do_command): New function.
342 * configure.in: Fix typo in last change.
346 * run.c: parse arguments with getopt().
350 * configure.in: Use ../../bfd/hosts/std-host.h if specific
353 Sun Feb 12 16:03:29 1995 Steve Chamberlain <sac@splat>
355 * iface.c (sim_stop_reason): (Make a bad syscall give a SIGILL.
356 * writecode.c (adiv): Divides are always signed.
360 * inlines.h: Make INLINES static.
361 * mem.c (sitoptr): New instance.
362 * support.c (normal_flags_[32|16|8]): New functions.
363 (optimize_normal_flags): Use new functions.
364 * writecode.c (info_special): Handle sbc. (optimize_normal_flags):
369 * support.c (sim_open): Delete from here.
370 (sim_set_args): Delete from here.
371 (sim_kill): Delete from here.
372 * iface.c (sim_*): Make result void where there isn't one.
373 (sim_clear_breakpoints): Delete.
374 (sim_set_pc): Delete.
375 (sim_info): Delete printf_fn arg, all callers changed.
376 (sim_open): Define here.
377 (sim_close): New function.
378 (sim_load): New function.
379 (sim_create_inferior): Renamed from sim_set_args.
380 (sim_kill): Define here.
381 * run.c (printf): Delete declaration.
382 (main): Call sim_create_inferior instead of sim_set_pc.
383 * sim.h (sim_clear_breakpoints): Delete.
387 * writecode.c (main): Disable the chopping of large initializers.
392 * writecode.c (info_args): Add resflg and setflg.
393 * list.c : Regenerated.
394 * Makefile.in: First rule is now called 'all'
398 * iface.c (sim_store_register): Get regval the right way up.
399 * writecode.c (info_args): Add lda.
403 * Makefile.in (INCDIR): Fix definition.
404 (CSEARCH): Add -I$(srcdir)/../../gdb
405 (comped1.o, comped3.o, compedb3.o, comped2.o): Use CSEARCH, not INCDIR.
406 * iface.c: Replace #include "../include/wait.h" with "remote-sim.h".
407 (sim_set_pc): int result, use SIM_ADDR for type of arg `addr'.
408 (sim_store_register): int result, pass value by reference.
409 (sim_fetch_register): Use unsigned char * for arg `buf'.
410 (sim_write): int result, use SIM_ADDR for `where' arg,
411 use unsigned char * for `what' arg.
413 (sim_resume): int result.
414 (sim_stop_reason): Renamed from sim_stop_signal, int result,
416 (sim_info): int result, merge sim_info_print into here.
417 (sim_info_print): Deleted.
418 * run.c: #include <stdio.h>
419 (main): Update call to sim_info.
420 * sim.h: Remove various prototypes defined in remote-sim.h.
424 * iface.c (sim_stop_signal): Result is now enum sim_stop.
428 * writecode.c (doset, info_docode): Understand set and res insns.
432 * support.c (tm_info_print): If no timetaken, don't divide by zero.
436 * writecode.c (div): rename to divide, to resolve conflict with
437 ANSI function div from <stdlib.h>
441 * z8k.mt (DO_INSTALL): Renamed from INSTALL.
445 * writecode.c (main): Make the vector 'big' static, so that it
446 will compile on the apollo.
447 * support.c: Use the ANSI compilant __inline__.
451 * writecode.c (main): When using gcc, split the tables into
452 sections so that it will compile.
453 * Makefile.in: Get ar args right.
454 * tm.h: Fix gcc prototypes.
458 * support.c (fail): Get the argument count right.
460 * writecode.c (main): Pass all the arguments emit needs.