diff options
| author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-04-28 16:14:04 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-04-28 16:19:20 -0400 |
| commit | b0980b7d79e8209ba91a2a85c720f238bbc478ed (patch) | |
| tree | 54fec2dda56b799aafa2af918971eea939628b1c /src/rustllvm/RustWrapper.cpp | |
| parent | 6daca7ea8d0ef1f99c928a0b6bacc8cefc17969a (diff) | |
| download | rust-b0980b7d79e8209ba91a2a85c720f238bbc478ed.tar.gz 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/RustWrapper.cpp')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index e8431f81692..43369b6d9be 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(); |
