From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [gdbserver] Make mingw32ce gdbserver build again
Date: Thu, 31 Jan 2008 22:03:00 -0000 [thread overview]
Message-ID: <20080131214903.GA5085@caradoc.them.org> (raw)
In-Reply-To: <47A20C37.9060803@codesourcery.com>
On Thu, Jan 31, 2008 at 05:58:15PM +0000, Pedro Alves wrote:
> gdbserver/
> 2008-01-31 Pedro Alves <pedro_alves@portugalmail.pt>
>
> * hostio.c: Don't include errno.h.
> (errno_to_fileio_errno): Move to hostio-errno.
> * hostio.c: (hostio_error): Remove the error parameter. Defer the
> error number outputting to the target->hostio_last_error callback.
> (hostio_packet_error): Use FILEIO_EINVAL directly.
> (handle_open, handle_pread, hostio_error, handle_unlink): Update
> calls to hostio_error.
> * hostio-errno.c: New.
> * server.h (hostio_last_error_from_errno): Declare.
> * target.h (target_ops): Add hostio_last_error member.
> * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
> as hostio_last_error handler.
> * spu-low.c (spu_target_ops): Likewise.
> * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error,
> wince_hostio_last_error): New functions.
> (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
> as hostio_last_error handler.
> (win32_target_ops) [!_WIN32_WCE]: Register
> hostio_last_error_from_errno as hostio_last_error handler.
> * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
> (hostio-errno.o): New rule.
> * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
> * configure.srv (srv_hostio_err_objs): New variable. Default to
> hostio-errno.o.
> (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
> * configure: Regenerate.
OK.
> Index: src/gdb/gdbserver/hostio-errno.c
> ===================================================================
> --- /dev/null 1970-01-01 00:00:00.000000000 +0000
> +++ src/gdb/gdbserver/hostio-errno.c 2008-01-31 17:50:02.000000000 +0000
> @@ -0,0 +1,64 @@
> +#include <errno.h>
This file needs a copyright notice.
> +{
> + int error = errno;
> + int fileio_error = errno_to_fileio_error (error);
> + sprintf (buf, "F-1,%x", fileio_error);
> + errno = error; /* preserve errno */
No need to preserve errno.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-01-31 21:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-31 7:03 Pedro Alves
2008-01-31 15:02 ` Daniel Jacobowitz
2008-01-31 18:45 ` Pedro Alves
2008-01-31 22:03 ` Daniel Jacobowitz [this message]
2008-02-01 0:14 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080131214903.GA5085@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox