Lines Matching full:address

1 //===-- Address.cpp ---------------------------------------------*- C++ -*-===//
10 #include "lldb/Core/Address.h"
29 ReadBytes (ExecutionContextScope *exe_scope, const Address &address, void *dst, size_t dst_len) in ReadBytes() argument
39 return target_sp->ReadMemory (address, prefer_file_cache, dst, dst_len, error); in ReadBytes()
45 GetByteOrderAndAddressSize (ExecutionContextScope *exe_scope, const Address &address, ByteOrder& by… in GetByteOrderAndAddressSize() argument
61 ModuleSP module_sp (address.GetModule()); in GetByteOrderAndAddressSize()
72 ReadUIntMax64 (ExecutionContextScope *exe_scope, const Address &address, uint32_t byte_size, bool &… in ReadUIntMax64() argument
82 success = ReadBytes (exe_scope, address, &buf, byte_size) == byte_size; in ReadUIntMax64()
87 if (GetByteOrderAndAddressSize (exe_scope, address, byte_order, addr_size)) in ReadUIntMax64()
100 …eadAddress (ExecutionContextScope *exe_scope, const Address &address, uint32_t pointer_size, Addre… in ReadAddress() argument
107 addr_t deref_addr = ReadUIntMax64 (exe_scope, address, pointer_size, success); in ReadAddress()
124 ModuleSP module_sp (address.GetModule()); in ReadAddress()
132 // able to read the address, so we return a section offset address with in ReadAddress()
133 // no section and "deref_addr" as the offset (address). in ReadAddress()
141 DumpUInt (ExecutionContextScope *exe_scope, const Address &address, uint32_t byte_size, Stream* str… in DumpUInt() argument
147 if (ReadBytes (exe_scope, address, &buf[0], buf.size()) == buf.size()) in DumpUInt()
151 if (GetByteOrderAndAddressSize (exe_scope, address, byte_order, addr_size)) in DumpUInt()
161 LLDB_INVALID_ADDRESS,// base address in DumpUInt()
173 ReadCStringFromMemory (ExecutionContextScope *exe_scope, const Address &address, Stream *strm) in ReadCStringFromMemory() argument
181 // Byte order and address size don't matter for C string dumping.. in ReadCStringFromMemory()
185 Address curr_address(address); in ReadCStringFromMemory()
201 LLDB_INVALID_ADDRESS,// base address in ReadCStringFromMemory()
216 Address::Address (lldb::addr_t abs_addr) : in Address() function in Address
222 Address::Address (addr_t address, const SectionList *section_list) : in Address() argument
226 ResolveAddressUsingFileSections(address, section_list); in Address()
229 const Address&
230 Address::operator= (const Address& rhs) in operator =()
241 Address::ResolveAddressUsingFileSections (addr_t file_addr, const SectionList *section_list) in ResolveAddressUsingFileSections()
251 return true; // Successfully transformed addr into a section offset address in ResolveAddressUsingFileSections()
255 return false; // Failed to resolve this address to a section offset value in ResolveAddressUsingFileSections()
259 Address::GetModule () const in GetModule()
269 Address::GetFileAddress () const in GetFileAddress()
277 // Section isn't resolved, we can't return a valid file address in GetFileAddress()
281 // address by adding the file base address to our offset in GetFileAddress()
289 Address::GetLoadAddress (Target *target) const in GetLoadAddress()
305 // address by adding the file base address to our offset in GetLoadAddress()
310 // return a valid file address. in GetLoadAddress()
315 Address::GetCallableLoadAddress (Target *target, bool is_indirect) const in GetCallableLoadAddress()
332 Address::SetCallableLoadAddress (lldb::addr_t load_addr, Target *target) in SetCallableLoadAddress()
344 Address::GetOpcodeLoadAddress (Target *target) const in GetOpcodeLoadAddress()
353 Address::SetOpcodeLoadAddress (lldb::addr_t load_addr, Target *target) in SetOpcodeLoadAddress()
365 Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, DumpStyle fallback_sty… in Dump()
367 // If the section was NULL, only load address is going to work unless we are in Dump()
375 // If addr_byte_size is UINT32_MAX, then determine the correct address in Dump()
385 Address so_addr; in Dump()
399 s->Address(m_offset, addr_size); in Dump()
405 s->Address(m_offset, addr_size); in Dump()
421 s->Address (file_addr, addr_size); in Dump()
436 s->Address (load_addr, addr_size); in Dump()
525 Address cstr_addr(*this); in Dump()
552 Address cfstring_data_addr(*this); in Dump()
650 // sections as this address. in Dump()
688 // as our address. If it isn't, then we might have just found in Dump()
689 // the last symbol that came before the address that we are in Dump()
690 // looking up that has nothing to do with our address lookup. in Dump()
746 Address dereferenced_addr; in Dump()
752 s->Address (dereferenced_load_addr, addr_size, " -> ", " "); in Dump()
771 Address::CalculateSymbolContext (SymbolContext *sc, uint32_t resolve_scope) const in CalculateSymbolContext()
791 Address::CalculateSymbolContextModule () const in CalculateSymbolContextModule()
800 Address::CalculateSymbolContextCompileUnit () const in CalculateSymbolContextCompileUnit()
817 Address::CalculateSymbolContextFunction () const in CalculateSymbolContextFunction()
834 Address::CalculateSymbolContextBlock () const in CalculateSymbolContextBlock()
851 Address::CalculateSymbolContextSymbol () const in CalculateSymbolContextSymbol()
868 Address::CalculateSymbolContextLineEntry (LineEntry &line_entry) const in CalculateSymbolContextLineEntry()
890 Address::CompareFileAddress (const Address& a, const Address& b) in CompareFileAddress()
903 Address::CompareLoadAddress (const Address& a, const Address& b, Target *target) in CompareLoadAddress()
916 Address::CompareModulePointerAndOffset (const Address& a, const Address& b) in CompareModulePointerAndOffset()
926 // Modules are the same, just compare the file address since they should in CompareModulePointerAndOffset()
939 Address::MemorySize () const in MemorySize()
941 // Noting special for the memory size of a single Address object, in MemorySize()
943 return sizeof(Address); in MemorySize()
956 // address results to make much sense
958 // This basically lets Address objects be used in ordered collection
963 lldb_private::operator< (const Address& lhs, const Address& rhs) in operator <()
983 lldb_private::operator> (const Address& lhs, const Address& rhs) in operator >()
1005 lldb_private::operator== (const Address& a, const Address& rhs) in operator ==()
1013 lldb_private::operator!= (const Address& a, const Address& rhs) in operator !=()
1020 Address::GetAddressClass () const in GetAddressClass()
1037 Address::SetLoadAddress (lldb::addr_t load_addr, Target *target) in SetLoadAddress()