OSDN Git Service

* ldd.cc (longopts): Add --dll option.
authorcgf <cgf>
Sat, 14 Mar 2009 18:40:59 +0000 (18:40 +0000)
committercgf <cgf>
Sat, 14 Mar 2009 18:40:59 +0000 (18:40 +0000)
commit837e37cc51c325fa93f893f3f5fcc163fc787ffe
tree235ace76b89f948154cfa5c1295af202da99ab67
parent3b4a65d95dae1abfe3e3b18ea36475c5ff284764
* ldd.cc (longopts): Add --dll option.
(get_module_filename): Generalized wrapper function which avoid path length
restrictions.
(load_dll): Handle special-case of inspecting a DLL.
(start_process): Accept an output parameter "isdll".  Detect when file to start
is a DLL and start a wrapper instead.
(print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing
everything before the DLL itself first appears.  (This is not strictly correct
and should be fixed eventually)
(report): Deal with DLLs.  Don't set a breakpoint for DLLs, just let captive
ldd process terminate normally.  Pass dll info to print_dlls_and_kill_inferior.
(main): Handle special-case "--dll" option by loading the DLL and exiting.
winsup/utils/ChangeLog
winsup/utils/ldd.cc