This is the mail archive of the gdb-patches@sources.redhat.com 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: [patch rfc] Revamp REGISTER_TO_VALUE et.al.


Daniel Jacobowitz <drow@mvista.com> writes:

> On Fri, Jun 13, 2003 at 12:03:23PM -0400, Andrew Cagney wrote:
> > Hello,
> > 
> > This is the final revamped REGISTER_TO_VALUE patch.
> > 
> > It adds a frame to REGISTER_TO_VALUE and VALUE_TO_REGISTER making them 
> > responsible for fetching/storing the value's raw buffer.
> > 
> > It also adds a type parameter to CONVERT_REGISTER_P so that it can 
> > better filter what should be converted.
> > 
> > I'll look to commit in a few days, doco to follow.
> > 
> > Did anyone have better test cases?
> 
> I haven't checked, but gdb/214 might do...

I'm not sure whether the sample code in gdb/214 has anything to add to
the stuff that's already tested by gdb.base/store.exp.  It suffers
from the same problem as those test in that it is highly dependent on
the compiler you use whether a variable is stored in a register or
not.  The only really reliable test I can imagine is hand-coded
assembler :-(.

Mark


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