]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/procfs.c
gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 15 Feb 2010 17:35:50 +0000 (17:35 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 15 Feb 2010 17:35:50 +0000 (17:35 +0000)
commit74164c5624c276e97cf9cb01876ef908745cd185
tree8c1a196ff9b052b0f8adda3aa6b0d4b045d0aada
parent01a8201190286f181bea5731495123ea465c6251
gdb/
* defs.h (parse_pid_to_attach): New.
* utils.c (parse_pid_to_attach): New.
* darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
* gnu-nat.c (gnu_attach): Likewise.
* nto-procfs.c (procfs_attach): Likewise.
* procfs.c (procfs_attach): Likewise.
* windows-nat.c (windows_attach): Likewise.
* inf-ptrace.c (inf_ptrace_attach): Likewise.  Remove variable dummy.
* inf-ttrace.c (inf_ttrace_attach): Likewise.
* remote.c (extended_remote_attach_1): Likewise.  New comment on getpid
check.

gdb/testsuite/
* gdb.base/attach.exp (attach to nonsense is prohibited): Make the
"Illegal process-id" expect string more exact.
(attach to digits-starting nonsense is prohibited): New.
13 files changed:
gdb/ChangeLog
gdb/darwin-nat.c
gdb/defs.h
gdb/gnu-nat.c
gdb/inf-ptrace.c
gdb/inf-ttrace.c
gdb/nto-procfs.c
gdb/procfs.c
gdb/remote.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/attach.exp
gdb/utils.c
gdb/windows-nat.c