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: [RFA]: dwarf2expr.[ch]


Daniel Berlin <dberlin@dberlin.org> writes:
> > You're going to need a truncation function for all the operations that
> > are sensitive to the upper bits anyway (divide, shift right, compare),
> > so it doesn't seem a big deal to drop in an application here, too.
> 
> But i'm not, because i'm using the incredibly ugly transformation of
> 
> result = (LONGET) result2 / (LONGEST) result1
> 
> is
> 
> result = value_as_long (value_binop (value_from_pointer 
> (builtin_type_CORE_ADDR,  result2), value_from_pointer 
> (builtin_type_CORE_ADDR, result1), BINOP_DIV))
> 
> 
> which handles it for us.
> :)

The smiley means you're kidding, right?


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