Message319621
| Author |
vstinner |
| Recipients |
Dormouse759, cstratak, jkloth, koobs, mcepl, mi, vstinner |
| Date |
2018年06月15日.14:52:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1529074320.13.0.947875510639.issue30345@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| 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 |
|