Mike Frysinger
68ed285428
sim: clean up C11 header includes
...
Since we require C11 now, we can assume many headers exist, and
clean up all of the conditional includes. It's not like any of
this code actually accounted for the headers not existing, just
whether we could include them.
The strings.h cleanup is a little nuanced: it isn't in C11, but
every use of it in the codebase will include strings.h only if
string.h doesn't exist. Since we now assume the C11 string.h
exists, we'll never include strings.h, so we can delete it.
2021-01-11 08:05:54 -05:00
Mike Frysinger
dea827fc5c
sim: ppc: do not exit when parsing args w/gdb
...
When connecting to the simulator in gdb, we don't want it to exit on
us when we pass down unknown/invalid/help/etc... options. Plumb down
the kind argument so we can handle both gdb & psim interfaces.
2016-01-02 03:38:29 -05:00
Joel Brobecker
51b318dec8
[sim] Update old contact info in GPL license notices
...
sim/ChangeLog:
Update old contact info in GPL license notices.
2012-12-19 07:18:22 +00:00
Joel Brobecker
3fd725ef34
Update sim copyright headers from GPLv2-or-later to GPLv3-or-later.
...
gdb/sim/ChangeLog:
Update the non-FSF-copyrighted files in sim to GPLv3 or later.
2012-12-19 07:12:02 +00:00
Mike Frysinger
d79fe0d643
sim: punt zfree()
...
The sim keeps track of which allocations are zero-ed internally (via
zalloc) and then calls a helper "zfree" function rather than "free".
But this "zfree" function simply calls "free" itself. Since I can
see no point in this and it is simply useless overhead, punt it.
The only real change is in hw-alloc.c where we remove the zalloc_p
tracking, and sim-utils.c where zfree is delete. The rest of the
changes are a simple `sed` from "zfree" to "free".
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2011-02-14 05:14:28 +00:00
Joel Brobecker
93cfa9cf1f
* main.c: Fix spelling error.
2009-09-22 15:44:12 +00:00
Joseph Myers
6efef468be
sim:
...
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* cris/configure: Regenerate.
sim/common:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* aclocal.m4: Include ../../config/acx.m4.
* common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
* configure, config.in: Regenerate.
* Make-common.in (LIB_OBJS): Add version.o.
(version.c, version.o): New rules.
* run.c: Include version.h.
(usage): Add help parameter. Print output either to stdout or
stderr depending on that parameter.
(print_version): New.
(main): Check for --help and --version.
* run-sim.h (sim_target_display_usage): Add help parameter.
* version.h: New.
sim/arm:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
* wrapper.c (sim_target_display_usage): Add help parameter.
sim/cr16:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/d10v:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/erc32:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/frv:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/h8300:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/iq2000:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/m32c:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/m32r:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/m68hc11:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/mcore:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/mips:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/mn10300:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/ppc:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
* configure, config.in: Regenerated.
* Makefile.in (LIB_OBJ): Add version.o.
(version.c, version.o): New rules.
* psim.c (psim_usage): Add help parameter. Print the bug URL.
Exit with code 0 for help.
(psim_options): Update calls to psim_usage. Handle --help and
--version.
* psim.h (psim_usage): Update prototype.
* main.c (main): Update psim_usage call.
sim/sh:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/sh64:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
sim/v850:
2008-06-06 Vladimir Prus <vladimir@codesourcery.com >
Daniel Jacobowitz <dan@codesourcery.com >
Joseph Myers <joseph@codesourcery.com >
* configure: Regenerate.
2008-06-07 01:31:27 +00:00
Andrew Cagney
3c25f8c7b0
Move include/callback.h and include/remote-sim.h to include/gdb/.
...
Update accordingly.
2002-06-09 15:45:54 +00:00
Matthew Green
5c8844646d
* bits.c (LSMASKED64): New inline function.
...
(LSEXTRACTED64): Likewise.
* bits.h (_LSB_POS, _LSMASKn, LSMASK64): New macros from
sim/common/sim-bits.h
(LSMASKED64, LSEXTRACTED64): New functions definitions.
* Makefile.in (sim-bits.o): Remove target.
* main.c (zalloc): Fix typo in error message.
2002-01-04 00:00:54 +00:00
Matthew Green
de46f45f87
* main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
...
(sim_io_error): New function.
* sim_calls.c: (sim_io_error): New function.
2001-12-15 05:08:44 +00:00
Stan Shebs
c906108c21
Initial creation of sourceware repository
1999-04-16 01:35:26 +00:00
Stan Shebs
071ea11e85
Initial creation of sourceware repository
1999-04-16 01:34:07 +00:00
Andrew Cagney
8517f62b16
Ref gdb/11763 - can't stop a running simulator:
...
o Provide poll_quit callback to simulators
so that they can poll for SIGINT on
clueless OS's.
o Add sim_stop to simulators so that clients
can request a halt (eg gdbtk's STOP button)
Works for PPC!
o Re-arange remote-sim.c so that the
hard work is moved from gdbsim_resume()
to gdbsim_wait() (where it should be).
1997-04-18 12:24:52 +00:00
Michael Meissner
5c04f4f7fc
January 23rd merge
1997-01-27 21:34:50 +00:00
Michael Meissner
2e913166b1
7/30 release from Andrew
1996-08-06 15:55:32 +00:00
Michael Meissner
262faa5417
Add input support; at end of user writes, call fflush
1996-02-22 20:11:41 +00:00
Michael Meissner
290ad14a9d
Add determining when we do not have enough writeback slots; Do not do model specific handling if not printing out the information
1995-11-28 18:47:07 +00:00
Michael Meissner
1dc7c0ed84
checkpoint
1995-11-13 16:07:30 +00:00
Michael Meissner
28816f45f5
Add support for setting model name and other things
1995-11-12 14:20:39 +00:00
Michael Meissner
73c4941b23
first stage in function unit support; add new switches & latest code from andrew
1995-11-08 18:57:06 +00:00
Michael Meissner
c494cadde6
Use autoconf correctly; provide more stats with -I
1995-11-02 20:21:35 +00:00
Michael Meissner
a983c8f080
Andrew's latest changes & print all instruction counts if -I
1995-11-02 14:27:18 +00:00
Michael Meissner
22ddef466e
Fix SWAP_8 and optimize it; print out the failing address if a signal is issued for non-gdb runs
1995-10-26 16:43:00 +00:00
Michael Meissner
e1aaf97993
update usage message
1995-10-02 18:21:46 +00:00
Michael Meissner
83d96c6e3e
Add support to count the number of instructions issued.
1995-10-02 18:19:17 +00:00
Michael Meissner
8eab189bce
Add switch processing in gdb.
1995-10-02 15:47:57 +00:00
Michael Meissner
d8d46596e6
Match standalone printf_filtered to gdb prototype.
1995-10-01 17:54:45 +00:00
Michael Meissner
4f35cbffa6
enhance OEA behavior.
1995-09-21 22:23:56 +00:00