WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
Note that, the protocol for fast tracepoint is updated a little, including,
- Command header is changed from "TF" to "FastTrace:",
- The reply of "FastTrace:" command contains a flag for OK or Error.
GDBserver sends fast tracepoint command along with all information of a
fast tracepoint to agent, and agent installs it. I implemented
"FastTrace:" in another debugging agent (we call it dagent) instead of
gdbserver/libinproctrace.so. Regression tested on
x86_64-linux/native-gdbserver with dagent.
This patch series doesn't include the patch of IPA protocol part. I am
sure there should be some changes in protocol during the review, and
I'll post it when these patches are reviewed.
* common/agent.c (agent_run_command): Add one more parameter `len'.
* common/agent.h: Update declaration.
diff --git a/gdb/common/agent.c b/gdb/common/agent.c
index 5c90822..ab7ff7d 100644
@@ -208,12 +208,11 @@ gdb_connect_sync_socket (int pid)
socket. Return zero if success, otherwise return non-zero. */
-agent_run_command (int pid, const char *cmd)
+agent_run_command (int pid, const char *cmd, int len)
int tid = agent_get_helper_thread_id ();
ptid_t ptid = ptid_build (pid, tid, 0);
- int len = strlen (cmd) + 1;
int ret = write_inferior_memory (ipa_sym_addrs.addr_cmd_buf,
diff --git a/gdb/common/agent.h b/gdb/common/agent.h
index fa8bc36..aec0221 100644
@@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */