[Lldb-commits] [PATCH] D113521: Allow lldb to launch a remote executable when there isn't a local copy
Jim Ingham via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 10 17:40:31 PST 2021
jingham added inline comments.
================
Comment at: lldb/source/Target/Process.cpp:2496-2497
Module *exe_module = GetTarget().GetExecutableModulePointer();
- if (!exe_module) {
- error.SetErrorString("executable module does not exist");
- return error;
- }
-
char local_exec_file_path[PATH_MAX];
char platform_exec_file_path[PATH_MAX];
+
----------------
clayborg wrote:
> maybe switch these over to std::string values and then use the FileSpec::GetPath() that returns a std::string below? It would be nice to remove any PATH_MAX stuff from our generic code if possible.
Turns out that the remote path string wasn't used at all, and the local one was only used for error reporting. So I deleted the one, and moved the other to where we report the error (and used a std::string)...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113521/new/
https://reviews.llvm.org/D113521
More information about the lldb-commits
mailing list