aboutsummaryrefslogtreecommitdiff
path: root/gas/gasp.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-08-01 01:31:42 +0000
committerSteve Chamberlain <sac@cygnus>1995-08-01 01:31:42 +0000
commit5f57cea3f66564abf5062e33ea31c0acd09efe82 (patch)
tree7c52cc0a2ac11cd59ca81afa06b7e64a644a7ffe /gas/gasp.c
parent19f5d8f1645148ab7bd72ce76fbe93c97b8c1505 (diff)
downloadgdb-5f57cea3f66564abf5062e33ea31c0acd09efe82.zip
gdb-5f57cea3f66564abf5062e33ea31c0acd09efe82.tar.gz
gdb-5f57cea3f66564abf5062e33ea31c0acd09efe82.tar.bz2
* gasp.c (change_base): Don't modify numbers in strings. (pr7583)
* testsuite/gas/gasp/*: New.
Diffstat (limited to 'gas/gasp.c')
-rw-r--r--gas/gasp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gas/gasp.c b/gas/gasp.c
index 87e55a1..c164412 100644
--- a/gas/gasp.c
+++ b/gas/gasp.c
@@ -1362,6 +1362,18 @@ change_base (idx, in, out)
idx++;
}
}
+ else if (in->ptr[idx] == '"' || in->ptr[idx] == '\'')
+ {
+ char tchar = in->ptr[idx];
+ /* copy entire names through quickly */
+ sb_add_char (out, in->ptr[idx]);
+ idx++;
+ while (idx < in->len && in->ptr[idx] != tchar)
+ {
+ sb_add_char (out, in->ptr[idx]);
+ idx++;
+ }
+ }
else
{
/* nothing special, just pass it through */