String number;
Pattern p=Pattern.compile("(\\-?[0-9a-fA-F]+)");
Matcher m = p.matcher(cmd);
if (!m.find())
{
throw new GDBServerException();
}
number=m.group();
extractString(number);
try
{
return (int)Long.parseLong(number, 16);
} catch (NumberFormatException e)
{
throw new GDBServerException(e);
}
}