/freebsd/contrib/llvm-project/lldb/tools/compact-unwind/ |
H A D | compact-unwind-dumper.c | 36 struct baton { struct 93 static void scan_macho_load_commands(struct baton *baton) { in scan_macho_load_commands() argument 98 baton->compact_unwind_start = 0; in scan_macho_load_commands() 100 uint32_t *magic = (uint32_t *)baton->mach_header_start; in scan_macho_load_commands() 111 uint8_t *offset = baton->mach_header_start; in scan_macho_load_commands() 121 baton->addr_size = 8; in scan_macho_load_commands() 123 baton->addr_size = 4; in scan_macho_load_commands() 125 baton->cputype = mh.cputype; in scan_macho_load_commands() 173 baton->text_segment_vmaddr = segment_vmaddr; in scan_macho_load_commands() 174 baton->text_segment_file_offset = segment_offset; in scan_macho_load_commands() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
H A D | NativeProcessSoftwareSingleStep.cpp | 36 static size_t ReadMemoryCallback(EmulateInstruction *instruction, void *baton, in ReadMemoryCallback() argument 39 EmulatorBaton *emulator_baton = static_cast<EmulatorBaton *>(baton); in ReadMemoryCallback() 46 static bool ReadRegisterCallback(EmulateInstruction *instruction, void *baton, in ReadRegisterCallback() argument 49 EmulatorBaton *emulator_baton = static_cast<EmulatorBaton *>(baton); in ReadRegisterCallback() 73 static bool WriteRegisterCallback(EmulateInstruction *instruction, void *baton, in WriteRegisterCallback() argument 77 EmulatorBaton *emulator_baton = static_cast<EmulatorBaton *>(baton); in WriteRegisterCallback() 83 static size_t WriteMemoryCallback(EmulateInstruction *instruction, void *baton, in WriteMemoryCallback() argument 143 EmulatorBaton baton(process, register_context); in SetupSoftwareSingleStepping() local 144 emulator_up->SetBaton(&baton); in SetupSoftwareSingleStepping() 177 baton.m_register_values.find(reg_info_pc->kinds[eRegisterKindDWARF]); in SetupSoftwareSingleStepping() [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Interpreter/ |
H A D | OptionValueString.h | 22 typedef Status (*ValidatorCallback)(const char *string, void *baton); 28 OptionValueString(ValidatorCallback validator, void *baton = nullptr) 29 : m_validator(validator), m_validator_baton(baton) {} in m_validator() 46 void *baton = nullptr) 47 : m_validator(validator), m_validator_baton(baton) { in m_validator() 55 ValidatorCallback validator, void *baton = nullptr) 56 : m_validator(validator), m_validator_baton(baton) { in m_validator() 117 void SetValidator(ValidatorCallback validator, void *baton = nullptr) { 119 m_validator_baton = baton;
|
/freebsd/contrib/llvm-project/lldb/source/API/ |
H A D | SBBreakpointOptionCommon.cpp | 42 SBBreakpointHitCallback callback, void *baton) in SBBreakpointCallbackBaton() 44 LLDB_INSTRUMENT_VA(this, callback, baton); in SBBreakpointCallbackBaton() 46 getItem()->callback_baton = baton; in SBBreakpointCallbackBaton() 50 void *baton, StoppointCallbackContext *ctx, lldb::user_id_t break_id, in PrivateBreakpointHitCallback() 52 LLDB_INSTRUMENT_VA(baton, ctx, break_id, break_loc_id); in PrivateBreakpointHitCallback() 56 if (baton && bp_sp) { in PrivateBreakpointHitCallback() 57 CallbackData *data = (CallbackData *)baton; in PrivateBreakpointHitCallback() 43 SBBreakpointCallbackBaton(SBBreakpointHitCallback callback,void * baton) SBBreakpointCallbackBaton() argument 51 PrivateBreakpointHitCallback(void * baton,StoppointCallbackContext * ctx,lldb::user_id_t break_id,lldb::user_id_t break_loc_id) PrivateBreakpointHitCallback() argument
|
H A D | SBBreakpointOptionCommon.h | 25 void *baton); 29 static bool PrivateBreakpointHitCallback(void *baton,
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | EmulateInstruction.cpp | 220 void EmulateInstruction::SetBaton(void *baton) { m_baton = baton; } in SetBaton() argument 258 void *baton, const Context &context, in ReadMemoryFrame() argument 261 if (baton == nullptr || dst == nullptr || dst_len == 0) in ReadMemoryFrame() 264 StackFrame *frame = (StackFrame *)baton; in ReadMemoryFrame() 275 void *baton, const Context &context, in WriteMemoryFrame() argument 278 if (baton == nullptr || src == nullptr || src_len == 0) in WriteMemoryFrame() 281 StackFrame *frame = (StackFrame *)baton; in WriteMemoryFrame() 293 void *baton, in ReadRegisterFrame() argument 296 if (baton in ReadRegisterFrame() 304 WriteRegisterFrame(EmulateInstruction * instruction,void * baton,const Context & context,const RegisterInfo * reg_info,const RegisterValue & reg_value) WriteRegisterFrame() argument 315 ReadMemoryDefault(EmulateInstruction * instruction,void * baton,const Context & context,lldb::addr_t addr,void * dst,size_t length) ReadMemoryDefault() argument 330 WriteMemoryDefault(EmulateInstruction * instruction,void * baton,const Context & context,lldb::addr_t addr,const void * dst,size_t length) WriteMemoryDefault() argument 344 ReadRegisterDefault(EmulateInstruction * instruction,void * baton,const RegisterInfo * reg_info,RegisterValue & reg_value) ReadRegisterDefault() argument 360 WriteRegisterDefault(EmulateInstruction * instruction,void * baton,const Context & context,const RegisterInfo * reg_info,const RegisterValue & reg_value) WriteRegisterDefault() argument [all...] |
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | EmulateInstruction.h | 335 void *baton, const Context &context, 340 void *baton, const Context &context, 345 void *baton, 350 void *baton, const Context &context, 444 static size_t ReadMemoryFrame(EmulateInstruction *instruction, void *baton, 448 static size_t WriteMemoryFrame(EmulateInstruction *instruction, void *baton, 452 static bool ReadRegisterFrame(EmulateInstruction *instruction, void *baton, 456 static bool WriteRegisterFrame(EmulateInstruction *instruction, void *baton, 461 static size_t ReadMemoryDefault(EmulateInstruction *instruction, void *baton, 465 static size_t WriteMemoryDefault(EmulateInstruction *instruction, void *baton, [all …]
|
H A D | Debugger.h | 94 void *baton = nullptr); 243 void SetLoggingCallback(lldb::LogOutputCallback log_callback, void *baton); 570 void *baton); 577 void *baton); 746 void *baton) in DestroyCallbackInfo() 747 : token(token), callback(callback), baton(baton) {} in DestroyCallbackInfo() 750 void *baton; member 765 Debugger(lldb::LogOutputCallback m_log_callback, void *baton);
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM/ |
H A D | EmulationStateARM.cpp | 107 EmulateInstruction *instruction, void *baton, in ReadPseudoMemory() argument 110 if (!baton) in ReadPseudoMemory() 114 EmulationStateARM *pseudo_state = (EmulationStateARM *)baton; in ReadPseudoMemory() 148 EmulateInstruction *instruction, void *baton, in WritePseudoMemory() argument 151 if (!baton) in WritePseudoMemory() 154 EmulationStateARM *pseudo_state = (EmulationStateARM *)baton; in WritePseudoMemory() 184 EmulateInstruction *instruction, void *baton, in ReadPseudoRegister() argument 187 if (!baton || !reg_info) in ReadPseudoRegister() 191 EmulationStateARM *pseudo_state = (EmulationStateARM *)baton; in ReadPseudoRegister() 203 EmulateInstruction *instruction, void *baton, in WritePseudoRegister() argument [all …]
|
H A D | EmulationStateARM.h | 41 ReadPseudoMemory(lldb_private::EmulateInstruction *instruction, void *baton, 46 WritePseudoMemory(lldb_private::EmulateInstruction *instruction, void *baton, 51 void *baton, 57 void *baton,
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ |
H A D | Lua.cpp | 62 llvm::Error Lua::RegisterBreakpointCallback(void *baton, const char *body) { in RegisterBreakpointCallback() argument 63 lua_pushlightuserdata(m_lua_state, baton); in RegisterBreakpointCallback() 79 Lua::CallBreakpointCallback(void *baton, lldb::StackFrameSP stop_frame_sp, in CallBreakpointCallback() argument 83 lua_pushlightuserdata(m_lua_state, baton); in CallBreakpointCallback() 90 llvm::Error Lua::RegisterWatchpointCallback(void *baton, const char *body) { in RegisterWatchpointCallback() argument 91 lua_pushlightuserdata(m_lua_state, baton); in RegisterWatchpointCallback() 107 Lua::CallWatchpointCallback(void *baton, lldb::StackFrameSP stop_frame_sp, in CallWatchpointCallback() argument 110 lua_pushlightuserdata(m_lua_state, baton); in CallWatchpointCallback()
|
H A D | Lua.h | 35 llvm::Error RegisterBreakpointCallback(void *baton, const char *body); 37 CallBreakpointCallback(void *baton, lldb::StackFrameSP stop_frame_sp, 40 llvm::Error RegisterWatchpointCallback(void *baton, const char *body); 41 llvm::Expected<bool> CallWatchpointCallback(void *baton,
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | ThreadPlanShouldStopHere.h | 70 void *baton = nullptr); 80 void *baton) { in SetShouldStopHereCallbacks() argument 92 m_baton = baton; in SetShouldStopHereCallbacks() 112 Status &status, void *baton); 117 void *baton);
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/ASanLibsanitizers/ |
H A D | InstrumentationRuntimeASanLibsanitizers.cpp | 70 void *baton, StoppointCallbackContext *context, user_id_t break_id, in NotifyBreakpointHit() argument 72 assert(baton && "null baton"); in NotifyBreakpointHit() 73 if (!baton) in NotifyBreakpointHit() 77 static_cast<InstrumentationRuntimeASanLibsanitizers *>(baton); in NotifyBreakpointHit()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/ |
H A D | lldb-types.h | 73 typedef void (*LogOutputCallback)(const char *, void *baton); 74 typedef bool (*CommandOverrideCallback)(void *baton, const char **argv); 76 void *baton);
|
H A D | lldb-private-interfaces.h | 103 std::function<bool(void *baton, StoppointCallbackContext *context, 106 typedef bool (*WatchpointHitCallback)(void *baton, 111 Status &status, void *baton); 114 Status &status, void *baton);
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/UnwindAssembly/InstEmulation/ |
H A D | UnwindAssemblyInstEmulation.h | 78 ReadMemory(lldb_private::EmulateInstruction *instruction, void *baton, 83 WriteMemory(lldb_private::EmulateInstruction *instruction, void *baton, 88 void *baton, 93 WriteRegister(lldb_private::EmulateInstruction *instruction, void *baton,
|
H A D | UnwindAssemblyInstEmulation.cpp | 379 EmulateInstruction *instruction, void *baton, in ReadMemory() argument 398 EmulateInstruction *instruction, void *baton, in WriteMemory() argument 401 if (baton && dst && dst_len) in WriteMemory() 402 return ((UnwindAssemblyInstEmulation *)baton) in WriteMemory() 479 void *baton, in ReadRegister() argument 483 if (baton && reg_info) in ReadRegister() 484 return ((UnwindAssemblyInstEmulation *)baton) in ReadRegister() 508 EmulateInstruction *instruction, void *baton, in WriteRegister() argument 511 if (baton && reg_info) in WriteRegister() 512 return ((UnwindAssemblyInstEmulation *)baton) in WriteRegister()
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | ThreadPlanShouldStopHere.cpp | 31 void *baton) in ThreadPlanShouldStopHere() argument 34 SetShouldStopHereCallbacks(callbacks, baton); in ThreadPlanShouldStopHere() 60 Status &status, void *baton) { in DefaultShouldStopHereCallback() argument 96 Status &status, void *baton) { in DefaultStepFromHereCallback() argument
|
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectWatchpointCommand.cpp | 230 WatchpointOptionsCallbackFunction(void *baton, in WatchpointOptionsCallbackFunction() argument 234 if (baton == nullptr) in WatchpointOptionsCallbackFunction() 238 (WatchpointOptions::CommandData *)baton; in WatchpointOptionsCallbackFunction() 542 const Baton *baton = wp_options->GetBaton(); in DoExecute() local 543 if (baton) { in DoExecute() 545 baton->GetDescription(result.GetOutputStream().AsRawOstream(), in DoExecute()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/ASan/ |
H A D | InstrumentationRuntimeASan.cpp | 64 void *baton, StoppointCallbackContext *context, user_id_t break_id, in CheckIfRuntimeIsValid() 66 assert(baton && "null baton"); in CheckIfRuntimeIsValid() 67 if (!baton) in CheckIfRuntimeIsValid() 71 static_cast<InstrumentationRuntimeASan *>(baton); 240 NotifyBreakpointHit(void * baton,StoppointCallbackContext * context,user_id_t break_id,user_id_t break_loc_id) NotifyBreakpointHit() argument
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/ |
H A D | InstrumentationRuntimeMainThreadChecker.cpp | 152 void *baton, StoppointCallbackContext *context, user_id_t break_id, in NotifyBreakpointHit() argument 154 assert(baton && "null baton"); in NotifyBreakpointHit() 155 if (!baton) in NotifyBreakpointHit() 159 static_cast<InstrumentationRuntimeMainThreadChecker *>(baton); in NotifyBreakpointHit()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/API/ |
H A D | SBDebugger.h | 128 void *baton); 331 void SetLoggingCallback(lldb::LogOutputCallback log_callback, void *baton); 337 void *baton); 344 void *baton); 352 void DispatchInput(void *baton, const void *data, size_t data_len);
|
/freebsd/contrib/llvm-project/lldb/source/Breakpoint/ |
H A D | Watchpoint.cpp | 73 void Watchpoint::SetCallback(WatchpointHitCallback callback, void *baton, in SetCallback() argument 77 m_options.SetCallback(callback, std::make_shared<UntypedBaton>(baton), in SetCallback() 133 bool Watchpoint::VariableWatchpointDisabler(void *baton, in VariableWatchpointDisabler() argument 137 assert(baton && "null baton"); in VariableWatchpointDisabler() 138 if (!baton || !context) in VariableWatchpointDisabler() 144 static_cast<WatchpointVariableContext *>(baton); in VariableWatchpointDisabler()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/JITLoader/GDB/ |
H A D | JITLoaderGDB.h | 61 JITDebugBreakpointHit(void *baton, 65 static void ProcessStateChangedCallback(void *baton,
|