Revert previous tweaks
authorYao Qi <yao@codesourcery.com>
Mon, 16 Dec 2013 13:13:36 +0000 (21:13 +0800)
committerYao Qi <yao@codesourcery.com>
Sun, 23 Feb 2014 03:44:28 +0000 (11:44 +0800)
commitf73023dd06cb038bdb212d05064b03e38fd7d9db
tree86bd9b25537063fc07cfda3bce67acc0bd42f9f6
parent5a2eb0ef7f9b879c2bbe7b18183353e1d59c93c7
Revert previous tweaks

As we migrate to the new to_xfer_partial interface, some of previous
tweaks become unnecessary, we don't have to check traceframe is
selected in each target implementation, so this patch below is
reverted.

  [PATCH] Send qXfer:traceframe-info:read when traceframe is selected.
  https://sourceware.org/ml/gdb-patches/2013-10/msg00752.html

Third, to_traceframe_info is only called when traceframe is selected,
that means it is only called when target is remote, tfile or ctf, so
this patch can be partially reverted,

  https://sourceware.org/ml/gdb-patches/2013-04/msg00000.html

gdb:

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

Revert two patches:

2013-10-25  Yao Qi  <yao@codesourcery.com>

* remote.c (remote_traceframe_info): Return early if
traceframe is not selected.

2013-07-19  Yao Qi  <yao@codesourcery.com>

* target.c (update_current_target): Change the default action
of 'to_traceframe_info' from tcomplain to return_zero.
* target.h (struct target_ops) <to_traceframe_info>: Add more
comments.
gdb/ChangeLog
gdb/remote.c
gdb/target.h