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
486 B
C++
22 lines
486 B
C++
//===-- c.c -----------------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
int d_init()
|
|
{
|
|
return 123;
|
|
}
|
|
|
|
int d_global = d_init();
|
|
|
|
int
|
|
d_function ()
|
|
{ // Find this line number within d_dunction().
|
|
return 700;
|
|
}
|