summaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2013-10-02 00:46:06 +0000
committerKeith Seitz <keiths@redhat.com>2013-10-02 00:46:06 +0000
commitc85cddc51d5d9e4423509a2dc7cf3d9809451b49 (patch)
treef4d948ed91161a563c7dd24c56197f183a50a24a /gdb/ada-lex.l
parent9cb8e9ab9d225807a721e2b6d520e663fc2fbb81 (diff)
downloadgdb-c85cddc51d5d9e4423509a2dc7cf3d9809451b49.tar.gz
Constification of parse_linespec and fallout:
https://sourceware.org/ml/gdb-patches/2013-09/msg01017.html https://sourceware.org/ml/gdb-patches/2013-09/msg01018.html https://sourceware.org/ml/gdb-patches/2013-09/msg01019.html https://sourceware.org/ml/gdb-patches/2013-09/msg01020.html
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r--gdb/ada-lex.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index 93df2fba0f5..2f9e1b39e45 100644
--- a/gdb/ada-lex.l
+++ b/gdb/ada-lex.l
@@ -497,7 +497,8 @@ processString (const char *text, int len)
const char *lim = text + len;
struct stoken result;
- q = result.ptr = obstack_alloc (&temp_parse_space, len);
+ q = obstack_alloc (&temp_parse_space, len);
+ result.ptr = q;
p = text;
while (p < lim)
{