diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2016-02-16 04:14:55 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-18 07:39:20 +0000 |
commit | 0fe42caad8f7c142741a28b09458f4e2fdf289ff (patch) | |
tree | 3613c9f337ce178cae4151f789d5678312de7147 /meta/recipes-devtools | |
parent | 3f454361fc323119c2850aeb239171e40d085161 (diff) | |
download | openembedded-core-0fe42caad8f7c142741a28b09458f4e2fdf289ff.tar.gz openembedded-core-0fe42caad8f7c142741a28b09458f4e2fdf289ff.tar.bz2 openembedded-core-0fe42caad8f7c142741a28b09458f4e2fdf289ff.zip |
bitbake.conf: use target path as compile dir in debugging info
In debugging information, it uses target paths rather than
build ones as compile dir.
...
-fdebug-prefix-map=old=new
When compiling files in directory old, record debugging
information describing them as in new instead.
...
Compile without this fix:
objdump -g git/test.o
...
The Directory Table (offset 0x1b):
| 1 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/x86_64-linux/usr/lib/
i686-pokymllib32-linux.lib32-gcc-cross-initial-i686/gcc/i686-pokymllib32-linux/5.3.0/include
| 2 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/lib32-qemux86-64/usr/include/bits
| 3 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/lib32-qemux86-64/usr/include
...
Compile with this fix:
objdump -g git/test.o
...
The Directory Table (offset 0x1b):
| 1 /usr/lib/i686-pokymllib32-linux.lib32-gcc-cross-initial-i686/gcc/i686-pokymllib32-linux/
5.3.0/include
| 2 /usr/include/bits
| 3 /usr/include
...
[YOCTO #7058]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
0 files changed, 0 insertions, 0 deletions