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. C / C++ / MFC
  4. Is it possible to enumerate symbols in a PDB file using DBGHELP.LIB - NO Process Loaded.

Is it possible to enumerate symbols in a PDB file using DBGHELP.LIB - NO Process Loaded.

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingquestion
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.
  • B Offline
    B Offline
    Blake Miller
    wrote on last edited by
    #1

    I am trying to extract the functions in a module by using the DBGHELP.LIB functions and loading only the PDB. I can't seem to get SymEnumSymbols to invoke the callback at all. The SymEnumSymbols function returns 'success' as if it had done something. Trying various combinations of 'options' using SymSetOptions has not yielded results either. When I search The Internet almost always the result/examples seem to come back with examples where the EXE is loaded and running and has been attached to or at very least the process handle has been obtained. Is having the process handle of the running EXE a requirement Microsoft has completely forgotten to state while using this 'Debug' library? Thanks.

    I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

    L 1 Reply Last reply
    0
    • B Blake Miller

      I am trying to extract the functions in a module by using the DBGHELP.LIB functions and loading only the PDB. I can't seem to get SymEnumSymbols to invoke the callback at all. The SymEnumSymbols function returns 'success' as if it had done something. Trying various combinations of 'options' using SymSetOptions has not yielded results either. When I search The Internet almost always the result/examples seem to come back with examples where the EXE is loaded and running and has been attached to or at very least the process handle has been obtained. Is having the process handle of the running EXE a requirement Microsoft has completely forgotten to state while using this 'Debug' library? Thanks.

      I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hi, Yes, check out the Debug Interface Access SDK[^]. Best Wishes, -David Delaune

      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