[ob] fix buf size in amd64_epilogue_frame_cache

Joel Brobecker brobecker@adacore.com
Mon Dec 21 04:38:00 GMT 2009


> 2009-12-20  Michael Snyder  <msnyder@vmware.com>
> 
> 	* amd64-tdep.c (amd64_epilogue_frame_cache): Fix buf size.

I'm going to apply this patch to the gdb-7.0 branch as well.

> -  gdb_byte buf[4];
> +  gdb_byte buf[8];

I think we should try to avoid using litteral constants like these,
especially when we repeat that constant later.  For instance, in
this case, we could have used register_size, or something similar...

-- 
Joel



More information about the Gdb-patches mailing list