JustPaste.it

--- show_unit_paths.py

import lldb

def show_unit_paths():
  for module in lldb.target.modules:
        print("module:", module.file)
        for i in range(module.GetNumCompileUnits()):
            unit = module.GetCompileUnitAtIndex(i)
            print('  unit:', repr(unit))
            print('    file:', unit.file)


--- Debug console
Executing script: preRunCommands
Breakpoint 28: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
[  0] 447B0B65-57AE-4520-AB54-67262460811D-00000001 0x0000000140000000 c:\Users\worki\repo\hello-rust_win_cli\target\debug\hello-rust_win_cli.exe
Current breakpoints:
1: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 1, exact_match = 0
2: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 2, exact_match = 0

3: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 3, exact_match = 0

4: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 4, exact_match = 0

5: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 5, exact_match = 0

6: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 6, exact_match = 0

7: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 7, exact_match = 0

8: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 8, exact_match = 0

9: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 9, exact_match = 0

10: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 10, exact_match = 0

11: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 11, exact_match = 0

12: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 12, exact_match = 0

13: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 13, exact_match = 0

14: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 14, exact_match = 0

15: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 15, exact_match = 0

16: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 16, exact_match = 0

17: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 17, exact_match = 0

18: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 18, exact_match = 0

19: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 19, exact_match = 0

20: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 20, exact_match = 0

21: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 21, exact_match = 0

22: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 22, exact_match = 0

23: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 23, exact_match = 0

24: file = 'c:\Users\worki\repo\hello-rust_win_cli\src\main.rs', line = 24, exact_match = 0

25: name = 'bukzor_says_wat'

26: name = 'main'

    26.1: 
      module = c:\Users\worki\repo\hello-rust_win_cli\target\debug\hello-rust_win_cli.exe
      symbol = main
      address = hello-rust_win_cli.exe[0x0000000140001570]
      resolved = false
      hardware = false
      hit count = 0   

27: name = 'rust_panic'
    27.1: 
      module = c:\Users\worki\repo\hello-rust_win_cli\target\debug\hello-rust_win_cli.exe
      symbol = rust_panic
      address = hello-rust_win_cli.exe[0x000000014000ad20]
      resolved = false
      hardware = false
      hit count = 0   

28: file = 'main.rs', line = 5, exact_match = 0
Launching: c:\Users\worki\repo\hello-rust_win_cli\target\debug\hello-rust_win_cli.exe
Launched process 4880
Variable 'main' not found
Stop reason: Exception 0x80000003 encountered at address 0x7ff8fa4a7360

> script import importlib; importlib.reload(show_unit_paths); show_unit_paths.show_unit_paths()
<module 'show_unit_paths' from 'c:/Users/worki/repo/hello-rust_win_cli/lldb\\show_unit_paths.py'>
module: c:\Users\worki\repo\hello-rust_win_cli\target\debug\hello-rust_win_cli.exe
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94360> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94660> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC943F0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94090> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94F90> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94E70> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC944E0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94CF0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC948D0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94B10> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D745720> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5420> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5540> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5DB0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5300> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5BD0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5660> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A57B0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5570> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5DE0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5C60> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419C4DA810> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419C4DA090> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797420> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797D50> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797C30> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797480> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797B40> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B34B0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3510> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3900> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3ED0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\tls\tlssup.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3D20> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\misc\amd64\chkstk.asm
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3330> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\eh\std_type_info_static.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3AE0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\fltused.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B30F0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\utility\utility.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3960> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\gs\gs_support.c
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3B70> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\matherr.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3690> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\argv_mode.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B37B0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\commit_mode.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B30C0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\file_mode.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3E40> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\new_mode.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE10F0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\thread_locale.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE1570> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\eh\tncleanup.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE1630> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\env_mode.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE1390> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\invalid_parameter_handler.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE1840> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\denormal_control.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE17B0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\defaults\default_local_stdio_options.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE19C0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\utility\matherr_detection.c
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE1AE0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\utility\dyn_tls_init.c
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE1C60> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\utility\dyn_tls_dtor.c
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE18D0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\utility\utility_desktop.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419DDE1480> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\rtc\initsect.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC943C0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\utility\initializers.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94600> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\misc\guard_support.c
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC941E0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\heap\delete_scalar_size.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94A80> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\misc\amd64\cpu_disp.c
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94F00> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\utility\ucrt_detection.c
  unit: <lldb.SBCompileUni

t; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94DE0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\gs\gs_cookie.c
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94D80> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\misc\amd64\guard_dispatch.asm
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC945A0> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\misc\amd64\guard_xfg_dispatch.asm
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC94960> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\heap\delete_scalar.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419BC948A0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D745F00> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D745690> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5A80> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5ED0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5930> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5B10> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5030> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\utility\ucrt_stubs.cpp
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5720> >
    file: d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\misc\loadcfg.c
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5C30> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5810> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D9A5C90> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419C4DA0C0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419C4DA180> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797360> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797CC0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797510> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B7975D0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797BD0> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419B797B40> >
    file: 
  unit: <lldb.SBCompileUnit; proxy of <Swig Object of type 'lldb::SBCompileUnit *' at 0x000002419D7B3C00> >
    file: 
module: C:\Windows\System32\ntdll.dll
module: C:\Windows\System32\kernel32.dll
module: C:\Windows\System32\KernelBase.dll
module: C:\Windows\System32\vcruntime140.dll
module: C:\Windows\System32\ucrtbase.dll