Message319621
I tested on the current master:
git clean -fdx
./configure --with-lto --enable-optimizations
sed -i -e 's/^PROFILE_TASK=.*/PROFILE_TASK=-c pass/' Makefile
make 2>&1|tee log
Python is compiled twice:
* (1) gcc -DNDEBUG -g -O3 -flto -fprofile-generate (...)
* (2) gcc -DNDEBUG -g -O3 -flto -fprofile-use (...)
I see -g in both compilation steps.
It seems like debug symbols are still here:
vstinner@apu$ file ./python
./python: ELF 64-bit LSB executable, x86-64, (...), with debug_info, not stripped
But I confirm that test_gdb fails when using LTO+PGO.
gdb seems to be to read any C function argument:
$ gdb -args ./python Lib/test/gdb_sample.py
(gdb) b builtin_id
(gdb) run
Breakpoint 1, 0x0000000000518da0 in builtin_id ()
(gdb) py-bt
Traceback (most recent call first):
(unable to read python frame information)
(unable to read python frame information)
(unable to read python frame information)
(unable to read python frame information) |
|
Date |
User |
Action |
Args |
2018-06-15 14:52:00 | vstinner | set | recipients:
+ vstinner, jkloth, mcepl, koobs, cstratak, Dormouse759, mi |
2018-06-15 14:52:00 | vstinner | set | messageid: <1529074320.13.0.947875510639.issue30345@psf.upfronthosting.co.za> |
2018-06-15 14:52:00 | vstinner | link | issue30345 messages |
2018-06-15 14:52:00 | vstinner | create | |
|