Call post_create_inferior in ctf_open.
authorYao Qi <yao@codesourcery.com>
Fri, 18 Apr 2014 11:19:22 +0000 (19:19 +0800)
committerYao Qi <yao@codesourcery.com>
Sat, 19 Apr 2014 06:40:33 +0000 (14:40 +0800)
We don't call post_create_inferior at the end of ctf_open.  It is an
oversight in patch

  [PATCH 2/2] Create inferior for ctf target.
  https://sourceware.org/ml/gdb-patches/2014-01/msg01056.html

This patch is to call post_create_inferior at the end of ctf_open,
like the end of tfile_open.

gdb:

2014-04-19  Yao Qi  <yao@codesourcery.com>

* ctf.c (ctf_open): Call post_create_inferior.

gdb/ChangeLog
gdb/ctf.c

index 6bc9d879b5499b5e9b4fac85d7974083a3b4b282..fd9677bcadb7a441152193d00b4c82c0a80a3262 100644 (file)
@@ -1,3 +1,7 @@
+2014-04-19  Yao Qi  <yao@codesourcery.com>
+
+       * ctf.c (ctf_open): Call post_create_inferior.
+
 2014-04-19  Yao Qi  <yao@codesourcery.com>
 
        * ctf.c (handle_id): New static variable.
index 2206e042614fd1e0847f89aa2e398147266bcd04..25d63c6655c29641f855a9ea1658e4412c854940 100644 (file)
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -1187,6 +1187,8 @@ ctf_open (char *dirname, int from_tty)
 
   merge_uploaded_trace_state_variables (&uploaded_tsvs);
   merge_uploaded_tracepoints (&uploaded_tps);
+
+  post_create_inferior (&ctf_ops, from_tty);
 }
 
 /* This is the implementation of target_ops method to_close.  Destroy