This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: info frame


 ...
 > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]