This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Tweaks in gdb.trace/tfile.exp


On 08/23/2012 03:09 AM, Yao Qi wrote:
> On 08/23/2012 01:10 AM, Pedro Alves wrote:

>>> >+# Copy tracefile from target to host.
>>> >+remote_download host [remote_upload target b.tf ] basic.tf
>>> >+remote_download host [remote_upload target e.tf ] error.tf
>> Spurious spaces before ']'.  But, what's going on here?
>> The target produces b.tf, and e.tf.  Then those are copied
>> to the host with remote_upload.  And then copied again
>> to the host, as basic.tf, and error.tf.  Why this juggling?
>>
> 
> IIUC, dejagnu is running on machine 'build', so 'remote_upload target b.tf' copies b.tf from target to build, instead of host, and then we have to use 'remote_download' to copy file from build to host.

Makes sense now, thanks.  Sorry for the mixup.

This is okay with the other nits fixed.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]