projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New common function "startswith"
[deliverable/binutils-gdb.git]
/
gdb
/
nat
/
linux-procfs.c
diff --git
a/gdb/nat/linux-procfs.c
b/gdb/nat/linux-procfs.c
index 1e922b94824ae876d51065c351a18bb7f6c732d9..f1493839f60254f1a96d2d3cb2784a38ecce9d41 100644
(file)
--- a/
gdb/nat/linux-procfs.c
+++ b/
gdb/nat/linux-procfs.c
@@
-93,7
+93,7
@@
linux_proc_pid_get_state (pid_t pid, char *buffer, size_t buffer_size,
have_state = 0;
while (fgets (buffer, buffer_size, procfile) != NULL)
- if (st
rncmp (buffer, "State:", 6) == 0
)
+ if (st
artswith (buffer, "State:")
)
{
have_state = 1;
break;
This page took
0.025219 seconds
and
4
git commands to generate.