diff options
author | Steve Chamberlain <sac@cygnus> | 1995-08-01 01:31:42 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1995-08-01 01:31:42 +0000 |
commit | 5f57cea3f66564abf5062e33ea31c0acd09efe82 (patch) | |
tree | 7c52cc0a2ac11cd59ca81afa06b7e64a644a7ffe /gas/gasp.c | |
parent | 19f5d8f1645148ab7bd72ce76fbe93c97b8c1505 (diff) | |
download | gdb-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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 */ |