[debugserver] Fix -Wunused-function warnings on arm64

This commit is contained in:
Jonas Devlieghere 2021-02-02 10:19:23 -08:00
parent ca98c15f23
commit 9a62b7242a
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,7 @@ static uint32_t LoHi[16] = {0};
#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 @@ static bool IsThumb32Opcode(uint16_t opcode) {
return true;
return false;
}
#endif
void DNBArchMachARM::Initialize() {
DNBArchPluginInfo arch_plugin_info = {
@ -315,6 +317,7 @@ kern_return_t DNBArchMachARM::GetEXCState(bool force) {
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 @@ static void DumpDBGState(const DNBArchMachARM::DBG &dbg) {
dbg.__wcr[i]);
}
}
#endif
kern_return_t DNBArchMachARM::GetDBGState(bool force) {
int set = e_regSetDBG;