[RFA]: dwarf2expr.[ch]

Jim Blandy jimb@redhat.com
Wed Jul 10 16:15:00 GMT 2002


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?



More information about the Gdb-patches mailing list