mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-21 12:35:47 -04:00

LLDB don't detect the loading of a shared object file linked against the main executable before the static initializers are executed for the given module. Because of this it is not possible to get breakpoint hits in these static initializers and to display proper debug info in case of a crash in these codes. llvm-svn: 255342
22 lines
440 B
C++
22 lines
440 B
C++
//===-- b.c -----------------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
int b_init()
|
|
{
|
|
return 345;
|
|
}
|
|
|
|
int b_global = b_init();
|
|
|
|
int
|
|
b_function ()
|
|
{
|
|
return 500;
|
|
}
|