Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8741671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:21:30+00:00 2026-06-13T11:21:30+00:00

Looking for the lldb equivalent of the gdb directory command to add search paths

  • 0

Looking for the lldb equivalent of the gdb “directory” command to add search paths for finding missing source code (or possibly similar functionality within xcode)?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:21:30+00:00Added an answer on June 13, 2026 at 11:21 am

    The target.source-map setting allows you define a series of a => b path remappings in the debug session. It’s not identical to the gdb dir command, which is a list of directories to search for source files by base name, but you can solve the same problems with source-map. Here’s an example where I move a source file to a hidden directory after compiling:

    % cd /tmp
    % echo 'int main () { }' > a.c
    % clang -g a.c
    % mkdir hide
    % mv a.c hide/
    % xcrun lldb a.out
    (lldb) settings set target.source-map /tmp /tmp/hide
    (lldb) l -f a.c
       1    int main () { }
    (lldb) br se -n main
    Breakpoint created: 1: name = 'main', locations = 1
    (lldb) r
    Process 21674 launched: '/private/tmp/a.out' (x86_64)
    Process 21674 stopped
    * thread #1: tid = 0x1f03, 0x0000000100000f49 a.out`main + 9 at a.c:1, stop reason = breakpoint 1.1
        #0: 0x0000000100000f49 a.out`main + 9 at a.c:1
    -> 1    int main () { }
    (lldb) 
    

    For more information about this setting, type set list target.source-map in lldb. fwiw you might have discovered this in lldb by doing apropos path which will list all commands/settings that have the word path in the name/description. Seeing that there was a setting by this name, you’d do settings list to see the list of settings and find out that it’s filed under target..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking at clojure.test source code , I spotted the following: (defonce ^:dynamic ^{:doc True
Looking at the missing index DMVs on SQLServer it suggests I add the following
Looking at some assembly code for x86_64 on my Mac, I see the following
Looking at some of the code System.Linq I've come across some examples of Buffer<TSource>
Looking for something similar to Python's regex sub or subn methods. http://docs.python.org/library/re.html So basically
Looking for a way to get the embed code for Box files via the
Looking at the following example of an embedded Jetty Example: http://musingsofaprogrammingaddict.blogspot.com.au/2009/12/running-jsf-2-on-embedded-jetty.html The following code
Looking at the code: int i = 5; if (i = 0) { printf
Looking for something similar to Modelmaker that was for Delphi. Showing dependecies of modules.
Looking for a way to add a background layer to existing photoshop files with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.