This is the mail archive of the gdb-patches@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: [ob] fix buf size in amd64_epilogue_frame_cache


> 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


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