7.7 Regression when loading a trace file

Marc Khouzam <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi guys,

sorry for the late message but I just noticed a regression with the proposed 7.7 when loading a tracefile.  The created inferior no longer has an execution (no pid, no thread), and no MI execution event is seen anymore (=thread-group-started or =thread-created).  So, I cannot load a trace file in Eclipse anymore.

Here is a broken session with 7.7 followed by a working one with 7.6.
My paperwork is still blocked so I cannot submit any fixes at this time.  Any help would be appreciated.

Marc

Broken session:

> gdb.7.7 -i mi ~/runtime-TestDSF/Producer/Debug/Producer
=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.7.50.20140128-cvs\n"
(gdb) 
target tfile /tmp/trace1
&"target tfile /tmp/trace1\n"
=tsv-created,name="trace_timestamp",initial="0"\n
[...]

========== no MI event about a process or thread  ================

^done
(gdb) 
-list-thread-groups
^done,groups=[{id="i1",type="process",executable="/home/lmckhou/runtime-TestDSF/Producer/Debug/Producer"}]

================= No pid field ======================

Working session:

> gdb.7.6 -i mi ~/runtime-TestDSF/Producer/Debug/Producer
=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.6.1\n"
(gdb) 
target tfile /tmp/trace
&"target tfile /tmp/trace\n"
=thread-group-started,id="i1",pid="1"
=thread-created,id="1",group-id="i1"

============= Notice the above two MI events ====================

=tsv-created,name="trace_timestamp",initial="0"\n
^done
(gdb) 
-list-thread-groups
^done,groups=[{id="i1",type="process",pid="1",executable="/home/lmckhou/runtime-TestDSF/Producer/Debug/Producer"}]

============= Notice the pid field ==================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.