aboutsummaryrefslogtreecommitdiff
path: root/src/rustllvm
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-04-28 16:14:04 -0400
committerRafael Ávila de Espíndola <[email protected]>2011-04-28 16:19:20 -0400
commitb0980b7d79e8209ba91a2a85c720f238bbc478ed (patch)
tree54fec2dda56b799aafa2af918971eea939628b1c /src/rustllvm
parentActually perform take/drop on args (oh my!) (diff)
downloadrust-b0980b7d79e8209ba91a2a85c720f238bbc478ed.tar.xz
rust-b0980b7d79e8209ba91a2a85c720f238bbc478ed.zip
Add a very minimal set of .cfi_* statements to get part of backtraces
working (on hello world at least): ~/inst/gdb/bin/gdb --args ./foo (gdb) b write ... (gdb) r ... Breakpoint 1, 0xf7f04270 in write () from /lib32/libc.so.6 (gdb) bt 0 0xf7f04270 in write () from /lib32/libc.so.6 1 0x0804931a in rust_native_cdecl_3 () 2 0x080487d7 in _rust_wrapper3_ () 3 0x0804890a in _rust_fn5_main () 4 0x08049440 in rust_native_cdecl_7 ()
Diffstat (limited to 'src/rustllvm')
-rw-r--r--src/rustllvm/RustWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index e8431f81..43369b6d 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -54,7 +54,7 @@ extern "C" void LLVMRustWriteOutputFile(LLVMPassManagerRef PMR, LLVMModuleRef M,
LLVMCodeGenFileType FileType) {
// Set compilation options.
- llvm::NoFramePointerElim = true;
+ llvm::UnwindTablesMandatory = true;
InitializeAllTargets();
InitializeAllAsmPrinters();