1 /* 2 * Copyright 2019 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #include <arch/debug.h> 6 7 #include <arch_cpu.h> 8 #include <debug.h> 9 #include <debug_heap.h> 10 #include <elf.h> 11 #include <kernel.h> 12 #include <kimage.h> 13 #include <thread.h> 14 #include <vm/vm_types.h> 15 #include <vm/VMAddressSpace.h> 16 #include <vm/VMArea.h> 17 18 19 void 20 arch_debug_save_registers(struct arch_debug_registers* registers) 21 { 22 } 23 24 25 bool 26 arch_debug_contains_call(Thread *thread, const char *symbol, 27 addr_t start, addr_t end) 28 { 29 return false; 30 } 31 32 33 void 34 arch_debug_stack_trace(void) 35 { 36 } 37 38 39 void * 40 arch_debug_get_caller(void) 41 { 42 return NULL; 43 } 44 45 46 int32 47 arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount, 48 int32 skipIframes, int32 skipFrames, uint32 flags) 49 { 50 return 0; 51 } 52 53 54 void* 55 arch_debug_get_interrupt_pc(bool* _isSyscall) 56 { 57 return NULL; 58 } 59 60 61 bool 62 arch_is_debug_variable_defined(const char* variableName) 63 { 64 return false; 65 } 66 67 68 status_t 69 arch_set_debug_variable(const char* variableName, uint64 value) 70 { 71 return B_ENTRY_NOT_FOUND; 72 } 73 74 75 status_t 76 arch_get_debug_variable(const char* variableName, uint64* value) 77 { 78 return B_ENTRY_NOT_FOUND; 79 } 80 81 82 status_t 83 arch_debug_init(kernel_args *args) 84 { 85 return B_NO_ERROR; 86 } 87 88 89 void 90 arch_debug_unset_current_thread(void) 91 { 92 } 93 94 95 ssize_t 96 arch_debug_gdb_get_registers(char* buffer, size_t bufferSize) 97 { 98 return B_NOT_SUPPORTED; 99 } 100