tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GDB single-step fails on alpha (Re: CVS commit: src/share/mk)



On Sat, Oct 29, 2016 at 11:11:50AM +0900, Rin Okuyama wrote:
>   % cc -g -O0 hello.c -o hello
>   % gdb ./hello
>   GNU gdb (GDB) 7.12
>   ...
>   Reading symbols from ./hello...done.
>   (gdb) b main
>   Breakpoint 1 at 0x120000968: file hello.c, line 7.
>   (gdb) r
>   Starting program: /home/rin/hello
> 
>   Breakpoint 1, main () at hello.c:7
>   7               printf("Hello, World!\n");

Yes, it works when using -O0 but not when using -O2.

Anyway, separate issue - I'll commit your patch and we can improve the
situation later.

Martin


Home | Main Index | Thread Index | Old Index