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:
bf8d125
)
2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
author
drow
<drow>
Tue, 27 Mar 2007 19:10:16 +0000
(19:10 +0000)
committer
drow
<drow>
Tue, 27 Mar 2007 19:10:16 +0000
(19:10 +0000)
* server.c (main): Correct strtoul check.
gdb/gdbserver/ChangeLog
patch
|
blob
|
history
gdb/gdbserver/server.c
patch
|
blob
|
history
diff --git
a/gdb/gdbserver/ChangeLog
b/gdb/gdbserver/ChangeLog
index
126dd31
..
7385a20
100644
(file)
--- a/
gdb/gdbserver/ChangeLog
+++ b/
gdb/gdbserver/ChangeLog
@@
-1,3
+1,7
@@
+2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
+
+ * server.c (main): Correct strtoul check.
+
2007-03-27 Jon Ringle <jon@ringle.org>
* linux-low.c: Check __ARCH_HAS_MMU__ also.
diff --git
a/gdb/gdbserver/server.c
b/gdb/gdbserver/server.c
index
70ecd53
..
04b6265
100644
(file)
--- a/
gdb/gdbserver/server.c
+++ b/
gdb/gdbserver/server.c
@@
-727,7
+727,7
@@
main (int argc, char *argv[])
if (argc >= 3 && strcmp (argv[2], "--attach") == 0)
{
if (argc == 4
- && argv[3] != '\0'
+ && argv[3]
[0]
!= '\0'
&& (pid = strtoul (argv[3], &arg_end, 10)) != 0
&& *arg_end == '\0')
{