Use obstack_strdup in ada-lang.c
authorTom Tromey <tromey@adacore.com>
Wed, 19 Feb 2020 18:06:33 +0000 (11:06 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 19 Feb 2020 18:17:35 +0000 (11:17 -0700)
commit2ef5453be5e06566f60edcba7700503259c29b47
tree058188a6487a735d4e4956ca955dbc221d0d5951
parent9f1528a1bdb541510c56d48bbd77b50b617cb952
Use obstack_strdup in ada-lang.c

I happened across a spot that was still using obstack_alloc and
strcpy, rather than obstack_strdup.  This patch makes the obvious fix.

gdb/ChangeLog
2020-02-19  Tom Tromey  <tromey@adacore.com>

* ada-lang.c (cache_symbol): Use obstack_strdup.
gdb/ChangeLog
gdb/ada-lang.c