diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-02-02 06:00:36 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-02-02 06:00:36 +0000 |
commit | b9c9f9b2004f75da096058165cc99115250602f7 (patch) | |
tree | 8d52cb3367df9fa5f9cdf2018d276c67387ce020 /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | 33111dfea04e63a8d21f03cd3e55fe40b1cc1b6e (diff) | |
download | bcm5719-llvm-b9c9f9b2004f75da096058165cc99115250602f7.tar.gz bcm5719-llvm-b9c9f9b2004f75da096058165cc99115250602f7.zip |
Change CommandObjectTargetSymbolsAdd to require that a target exists;
fixes crash of the form
% lldb
(lldb) target symbols add /tmp/symbols.dSYM
(lldb) Killed: 9
<rdar://problem/13139481>
llvm-svn: 174267
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index c3306ff70ec..15c05dc27c6 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -4204,7 +4204,7 @@ public: CommandObjectParsed (interpreter, "target symbols add", "Add a debug symbol file to one of the target's current modules by specifying a path to a debug symbols file, or using the options to specify a module to download symbols for.", - "target symbols add [<symfile>]"), + "target symbols add [<symfile>]", eFlagRequiresTarget), m_option_group (interpreter), m_file_option (LLDB_OPT_SET_1, false, "shlib", 's', CommandCompletions::eModuleCompletion, eArgTypeShlibName, "Fullpath or basename for module to find debug symbols for."), m_current_frame_option (LLDB_OPT_SET_2, false, "frame", 'F', "Locate the debug symbols the currently selected frame.", false, true) |