From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Delete program spaces directly when removing inferiors
Date: Wed, 08 Jul 2015 18:17:00 -0000 [thread overview]
Message-ID: <559D6935.7060103@redhat.com> (raw)
In-Reply-To: <559D6784.9080408@ericsson.com>
On 07/08/2015 07:10 PM, Simon Marchi wrote:
> On 15-07-08 11:59 AM, Pedro Alves wrote:
>>
>> Yeah, it's only built if you build support for a target that pulls it in.
>> See configure.tgt, look for monitor.o. The buildbot uses --enable-targets=all,
>> you probably didn't.
>
> Oh right, I'll build with --enable-targets=all consistently from now on.
>
>> We can probably just make monitor.c call discard_all_inferiors.
>
> This doesn't have the same effect though. discard_all_inferiors
> does not delete the inferior, it just makes them exit. I am not
> sure what difference it will make.
Hmm, I think it'll fix a bug, actually. There should always
be an inferior. And that deletes it. So I assume
that after closing the monitor target, GDB crashes as soon as
it refers to the current inferior...
In the original multi-process support (~7.0), that was not the
case -- if you were not debugging a process, there's be
no inferior. Seems like this code has bit rotten.
I guess this suggests that no one's been using these monitor
targets for a long while?
>
> Is there any way to test that code path relatively easily on x86?
>
Don't think so. You could stick a:
delete_inferior_silent (ptid_get_pid (monitor_ptid));
call in remote.c:remote_close and see what happens there though.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2015-07-08 18:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 20:33 Simon Marchi
2014-10-20 17:46 ` Simon Marchi
2014-12-01 13:25 ` Simon Marchi
2015-07-06 17:46 ` Simon Marchi
2015-07-08 12:05 ` Pedro Alves
2015-07-08 15:34 ` Simon Marchi
2015-07-08 15:43 ` Simon Marchi
2015-07-08 15:59 ` Pedro Alves
2015-07-08 18:10 ` Simon Marchi
2015-07-08 18:17 ` Pedro Alves [this message]
2015-07-08 18:40 ` Simon Marchi
2015-07-08 18:51 ` Pedro Alves
2015-07-08 19:44 ` Simon Marchi
2015-07-08 19:49 ` Simon Marchi
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=559D6935.7060103@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.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