This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: new gdb arch routine FRAME_UNCHANGED
>>>>> On Mon, 13 May 2002 19:14:32 -0400, Andrew Cagney <ac131313@cygnus.com> said:
Andrew> My brain hurts! This is increasingly like floating point
Andrew> with +0 != -0. We have a situtation where for:
Andrew> frame_id a, b; // contain both SP's and PC
Andrew> the test:
Andrew> !FRAME_ID_INNER_THAN(a,b) && !FRAME_INNER_THAN(b,a)
Andrew> does not imply
Andrew> FRAME_ID_SAME(a,b)
Andrew> (or what ever the functions are called).
If you define FRAME_ID_INNER_THAN(a,b) as:
((a.bsp > b.bsp) || (a.sp < b.sp))
then the relationship should still hold (assuming "bsp" represents the
register stack pointer and sp the memory stack pointer).
--david