+2013-12-28 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * arm-linux-tdep.c (arm_stap_is_single_operand): Accept "$" as a
+ literal prefix. Also accept no prefix at all.
+ (arm_stap_parse_special_token): Likewise.
+ (arm_linux_init_abi): Likewise.
+
2013-12-28 Sergio Durigan Junior <sergiodj@redhat.com>
PR tdep/15653
static int
arm_stap_is_single_operand (struct gdbarch *gdbarch, const char *s)
{
- return (*s == '#' /* Literal number. */
+ return (*s == '#' || *s == '$' || isdigit (*s) /* Literal number. */
|| *s == '[' /* Register indirection or
displacement. */
|| isalpha (*s)); /* Register value. */
++tmp;
tmp = skip_spaces_const (tmp);
- if (*tmp++ != '#')
- return 0;
+ if (*tmp == '#' || *tmp == '$')
+ ++tmp;
if (*tmp == '-')
{
arm_linux_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch)
{
- static const char *const stap_integer_prefixes[] = { "#", NULL };
+ static const char *const stap_integer_prefixes[] = { "#", "$", "", NULL };
static const char *const stap_register_prefixes[] = { "r", NULL };
static const char *const stap_register_indirection_prefixes[] = { "[",
NULL };