On 2016/12/07 9:12, Christos Zoulas wrote:
In article <98971b08-1283-f235-96c4-09f53f377dda%rk.phys.keio.ac.jp@localhost>, Rin Okuyama <rokuyama%rk.phys.keio.ac.jp@localhost> wrote:This is a problem not peculiar to alpha. It also occurs, at least, on arm, powerpc, and sparc64. But it does not on amd64 and sh3.Well, I think you can get to move backwards because of optimizer reordering.
Hmm, this is an intended behavior rather than a bug; GCC strictly generates the line number statements in the single-instruction level. I wonder whether it is useful, but it might be another matter...
In addition, breakpoint sometimes does not work. I posted a work around: http://mail-index.netbsd.org/tech-toolchain/2016/11/01/msg002838.html But I have never gotten any response yet. I will repost it to port-alpha before long.I think that got committed.
You probably mean this commit: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gdb/dist/gdb/alphanbsd-tdep.c#rev1.12 where single stepping for dynamically linked binaries was fixed. But this problem of breakpoint has been untouched yet. Thanks, Rin