Don't re-add kexts and the kernel each time we get a notification
authorJason Molenda <jmolenda@apple.com>
Sat, 1 Dec 2012 06:13:29 +0000 (06:13 +0000)
committerJason Molenda <jmolenda@apple.com>
Sat, 1 Dec 2012 06:13:29 +0000 (06:13 +0000)
commit65d57a3d2aae4976eb8290c9a4f36753b310c206
tree0d47bfc113e25403abeb44be247bc669260e23ab
parent420f81dc5d9e10b6facd95c4a2a6ef7ea2d8df38
Don't re-add kexts and the kernel each time we get a notification
that kexts were newly added.

The Darwin userland dynamic loader provides lldb with a list of
newly-added or newly-removed binaries but in the kernel case we
only know that something has changed.  DynamicLoaderDarwinKernel
really needs to maintain its own persistent list of kexts that
it has been notified about (most importantly, it will not detect
kext unlods) but for now we'll at least avoid re-adding an already
present kext.

<rdar://problem/12658487>, <rdar://problem/12658487>

llvm-svn: 169082
lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp