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

Add support for debugging macOS app bundles #1091

Merged
merged 4 commits into from
Sep 10, 2021
Merged

Conversation

WardenGnaw
Copy link
Member

@WardenGnaw WardenGnaw commented Dec 31, 2020

This PR adds support for debugging app bundles on macOS.

LLDB understands how to handle app bundles when provided to
-file-exec-and-symbols.

Reference:
./lldb-mi
(gdb)
-file-exec-and-symbols /Applications/VLC.app
^done
(gdb)
=library-loaded,id="/Applications/VLC.app/Contents/MacOS/VLC",target-name="/Applications/VLC.app/Contents/MacOS/VLC",host-name="/Applications/VLC.app/Contents/MacOS/VLC",symbols-loaded="0",loaded_addr="-",size="20480"

Added MacOSApp Test to CppTests.

@gregg-miskelly
Copy link
Member

LGTM

@WardenGnaw
Copy link
Member Author

This is pending testing on macOS :)

@WardenGnaw
Copy link
Member Author

@gregg-miskelly Perchance do you know how to default each test to have this new compiler as unsupported or do I have to add an UnsupportedCompiler tag to the existing tests?

@gregg-miskelly
Copy link
Member

@gregg-miskelly Perchance do you know how to default each test to have this new compiler as unsupported or do I have to add an UnsupportedCompiler tag to the existing tests?

I have no idea. You could ask the Production Diag folks (Justin Anderson, Del) if they remember anything.

This PR adds support for debugging app bundles on macOS.

LLDB understands how to handle app bundles when provided to
-file-exec-and-symbols.

Reference:
./lldb-mi
(gdb)
-file-exec-and-symbols /Applications/VLC.app
^done
(gdb)
=library-loaded,id="/Applications/VLC.app/Contents/MacOS/VLC",target-name="/Applications/VLC.app/Contents/MacOS/VLC",host-name="/Applications/VLC.app/Contents/MacOS/VLC",symbols-loaded="0",loaded_addr="-",size="20480"
Add XCodeBuild Compiler

Add support for running tests

Missing actual test

Move to correct location
@WardenGnaw WardenGnaw marked this pull request as ready for review September 3, 2021 22:44
@WardenGnaw
Copy link
Member Author

@gregg-miskelly When you have the time, can you re-review this PR. I was able to add a XCode project that compiles a .app and we test a simple debug launch against it.

Copy link
Member

@gregg-miskelly gregg-miskelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

@WardenGnaw WardenGnaw merged commit a0a3729 into main Sep 10, 2021
@WardenGnaw WardenGnaw deleted the dev/waan/supportMacOSApp branch September 21, 2021 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants