Add a test case for skip with inlined functions
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / jit-dlmain.c
CommitLineData
3b2a0cf2
JB
1#include <dlfcn.h>
2#include <stdio.h>
3
4int main (int argc, char *argv[])
5{
6 /* jit_libname is updated by jit-so.exp */
7 const char *jit_libname = "jit-dlmain-so.so";
8 void *h;
9 int (*p_main) (int, char **);
10
11 h = NULL; /* break here before-dlopen */
12 h = dlopen (jit_libname, RTLD_LAZY);
13 if (h == NULL) return 1;
14
15 p_main = dlsym (h, "jit_dl_main");
16 if (p_main == NULL) return 2;
17
18 h = h; /* break here after-dlopen */
19 return (*p_main) (argc, argv);
20}
This page took 1.050756 seconds and 4 git commands to generate.