This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA][1/5] New port: Cell BE SPU (dwarf2loc.c fix)
- From: Jim Blandy <jimb at codesourcery dot com>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 21 Nov 2006 17:43:05 -0800
- Subject: Re: [RFA][1/5] New port: Cell BE SPU (dwarf2loc.c fix)
- References: <200611152157.kAFLv4Ab003607@d12av02.megacenter.de.ibm.com>
"Ulrich Weigand" <uweigand@de.ibm.com> writes:
>> Would it be a good idea to introduce a new function, a companion to
>> value_from_register, that wraps up the composition of
>> value_from_register and value_as_address?
>
> You mean something like the patch below? Tested on spu, s390-ibm-linux
> and s390x-ibm-linux.
Yes, that's great. Please commit.
It seems a shame to be creating a value and then throwing it away, but
the composition of those two functions has the semantics we want, so I
don't see a good alternative without some more restructuring.