Create inferior for tfile target
authorYao Qi <yao@codesourcery.com>
Thu, 30 Jan 2014 00:37:05 +0000 (08:37 +0800)
committerYao Qi <yao@codesourcery.com>
Wed, 5 Feb 2014 11:35:39 +0000 (19:35 +0800)
commit66d032ac625efa6a68403c4ec318264709a92302
tree25b25464cc811f36cb61fb63c51fabecd9ab1cc4
parentba74cf67e659546e7d6ca3f2f6e125f1940cb089
Create inferior for tfile target

When a trace file is loaded in Eclipse, it is expected to see thread
and process (=thread-group-started and =thread-created).  Create an
inferior and add a thread for this purpose.

This patch just reverts my previous patch.

gdb/testsuite:

2014-02-05  Yao Qi  <yao@codesourcery.com>

Revert this patch:

2013-05-24  Yao Qi  <yao@codesourcery.com>

* gdb.trace/tfile.exp: Test inferior and thread.

gdb:

2014-02-05  Yao Qi  <yao@codesourcery.com>

Revert this patch:

2013-05-24  Yao Qi  <yao@codesourcery.com>

* tracepoint.c (TFILE_PID): Remove.
(tfile_open): Don't add thread and inferior.
(tfile_close): Don't set 'inferior_ptid'.  Don't call
exit_inferior_silent.
(tfile_thread_alive): Remove.
(init_tfile_ops): Don't set field 'to_thread_alive' of
tfile_ops.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/tfile.exp
gdb/tracepoint.c