LLVM  15.0.0git
Namespaces | Functions
Debuginfod.cpp File Reference
#include "llvm/Debuginfod/Debuginfod.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Debuginfod/HTTPClient.h"
#include "llvm/Support/CachePruning.h"
#include "llvm/Support/Caching.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileUtilities.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/xxhash.h"
Include dependency graph for Debuginfod.cpp:

Go to the source code of this file.

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

static std::string llvm::uniqueKey (llvm::StringRef S)
 
static std::string llvm::buildIDToString (BuildIDRef ID)
 
Expected< SmallVector< StringRef > > llvm::getDefaultDebuginfodUrls ()
 Finds default array of Debuginfod server URLs by checking DEBUGINFOD_URLS environment variable. More...
 
Expected< std::string > llvm::getDefaultDebuginfodCacheDirectory ()
 Finds a default local file caching directory for the debuginfod client, first checking DEBUGINFOD_CACHE_PATH. More...
 
std::chrono::milliseconds llvm::getDefaultDebuginfodTimeout ()
 Finds a default timeout for debuginfod HTTP requests. More...
 
Expected< std::string > llvm::getCachedOrDownloadSource (BuildIDRef ID, StringRef SourceFilePath)
 Fetches a specified source file by searching the default local cache directory and server URLs. More...
 
Expected< std::string > llvm::getCachedOrDownloadExecutable (BuildIDRef ID)
 Fetches an executable by searching the default local cache directory and server URLs. More...
 
Expected< std::string > llvm::getCachedOrDownloadDebuginfo (BuildIDRef ID)
 Fetches a debug binary by searching the default local cache directory and server URLs. More...
 
Expected< std::string > llvm::getCachedOrDownloadArtifact (StringRef UniqueKey, StringRef UrlPath)
 Fetches any debuginfod artifact using the default local cache directory and server URLs. More...
 
Expected< std::string > llvm::getCachedOrDownloadArtifact (StringRef UniqueKey, StringRef UrlPath, StringRef CacheDirectoryPath, ArrayRef< StringRef > DebuginfodUrls, std::chrono::milliseconds Timeout)
 Fetches any debuginfod artifact using the specified local cache directory, server URLs, and request timeout (in milliseconds). More...
 

Detailed Description

This file defines the fetchInfo function, which retrieves any of the three supported artifact types: (executable, debuginfo, source file) associated with a build-id from debuginfod servers. If a source file is to be fetched, its absolute path must be specified in the Description argument to fetchInfo.

Definition in file Debuginfod.cpp.