[Lldb-commits] [lldb] r181831 - Fix GCC buildbot failures in API/Multithreaded tests
Daniel Malea
daniel.malea at intel.com
Tue May 14 14:00:47 PDT 2013
Author: dmalea
Date: Tue May 14 16:00:47 2013
New Revision: 181831
URL: http://llvm.org/viewvc/llvm-project?rev=181831&view=rev
Log:
Fix GCC buildbot failures in API/Multithreaded tests
- fix typo initializing unique_ptr
- add missing throw specifier to play nice with older libstdc++ exception class
Modified:
lldb/trunk/test/api/multithreaded/common.h
lldb/trunk/test/api/multithreaded/test_breakpoint_callback.cpp
Modified: lldb/trunk/test/api/multithreaded/common.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/multithreaded/common.h?rev=181831&r1=181830&r2=181831&view=diff
==============================================================================
--- lldb/trunk/test/api/multithreaded/common.h (original)
+++ lldb/trunk/test/api/multithreaded/common.h Tue May 14 16:00:47 2013
@@ -16,6 +16,7 @@ struct Exception : public std::exception
{
std::string s;
Exception(std::string ss) : s(ss) {}
+ virtual ~Exception() throw () { }
const char* what() const throw() { return s.c_str(); }
};
Modified: lldb/trunk/test/api/multithreaded/test_breakpoint_callback.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/api/multithreaded/test_breakpoint_callback.cpp?rev=181831&r1=181830&r2=181831&view=diff
==============================================================================
--- lldb/trunk/test/api/multithreaded/test_breakpoint_callback.cpp (original)
+++ lldb/trunk/test/api/multithreaded/test_breakpoint_callback.cpp Tue May 14 16:00:47 2013
@@ -36,7 +36,7 @@ void test(SBDebugger &dbg, vector<string
if (!breakpoint.IsValid()) throw Exception("invalid breakpoint");
breakpoint.SetCallback(BPCallback, 0);
- std::unique_ptr<char> working_dir = get_working_dir();
+ std::unique_ptr<char> working_dir(get_working_dir());
SBProcess process = target.LaunchSimple(0, 0, working_dir.get());
{
More information about the lldb-commits
mailing list