[Lldb-commits] [lldb] 91f78eb - Revert "[lldb] Load the fblldb module automatically"

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 24 00:23:18 PST 2021


We actually came across a need to do something similar recently.

I was planning to propose the introduction of a "site" lldbinit file. I 
haven't figured out the details, but I guess it would be located at some 
path relative to the lldb installation, and sourced before the 
user-specific and cwd-specific files.

Would such a thing be useful for you as well?

pl

On 22/11/2021 22:14, Walter Erquinigo via lldb-commits wrote:
> 
> Author: Walter Erquinigo
> Date: 2021-11-22T13:13:43-08:00
> New Revision: 91f78eb5cf93e80a0e9679b98bca81291e97e1e1
> 
> URL: https://github.com/llvm/llvm-project/commit/91f78eb5cf93e80a0e9679b98bca81291e97e1e1
> DIFF: https://github.com/llvm/llvm-project/commit/91f78eb5cf93e80a0e9679b98bca81291e97e1e1.diff
> 
> LOG: Revert "[lldb] Load the fblldb module automatically"
> 
> This reverts commit 2e6a0a8b81d7be948491ce39d241695dc1385429.
> 
> It was pushed by mistake..
> 
> Added:
>      
> 
> Modified:
>      lldb/source/Interpreter/CommandInterpreter.cpp
> 
> Removed:
>      
> 
> 
> ################################################################################
> diff  --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
> index 1df74f9656357..301bf949feef4 100644
> --- a/lldb/source/Interpreter/CommandInterpreter.cpp
> +++ b/lldb/source/Interpreter/CommandInterpreter.cpp
> @@ -2352,20 +2352,6 @@ void CommandInterpreter::SourceInitFileHome(CommandReturnObject &result,
>       result.SetStatus(eReturnStatusSuccessFinishNoResult);
>       return;
>     }
> -#if !defined(_WIN32)
> -  // Facebook only:
> -  //
> -  // The 'fblldbinit' module will set up the python support specific to FB.
> -  //
> -  // As we want to have a mechanism for not triggering this by default, if the
> -  // user is starting lldb disabling .lldbinit support, then we also don't load
> -  // this module. This is equivalent to preppending the following line to all
> -  // .lldbinit files.
> -  //
> -  // We don't have the fblldbinit module on windows, so we don't include it for
> -  // that build.
> -  HandleCommand("script import fblldbinit", eLazyBoolNo, result);
> -#endif
>   
>     llvm::SmallString<128> init_file;
>   
> 
> 
>          
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
> 



More information about the lldb-commits mailing list