OSDN Git Service

* ldd.cc: Rework to detect missing DLLs.
authorcgf <cgf>
Sat, 14 Mar 2009 06:46:00 +0000 (06:46 +0000)
committercgf <cgf>
Sat, 14 Mar 2009 06:46:00 +0000 (06:46 +0000)
commitfc2765813d98d2742f64cdfee9af7efe591d1cf3
tree61bb475246cf93392d92ee4a6d12bc8b055e6179
parent814a36b89d0be05a57fb4294b40d76ab959917cf
* ldd.cc: Rework to detect missing DLLs.
(start_process): Change to expect windows filename as input.
(tocyg): New function - convert cygwin fn to windows fn.
(print_dlls_and_kill_inferior): Accept extra argument denoting whether to open
input and look for nonexistent DLLs.  Use tocyg to convert filename and pass it
to start_process.
(report): Flag when an DLL-not-found exception occurs and pass this information
to print_dlls_and_kill_inferior.
(filelist): New structure.
(saw_file): New function.
(dump_import_directory): Ditto.
(map_file): Ditto.
(skip_dos_stub): Ditto.
(get_directory_index): Ditto.
(process_file): Ditto.
winsup/utils/ChangeLog
winsup/utils/ldd.cc