[pushed] Re: [PATCH 1/6] Code cleanup: C++ify .gdb_index producer.

Eli Zaretskii eliz@gnu.org
Sun Jun 18 15:12:00 GMT 2017


> 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.)



More information about the Gdb-patches mailing list