Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug info for EH is not emitted #14523

Open
ochupina mannequin opened this issue Oct 23, 2012 · 1 comment
Open

debug info for EH is not emitted #14523

ochupina mannequin opened this issue Oct 23, 2012 · 1 comment
Labels
bugzilla Issues migrated from bugzilla c++ debuginfo

Comments

@ochupina
Copy link
Mannequin

ochupina mannequin commented Oct 23, 2012

Bugzilla Link 14151
Version trunk
OS MacOS X
Attachments bitcode file
CC @asl,@DougGregor

Extended Description

Consider the test:

$ cat test.cpp
#include <stdio.h>

int main(void)
{
try {
throw 1;
}
catch(int x) {
printf("%d\n", x);
}
return 0;
}

Exception handling-related debug info is not emmited in clang (DW_TAG_try_block, DW_TAG_catch_block). Bitcode file produced by clang is attached.

Compilation line: clang -S -O0 -g test.cpp -emit-llvm -o test.bc

Olga Chupina

Software Engineer
Intel Compiler Team
Intel Corp.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
@llvmbot
Copy link
Collaborator

llvmbot commented Nov 3, 2023

@llvm/issue-subscribers-debuginfo

Author: None (2094601b-373c-43bf-9fad-2557fa9f70d5)

| | | | --- | --- | | Bugzilla Link | [14151](https://llvm.org/bz14151) | | Version | trunk | | OS | MacOS X | | Attachments | [bitcode file](https://user-images.githubusercontent.com/95090778/143746225-599ff90c-758e-41ed-9fa9-ff9919dc448f.gz) | | CC | @asl,@DougGregor |

Extended Description

Consider the test:

$ cat test.cpp
#include <stdio.h>

int main(void)
{
try {
throw 1;
}
catch(int x) {
printf("%d\n", x);
}
return 0;
}

Exception handling-related debug info is not emmited in clang (DW_TAG_try_block, DW_TAG_catch_block). Bitcode file produced by clang is attached.

Compilation line: clang -S -O0 -g test.cpp -emit-llvm -o test.bc

Olga Chupina

Software Engineer
Intel Compiler Team
Intel Corp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++ debuginfo
Projects
None yet
Development

No branches or pull requests

2 participants