diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-09-21 11:49:22 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-09-21 11:55:31 +0100 |
commit | 18fe412be41dc4c1b0cce91499189dcf94e603f6 (patch) | |
tree | 146e4dd8c3c66f90789215128149b070e4bf2a6f | |
parent | 183dc7ecf69a92653e0a72e0bbc02732bac9ec8c (diff) | |
download | gdb-18fe412be41dc4c1b0cce91499189dcf94e603f6.zip gdb-18fe412be41dc4c1b0cce91499189dcf94e603f6.tar.gz gdb-18fe412be41dc4c1b0cce91499189dcf94e603f6.tar.bz2 |
[gdbserver] Remove unused max_jump_pad_size
This patch is to remove max_jump_pad_size which isn't used else where,
and it causes a recent gcc warning like this,
gdb/gdbserver/tracepoint.c:2920:18: error: 'max_jump_pad_size' defined but not used [-Werror=unused-const-variable]
static const int max_jump_pad_size = 0x100;
^
cc1: all warnings being treated as errors
This variable max_jump_pad_size wasn't used since it was added in 2010
by https://sourceware.org/ml/gdb-patches/2010-06/msg00002.html
gdb/gdbserver:
2015-09-21 Yao Qi <yao.qi@linaro.org>
* tracepoint.c (max_jump_pad_size): Remove.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index bef1d57..0868f0b 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-09-21 Yao Qi <yao.qi@linaro.org> + + * tracepoint.c (max_jump_pad_size): Remove. + 2015-09-18 Yao Qi <yao.qi@linaro.org> * linux-aarch64-low.c: Don't include sys/uio.h. diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 5e34eba..6b50f26 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -2916,9 +2916,6 @@ in_readonly_region (CORE_ADDR addr, ULONGEST length) return 0; } -/* The maximum size of a jump pad entry. */ -static const int max_jump_pad_size = 0x100; - static CORE_ADDR gdb_jump_pad_head; /* Return the address of the next free jump space. */ |