This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: dwarf2expr.[ch]
- From: Jim Blandy <jimb at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 10 Jul 2002 18:14:41 -0500
- Subject: Re: [RFA]: dwarf2expr.[ch]
- References: <Pine.LNX.4.44.0207101545040.16511-100000@dberlin.org>
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?