Skip to content

Commit 9a62b72

Browse files
committed
[debugserver] Fix -Wunused-function warnings on arm64
1 parent ca98c15 commit 9a62b72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ static uint32_t LoHi[16] = {0};
105105
#define MNEMONIC_STRING_SIZE 32
106106
#define OPERAND_STRING_SIZE 128
107107

108+
#if !defined(__arm64__) && !defined(__aarch64__)
108109
// Returns true if the first 16 bit opcode of a thumb instruction indicates
109110
// the instruction will be a 32 bit thumb opcode
110111
static bool IsThumb32Opcode(uint16_t opcode) {
111112
if (((opcode & 0xE000) == 0xE000) && (opcode & 0x1800))
112113
return true;
113114
return false;
114115
}
116+
#endif
115117

116118
void DNBArchMachARM::Initialize() {
117119
DNBArchPluginInfo arch_plugin_info = {
@@ -315,6 +317,7 @@ kern_return_t DNBArchMachARM::GetEXCState(bool force) {
315317
return kret;
316318
}
317319

320+
#if 0
318321
static void DumpDBGState(const DNBArchMachARM::DBG &dbg) {
319322
uint32_t i = 0;
320323
for (i = 0; i < 16; i++) {
@@ -324,6 +327,7 @@ static void DumpDBGState(const DNBArchMachARM::DBG &dbg) {
324327
dbg.__wcr[i]);
325328
}
326329
}
330+
#endif
327331

328332
kern_return_t DNBArchMachARM::GetDBGState(bool force) {
329333
int set = e_regSetDBG;

0 commit comments

Comments
 (0)