mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 12:33:36 +08:00
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 <cbiesinger@google.com> * remote.c (remote_target::get_trace_status): Remove declaration of trace_regblock_size.
This commit is contained in:
parent
cc8dee1f1c
commit
7b9a15e1ee
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user