Bug#862858: gcc-6.3.0 produces binary that gdb cannot automatically reload when it changes

2017-05-17 Thread Emmanuel Thomé
Upon further investigation, the bug I encountered is rather with gdb than gcc. gdb does not seem to cope very well with position-independent executables. Reloading a PIE file gets the entry point wrong. Example below. Notice how the first time gdb seems a PIE executable (when a.out has gone PIE

Bug#862858: gcc-6.3.0 produces binary that gdb cannot automatically reload when it changes

2017-05-17 Thread Emmanuel Thomé
Package: gcc-6 Version: 6.3.0-18 Severity: important Hi, I am directing this bug as relevant to gcc package as this is my best guess so far of a possible culprit. gdb is the package which has its functionality affected. Consider the following trivial code: #include void a() {