[Lldb-commits] [PATCH] Add Socket::Get[Remote/Local]IpAddress and unit tests

Vince Harron vharron at google.com
Sun Jan 11 02:22:14 PST 2015


Hi clayborg, ovyalov, sivachandra,

Why did I make this patch?

I am trying to get the remote tests running linux->linux when the hosts are multi-homed, localhost or don't have proper DNS entries.

I need to add Socket::Get[Remote/Local]IpAddress
I wanted to make some unit tests to test it
So I created a unit test binary
Socket has a really, really big number of dependencies (like all of lldb)
I removed references to Args::StringToUInt32 and created SocketGlue to get the unit test binary linking without pulling in everything
It's a bit of a hack but it gets the job done
I needed to use inet_ntop, which doesn't exist on Windows XP, so I implemented that, too

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6917

Files:
  gtest/gtest.xcodeproj/project.pbxproj
  include/lldb/Host/Socket.h
  include/lldb/Host/SocketAddress.h
  lldb.xcodeproj/project.pbxproj
  source/Host/common/Socket.cpp
  source/Host/common/SocketAddress.cpp
  source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6917.17984.patch
Type: text/x-patch
Size: 17287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150111/8e79e39d/attachment.bin>


More information about the lldb-commits mailing list