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

  • Home
  • SEARCH
  • 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 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 through the Foursquare documentation I found the Photo Add section. In APIs for
Looking for an equivalent container class that matches to C#'s Arraylist collections class. Is
Looking for good explanation of why this code raises SyntaxError . def echo(x): return
Looking at the following code, does theme[sprite].img get nested inside result[definition].data (as theme[sprite].img is
Looking for a simple scroll right, nothing special. My code: <script type=text/javascript> // Initialize
Looking around at different code bases I see a variety of styles: Class interfaces
Looking at this JS code by David Fowler he wraps every class with an

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.