On Dec 21, 2012, at 8:14 AM, Mark Cave-Ayland wrote:
On 21/12/12 13:09, Programmingkid wrote:
you've got this the wrong way around. The default CFLAGS for OpenBIOS uses -Os which
causes heavy optimisation and confuses gdb causing it to give incorrect output. So if you
want to use gdb to debug OpenBIOS, you need to rebuild it with -O0 and use the generated
.nostrip unstripped binary.
I have done that and the problem is still there.
Okay - did you make sure you did a complete rebuild so the flags got picked up by the C
rm -rf obj-ppc
(change -Os to -O0)
If you're sure, post a message with detailed instructions to the list so that others
can try and reproduce what you are seeing.
I found out that the address of the variable next_grab_slot was way out of range. Qemu was
given only 128MB of ram, and this variable was located at an address around the 4095 MB