clayborg requested changes to this revision.
clayborg added a comment.

So we should just make sure this works:

  (lldb) target symbols add --shlib a.out debug_binaries/a.out

The --uuid option is there to help you match up without having to specify the 
file path. If I am understanding correctly, "a.out" has no UUID or build ID, 
but "debug_binaries/a.out" does? In that case, there is no need to specify the 
--uuid option. If the UUID do match, then you could just do:

  (lldb) target symbols add debug_binaries/a.out

It would extract the UUID from "debug_binaries/a.out" and then match it to the 
file. So the "--shlib" option is there to point you in the right direction. 
When the UUIDs don't match, we should make sure that "target symbols add 
--shlib a.out debug_binaries/a.out" by recognizing that "a.out" doesn't have a 
valid UUID so the UUID doesn't need to match in order for 
"debug_binaries/a.out" to be an acceptable match for it as a symbol file. This 
might make some of the changes above go away and move them to the ModuleSpec 
matching code.


https://reviews.llvm.org/D35607



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to