[Lldb-commits] [PATCH] D59015: [lldb-mi] Include full path in the -data-disassemble response
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 16 07:57:15 PDT 2019
clayborg added inline comments.
================
Comment at: lldb/tools/lldb-mi/MICmdCmdData.cpp:419
+ // Get a full path to the file.
+ std::unique_ptr<char[]> pPathBuffer(new char[PATH_MAX]);
+ lineEntry.GetFileSpec().GetPath(pPathBuffer.get(), PATH_MAX);
----------------
Confused as to why we are calling malloc and free here for pPathBuffer? Why not just:
```
char pPathBuffer[PATH_MAX];
```
Repository:
rLLDB LLDB
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59015/new/
https://reviews.llvm.org/D59015
More information about the lldb-commits
mailing list