title: How to have LLDB print the locations of shared libraries in memory?
body: <p>I am trying to gather as much information as I can about <a href="https://bugs.kde.org/show_bug.cgi?id=356122" rel="noreferrer">an apparent infinite loop issue</a> seen when using Valgrind 3.11.0 on Mac OS 10.11.1 'El Capitan'.</p>
  
  <p>When I run <code>valgrind</code> on my program in LLDB or attach to <code>valgrind</code> running my program and then stop the process, I get a backtrace like the following:</p>
  
  <pre>
  * thread #1: tid = 0x24ab4, 0x000000010805920b, stop reason = signal SIGSTOP
    * frame #0: 0x000000010805920b
      frame #1: 0x0000000108040dda
      frame #2: 0x00000001080b6790
      frame #3: 0x00000001080b2fd3
      frame #4: 0x00000001080b7c25
      frame #5: 0x00000001080b6113
      frame #6: 0x00000001080b3cd0
      frame #7: 0x00000001080c54d9
  </pre>
  
  <p>How do I tell which object(s) these frames correspond to?</p>
  
  <p>I tried <a href="http://www.manpagez.com/man/1/vmmap/" rel="noreferrer"><code>vmmap</code></a> on the process, but it's not showing any information.  In particular, the "Non-writable regions for process" section which would normally show the address ranges where the dylibs were mapped into the process' memory is blank:</p>
  
  <pre>
  $ vmmap -v 21729
  Process:         memcheck-amd64-darwin [21729]
  Path:            /usr/local/Cellar/valgrind/3.11.0/lib/valgrind/memcheck-amd64-darwin
  Load Address:    0x100000000
  Identifier:      memcheck-amd64-darwin
  Version:         ???
  Code Type:       X86-64
  Parent Process:  bash [11895]
  
  Date/Time:       2015-11-30 11:52:16.392 -0500
  Launch Time:     2015-11-30 11:51:53.557 -0500
  OS Version:      Mac OS X 10.11.1 (15B42)
  Report Version:  7
  Analysis Tool:   /Applications/Xcode.app/Contents/Developer/usr/bin/vmmap
  Analysis Tool Version:  Xcode 7.1.1 (7B1005)
  ----
  
  Virtual Memory Map of process 21729 (memcheck-amd64-darwin)
  Output report format:  2.4  -- 64-bit process
  VM page size:  4096 bytes
  
  ==== Non-writable regions for process 21729
  REGION TYPE                      START - END             [ VSIZE  RSDNT  DIRTY   SWAP] PRT/MAX SHRMOD PURGE    REGION DETAIL
  
  ==== Writable regions for process 21729
  REGION TYPE                      START - END             [ VSIZE  RSDNT  DIRTY   SWAP] PRT/MAX SHRMOD PURGE    REGION DETAIL
  
  ==== Legend
  SM=sharing mode:  
      COW=copy_on_write PRV=private NUL=empty ALI=aliased 
      SHM=shared ZER=zero_filled S/A=shared_alias
  PURGE=purgeable mode:  
      V=volatile N=nonvolatile E=empty   otherwise is unpurgeable
  
  ==== Summary for process 21729
  (null)
  </pre>