[Lldb-commits] [lldb] r233780 - Fix ForwardPortWithAdb - update device_id variable if Android device has been found.
Oleksiy Vyalov
ovyalov at google.com
Tue Mar 31 19:30:17 PDT 2015
Author: ovyalov
Date: Tue Mar 31 21:30:17 2015
New Revision: 233780
URL: http://llvm.org/viewvc/llvm-project?rev=233780&view=rev
Log:
Fix ForwardPortWithAdb - update device_id variable if Android device has been found.
Modified:
lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
Modified: lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp?rev=233780&r1=233779&r2=233780&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp Tue Mar 31 21:30:17 2015
@@ -34,8 +34,9 @@ ForwardPortWithAdb (uint16_t port, std::
if (error.Fail ())
return error;
+ device_id = adb.GetDeviceID ();
if (log)
- log->Printf("Connected to Android device \"%s\"", adb.GetDeviceID ().c_str ());
+ log->Printf("Connected to Android device \"%s\"", device_id.c_str ());
return adb.SetPortForwarding (port);
}
More information about the lldb-commits
mailing list