aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2024-05-03 15:17:42 +0200
committerTom de Vries <tdevries@suse.de>2024-05-03 15:17:42 +0200
commit67fe874896e575f8f9fd510e73d080cd3281814c (patch)
treeabb7c8ab4b810b292322e42a613972e9117536b8 /gdbserver
parent9dd1e642084cae1caed0a4a3af7bf93804d89530 (diff)
downloadgdb-67fe874896e575f8f9fd510e73d080cd3281814c.zip
gdb-67fe874896e575f8f9fd510e73d080cd3281814c.tar.gz
gdb-67fe874896e575f8f9fd510e73d080cd3281814c.tar.bz2
[gdb/build] Fix gdbserver/linux-aarch64-low.cc build
Commit 0ee25f97d21e ("Fix regression on aarch64-linux gdbserver") removed the last use of i in gdbserver/linux-aarch64-low.cc (aarch64_target::low_stopped_data_address). Breaking the build on aarch64 with: gdbserver/linux-aarch64-low.cc: In member function ?virtual CORE_ADDR aarch64_target::low_stopped_data_address()?: gdbserver/linux-aarch64-low.cc:557:12: error: unused variable ?i? [-Werror=unused-variable] 557 | int pid, i; | ^ cc1plus: all warnings being treated as errors Fix this by removing the variable i completely. Fixes: 0ee25f97d21e ("Fix regression on aarch64-linux gdbserver")
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/linux-aarch64-low.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/linux-aarch64-low.cc b/gdbserver/linux-aarch64-low.cc
index da5c1fd..eb30c31 100644
--- a/gdbserver/linux-aarch64-low.cc
+++ b/gdbserver/linux-aarch64-low.cc
@@ -554,7 +554,7 @@ CORE_ADDR
aarch64_target::low_stopped_data_address ()
{
siginfo_t siginfo;
- int pid, i;
+ int pid;
struct aarch64_debug_reg_state *state;
pid = lwpid_of (current_thread);