diff options
author | Nathan Lanza <nathan@lanza.io> | 2018-11-15 20:58:09 +0000 |
---|---|---|
committer | Nathan Lanza <nathan@lanza.io> | 2018-11-15 20:58:09 +0000 |
commit | 04f9d0a0c31398651ecf52a853362aa328756011 (patch) | |
tree | 0794fc602e6d4d2a050c384aa3dd2ed1ac72210a /lldb/packages/Python/lldbsuite/test/functionalities/windows_dyld/dllfunc.c | |
parent | 5cc7de09ef983cc2741a3ba011170278b8994cbe (diff) | |
download | bcm5719-llvm-04f9d0a0c31398651ecf52a853362aa328756011.tar.gz bcm5719-llvm-04f9d0a0c31398651ecf52a853362aa328756011.zip |
Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD
Summary:
This commit implements basic DidAttach and DidLaunch for the windows
DynamicLoader plugin which allow us to load shared libraries from the
inferior.
Reviewers: sas, zturner
Reviewed By: zturner
Differential Revision: https://reviews.llvm.org/D54544
llvm-svn: 346994
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/windows_dyld/dllfunc.c')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/windows_dyld/dllfunc.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/windows_dyld/dllfunc.c b/lldb/packages/Python/lldbsuite/test/functionalities/windows_dyld/dllfunc.c new file mode 100644 index 00000000000..aadf4e34a86 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/functionalities/windows_dyld/dllfunc.c @@ -0,0 +1,19 @@ +//===-- a.c -----------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include <windows.h> + +BOOL WINAPI DllMain(HINSTANCE h, DWORD reason, void* reserved) { + return TRUE; +} + +int __declspec(dllexport) DllFunc(int n) { + int x = n * n; + return x; // set breakpoint here +} |