Files
llvm/lldb/packages/Python/lldbsuite/test/functionalities/windows_dyld/main.c
Nathan Lanza 04f9d0a0c3 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
2018-11-15 20:58:09 +00:00

20 lines
556 B
C

//===-- main.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>
int __declspec(dllimport) DllFunc(int n);
int main(int argc, char ** argv) {
int x = DllFunc(4);
int y = DllFunc(8); // set breakpoint here
int z = DllFunc(16);
return x + y + z;
}