mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
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
20 lines
556 B
C
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;
|
|
}
|