• Eric Pouech's avatar
    dbghelp: Don't set ELF loader when wine's loader isn't accessible. · 9877ba97
    Eric Pouech authored
    For dbghelp in 32-bit, when accessing a live debuggee in multi-arch
    configuration, Wine's ELF loader is likely mapped above 4G, hence
    not accessible with 32bit Windows APIs.
    So don't try to expose the ELF libraries in that case.
    Introducing a new loader operation class to support live targets, for
    which system operations are not accessible, but pretending they are
    successful.
    
    Note:
    - when Wine's loader ELF module isn't registered by dbghelp,
      any other ELF module will not be registered by dbghelp.
    - further work may be needed for winedbg in auto mode (launched with
      AeDebug key on process exception) as in that mode winedbg
      doesn't relaunch itself in 64bit, so won't be able to access
      (64bit) ELF information (in multi-arch configuration).
    Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
    9877ba97
module.c 53.6 KB