| #
736d4d85 |
| 25-Jun-2014 |
Zachary Turner <[email protected]> |
Replace GCC-specific intrinsic with portable alternative.
Not all supported compilers have GCC intrinsics, so this patch uses the correct portable alternative.
Additionally, this patch fixes an off
Replace GCC-specific intrinsic with portable alternative.
Not all supported compilers have GCC intrinsics, so this patch uses the correct portable alternative.
Additionally, this patch fixes an off-by-one error. __builtin_ffs returns the 1-based index of the least-significant 1-bit, but the function expects the base 2 logarithm of the number, which is equivalent to the 0-based index of the least-significant 1-bit.
Reviewed by: Keno Fischer
Differential Revision: http://reviews.llvm.org/D4284
llvm-svn: 211669
show more ...
|
| #
48672afb |
| 24-Jun-2014 |
Greg Clayton <[email protected]> |
Patch from Keno Fischer to enable JITLoaderGDB with mach-o file support.
The patch is as is with the functionality left disabled for apple vendors because of performance regressions. If this is enab
Patch from Keno Fischer to enable JITLoaderGDB with mach-o file support.
The patch is as is with the functionality left disabled for apple vendors because of performance regressions. If this is enabled it ends up searching for symbols in all shared libraries that are loadeded.
llvm-svn: 211638
show more ...
|
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1, llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1 |
|
| #
afcbdb15 |
| 25-Mar-2014 |
Enrico Granata <[email protected]> |
<rdar://problem/14515139>
Add a GetFoundationVersion() to AppleObjCRuntime This API is used to return and cache the major version of Foundation.framework, which is potentially a useful piece of data
<rdar://problem/14515139>
Add a GetFoundationVersion() to AppleObjCRuntime This API is used to return and cache the major version of Foundation.framework, which is potentially a useful piece of data to key off of to enable or disable certain ObjC related behaviors (especially in data formatters)
llvm-svn: 204756
show more ...
|
| #
4339f3a4 |
| 25-Mar-2014 |
Todd Fiala <[email protected]> |
Improve Elf object file UUID calculation performance.
This change makes significant improvements in the performance of calculating a UUID within ObjectFileELF, and handles both running processes and
Improve Elf object file UUID calculation performance.
This change makes significant improvements in the performance of calculating a UUID within ObjectFileELF, and handles both running processes and core files correctly. This does lazy evaluation of UUID generation and caches the result when calculated.
Change by Piotr Rak.
llvm-svn: 204749
show more ...
|
| #
62e5f4de |
| 22-Mar-2014 |
Arnaud A. de Grandmaison <[email protected]> |
Cleanup some dead assignements reported by scan-build
No functionnal change.
llvm-svn: 204545
|
| #
17220c18 |
| 05-Mar-2014 |
Andrew MacPherson <[email protected]> |
Add support for JIT debugging on Linux using the GDB JIT interface. Patch written with Keno Fischer.
llvm-svn: 202956
|
| #
f561a01a |
| 21-Feb-2014 |
Sylvestre Ledru <[email protected]> |
remove dead code + simplify a little
llvm-svn: 201865
|
| #
751caf65 |
| 07-Feb-2014 |
Greg Clayton <[email protected]> |
Modified ObjectFile::SetLoadAddress() to now be:
ObjectFile::SetLoadAddress (Target &target, lldb::addr_t value, bool value_is_offset);
Now "
Modified ObjectFile::SetLoadAddress() to now be:
ObjectFile::SetLoadAddress (Target &target, lldb::addr_t value, bool value_is_offset);
Now "value" is a slide if "value_is_offset" is true, and "value" is an image base address otherwise. All previous usage of this API was using slides.
Updated the ObjectFileELF and ObjectFileMachO SetLoadAddress methods to do the right thing.
Also updated the ObjectFileMachO::SetLoadAddress() function to not load __LINKEDIT when it isn't needed and to only load sections that belong to the executable object file.
llvm-svn: 201003
show more ...
|
| #
9e02dacd |
| 06-Feb-2014 |
Steve Pucci <[email protected]> |
Factor some methods that were in DynamicLoaderPOSIXDYLD.
Move some code that was in DynamicLoaderPOSIXDLYD into the base class DynamicLoader. In the case of UpdateLoadedSections(), the test to see
Factor some methods that were in DynamicLoaderPOSIXDYLD.
Move some code that was in DynamicLoaderPOSIXDLYD into the base class DynamicLoader. In the case of UpdateLoadedSections(), the test to see whether a file is loadable (its address is zero) is not generally applicable so that test is changed to a more universally applicable check for the SHF_ALLOC flag on the section.
Also make it explicit that the reading of the module_id in DynamicLoaderPOSIXDYLD::GetThreadLocalData() is using a hardcoded size (of module_id) of 4, which might not be appropriate on big-endian 64-bit systems, leaving a FIXME comment in place.
llvm-svn: 200939
show more ...
|
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2 |
|
| #
c113ff8c |
| 02-Dec-2013 |
Ed Maste <[email protected]> |
elf: Move elf note parsing to ObjectFileELF.cpp
Separate ELF note implementations were introduced for core files and GNU build-id. Move the more general one from elf-core to ObjectFileELF and use i
elf: Move elf note parsing to ObjectFileELF.cpp
Separate ELF note implementations were introduced for core files and GNU build-id. Move the more general one from elf-core to ObjectFileELF and use it for build-id as well.
Review: http://llvm-reviews.chandlerc.com/D1902 llvm-svn: 196125
show more ...
|
|
Revision tags: llvmorg-3.4.0-rc1 |
|
| #
5480365b |
| 11-Oct-2013 |
Ed Maste <[email protected]> |
Simplify indirect rld_map for mips (rework r192408).
Just pass a Target* into ObjectFileELF::GetImageInfoAddress so that it can do the extra dereference necessary on MIPS, instead of passing a flag
Simplify indirect rld_map for mips (rework r192408).
Just pass a Target* into ObjectFileELF::GetImageInfoAddress so that it can do the extra dereference necessary on MIPS, instead of passing a flag back to the caller.
Review: http://llvm-reviews.chandlerc.com/D1899 llvm-svn: 192469
show more ...
|
| #
04a8bab0 |
| 11-Oct-2013 |
Ed Maste <[email protected]> |
Support mips shared object debug info
MIPS's .dyanamic section is read-only. Instead of using DT_DEBUG for the pointer to dyld information it uses a separate tag DT_MIPS_RLD_MAP which points to sto
Support mips shared object debug info
MIPS's .dyanamic section is read-only. Instead of using DT_DEBUG for the pointer to dyld information it uses a separate tag DT_MIPS_RLD_MAP which points to storage in the read-write .rld_map section, which in turn points to the dyld information.
Review: http://llvm-reviews.chandlerc.com/D1890 llvm-svn: 192408
show more ...
|
| #
35729bb1 |
| 24-Sep-2013 |
Ashok Thirumurthi <[email protected]> |
Adds an option to resolve a symbol from an address that can be used to build out the symbol table as addresses are used, and implements the mechanism for ELF to add stripped symbols from eh_frame.
U
Adds an option to resolve a symbol from an address that can be used to build out the symbol table as addresses are used, and implements the mechanism for ELF to add stripped symbols from eh_frame.
Uses this mechanism to allow disassembly for addresses corresponding to stripped symbols for ELF, and provide hooks to implement this for PE COFF.
Also removes eSymbolContextTailCall in favor of an option for ResolveSymbolContextForAddress for consistency with the documentation for eSymbolContextEverything. Essentially, this is just an option for interpreting the so_addr.
llvm-svn: 191307
show more ...
|
| #
f7899545 |
| 22-Aug-2013 |
Michael Sartain <[email protected]> |
Round plt entsize to addralign
llvm-svn: 189066
|
| #
3cf443dd |
| 17-Jul-2013 |
Michael Sartain <[email protected]> |
simple plugin now works with Linux fix assert in SetPluginInfo implement Linux ePathTypeLLDBSystemPlugins and ePathTypeLLDBUserPlugins implement Linux Host::Backtrace and Host::GetEnvironment add .gn
simple plugin now works with Linux fix assert in SetPluginInfo implement Linux ePathTypeLLDBSystemPlugins and ePathTypeLLDBUserPlugins implement Linux Host::Backtrace and Host::GetEnvironment add .gnu_debugdata comment
Differential Revision: http://llvm-reviews.chandlerc.com/D1159
llvm-svn: 186475
show more ...
|
| #
4822d926 |
| 11-Jul-2013 |
Ashok Thirumurthi <[email protected]> |
Adds methods to ObjectFileELF to access data in ELF segments in preparation to add support for ELF core files.
Patch by Samuel Jacob!
llvm-svn: 186114
|
| #
3046e668 |
| 10-Jul-2013 |
Greg Clayton <[email protected]> |
Cleanup on the unified section list changes. Main changes are: - ObjectFile::GetSymtab() and ObjectFile::ClearSymtab() no longer takes any flags - Module coordinates with the object files and contain
Cleanup on the unified section list changes. Main changes are: - ObjectFile::GetSymtab() and ObjectFile::ClearSymtab() no longer takes any flags - Module coordinates with the object files and contain a unified section list so that object file and symbol file can share sections when they need to, yet contain their own sections.
Other cleanups: - Fixed Symbol::GetByteSize() to not have the symbol table compute the byte sizes on the fly - Modified the ObjectFileMachO class to compute symbol sizes all at once efficiently - Modified the Symtab class to store a file address lookup table for more efficient lookups - Removed Section::Finalize() and SectionList::Finalize() as they did nothing - Improved performance of the detection of symbol files that have debug maps by excluding stripped files and core files, debug files, object files and stubs - Added the ability to tell if an ObjectFile has been stripped with ObjectFile::IsStripped() (used this for the above performance improvement)
llvm-svn: 185990
show more ...
|
|
Revision tags: llvmorg-3.3.1-rc1 |
|
| #
9f4517a7 |
| 03-Jul-2013 |
Michael Sartain <[email protected]> |
Fix ObjectFileELF crc32 code used when no build id is present.
Differential Revision: http://llvm-reviews.chandlerc.com/D1081
llvm-svn: 185494
|
| #
a7499c98 |
| 01-Jul-2013 |
Michael Sartain <[email protected]> |
Split symbol support for ELF and Linux.
llvm-svn: 185366
|
|
Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3 |
|
| #
477d86d8 |
| 23-May-2013 |
Filipe Cabecinhas <[email protected]> |
Adds PT_TLS and PT_GNU_EH_FRAME names to DumpELFProgramHeaders
llvm-svn: 182619
|
| #
c836ae7d |
| 23-May-2013 |
Michael Sartain <[email protected]> |
ObjectFileELF::GetModuleSpecifications on Linux should work now. Which means "platform process list" should work and list the architecture. We are now parsing the elf build-id if it exists, which sho
ObjectFileELF::GetModuleSpecifications on Linux should work now. Which means "platform process list" should work and list the architecture. We are now parsing the elf build-id if it exists, which should allow us to load stripped symbols (looking at that next).
llvm-svn: 182610
show more ...
|
|
Revision tags: llvmorg-3.3.0-rc2 |
|
| #
adeab508 |
| 17-May-2013 |
Michael Sartain <[email protected]> |
Comment out ObjectFileELF::GetModuleSpecifications() function until I can debug where it's causing tests to fail.
llvm-svn: 182069
|
| #
9f0013d8 |
| 17-May-2013 |
Michael Sartain <[email protected]> |
Implement ObjectFileELF::GetModuleSpecifications(), and add PlatformLinux code to deal with unknown arch properties.
CR: Greg Clayton llvm-svn: 182065
|
| #
22b40f7b |
| 16-May-2013 |
Filipe Cabecinhas <[email protected]> |
Fix ObjectFileELF to not use the file_offset twice.
llvm-svn: 182061
|
| #
57abc5d6 |
| 10-May-2013 |
Greg Clayton <[email protected]> |
<rdar://problem/13854277> <rdar://problem/13594769>
Main changes in this patch include: - cleanup plug-in interface and use ConstStrings for plug-in names - Modfiied the BSD Archive plug-in to be ab
<rdar://problem/13854277> <rdar://problem/13594769>
Main changes in this patch include: - cleanup plug-in interface and use ConstStrings for plug-in names - Modfiied the BSD Archive plug-in to be able to pick out the correct .o file when .a files contain multiple .o files with the same name by using the timestamp - Modified SymbolFileDWARFDebugMap to properly verify the timestamp on .o files it loads to ensure we don't load updated .o files and cause problems when debugging
The plug-in interface changes:
Modified the lldb_private::PluginInterface class that all plug-ins inherit from:
Changed:
virtual const char * GetPluginName() = 0;
To:
virtual ConstString GetPluginName() = 0;
Removed:
virtual const char * GetShortPluginName() = 0;
- Fixed up all plug-in to adhere to the new interface and to return lldb_private::ConstString values for the plug-in names. - Fixed all plug-ins to return simple names with no prefixes. Some plug-ins had prefixes and most ones didn't, so now they all don't have prefixed names, just simple names like "linux", "gdb-remote", etc.
llvm-svn: 181631
show more ...
|