diff options
author | Richard Mitton <richard@codersnotes.com> | 2013-09-12 02:20:34 +0000 |
---|---|---|
committer | Richard Mitton <richard@codersnotes.com> | 2013-09-12 02:20:34 +0000 |
commit | f86248d9ba1909392211968400ea97bd06da04c6 (patch) | |
tree | b736518b47f1be3be3c3d89530f1e753ce38e9fc /lldb/source/Core/Error.cpp | |
parent | 50c003b5774247b12655f439be959d23ee356614 (diff) | |
download | bcm5719-llvm-f86248d9ba1909392211968400ea97bd06da04c6.tar.gz bcm5719-llvm-f86248d9ba1909392211968400ea97bd06da04c6.zip |
Added a 'jump' command, similar to GDBs.
This allows the PC to be directly changed to a different line.
It's similar to the example python script in examples/python/jump.py, except implemented as a builtin.
Also this version will track the current function correctly even if the target line resolves to multiple addresses. (e.g. debugging a templated function)
llvm-svn: 190572
Diffstat (limited to 'lldb/source/Core/Error.cpp')
-rw-r--r-- | lldb/source/Core/Error.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Core/Error.cpp b/lldb/source/Core/Error.cpp index bca30be6813..7aabe5b386d 100644 --- a/lldb/source/Core/Error.cpp +++ b/lldb/source/Core/Error.cpp @@ -52,12 +52,16 @@ Error::Error (const Error &rhs) : { } -Error::Error (const char* err_str): +Error::Error (const char* format, ...): m_code (0), m_type (eErrorTypeInvalid), m_string () { - SetErrorString(err_str); + va_list args; + va_start (args, format); + SetErrorToGenericError (); + SetErrorStringWithVarArg (format, args); + va_end (args); } //---------------------------------------------------------------------- |