aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/sim_callbacks.h
AgeCommit message (Collapse)AuthorFilesLines
2022-10-11sim/ppc: Add ATTRIBUTE_PRINTFTsukasa OI1-3/+2
Clang generates a warning if the format string of a printf-like function is not a literal ("-Wformat-nonliteral"). On the default configuration, it causes a build failure (unless "--disable-werror" is specified). To avoid warnings on the printf-like wrapper, it requires proper __attribute__((format)) and we have ATTRIBUTE_PRINTF macro for this reason. This commit adds ATTRIBUTE_PRINTF to the printf-like functions. For the error function defined in sim_calls.c, the ATTRIBUTE_NORETURN has been moved to the function declaration.
2021-09-08sim: ppc: enable -Wmissing-declarations & -Wmissing-prototypesMike Frysinger1-0/+7
This aligns with common code which already uses this flag. We have to add another local prototype to fix the failure, and add another local decl for the SIM_DESC type. Unwinding these will require a lot more work & conversions in the process, so going with the decl for now unblocks the warning unification.
2021-06-16sim: ppc: use common ATTRIBUTE_PRINTF macrosMike Frysinger1-1/+1
Use the common ansidecl.h macros to replace our ad-hoc printf attributes.
2021-06-16sim: ppc: replace local NORETURN macros with common oneMike Frysinger1-1/+3
Drop local NORETURN macro with the common ansidecl.h ATTRIBUTE_NORETURN define.
2012-12-19[sim] Update old contact info in GPL license noticesJoel Brobecker1-2/+1
sim/ChangeLog: Update old contact info in GPL license notices.
2012-12-19Update sim copyright headers from GPLv2-or-later to GPLv3-or-later.Joel Brobecker1-1/+1
gdb/sim/ChangeLog: Update the non-FSF-copyrighted files in sim to GPLv3 or later.
2011-02-14sim: punt zfree()Mike Frysinger1-2/+0
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>
2004-08-052004-08-04 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-0/+4
Jim Blandy <jimb@redhat.com> * sim_callbacks.h (simulator): Declare. * Makefile.in (gdb-sim.o): New rule. (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c. (DEFS_H): Delete. (GDB_SIM_PPC_H): Define. * gdb-sim.c: New file. * sim_calls.c: Do not include "defs.h". (simulator): Drop static. (sim_store_register, sim_fetch_register): Delete.
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+115
1999-04-16Initial creation of sourceware repositoryStan Shebs1-36/+0
1995-08-23Add PowerPC simulator from Andrew Cagney <cagney@highland.com.au>Michael Meissner1-0/+36