diff options
author | Enze Li <enze.li@hotmail.com> | 2022-09-22 21:17:31 +0800 |
---|---|---|
committer | Enze Li <enze.li@hotmail.com> | 2022-09-24 11:59:59 +0800 |
commit | b7098e650c9f1ced654c939bebd4b70e7d028132 (patch) | |
tree | b8f695f21fa60d4c41a946d8e608eb487ef3f3b3 | |
parent | 5aa0f10c424e7904d9ab1d0746d8211451552411 (diff) | |
download | gdb-b7098e650c9f1ced654c939bebd4b70e7d028132.zip gdb-b7098e650c9f1ced654c939bebd4b70e7d028132.tar.gz gdb-b7098e650c9f1ced654c939bebd4b70e7d028132.tar.bz2 |
gdbserver: remove unused for loop
In this commit,
commit cf6c1e710ee162a5adb0ae47acb731f2bfecc956
Date: Mon Jul 11 20:53:48 2022 +0800
gdbserver: remove unused variable
I removed an unused variable in handle_v_run. Pedro then pointed out
that the for loop after it was also unused. After a period of smoke
testing, no exceptions were found.
Tested on x86_64-linux.
-rw-r--r-- | gdbserver/server.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdbserver/server.cc b/gdbserver/server.cc index c619206..366a843 100644 --- a/gdbserver/server.cc +++ b/gdbserver/server.cc @@ -2984,9 +2984,6 @@ handle_v_run (char *own_buf) char *new_program_name = NULL; int i; - for (p = own_buf + strlen ("vRun;"); p && *p; p = strchr (p, ';')) - p++; - for (i = 0, p = own_buf + strlen ("vRun;"); *p; p = next_p, ++i) { next_p = strchr (p, ';'); |