[lldb-dev] Help with Shell Script Property List Format on Mac

Sara Burke Sara.Burke at mathworks.com
Tue Jan 15 13:48:08 PST 2013

Hi lldb-dev,

On my Mac, I've tried to get the shell script property list format to work as described in http://lldb.llvm.org/symbols.html. However, I can't seem to get it to work.

To make sure it would do the right thing, I moved my dSYM and sources around, all on my local drive, with very simple repro code.

I created a shell script, named after the library's uuid, here are the contents:


# plist header
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
echo "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">"
echo "<plist version=\"1.0\">"

# main body
echo "<dict>"

echo "<key>150BADFD-271A-3C5C-9710-A6C56EF5A06E</key>"
echo "<dict>"
echo "<key>DBGArchitecture</key>"
echo "<string>x86_64</string>"
echo "<key>DBGBuildSourcePath</key>"
echo "<string>/localsb/XTools/TestTool</string>"
echo "<key>DBGSourcePath</key>"
echo "<string>/mathworks/home/sburke/Library/Developer/Xcode/DerivedData/TestTool-dokupfoqmgtapzcyhynqroozmcya/Build/Products/Debug</string>"
echo "<key>DBGDSYMPath</key>"
echo "<string>/localsb/XTools/TestTool/libTestDylib.dylib.dSYM/Contents/Resources/DWARF/libTestDylib.dylib</string>"
echo "<key>DBGError</key>"
echo "<string>Could not remap sources for libTestLib.dylib</string>"
echo "</dict>"

echo "</dict>"

# plist footer
echo "</plist>"

exit 0

The DBGBuildSourcePath value I got right from the output of dwarfdump on the dSYM.
Then I set the defaults like so:

defaults write com.apple.DebugSymbols DBGShellCommands -string /localsb/XTools/TestTool/uuids/150BADFD-271A-3C5C-9710-A6C56EF5A06E

I start my target, hit a breakpoint, try to step in, and I don't get the symbols.
Using 'target symbols add' manually with the dSYM does resolve the symbols correctly and I am able to step into the code.
However, the shell script workflow does not seem to be working.

Therefore, I must not be doing this right or there is some restriction I am unaware of. Any suggestions?


Sara M. Burke
The MathWorks, Inc.
(508) 647-7476
Sara.Burke at mathworks.com<mailto:Sara.Burke at mathworks.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130115/524c07d7/attachment.html>

More information about the lldb-dev mailing list