OSDN Git Service
(root)
/
pf3gnuchains
/
sourceware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d60863
)
2011-02-26 Michael Snyder <msnyder@vmware.com>
author
msnyder
<msnyder>
Mon, 28 Feb 2011 06:20:06 +0000
(06:20 +0000)
committer
msnyder
<msnyder>
Mon, 28 Feb 2011 06:20:06 +0000
(06:20 +0000)
* linux-low.c (linux_xfer_siginfo): Fix fencepost error.
gdb/gdbserver/ChangeLog
patch
|
blob
|
history
gdb/gdbserver/linux-low.c
patch
|
blob
|
history
diff --git
a/gdb/gdbserver/ChangeLog
b/gdb/gdbserver/ChangeLog
index
29b175f
..
a8479b8
100644
(file)
--- a/
gdb/gdbserver/ChangeLog
+++ b/
gdb/gdbserver/ChangeLog
@@
-1,5
+1,7
@@
2011-02-27 Michael Snyder <msnyder@vmware.com>
+ * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
+
* linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
in comparison.
diff --git
a/gdb/gdbserver/linux-low.c
b/gdb/gdbserver/linux-low.c
index
93f3570
..
7b8eba7
100644
(file)
--- a/
gdb/gdbserver/linux-low.c
+++ b/
gdb/gdbserver/linux-low.c
@@
-4728,7
+4728,7
@@
linux_xfer_siginfo (const char *annex, unsigned char *readbuf,
readbuf != NULL ? "Reading" : "Writing",
pid);
- if (offset > sizeof (siginfo))
+ if (offset >
=
sizeof (siginfo))
return -1;
if (ptrace (PTRACE_GETSIGINFO, pid, 0, &siginfo) != 0)