diff options
| -rw-r--r-- | lldb/source/Core/Address.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Core/AddressRange.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Core/AddressResolverFileLine.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Core/SearchFilter.cpp | 10 | ||||
| -rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Target/Target.cpp | 4 | 
8 files changed, 16 insertions, 14 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp index 8f5e19f8c3a..a79becbf49c 100644 --- a/lldb/source/Core/Address.cpp +++ b/lldb/source/Core/Address.cpp @@ -433,7 +433,9 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum      case DumpStyleModuleWithFileAddress:          if (section_sp) -            s->Printf("%s[", section_sp->GetModule()->GetFileSpec().GetFilename().AsCString()); +        { +            s->Printf("%s[", section_sp->GetModule()->GetFileSpec().GetFilename().AsCString("<Unknown>")); +        }          // Fall through      case DumpStyleFileAddress:          { diff --git a/lldb/source/Core/AddressRange.cpp b/lldb/source/Core/AddressRange.cpp index 3505d56b43e..ac64833884e 100644 --- a/lldb/source/Core/AddressRange.cpp +++ b/lldb/source/Core/AddressRange.cpp @@ -179,7 +179,7 @@ AddressRange::Dump(Stream *s, Target *target, Address::DumpStyle style, Address:          {              ModuleSP module_sp (GetBaseAddress().GetModule());              if (module_sp) -                s->Printf("%s", module_sp->GetFileSpec().GetFilename().AsCString()); +                s->Printf("%s", module_sp->GetFileSpec().GetFilename().AsCString("<Unknown>"));          }          s->AddressRange(vmaddr, vmaddr + GetByteSize(), addr_size);          return true; diff --git a/lldb/source/Core/AddressResolverFileLine.cpp b/lldb/source/Core/AddressResolverFileLine.cpp index f7004c8bb08..6089abd76cb 100644 --- a/lldb/source/Core/AddressResolverFileLine.cpp +++ b/lldb/source/Core/AddressResolverFileLine.cpp @@ -96,7 +96,7 @@ AddressResolverFileLine::GetDepth()  void  AddressResolverFileLine::GetDescription (Stream *s)  { -    s->Printf ("File and line address - file: \"%s\" line: %u", m_file_spec.GetFilename().AsCString(), m_line_number); +    s->Printf ("File and line address - file: \"%s\" line: %u", m_file_spec.GetFilename().AsCString("<Unknown>"), m_line_number);  } diff --git a/lldb/source/Core/SearchFilter.cpp b/lldb/source/Core/SearchFilter.cpp index 8e3d8d0a91e..9c3412a422d 100644 --- a/lldb/source/Core/SearchFilter.cpp +++ b/lldb/source/Core/SearchFilter.cpp @@ -450,7 +450,7 @@ SearchFilterByModule::GetDescription (Stream *s)      }      else      { -        s->PutCString(m_module_spec.GetFilename().AsCString("<unknown>")); +        s->PutCString(m_module_spec.GetFilename().AsCString("<Unknown>"));      }  } @@ -612,7 +612,7 @@ SearchFilterByModuleList::GetDescription (Stream *s)          }          else          { -            s->PutCString(m_module_spec_list.GetFileSpecAtIndex(0).GetFilename().AsCString("<unknown>")); +            s->PutCString(m_module_spec_list.GetFileSpecAtIndex(0).GetFilename().AsCString("<Unknown>"));          }      }      else @@ -628,7 +628,7 @@ SearchFilterByModuleList::GetDescription (Stream *s)              }              else              { -                s->PutCString(m_module_spec_list.GetFileSpecAtIndex(i).GetFilename().AsCString("<unknown>")); +                s->PutCString(m_module_spec_list.GetFileSpecAtIndex(i).GetFilename().AsCString("<Unknown>"));              }              if (i != num_modules - 1)                  s->PutCString (", "); @@ -811,7 +811,7 @@ SearchFilterByModuleListAndCU::GetDescription (Stream *s)          }          else          { -            s->PutCString(m_module_spec_list.GetFileSpecAtIndex(0).GetFilename().AsCString("<unknown>")); +            s->PutCString(m_module_spec_list.GetFileSpecAtIndex(0).GetFilename().AsCString("<Unknown>"));          }      }      else if (num_modules > 0) @@ -827,7 +827,7 @@ SearchFilterByModuleListAndCU::GetDescription (Stream *s)              }              else              { -                s->PutCString(m_module_spec_list.GetFileSpecAtIndex(i).GetFilename().AsCString("<unknown>")); +                s->PutCString(m_module_spec_list.GetFileSpecAtIndex(i).GetFilename().AsCString("<Unknown>"));              }              if (i != num_modules - 1)                  s->PutCString (", "); diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 895106a99ed..2b68f5c172e 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -2776,7 +2776,7 @@ CommandInterpreter::HandleCommandsFromFile (FileSpec &cmd_file,      else      {          result.AppendErrorWithFormat ("Error reading commands from file %s - file not found.\n",  -                                      cmd_file.GetFilename().AsCString()); +                                      cmd_file.GetFilename().AsCString("<Unknown>"));          result.SetStatus (eReturnStatusFailed);          return;      } diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp index 6bf5b221555..10b51ffe0a8 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp @@ -1030,7 +1030,7 @@ DWARFDebugInfoEntry::DumpLocation      const char *obj_file_name = NULL;      ObjectFile *obj_file = dwarf2Data->GetObjectFile();      if (obj_file) -        obj_file_name = obj_file->GetFileSpec().GetFilename().AsCString(); +        obj_file_name = obj_file->GetFileSpec().GetFilename().AsCString("<Unknown>");      const char *die_name = GetName (dwarf2Data, cu);      s.Printf ("0x%8.8x/0x%8.8x: %-30s (from %s in %s)",                 cu->GetOffset(), diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index eeebb8a905d..e1841596202 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -3033,7 +3033,7 @@ SymbolFileDWARF::Index ()      m_indexed = true;      Timer scoped_timer (__PRETTY_FUNCTION__,                          "SymbolFileDWARF::Index (%s)", -                        GetObjectFile()->GetFileSpec().GetFilename().AsCString()); +                        GetObjectFile()->GetFileSpec().GetFilename().AsCString("<Unknown>"));      DWARFDebugInfo* debug_info = DebugInfo();      if (debug_info) @@ -4929,7 +4929,7 @@ SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE (const DWARFDebugInfoEntry                          {                              DEBUG_PRINTF ("resolved 0x%8.8" PRIx64 " from %s to 0x%8.8" PRIx64 " (cu 0x%8.8" PRIx64 ")\n",                                            MakeUserID(die->GetOffset()),  -                                          m_obj_file->GetFileSpec().GetFilename().AsCString(), +                                          m_obj_file->GetFileSpec().GetFilename().AsCString("<Unknown>"),                                            MakeUserID(type_die->GetOffset()),                                             MakeUserID(type_cu->GetOffset())); diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 76a89a45187..9d605ed0428 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1383,9 +1383,9 @@ Target::ReadMemory (const Address& addr,              ModuleSP addr_module_sp (resolved_addr.GetModule());              if (addr_module_sp && addr_module_sp->GetFileSpec())                  error.SetErrorStringWithFormat("%s[0x%" PRIx64 "] can't be resolved, %s in not currently loaded", -                                               addr_module_sp->GetFileSpec().GetFilename().AsCString(),  +                                               addr_module_sp->GetFileSpec().GetFilename().AsCString("<Unknown>"),                                                 resolved_addr.GetFileAddress(), -                                               addr_module_sp->GetFileSpec().GetFilename().AsCString()); +                                               addr_module_sp->GetFileSpec().GetFilename().AsCString("<Unknonw>"));              else                  error.SetErrorStringWithFormat("0x%" PRIx64 " can't be resolved", resolved_addr.GetFileAddress());          }  | 

