From: "Marc Khouzam" <marc.khouzam@ericsson.com>
To: <gdb@sourceware.org>
Subject: Missing new inferior notification for core files
Date: Tue, 05 May 2009 20:15:00 -0000 [thread overview]
Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA0762F13E@ecamlmw720.eamcs.ericsson.se> (raw)
Hi,
with HEAD of April 30th, I noticed that there is no notification
of a new inferior when connecting to a core file. This is on Linux.
Note that the session below uses MI, but I also tried
plain CLI and used 'set print inferior-events 1';
in that case still, no [New inferior ] event was shown.
So, inferior.c#add_inferior() does not seem to get called for a core
file.
This causes a problem for DSF-GDB because it is not made
aware that a new inferior must be shown to the user.
Maybe this is a simple fix that can get in before branch time for 7.0?
Thanks in advance
marc
~"GNU gdb (GDB) 6.8.50.20090430-cvs\n"
~"Copyright (C) 2009 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\n"
~"This is free software: you are free to change and redistribute it.\n"
~"There is NO WARRANTY, to the extent permitted by law. Type \"show
copying\"\n"
~"and \"show warranty\" for details.\n"
~"This GDB was configured as \"i686-pc-linux-gnu\".\n"
~"For bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>...\n"
(gdb)
info inferior
&"info inferior\n"
^done
== No inferiors yet, ok ==
(gdb)
target core /local/home/lmckhou/core.28170
&"target core /local/home/lmckhou/core.28170\n"
=thread-created,id="1",group-id="1"
== thread-created event, but no thread-group-created event ==
&"warning: Can't read pathname for load map: Input/output error.\n"
=library-loaded,id="/lib/libpthread.so.0",target-name="/lib/libpthread.s
o.0",host-name="/lib/libpthread.so.0",symbols-loaded="0"
=library-loaded,id="/usr/lib/libstdc++.so.6",target-name="/usr/lib/libst
dc++.so.6",host-name="/usr/lib/libstdc++.so.6",symbols-loaded="0"
=library-loaded,id="/lib/libm.so.6",target-name="/lib/libm.so.6",host-na
me="/lib/libm.so.6",symbols-loaded="0"
=library-loaded,id="/lib/libgcc_s.so.1",target-name="/lib/libgcc_s.so.1"
,host-name="/lib/libgcc_s.so.1",symbols-loaded="0"
=library-loaded,id="/lib/libc.so.6",target-name="/lib/libc.so.6",host-na
me="/lib/libc.so.6",symbols-loaded="0"
=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2"
,host-name="/lib/ld-linux.so.2",symbols-loaded="0"
~"Reading symbols from /lib/libpthread.so.0..."
~"done.\n"
~"Loaded symbols for /lib/libpthread.so.0\n"
~"Reading symbols from /usr/lib/libstdc++.so.6..."
~"done.\n"
~"Loaded symbols for /usr/lib/libstdc++.so.6\n"
~"Reading symbols from /lib/libm.so.6..."
~"done.\n"
~"Loaded symbols for /lib/libm.so.6\n"
~"Reading symbols from /lib/libgcc_s.so.1..."
~"done.\n"
~"Loaded symbols for /lib/libgcc_s.so.1\n"
~"Reading symbols from /lib/libc.so.6..."
~"done.\n"
~"Loaded symbols for /lib/libc.so.6\n"
~"Reading symbols from /lib/ld-linux.so.2..."
~"done.\n"
~"Loaded symbols for /lib/ld-linux.so.2\n"
&"Failed to read a valid object file image from memory.\n"
~"Core was generated by
`/local/home/lmckhou/runtime-TestDSF/DSFTEstApp/Debug/DSFTEstApp'.\n"
~"Program terminated with signal 5, Trace/breakpoint trap.\n"
~"#0 main () at ../testapp.cc:503\n"
~"503\t\tint de = 99;\n"
^done
(gdb)
info inferior
&"info inferior\n"
~"* 1 1\n"
^done
== Inferior is in the list (granted, it is a special one) ==
== but there was no event for its addition ==
(gdb)
-gdb-exit
^exit
=thread-group-exited,id="1"
== thread-group-exited event but no corresponding ==
== thread-group created before ==
=library-unloaded,id="/lib/libpthread.so.0",target-name="/lib/libpthread
.so.0",host-name="/lib/libpthread.so.0"
=library-unloaded,id="/usr/lib/libstdc++.so.6",target-name="/usr/lib/lib
stdc++.so.6",host-name="/usr/lib/libstdc++.so.6"
=library-unloaded,id="/lib/libm.so.6",target-name="/lib/libm.so.6",host-
name="/lib/libm.so.6"
=library-unloaded,id="/lib/libgcc_s.so.1",target-name="/lib/libgcc_s.so.
1",host-name="/lib/libgcc_s.so.1"
=library-unloaded,id="/lib/libc.so.6",target-name="/lib/libc.so.6",host-
name="/lib/libc.so.6"
=library-unloaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.
2",host-name="/lib/ld-linux.so.2"
next reply other threads:[~2009-05-05 20:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 20:15 Marc Khouzam [this message]
2009-05-05 20:28 ` Pedro Alves
2009-05-05 20:38 ` Pedro Alves
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=6D19CA8D71C89C43A057926FE0D4ADAA0762F13E@ecamlmw720.eamcs.ericsson.se \
--to=marc.khouzam@ericsson.com \
--cc=gdb@sourceware.org \
/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