diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-23 00:22:54 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-23 00:22:54 +0000 |
commit | 78e5cee6807fc377a8e77d05dd39aeaba8420d00 (patch) | |
tree | ff3bdbd36984e2e1ddca10253d7ca2367ed468a7 /gdb/gdbserver | |
parent | ba0f336fa582e7d14790cb368a36842c80dad26f (diff) | |
download | gdb-78e5cee6807fc377a8e77d05dd39aeaba8420d00.zip gdb-78e5cee6807fc377a8e77d05dd39aeaba8420d00.tar.gz gdb-78e5cee6807fc377a8e77d05dd39aeaba8420d00.tar.bz2 |
* server.c (handle_query) Whitespace and formatting.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 18 |
2 files changed, 12 insertions, 10 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 90dc012..964ab07 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2009-03-23 Pedro Alves <pedro@codesourcery.com> + + * server.c (handle_query) Whitespace and formatting. + 2009-03-22 Pedro Alves <pedro@codesourcery.com> * i387-fp.c, linux-arm-low.c, linux-cris-low.c, diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 61a9416..21fbc37 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -574,7 +574,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p) 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_len, int *new_packet_len_p) 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_len, int *new_packet_len_p) 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; |