Updated gdbserver to handle more package types.

PiperOrigin-RevId: 886374647
Change-Id: I81d3528e26398bfa556a4c0b01374875106b93e0
diff --git a/riscv/BUILD b/riscv/BUILD
index f1ac14b..a7820c0 100644
--- a/riscv/BUILD
+++ b/riscv/BUILD
@@ -1235,6 +1235,7 @@
         "@abseil-cpp//absl/container:btree",
         "@abseil-cpp//absl/container:flat_hash_set",
         "@abseil-cpp//absl/functional:any_invocable",
+        "@abseil-cpp//absl/log",
         "@abseil-cpp//absl/status",
         "@abseil-cpp//absl/status:statusor",
         "@abseil-cpp//absl/strings",
diff --git a/riscv/debug_command_shell.cc b/riscv/debug_command_shell.cc
index 0893446..2e32fae 100644
--- a/riscv/debug_command_shell.cc
+++ b/riscv/debug_command_shell.cc
@@ -24,6 +24,7 @@
 #include <vector>
 
 #include "absl/functional/any_invocable.h"
+#include "absl/log/log.h"
 #include "absl/status/status.h"
 #include "absl/status/statusor.h"
 #include "absl/strings/numbers.h"
@@ -948,6 +949,9 @@
         }
         std::string access_type;
         switch (info.access_type) {
+          case AccessType::kNone:
+            LOG(FATAL) << "Invalid access type - should not happen";
+            break;
           case AccessType::kStore:
             access_type = "w";
             break;