Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting cwd explicitly to ensure lldb remote debugging works on relative paths in debug info etc. #127

Merged
merged 1 commit into from
Oct 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ set -euo pipefail
# the paths in the debug info. This lldb setting ensures that _project relative_
# paths are remapped to _project absolute_ paths.
#
# The platform settings one points the current working directory (cwd) to workspace root.
# This is needed for features relying on lldb remote debugging, such as `oso_prefix_is_pwd`.
#
# NOTE: In order to use this, add this line to `~/.lldbinit`:
#
# command source ~/.lldbinit-source-map
cat <<-END > ~/.lldbinit-source-map
platform settings -w "$BAZEL_WORKSPACE_ROOT/"

settings set target.source-map ./ "$BAZEL_WORKSPACE_ROOT/"
settings set target.sdk-path $SDKROOT
settings set target.swift-framework-search-paths $FRAMEWORK_SEARCH_PATHS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ set -euo pipefail
# the paths in the debug info. This lldb setting ensures that _project relative_
# paths are remapped to _project absolute_ paths.
#
# The platform settings one points the current working directory (cwd) to workspace root.
# This is needed for features relying on lldb remote debugging, such as `oso_prefix_is_pwd`.
#
# NOTE: In order to use this, add this line to `~/.lldbinit`:
#
# command source ~/.lldbinit-source-map
cat <<-END > ~/.lldbinit-source-map
platform settings -w "$BAZEL_WORKSPACE_ROOT/"

settings set target.source-map ./ "$BAZEL_WORKSPACE_ROOT/"
settings set target.sdk-path $SDKROOT
settings set target.swift-framework-search-paths $FRAMEWORK_SEARCH_PATHS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ set -euo pipefail
# the paths in the debug info. This lldb setting ensures that _project relative_
# paths are remapped to _project absolute_ paths.
#
# The platform settings one points the current working directory (cwd) to workspace root.
# This is needed for features relying on lldb remote debugging, such as `oso_prefix_is_pwd`.
#
# NOTE: In order to use this, add this line to `~/.lldbinit`:
#
# command source ~/.lldbinit-source-map
cat <<-END > ~/.lldbinit-source-map
platform settings -w "$BAZEL_WORKSPACE_ROOT/"

settings set target.source-map ./ "$BAZEL_WORKSPACE_ROOT/"
settings set target.sdk-path $SDKROOT
settings set target.swift-framework-search-paths $FRAMEWORK_SEARCH_PATHS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ set -euo pipefail
# the paths in the debug info. This lldb setting ensures that _project relative_
# paths are remapped to _project absolute_ paths.
#
# The platform settings one points the current working directory (cwd) to workspace root.
# This is needed for features relying on lldb remote debugging, such as `oso_prefix_is_pwd`.
#
# NOTE: In order to use this, add this line to `~/.lldbinit`:
#
# command source ~/.lldbinit-source-map
cat <<-END > ~/.lldbinit-source-map
platform settings -w "$BAZEL_WORKSPACE_ROOT/"

settings set target.source-map ./ "$BAZEL_WORKSPACE_ROOT/"
settings set target.sdk-path $SDKROOT
settings set target.swift-framework-search-paths $FRAMEWORK_SEARCH_PATHS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ set -euo pipefail
# the paths in the debug info. This lldb setting ensures that _project relative_
# paths are remapped to _project absolute_ paths.
#
# The platform settings one points the current working directory (cwd) to workspace root.
# This is needed for features relying on lldb remote debugging, such as `oso_prefix_is_pwd`.
#
# NOTE: In order to use this, add this line to `~/.lldbinit`:
#
# command source ~/.lldbinit-source-map
cat <<-END > ~/.lldbinit-source-map
platform settings -w "$BAZEL_WORKSPACE_ROOT/"

settings set target.source-map ./ "$BAZEL_WORKSPACE_ROOT/"
settings set target.sdk-path $SDKROOT
settings set target.swift-framework-search-paths $FRAMEWORK_SEARCH_PATHS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ set -euo pipefail
# the paths in the debug info. This lldb setting ensures that _project relative_
# paths are remapped to _project absolute_ paths.
#
# The platform settings one points the current working directory (cwd) to workspace root.
# This is needed for features relying on lldb remote debugging, such as `oso_prefix_is_pwd`.
#
# NOTE: In order to use this, add this line to `~/.lldbinit`:
#
# command source ~/.lldbinit-source-map
cat <<-END > ~/.lldbinit-source-map
platform settings -w "$BAZEL_WORKSPACE_ROOT/"

settings set target.source-map ./ "$BAZEL_WORKSPACE_ROOT/"
settings set target.sdk-path $SDKROOT
settings set target.swift-framework-search-paths $FRAMEWORK_SEARCH_PATHS
Expand Down
5 changes: 5 additions & 0 deletions tools/xcodeproj_shims/installers/lldb-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ set -euo pipefail
# the paths in the debug info. This lldb setting ensures that _project relative_
# paths are remapped to _project absolute_ paths.
#
# The platform settings one points the current working directory (cwd) to workspace root.
# This is needed for features relying on lldb remote debugging, such as `oso_prefix_is_pwd`.
#
# NOTE: In order to use this, add this line to `~/.lldbinit`:
#
# command source ~/.lldbinit-source-map
cat <<-END > ~/.lldbinit-source-map
platform settings -w "$BAZEL_WORKSPACE_ROOT/"

settings set target.source-map ./ "$BAZEL_WORKSPACE_ROOT/"
settings set target.sdk-path $SDKROOT
settings set target.swift-framework-search-paths $FRAMEWORK_SEARCH_PATHS
Expand Down