From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: "Marc Khouzam" <marc.khouzam@ericsson.com>
Subject: Re: Missing new inferior notification for core files
Date: Tue, 05 May 2009 20:38:00 -0000 [thread overview]
Message-ID: <200905052139.07139.pedro@codesourcery.com> (raw)
In-Reply-To: <200905052129.01749.pedro@codesourcery.com>
On Tuesday 05 May 2009 21:29:01, Pedro Alves wrote:
> A Tuesday 05 May 2009 21:15:23, Marc Khouzam wrote:
> > Maybe this is a simple fix that can get in before branch time for 7.0?
>
> Patch and/or a bugzilla PR is welcome.
On second thought, this way is simpler. Try this. I'm giving it a
testsuite spin. We'll handle the inferior pid change later.
--
Pedro Alves
---
gdb/inferior.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: src/gdb/inferior.c
===================================================================
--- src.orig/gdb/inferior.c 2009-05-05 21:34:08.000000000 +0100
+++ src/gdb/inferior.c 2009-05-05 21:34:34.000000000 +0100
@@ -84,6 +84,8 @@ add_inferior_silent (int pid)
inf->next = inferior_list;
inferior_list = inf;
+ observer_notify_new_inferior (pid);
+
return inf;
}
@@ -92,8 +94,6 @@ add_inferior (int pid)
{
struct inferior *inf = add_inferior_silent (pid);
- observer_notify_new_inferior (pid);
-
if (print_inferior_events)
printf_unfiltered (_("[New inferior %d]\n"), pid);
next prev parent reply other threads:[~2009-05-05 20:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 20:15 Marc Khouzam
2009-05-05 20:28 ` Pedro Alves
2009-05-05 20:38 ` Pedro Alves [this message]
2009-05-06 13:45 ` Marc Khouzam
2009-05-06 17:27 ` Pedro Alves
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=200905052139.07139.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=marc.khouzam@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