diff options
| author | Enrico Granata <egranata@apple.com> | 2014-08-16 00:32:58 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2014-08-16 00:32:58 +0000 |
| commit | fe7295dcf586a2b4913fec2fd74e03e7ea7c45ec (patch) | |
| tree | 104ca8f1d42e510d39f80e2cb63a42807dc92728 /lldb/source/Target | |
| parent | b23bad11e792210b1c8d494941dbd85ca05bd943 (diff) | |
| download | bcm5719-llvm-fe7295dcf586a2b4913fec2fd74e03e7ea7c45ec.tar.gz bcm5719-llvm-fe7295dcf586a2b4913fec2fd74e03e7ea7c45ec.zip | |
In order for the debug script filename to be valid as a module name, LLDB does some textual replacements. However, if one were unaware of this, they might name their script using the 'untampered' file name and they would get no feedback about it. Add logic to LLDB to make sure we tell people about those changes if it turns out they might need to know. Fixes rdar://14310572
llvm-svn: 215798
Diffstat (limited to 'lldb/source/Target')
| -rw-r--r-- | lldb/source/Target/Platform.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Target/Target.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index 82185847f3f..f5dd66a3e59 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -92,7 +92,7 @@ Platform::GetFileWithUUID (const FileSpec &platform_file, } FileSpecList -Platform::LocateExecutableScriptingResources (Target *target, Module &module) +Platform::LocateExecutableScriptingResources (Target *target, Module &module, Stream* feedback_stream) { return FileSpecList(); } diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index e3fd790bdaf..d2d0b509855 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1013,10 +1013,10 @@ LoadScriptingResourceForModule (const ModuleSP &module_sp, Target *target) target->GetDebugger().GetErrorFile()->Printf("unable to load scripting data for module %s - error reported was %s\n", module_sp->GetFileSpec().GetFileNameStrippingExtension().GetCString(), error.AsCString()); - if (feedback_stream.GetSize()) - target->GetDebugger().GetErrorFile()->Printf("%s\n", - feedback_stream.GetData()); } + if (feedback_stream.GetSize()) + target->GetDebugger().GetErrorFile()->Printf("%s\n", + feedback_stream.GetData()); } void |

