From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: Re: [gdbserver/commit] fix whitespace.
Date: Mon, 23 Mar 2009 01:12:00 -0000 [thread overview]
Message-ID: <200903230022.04881.pedro@codesourcery.com> (raw)
In-Reply-To: <200903222352.23415.pedro@codesourcery.com>
I'm also applying these further fixes.
--
Pedro Alves
2009-03-23 Pedro Alves <pedro@codesourcery.com>
* server.c (handle_query) Whitespace and formatting.
---
gdb/gdbserver/server.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
Index: src/gdb/gdbserver/server.c
===================================================================
--- src.orig/gdb/gdbserver/server.c 2009-03-23 00:18:18.000000000 +0000
+++ src/gdb/gdbserver/server.c 2009-03-23 00:19:50.000000000 +0000
@@ -574,7 +574,7 @@ handle_query (char *own_buf, int packet_
require_running (own_buf);
strcpy (own_buf, "E00");
if (decode_xfer_read (own_buf + 15, &annex, &ofs, &len) < 0)
- return;
+ return;
if (len > PBUFSIZ - 2)
len = PBUFSIZ - 2;
spu_buf = malloc (len + 1);
@@ -585,11 +585,9 @@ handle_query (char *own_buf, int packet_
if (n < 0)
write_enn (own_buf);
else if (n > len)
- *new_packet_len_p = write_qxfer_response
- (own_buf, spu_buf, len, 1);
+ *new_packet_len_p = write_qxfer_response (own_buf, spu_buf, len, 1);
else
- *new_packet_len_p = write_qxfer_response
- (own_buf, spu_buf, n, 0);
+ *new_packet_len_p = write_qxfer_response (own_buf, spu_buf, n, 0);
free (spu_buf);
return;
@@ -791,20 +789,20 @@ handle_query (char *own_buf, int packet_
strcpy (own_buf, "E00");
if (decode_xfer_read (own_buf + 18, &annex, &ofs, &len) < 0)
- return;
+ return;
if (len > PBUFSIZ - 2)
- len = PBUFSIZ - 2;
+ len = PBUFSIZ - 2;
workbuf = malloc (len + 1);
if (!workbuf)
return;
n = (*the_target->qxfer_osdata) (annex, workbuf, NULL, ofs, len + 1);
if (n < 0)
- write_enn (own_buf);
+ write_enn (own_buf);
else if (n > len)
- *new_packet_len_p = write_qxfer_response (own_buf, workbuf, len, 1);
+ *new_packet_len_p = write_qxfer_response (own_buf, workbuf, len, 1);
else
- *new_packet_len_p = write_qxfer_response (own_buf, workbuf, n, 0);
+ *new_packet_len_p = write_qxfer_response (own_buf, workbuf, n, 0);
free (workbuf);
return;
next prev parent reply other threads:[~2009-03-23 0:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-23 0:22 Pedro Alves
2009-03-23 1:12 ` Pedro Alves [this message]
2009-03-23 1:26 ` Joel Brobecker
2009-03-23 1:31 ` Pedro Alves
2009-03-23 3:54 ` Thiago Jung Bauermann
2009-03-23 6:28 ` Eli Zaretskii
2009-03-23 4:24 ` Eli Zaretskii
2009-03-23 12:49 ` Mark Kettenis
2009-03-23 14:30 ` Joel Brobecker
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=200903230022.04881.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/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