[patch 1/2] Recognize DFP types in casts.

Thiago Jung Bauermann bauerman@br.ibm.com
Thu Dec 20 16:48:00 GMT 2007

On Thu, 2007-12-20 at 09:08 -0500, Daniel Jacobowitz wrote:
> On Thu, Dec 20, 2007 at 03:49:27AM -0200, Thiago Jung Bauermann wrote:
> > This should logically be part of the next patch, but the C parser is
> > scary code and I don't feel very confident that this is indeed the
> > right way to do it. It works, though, and introduces no regressions.
> Do you need parser changes for this?  "unsigned" is a C keyword, and a
> bit special (e.g. in combinations with "int"); but doesn't _Decimal32
> act syntactically like a TYPENAME?
> Try following language_lookup_primitive_type_by_name around to
> c_language_arch_info (and cplus_language_arch_info).

Thanks for the tip. The below implements this approach and works well.
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decimal-cast-support-alt.diff
Type: text/x-patch
Size: 3573 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20071220/252a77cf/attachment.bin>

More information about the Gdb-patches mailing list