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: [pushed] Re: [PATCH 1/6] Code cleanup: C++ify .gdb_index producer.


> Date: Sun, 18 Jun 2017 16:25:30 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: gdb-patches@sourceware.org, Victor Leschuk <vleschuk@accesssoftek.com>
> 
> On Mon, 12 Jun 2017 18:08:07 +0200, Pedro Alves wrote:
> > +  file_closer close_out_file (out_file);
> > +  gdb::unlinker unlink_file (filename.c_str ());
> 
> I heard on MS-Windows one cannot delete a file which is still open.

Depends on how it was open, but yeah, in general you are right.  (Most
programs, especially those which were ported from Posix systems, open
files in a way that indeed precludes their deletion, because that's
what the MS implementation of 'open' does.)


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