aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-arm.c10
2 files changed, 12 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7e7b0df..a63e8be 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
2006-04-07 Paul Brook <paul@codesourcery.com>
+ * config/tc-arm.c (parse_tb): Set inst.error before returning FAIL.
+
+2006-04-07 Paul Brook <paul@codesourcery.com>
+
* config/tc-arm.c (md_apply_fix): Set H bit on blx instruction.
2006-04-07 Paul Brook <paul@codesourcery.com>
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)
{