aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/emul_unix.c
AgeCommit message (Collapse)AuthorFilesLines
2015-12-29sim: ppc: track closed state of file descriptors 0, 1, and 2.Kevin Buettner1-10/+71
This change tracks the "closed" state of file descriptors 0, 1, and 2, introducing the function fdbad() to emul_netbsd.c and emul_unix.c. Note that a function of the same name and purpose exists in sim/common/callback.c. This patch eliminates all of the "unresolved testcases" when testing GDB against the powerpc simulator. This occurs because the powerpc simulator closes, on behalf of the testcase, the file descriptors associated with stdin, stdout, and stderr. GDB still needs these descriptors to communicate with the user or, in this case, with the testing framework.
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.
2012-03-14sim: ppc: fix compilation on AIX 7.1 due to st_pad name collisionsMike Frysinger1-0/+5
AIX 7.1 defines st_pad[123] to st_[amc]tim.tv_pad, respectively, breaking declaration of st_pad[123] members in struct solaris_stat. Undefine them as this is no less terrible than other solutions (like renaming the fields and losing the binding to Solaris' names). From: Michael Haubenwallner <haubi@s01en24.gentoo.org>
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>
2006-02-02 * emul_netbsd.c (emul_netbsd_create): Quote file-name property.Mark Mitchell1-1/+4
* emul_unix.c (emul_unix_create): Likewise. * tree.c (libiberty.h): Include it. (tree_quote_property): New function. * tree.h (tree_quote_property): Declare.
2005-11-28 * configure.ac (USE_WIN32API): Define it.Mark Mitchell1-0/+4
* configure.in: Regenerate. * config.in: Likewise. * emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY. * emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir.
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+2812
1999-04-16Initial creation of sourceware repositoryStan Shebs1-2706/+0
1996-06-03Add time, gettimeofday, and getrusage system call supportMichael Meissner1-42/+223
1996-06-02Add Solaris and Linux emulationsMichael Meissner1-0/+2525