[debugserver] Fix -Wunused-function warnings on arm64
GitOrigin-RevId: 9a62b7242aead46dd5962bc516c6527ae5e80bc0
diff --git a/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp b/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
index 90cc256..0bac227 100644
--- a/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
+++ b/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
@@ -105,6 +105,7 @@
#define MNEMONIC_STRING_SIZE 32
#define OPERAND_STRING_SIZE 128
+#if !defined(__arm64__) && !defined(__aarch64__)
// Returns true if the first 16 bit opcode of a thumb instruction indicates
// the instruction will be a 32 bit thumb opcode
static bool IsThumb32Opcode(uint16_t opcode) {
@@ -112,6 +113,7 @@
return true;
return false;
}
+#endif
void DNBArchMachARM::Initialize() {
DNBArchPluginInfo arch_plugin_info = {
@@ -315,6 +317,7 @@
return kret;
}
+#if 0
static void DumpDBGState(const DNBArchMachARM::DBG &dbg) {
uint32_t i = 0;
for (i = 0; i < 16; i++) {
@@ -324,6 +327,7 @@
dbg.__wcr[i]);
}
}
+#endif
kern_return_t DNBArchMachARM::GetDBGState(bool force) {
int set = e_regSetDBG;