aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/emul_bugapi.c
AgeCommit message (Collapse)AuthorFilesLines
2022-10-12sim/ppc: fixes for arguments to printf style functionsAndrew Burgess1-1/+1
After the recent series of fixes to mark more functions in the simulator with ATTRIBUTE_PRINTF, there were some build failures in the ppc sim due, in some cases, to bugs with the arguments being passed, and in other cases, the issues were (maybe) less serious, with arguments being the wrong size, or type, for the printf format being used. This commit fixes all of the issues that I ran into. In each case I selected the easiest solution to the problem, which is usually just casting the argument to the correct type. If anyone later on thinks the print format should change, please feel free to do that. What we have here should keep the simulator basically working as it does currently, which is my goal with this commit.
2021-01-11sim: clean up C11 header includesMike Frysinger1-10/+0
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.
2017-02-13sim: use ARRAY_SIZE instead of ad-hoc sizeof calculationsMike Frysinger1-1/+1
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/+2
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>
2007-09-04 * sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the fileJerome Guitton1-2/+7
name property before parsing it.
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+581
1999-04-16Initial creation of sourceware repositoryStan Shebs1-532/+0
1996-07-23New simulator changes from AndrewMichael Meissner1-19/+89
1996-03-29Add --enable-sim-stdio to make console I/O use stdio, not printf_filtered ↵Michael Meissner1-21/+36
and polling input
1996-02-22Add input support; at end of user writes, call fflushMichael Meissner1-7/+64
1996-02-21Add more write system calls; Add system call tracingMichael Meissner1-24/+196
1996-02-21Update to 1995-02-20 releaseMichael Meissner1-110/+94
1996-01-10Latest changes from AndrewMichael Meissner1-4/+4
1996-01-08Latest cagney updateMichael Meissner1-10/+88
1995-12-15Changes from AndrewMichael Meissner1-0/+156