Lines Matching +defs:buffer +defs:file +defs:name

441     error = Status::FromErrorString("No entry point name found\n");
479 const FileSpec &file, uint32_t line_no,
487 GetSourcePathMap().ReverseRemapPath(file, remapped_file);
489 remapped_file = file;
814 void Target::AddNameToBreakpoint(BreakpointID &id, llvm::StringRef name,
825 AddNameToBreakpoint(bp_sp, name, error);
828 void Target::AddNameToBreakpoint(BreakpointSP &bp_sp, llvm::StringRef name,
833 BreakpointName *bp_name = FindBreakpointName(ConstString(name), true, error);
838 bp_sp->AddName(name);
846 BreakpointName *Target::FindBreakpointName(ConstString name, bool can_create,
848 BreakpointID::StringIsBreakpointName(name.GetStringRef(), error);
852 BreakpointNameList::iterator iter = m_breakpoint_names.find(name);
859 "Breakpoint name \"%s\" doesn't exist and "
861 name.AsCString());
866 .insert(std::make_pair(name, std::make_unique<BreakpointName>(name)))
870 void Target::DeleteBreakpointName(ConstString name) {
871 BreakpointNameList::iterator iter = m_breakpoint_names.find(name);
874 const char *name_cstr = name.AsCString();
882 ConstString name) {
883 bp_sp->RemoveName(name.AsCString());
899 LLDB_LOG(GetLog(LLDBLog::Breakpoints), "invalid breakpoint name: {}",
1153 Status Target::SerializeBreakpointsToFile(const FileSpec &file,
1158 if (!file) {
1163 std::string path(file.GetPath());
1170 input_data_sp = StructuredData::ParseJSONFromFile(file, error);
1175 "Tried to append to invalid input file %s", path.c_str());
1192 error = Status::FromErrorStringWithFormat("Unable to open output file: %s.",
1245 Status Target::CreateBreakpointsFromFile(const FileSpec &file,
1248 return CreateBreakpointsFromFile(file, no_names, new_bps);
1251 Status Target::CreateBreakpointsFromFile(const FileSpec &file,
1259 StructuredData::ParseJSONFromFile(file, error);
1264 "Invalid JSON from input file: %s.", file.GetPath().c_str());
1271 "Invalid breakpoint data from input file: %s.", file.GetPath().c_str());
1284 "Invalid breakpoint data for element %zu from input file: %s.", i,
1285 file.GetPath().c_str());
1299 file.GetPath().c_str(), error.AsCString());
1571 notify); // The first image is our executable file
1579 "based on executable file",
1621 // Create a local copy of the dependent file list so we don't have
1723 // If we have an executable file, try to reset the executable to the desired
1740 "Target::SetArchitecture Trying to select executable file "
1904 // If there is more than one module for this file spec, only
1932 // If the contents of this section are encrypted, the on-disk file is
1951 error = Status::FromErrorString("address isn't from a object file");
1957 "section in a object file");
1987 // anything we are given is a file address.
1990 // its offset is the file address
2006 // If we read from the file cache but can't get as many bytes as requested,
2007 // we keep the result around in this buffer, in case this result is the
2012 // Read from file cache if read-only section.
2070 // something from the file cache, then copy that over and return that.
2076 // If we didn't already try and read from the object file cache, then try
2168 // The read is going to go to the file cache, so we can just pick a largish
2273 // anything we are given is a file address.
2332 // The callback found a module file and a symbol file for the
2336 // The callback only found a module file for the module_spec.
2338 // The callback only found a symbol file for the module. We continue
2339 // to find a module file for this module_spec and we will call
2344 // or something went wrong. We continue to find a module file for this
2369 // let the platform find that file. For example, we could be asking for
2372 // platform that has its own "/usr/lib/dyld" in an SDK or in a local file
2401 case ObjectFile::eTypeCoreFile: /// A core file that has a checkpoint of
2406 case ObjectFile::eTypeObjectFile: /// An intermediate object file
2410 case ObjectFile::eTypeDebugInfo: /// An object file that contains only
2428 "unsupported file type, please specify an executable");
2435 // since there might be many copies of a module with this file spec in
2454 // If the locate module callback had found a symbol file, set it to the
2585 CompilerType Target::GetRegisterType(const std::string &name,
2590 return provider->GetRegisterType(name, flags, byte_size);
2685 const char *name, Status &error) {
2702 arg_value_list, name);
2712 Target::CreateUtilityFunction(std::string expression, std::string name,
2725 ts->CreateUtilityFunction(std::move(expression), std::move(name));
2864 lldb::ExpressionVariableSP Target::GetPersistentVariable(ConstString name) {
2867 [name, &variable_sp](TypeSystemSP type_system) -> bool {
2873 variable_sp = persistent_state->GetVariable(name);
2883 lldb::addr_t Target::GetPersistentSymbol(ConstString name) {
2887 [name, &address](lldb::TypeSystemSP type_system) -> bool {
2894 address = persistent_state->LookupSymbol(name);
3513 Trace::FindPluginForLiveProcess(trace_type->name, *m_process_sp))
3544 // If no process info was specified, then use the target executable name as
3553 "no process specified, create a target with a file, or "
3554 "specify the --pid or --name");
3619 // Finalize the file actions, and if none were given, default to opening up a
3640 // Do nothing, if we are launching in a remote terminal no file actions
3672 LLDB_LOG(log, "appended stdin open file action for {0}", in_file_spec);
3677 LLDB_LOG(log, "appended stdout open file action for {0}",
3683 LLDB_LOG(log, "appended stderr open file action for {0}",
3695 void Target::AddDummySignal(llvm::StringRef name, LazyBool pass, LazyBool notify,
3697 if (name.empty())
3704 auto& elem = m_dummy_signals[name];
4103 "Always look for inline breakpoint locations when setting file and "
4252 TargetOptionValueProperties(llvm::StringRef name) : Cloneable(name) {}
4539 // this because we want the FileSpecList to normalize the file paths for us.
4756 std::string buffer;
4757 llvm::raw_string_ostream os(buffer);
4769 Debugger::ReportError(buffer, debugger_id);
4854 OptionValueFileSpec *file =
4856 if (file) {
4857 DataBufferSP data_sp(file->GetFileContents());