aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-04-07 15:09:40 +0000
committerPaul Brook <paul@codesourcery.com>2006-04-07 15:09:40 +0000
commitab1eb5fea7e04d3aac9e3522f87d580dc14244cf (patch)
tree817d80b45fadebc1c794a080c35ab6dccde84717 /gas/config
parent7ae2971b7af507f3d30ff3c0877bb9448e1eb683 (diff)
downloadgdb-ab1eb5fea7e04d3aac9e3522f87d580dc14244cf.zip
gdb-ab1eb5fea7e04d3aac9e3522f87d580dc14244cf.tar.gz
gdb-ab1eb5fea7e04d3aac9e3522f87d580dc14244cf.tar.bz2
2006-04-07 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (parse_tb): Set inst.error before returning FAIL.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 54cd349..a37e0f6 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -3706,7 +3706,10 @@ parse_tb (char **str)
int reg;
if (skip_past_char (&p, '[') == FAIL)
- return FAIL;
+ {
+ inst.error = _("'[' expected");
+ return FAIL;
+ }
if ((reg = arm_reg_parse (&p, REG_TYPE_RN)) == FAIL)
{
@@ -3716,7 +3719,10 @@ parse_tb (char **str)
inst.operands[0].reg = reg;
if (skip_past_comma (&p) == FAIL)
- return FAIL;
+ {
+ inst.error = _("',' expected");
+ return FAIL;
+ }
if ((reg = arm_reg_parse (&p, REG_TYPE_RN)) == FAIL)
{