Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Tracing (catching) calls to DLL (module)

Tracing (catching) calls to DLL (module)

Scheduled Pinned Locked Moved Visual Studio
visual-studiodata-structuresdebuggingquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    progDes
    wrote on last edited by
    #1

    Hi, all. Does anyone know, if there is the way to catch when process being debugged call (directly or indirectly) any function from specified DLL? So the perfect thing for me, if VS could break when the execution enters the specified DLL address space. It would be perfect, if I could see the call stack (surely, I don't expect the function names for modules without debug info). Background: We are developing plugins for the complex application, that already contains a lot of code. I get weird behavior with CUDA. So want to check if some of the code is calling any of CUDA functions before me. Regards, Ivan

    A 1 Reply Last reply
    0
    • P progDes

      Hi, all. Does anyone know, if there is the way to catch when process being debugged call (directly or indirectly) any function from specified DLL? So the perfect thing for me, if VS could break when the execution enters the specified DLL address space. It would be perfect, if I could see the call stack (surely, I don't expect the function names for modules without debug info). Background: We are developing plugins for the complex application, that already contains a lot of code. I get weird behavior with CUDA. So want to check if some of the code is calling any of CUDA functions before me. Regards, Ivan

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      If you have the DLL source, it's easy, just place a breakpoint in any of the entry functions within the DLL and see when it's getting called. You don't have to have the source for the executable, just need to tell VisualStudio what exe will be loading your dll. If you don't have the exe or the dll code, I don't believe there's anyway of telling when the executable is making those calls (other than reverse engineering the executable).

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups