This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFA] Should openp open directories?


> Date: Fri, 19 Apr 2002 11:18:07 +0200
> From: Joel Brobecker <brobecker@ACT-Europe.FR>
> 
> It seems a sensible idea to return True when stat fails, except when the
> file does not exist.

This is okay with me (non-existing files will fail the open call
anyhow).

> > Also, did you try your patch when there's a directory by that name, but 
> > no executable program?  If so, what does the patched GDB say and/or do?
> 
> Yes. I tried "./gdb/gdb bfd" at the root of the gdb source directory and
> got the following error message:
> 
>           bfd: No such file or directory.

That's good.  Thanks for testing.

> The "or directory" part may be confusing...

Yes, but it's a standard string associated with ENOENT, so I guess
users of GDB should be acquainted with it.


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