[PATCH RFC 4/5] Introduce scoped_mmapped_file
Tom Tromey
tom@tromey.com
Sat May 12 15:49:00 GMT 2018
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
>> ... however, then I thought perhaps this question could be avoided by
>> just initializing m_fd directly, like:
>>
>> scoped_mmapped_file (const char *filename)
>> : m_fd (open (filename, 0, O_RDONLY))
>>
>> Then "reset" wouldn't be needed at all.
Simon> I can do that, but I am using reset() in the following patch anyway.
Oops, I didn't notice that. FWIW I think it's fine to have a reset
method.
Tom
More information about the Gdb-patches
mailing list