[PATCH] Handle reference types in agent expressions

Stan Shebs stan@codesourcery.com
Wed Dec 30 00:00:00 GMT 2009


Another beefing-up of C++ support in tracepoint agent expressions - 
reference types.  At this level in GDB they are basically identical to 
pointers, and in fact there was a long-commented-out routine in 
language.c that's perfect for the task!  Committed to trunk.

Stan

2009-12-29  Stan Shebs  <stan@codesourcery.com>

    * language.c (pointer_type): Un-comment out.
    * ax-gdb.c: Include language.h, use pointer_type throughout
    instead of testing TYPE_CODE_PTR.
    (gen_fetch): Include TYPE_CODE_REF.
    (gen_cast): Ditto.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ref-patch-1
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20091230/ea06f73d/attachment.ksh>


More information about the Gdb-patches mailing list