comparison agent/src/share/classes/sun/jvm/hotspot/CommandProcessor.java @ 12258:69f26e8e09f9

8024760: add more types, fields and constants to VMStructs Reviewed-by: kvn, coleenp
author twisti
date Fri, 13 Sep 2013 16:55:44 -0700
parents 38ea2efa32a7
children de6a9e811145
comparison
equal deleted inserted replaced
12257:01b268b3080a 12258:69f26e8e09f9
1211 usage(); 1211 usage();
1212 return; 1212 return;
1213 } 1213 }
1214 HotSpotTypeDataBase db = (HotSpotTypeDataBase)agent.getTypeDataBase(); 1214 HotSpotTypeDataBase db = (HotSpotTypeDataBase)agent.getTypeDataBase();
1215 if (t.countTokens() == 1) { 1215 if (t.countTokens() == 1) {
1216 String name = t.nextToken();
1216 out.println("intConstant " + name + " " + db.lookupIntConstant(name)); 1217 out.println("intConstant " + name + " " + db.lookupIntConstant(name));
1217 } else if (t.countTokens() == 0) { 1218 } else if (t.countTokens() == 0) {
1218 Iterator i = db.getIntConstants(); 1219 Iterator i = db.getIntConstants();
1219 while (i.hasNext()) { 1220 while (i.hasNext()) {
1220 String name = (String)i.next(); 1221 String name = (String)i.next();
1233 usage(); 1234 usage();
1234 return; 1235 return;
1235 } 1236 }
1236 HotSpotTypeDataBase db = (HotSpotTypeDataBase)agent.getTypeDataBase(); 1237 HotSpotTypeDataBase db = (HotSpotTypeDataBase)agent.getTypeDataBase();
1237 if (t.countTokens() == 1) { 1238 if (t.countTokens() == 1) {
1239 String name = t.nextToken();
1238 out.println("longConstant " + name + " " + db.lookupLongConstant(name)); 1240 out.println("longConstant " + name + " " + db.lookupLongConstant(name));
1239 } else if (t.countTokens() == 0) { 1241 } else if (t.countTokens() == 0) {
1240 Iterator i = db.getLongConstants(); 1242 Iterator i = db.getLongConstants();
1241 while (i.hasNext()) { 1243 while (i.hasNext()) {
1242 String name = (String)i.next(); 1244 String name = (String)i.next();