Lines Matching defs:lldb

9 #include "lldb/Host/Config.h"
26 #include "lldb/Breakpoint/Watchpoint.h"
27 #include "lldb/Breakpoint/WatchpointAlgorithms.h"
28 #include "lldb/Breakpoint/WatchpointResource.h"
29 #include "lldb/Core/Debugger.h"
30 #include "lldb/Core/Module.h"
31 #include "lldb/Core/ModuleSpec.h"
32 #include "lldb/Core/PluginManager.h"
33 #include "lldb/Core/Value.h"
34 #include "lldb/DataFormatters/FormatManager.h"
35 #include "lldb/Host/ConnectionFileDescriptor.h"
36 #include "lldb/Host/FileSystem.h"
37 #include "lldb/Host/HostThread.h"
38 #include "lldb/Host/PosixApi.h"
39 #include "lldb/Host/PseudoTerminal.h"
40 #include "lldb/Host/StreamFile.h"
41 #include "lldb/Host/ThreadLauncher.h"
42 #include "lldb/Host/XML.h"
43 #include "lldb/Interpreter/CommandInterpreter.h"
44 #include "lldb/Interpreter/CommandObject.h"
45 #include "lldb/Interpreter/CommandObjectMultiword.h"
46 #include "lldb/Interpreter/CommandReturnObject.h"
47 #include "lldb/Interpreter/OptionArgParser.h"
48 #include "lldb/Interpreter/OptionGroupBoolean.h"
49 #include "lldb/Interpreter/OptionGroupUInt64.h"
50 #include "lldb/Interpreter/OptionValueProperties.h"
51 #include "lldb/Interpreter/Options.h"
52 #include "lldb/Interpreter/Property.h"
53 #include "lldb/Symbol/ObjectFile.h"
54 #include "lldb/Target/ABI.h"
55 #include "lldb/Target/DynamicLoader.h"
56 #include "lldb/Target/MemoryRegionInfo.h"
57 #include "lldb/Target/RegisterFlags.h"
58 #include "lldb/Target/SystemRuntime.h"
59 #include "lldb/Target/Target.h"
60 #include "lldb/Target/TargetList.h"
61 #include "lldb/Target/ThreadPlanCallFunction.h"
62 #include "lldb/Utility/Args.h"
63 #include "lldb/Utility/FileSpec.h"
64 #include "lldb/Utility/LLDBLog.h"
65 #include "lldb/Utility/State.h"
66 #include "lldb/Utility/StreamString.h"
67 #include "lldb/Utility/Timer.h"
85 #include "lldb/Host/Host.h"
86 #include "lldb/Utility/StringExtractorGDBRemote.h"
96 using namespace lldb;
102 namespace lldb {
105 // need the function in the lldb namespace so it makes it into the final
106 // executable since the LLDB shared library only exports stuff in the lldb
119 } // namespace lldb
199 lldb::ProcessSP ProcessGDBRemote::CreateInstance(
200 lldb::TargetSP target_sp, ListenerSP listener_sp,
202 lldb::ProcessSP process_sp;
222 bool ProcessGDBRemote::CanDebug(lldb::TargetSP target_sp,
254 ProcessGDBRemote::ProcessGDBRemote(lldb::TargetSP target_sp,
258 m_async_broadcaster(nullptr, "lldb.process.gdb-remote.async-broadcaster"),
260 Listener::MakeListener("lldb.process.gdb-remote.async-listener")),
518 Status ProcessGDBRemote::DoWillAttachToProcessWithID(lldb::pid_t pid) {
540 lldb::pid_t pid = m_gdb_comm.GetCurrentProcessID();
1075 lldb::pid_t attach_pid, const ProcessAttachInfo &attach_info) {
1410 lldb::pid_t pid = m_gdb_comm.GetCurrentProcessID();
1416 lldb::tid_t tid = pid_tid->second;
1430 lldb::addr_t pc;
1451 lldb::tid_t tid = LLDB_INVALID_THREAD_ID;
1452 if (thread_dict->GetValueForKeyAsInteger<lldb::tid_t>("tid", tid))
1519 lldb::tid_t tid = m_thread_ids[i];
1542 lldb::tid_t old_thread_id = old_thread_sp->GetProtocolID();
1573 lldb::tid_t tid;
1579 if (thread_dict->GetValueForKeyAsInteger<lldb::tid_t>(
1612 lldb::BreakpointSiteSP bp_site_sp =
1653 lldb::tid_t tid, ExpeditedRegisterMap &expedited_register_map,
1761 lldb::BreakpointSiteSP bp_site_sp =
1777 lldb::BreakpointSiteSP bp_site_sp =
1802 // lldb requested be watched, or an address that the
1804 // range of a currently active watchpoint region - lldb
1822 // lldb will not find the "nearest" watchpoint to
1876 lldb::pid_t child_pid =
1878 lldb::tid_t child_tid = desc_extractor.GetU64(LLDB_INVALID_THREAD_ID);
1884 lldb::pid_t child_pid =
1886 lldb::tid_t child_tid = desc_extractor.GetU64(LLDB_INVALID_THREAD_ID);
1897 lldb::BreakpointSiteSP bp_site_sp =
1918 lldb::BreakpointSiteSP bp_site_sp =
1968 lldb::StopInfoSP stop_info_sp(thread_sp->GetStopInfo());
2001 lldb::ThreadSP
2022 lldb::tid_t tid = LLDB_INVALID_THREAD_ID;
2121 lldb::addr_t mem_cache_addr = LLDB_INVALID_ADDRESS;
2122 if (mem_cache_dict->GetValueForKeyAsInteger<lldb::addr_t>(
2159 lldb::pid_t pid = m_gdb_comm.GetCurrentProcessID();
2179 lldb::pid_t stop_pid = LLDB_INVALID_PROCESS_ID;
2180 lldb::tid_t tid = LLDB_INVALID_THREAD_ID;
2225 lldb::addr_t pc;
2291 lldb::addr_t mem_cache_addr = LLDB_INVALID_ADDRESS;
2306 lldb::addr_t wp_addr = LLDB_INVALID_ADDRESS;
2362 // change our behaviour for them because lldb always expects the remote
2507 // the kernel is in the process of switching ownership back to lldb
2569 lldb::addr_t addr = m_gdb_comm.GetShlibInfoAddr();
2676 ProcessGDBRemote::DoReadMemoryTags(lldb::addr_t addr, size_t len,
2694 Status ProcessGDBRemote::DoWriteMemoryTags(lldb::addr_t addr, size_t len,
2734 Status ProcessGDBRemote::FlashErase(lldb::addr_t addr, size_t size) {
2761 lldb::addr_t block_start_addr = addr - (addr % blocksize);
2910 lldb::addr_t ProcessGDBRemote::DoAllocateMemory(size_t size,
2926 if (permissions & lldb::ePermissionsReadable)
2928 if (permissions & lldb::ePermissionsWritable)
2930 if (permissions & lldb::ePermissionsExecutable)
2970 Status ProcessGDBRemote::DoDeallocateMemory(lldb::addr_t addr) {
3511 std::weak_ptr<ProcessGDBRemote> process_wp, lldb::pid_t debugserver_pid,
3600 ThreadLauncher::LaunchThread("<lldb.process.gdb-remote.async>", [this] {
3795 // &matches, std::vector<lldb::pid_t> &pids)
3814 void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id,
3815 lldb::user_id_t break_loc_id) {
3936 ProcessGDBRemote::GetExtendedInfoForThread(lldb::tid_t tid) {
3952 // character in gdb-remote binary mode. lldb currently doesn't escape
3975 lldb::addr_t image_list_address, lldb::addr_t image_count) {
3994 const std::vector<lldb::addr_t> &load_addresses) {
4021 // character in gdb-remote binary mode. lldb currently doesn't escape
4075 // character in gdb-remote binary mode. lldb currently doesn't escape
4647 llvm::StringSwitch<lldb::Format>(value)
4721 // lldb doesn't handle 128-bit uints correctly (for ymm*h), so
4732 "ProcessGDBRemote::ParseRegisters Could not determine lldb"
5027 lldb::addr_t lm = 0, base = 0, ld = 0;
5093 lldb::addr_t base = 0;
5118 lldb::ModuleSP ProcessGDBRemote::LoadModuleAtAddress(const FileSpec &file,
5119 lldb::addr_t link_map,
5120 lldb::addr_t base_addr,
5143 lldb::addr_t mod_base;
5144 lldb::addr_t link_map;
5159 lldb::ModuleSP module_sp =
5172 const lldb::ModuleSP loaded_module = loaded_modules.GetModuleAtIndex(i);
5191 new_modules.ForEach([&target](const lldb::ModuleSP module_sp) -> bool {
5199 lldb::ModuleSP module_copy_sp = module_sp;
5213 lldb::addr_t &load_addr) {
5374 lldb::pid_t pid = m_gdb_comm.GetCurrentProcessID();
5582 "Maximum size that lldb will try to read/write one one chunk.",
5796 void ProcessGDBRemote::DidFork(lldb::pid_t child_pid, lldb::tid_t child_tid) {
5799 lldb::pid_t parent_pid = m_gdb_comm.GetCurrentProcessID();
5802 lldb::tid_t parent_tid = m_thread_ids.front();
5804 lldb::pid_t follow_pid, detach_pid;
5805 lldb::tid_t follow_tid, detach_tid;
5861 void ProcessGDBRemote::DidVFork(lldb::pid_t child_pid, lldb::tid_t child_tid) {
5874 lldb::pid_t detach_pid;
5875 lldb::tid_t detach_tid;