From 089f0fa4cf1885b2333f4522140ae3747f2e367b Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Tue, 18 Apr 2017 14:34:51 -0700 Subject: [PATCH] debug: move remote_bitbang into riscv --- remote_bitbang.cc => riscv/remote_bitbang.cc | 6 ++++++ remote_bitbang.h => riscv/remote_bitbang.h | 0 2 files changed, 6 insertions(+) rename remote_bitbang.cc => riscv/remote_bitbang.cc (96%) rename remote_bitbang.h => riscv/remote_bitbang.h (100%) diff --git a/remote_bitbang.cc b/riscv/remote_bitbang.cc similarity index 96% rename from remote_bitbang.cc rename to riscv/remote_bitbang.cc index 9d0ca90..75aa8fe 100644 --- a/remote_bitbang.cc +++ b/riscv/remote_bitbang.cc @@ -164,8 +164,14 @@ void remote_bitbang_t::execute_commands() abort(); } } + + if (quit) { + fprintf(stderr, "Remote Bitbang received 'Q'\n"); + } + if (recv_end == 0 || quit) { // The remote disconnected. + fprintf(stderr, "Received nothing. Quitting.\n"); close(client_fd); client_fd = 0; break; diff --git a/remote_bitbang.h b/riscv/remote_bitbang.h similarity index 100% rename from remote_bitbang.h rename to riscv/remote_bitbang.h -- 2.30.2