[Lldb-commits] [lldb] r154943 - in /lldb/branches/lldb-platform-work: include/lldb/Target/ source/Commands/ source/Plugins/Platform/MacOSX/ source/Plugins/Platform/POSIX/ source/Plugins/Platform/gdb-server/ source/Plugins/Process/gdb-remote/ source/Target/

Filipe Cabecinhas filcab at gmail.com
Tue Apr 17 16:06:26 PDT 2012


Hi Enrico 

I know this is a work in progress, but I have a suggestion:

When checking the file, shouldn't we check if the local copy is newer and, in that case, upload it to the platform?
As I see it, when doing remote debugging, you may want to always keep everything in you dev machine as much as possible (e.g: if developing on embedded platforms). In that case, Even if you have the file in the remote platform, it could be out of date.

But we would also need to flag if we got the file from the platform (because it didn't exist locally). In that case we don't want to push it there again.

This would require adding methods to get the timestamp for a file, at the very least.

Regards, 

  Filipe


On Tuesday, April 17, 2012 at 8:39 PM, Enrico Granata wrote:

> + if (!platform_sp->GetFileExists (remote_file))
> + {
> + Error err = platform_sp->PutFile(file_spec, remote_file);
> + if (err.Fail())
> + {






More information about the lldb-commits mailing list