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] Fix PR cli/23785: Check if file exists when invoking "restore FILE binary"


>>>>> "Sergio" == Sergio Durigan Junior <sergiodj@redhat.com> writes:

Sergio> This simple patch fixes the segfault reported on PR cli/23785, which
Sergio> happens when using the "restore FILE binary" command with a
Sergio> non-existent file.  We just have to check if the file handler returned
Sergio> by "gdb_fopen_cloexec" is not NULL, and error out if it is.

Sergio> A test has also been added to gdb.base/restore.exp in order to
Sergio> exercise this scenario.

Thanks, this is ok.

Tom


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