Re: info frame

Nick Roberts
2006-04-17T00:37:32Z

...
> Note that while %ebp is usually used as a frame pointer register, the
> architecture doesn't actually force you to do that. Nowadays
> compilers can and will generate frameless functions, and for those,
> the value %ebp is meaningless.

Thanks for the explanation.

Does this mean that if we choose to print the frame address in MI as part
of the output of -stack-list-frames:

>> Can somebody suggest the right fix? So far, I think that the simplest
>> approach is to make gdb print stack address of current frame, like
>> is done
>> on the Apple branch:
>>
>> 553^done,stack=[frame=
>> {level="0",addr="0x00003db0",fp="0xbffff2c0",......

0xbffff2c0 should not be the value of $fp but the value of "frame at..." in
'info frame`?

--
Nick http://www.inet.net.nz/~nickrob