public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA/Linux] Ask kernel to kill inferior when GDB terminates
Date: Wed, 19 Nov 2014 09:25:00 -0000	[thread overview]
Message-ID: <20141119092547.GP5774@adacore.com> (raw)
In-Reply-To: <20141114173255.GD5774@adacore.com>

> > I could see this making some sense when GDB has spawned the process,
> > but it seems harsh when GDB has attached to the process instead
> > of spawning it?
> 
> Hmmm, good point. I'd like to verify what happens in that case, and
> whether the process remains stopped or if execution resumes in that
> case.

I took a little bit of time to experiment today. The experimentation
was conducted with Linux 3.13.0-39-generic from x86_64 Ubuntu.
In both cases, when GDB runs the program or attaches to a program,
killing GDB while the inferior is still running detaches GDB from
the inferior, which means it keeps running.

I will adapt my patch when I have a moment.

-- 
Joel

  reply	other threads:[~2014-11-19  9:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-14 16:54 Joel Brobecker
2014-11-14 17:09 ` Pedro Alves
2014-11-14 17:33   ` Joel Brobecker
2014-11-19  9:25     ` Joel Brobecker [this message]
2014-11-19  9:58       ` Pedro Alves
2014-12-13 16:28         ` Joel Brobecker
2014-12-15 13:22           ` Pedro Alves
2014-12-15 20:43             ` Joel Brobecker
2014-12-15 21:17               ` Pedro Alves
2014-12-16  0:39                 ` Joel Brobecker
2014-12-16  9:46                   ` Pedro Alves
2014-12-16 12:58                     ` pushed: " Joel Brobecker

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=20141119092547.GP5774@adacore.com \
    --to=brobecker@adacore.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).