8184249: SA: clhsdb 'intConstant' throws a NullPointerException when not attached to a VM

Reviewed-by: amenkov
This commit is contained in:
Chris Plummer 2020-04-10 14:00:49 -07:00
parent 3cf922b3d1
commit 3a0a3d21d0

View File

@ -1205,7 +1205,7 @@ public class CommandProcessor {
}
}
},
new Command("intConstant", "intConstant [ name [ value ] ]", true) {
new Command("intConstant", "intConstant [ name [ value ] ]", false) {
public void doit(Tokens t) {
if (t.countTokens() != 1 && t.countTokens() != 0 && t.countTokens() != 2) {
usage();
@ -1228,7 +1228,7 @@ public class CommandProcessor {
}
}
},
new Command("longConstant", "longConstant [ name [ value ] ]", true) {
new Command("longConstant", "longConstant [ name [ value ] ]", false) {
public void doit(Tokens t) {
if (t.countTokens() != 1 && t.countTokens() != 0 && t.countTokens() != 2) {
usage();
@ -1251,7 +1251,7 @@ public class CommandProcessor {
}
}
},
new Command("field", "field [ type [ name fieldtype isStatic offset address ] ]", true) {
new Command("field", "field [ type [ name fieldtype isStatic offset address ] ]", false) {
public void doit(Tokens t) {
if (t.countTokens() != 1 && t.countTokens() != 0 && t.countTokens() != 6) {
usage();
@ -1323,7 +1323,7 @@ public class CommandProcessor {
}
}
},
new Command("type", "type [ type [ name super isOop isInteger isUnsigned size ] ]", true) {
new Command("type", "type [ type [ name super isOop isInteger isUnsigned size ] ]", false) {
public void doit(Tokens t) {
if (t.countTokens() != 1 && t.countTokens() != 0 && t.countTokens() != 6) {
usage();