Examples of GDBDerivedType


Examples of org.eclipse.cdt.dsf.gdb.GDBTypeParser.GDBDerivedType

      DsfServicesTracker servicesTracker) {
    return new MIVariableManager_LangExtension(session, servicesTracker) {
      @Override
      protected GDBType getCorrectedGdbType(String newTypeName, GDBType gdbType) {
        if(gdbType.getType() == GDBType.POINTER && gdbType instanceof GDBDerivedType) {
          GDBDerivedType gdbDerivedType = (GDBDerivedType) gdbType;
          return gdbTypeParser.new GDBDerivedType(gdbDerivedType.getChild(), GDBType.REFERENCE);
        }
        return super.getCorrectedGdbType(newTypeName, gdbType);
      }
     
      @Override
View Full Code Here

Examples of org.eclipse.cdt.dsf.gdb.GDBTypeParser.GDBDerivedType

  protected final GDBTypeParser gdbTypeParser = new GDBTypeParser();

  @SuppressWarnings("unused")
  protected GDBType getCorrectedGdbType(String newTypeName, GDBType gdbType) {
    if(gdbType.getType() == GDBType.ARRAY && gdbType instanceof GDBDerivedType) {
      GDBDerivedType gdbDerivedType = (GDBDerivedType) gdbType;
      if(gdbDerivedType.getDimension() == 0) {
        // Correct a limitation in the GDBTypeParser when a "[]" type decl is present
        // CDT will think it's a pointer-like C-style array, and will try to display a custom node structure.
        // But in other languages, it's more likely to be a struct, so report as generic type.
        gdbType = gdbTypeParser.new GDBDerivedType(gdbDerivedType.getChild(), GDBType.GENERIC);
      }
    }
    return gdbType;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.