Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: [commit] [patch 2/3] attach-fail-reasons: Say more than ptrace: Operation not permitted.
Date: Tue, 13 Mar 2012 15:03:00 -0000	[thread overview]
Message-ID: <20120313150256.GB1349@host2.jankratochvil.net> (raw)
In-Reply-To: <4F5F5B0F.8010804@redhat.com>

On Tue, 13 Mar 2012 15:34:55 +0100, Pedro Alves wrote:
> > gdb/
> > 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
> > 
> > 	* common/linux-procfs.c (linux_proc_get_int): New, from
> > 	linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
> > 	field.
> > 	(linux_proc_get_tgid): Only call linux_proc_get_int.
> > 	(linux_proc_get_tracerpid): New.
> > 	(linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
> > 	(linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
> > 	linux_proc_pid_has_state.
> > 	* common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
> > 	* common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
> > 	(linux_ptrace_attach_warnings): New.
> > 	* common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
> > 	New declaration.
> > 	* linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
> > 	(linux_nat_attach): New variables ex, buffer, message and message_s.
> > 	Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
> > 
> > gdb/gdbserver/
> > 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
> > 
> > 	* linux-low.c (linux_attach_lwp_1): New variable buffer.  Call
> > 	linux_ptrace_attach_warnings.
> > 
> > gdb/testsuite/
> > 2012-03-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
> > 
> > 	* gdb.base/attach-twice.c: New files.
> > 	* gdb.base/attach-twice.exp: New files.
> 
> Looks good too.

Checked in:
	http://sourceware.org/ml/gdb-cvs/2012-03/msg00169.html


Thanks,
Jan


  parent reply	other threads:[~2012-03-13 15:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-06  6:17 Jan Kratochvil
2012-03-08 13:55 ` Pedro Alves
2012-03-13  9:43   ` Jan Kratochvil
2012-03-13 10:33     ` Pedro Alves
2012-03-13 13:55       ` Jan Kratochvil
2012-03-13 14:35         ` Pedro Alves
2012-03-13 14:50           ` Jan Kratochvil
2012-03-13 15:03           ` Jan Kratochvil [this message]
2012-03-14 15:12         ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120313150256.GB1349@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox