Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424199 - sys-devel/llvm-3.1 does not generate line information usable by gdb
Summary: sys-devel/llvm-3.1 does not generate line information usable by gdb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-06-30 04:55 UTC by Ben Longbons
Modified: 2012-07-05 22:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
make debug information usable again (0001-Revert-Patch-to-set-is_stmt-a-little-better-for-prol.patch,2.56 KB, patch)
2012-06-30 04:56 UTC, Ben Longbons
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Longbons 2012-06-30 04:55:06 UTC
Building anything with clang -g associates symbols to addresses, but not to file/line, which is necessary to do anything useful in a debugger. (Except when it does)

Reproducible: Always

Steps to Reproduce:
example:
$ clang -o main -g -x c - <<< 'int main(){}'
$ gdb ./main
(gdb) start
(gdb) step




Attached is a patch to revert the faulty commit.
Comment 1 Ben Longbons 2012-06-30 04:56:03 UTC
Created attachment 316731 [details, diff]
make debug information usable again
Comment 2 Bernard Cafarelli gentoo-dev 2012-07-05 22:27:35 UTC
Thanks for the report/test case/upstream link/patch! I've added the patch to 3.1-r1 ebuild (-9999 should get a fix upstream by itself)