From 7b9a15e1ee822aea78d546ec8fafcafd27ee6de0 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Thu, 10 Oct 2019 22:57:36 -0500 Subject: [PATCH] Remove unnecessary declaration of trace_regblock_size This variable is declared in tracepoint.h, which is already included by remote.c. gdb/ChangeLog: 2019-10-12 Christian Biesinger * remote.c (remote_target::get_trace_status): Remove declaration of trace_regblock_size. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d58a55fb8ee..e6e1489fcfd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-10-12 Christian Biesinger + + * remote.c (remote_target::get_trace_status): Remove declaration of + trace_regblock_size. + 2019-10-12 Christian Biesinger * cli/cli-cmds.c (max_user_call_depth): Move comment to header. diff --git a/gdb/remote.c b/gdb/remote.c index 21160e13acc..73b510dd395 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -13102,14 +13102,13 @@ remote_target::get_trace_status (struct trace_status *ts) { /* Initialize it just to avoid a GCC false warning. */ char *p = NULL; - /* FIXME we need to get register block size some other way. */ - extern int trace_regblock_size; enum packet_result result; struct remote_state *rs = get_remote_state (); if (packet_support (PACKET_qTStatus) == PACKET_DISABLE) return -1; + /* FIXME we need to get register block size some other way. */ trace_regblock_size = rs->get_remote_arch_state (target_gdbarch ())->sizeof_g_packet; -- 2.30.2