-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDB: "info regs" bring "fetch_registers: unexpected register : vscr" #24
Comments
I resolved the reading of Altivec registers, so that it doesn't end gdb with an error. But would be interesting if displayed values are correct. My example doesn't use Altivec, thus are always 0. |
@migthymax
And build it with `-maltivec' key. As Qemu emulated peg2 (and so Altivec) you should be able to test it as well. In meantime i will try on real peg2 and on x1000 (which both have Alttivec) |
I tried on x5000 firstly (which has no altivec) and with test case which do simple printf (so no altivec in use), and when i hit break on main, and run, then first time it simple didn't works and exit. Then i do reboot, and tried again. This time breakpoint on main works, and typing info reg bring me vscr and vrsave with strange valus such as I tested old GDb (from SDK) , and this one show correctly 0x0 for both of these registers. So something seems broken there and trash the memory (that can explain non working breakpoints at first, and strange values in altivec registers while there is none too). |
To reproduce: load up simple hello world, set breakpoint on main, run it, and when we breaks type "info regs" and while regs are shown, and the end we have that:
That's on x5000.
Older GDB coming with SDK behave correctly in this regards on the same X5000 (so it seems not platform dependant), and print correctly both vscr and vrsave registers.
The text was updated successfully, but these errors were encountered: