[Lldb-commits] [PATCH] D54692: [Driver] Use libOption with tablegen.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 28 17:43:32 PST 2018


Thanks, Zachary also pinged me on IRC. This was fixed in r347821.

> On Nov 28, 2018, at 4:09 PM, Leonard Mosescu via Phabricator <reviews at reviews.llvm.org> wrote:
> 
> lemo added a comment.
> 
> I noticed a small problem, this change breaks "lldb -c <corefile>". The inline comment explains the root cause.
> 
> Thanks
> 
> 
> 
> ================
> Comment at: lldb/trunk/tools/driver/Driver.cpp:310
> +  if (args.hasArg(OPT_core)) {
> +    SBFileSpec file(optarg);
> +    if (file.Exists()) {
> ----------------
> there's a small bug in here: optarg is the global definition, I assume the intention was to use the getValue() instead. as is, it breaks "lldb -c <corefile>"
> 
> it would be nice to get rid the global optarg as well since it masks these kind of mistakes.
> 
> 
> Repository:
>  rL LLVM
> 
> CHANGES SINCE LAST ACTION
>  https://reviews.llvm.org/D54692/new/
> 
> https://reviews.llvm.org/D54692
> 
> 
> 



More information about the lldb-commits mailing list