Remove unnecessary declaration of trace_regblock_size
authorChristian Biesinger <cbiesinger@google.com>
Fri, 11 Oct 2019 03:57:36 +0000 (22:57 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Sat, 12 Oct 2019 23:36:18 +0000 (19:36 -0400)
This variable is declared in tracepoint.h, which is already included
by remote.c.

gdb/ChangeLog:

2019-10-12  Christian Biesinger  <cbiesinger@google.com>

* remote.c (remote_target::get_trace_status): Remove declaration of
trace_regblock_size.

gdb/ChangeLog
gdb/remote.c

index d58a55fb8eede5769266c76f1cd63d0c0262d435..e6e1489fcfd37b804623c76dc371dca5c9aade67 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-12  Christian Biesinger  <cbiesinger@google.com>
+
+       * remote.c (remote_target::get_trace_status): Remove declaration of
+       trace_regblock_size.
+
 2019-10-12  Christian Biesinger  <cbiesinger@google.com>
 
        * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
index 21160e13acc4b57743c69f164810da74032daa62..73b510dd3958bfd1d064101d18f4b7c2759f9b19 100644 (file)
@@ -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;