]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Two compute_and_set_names simplifications
authorTom Tromey <tom@tromey.com>
Thu, 20 Feb 2020 00:16:51 +0000 (17:16 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 20 Feb 2020 00:22:13 +0000 (17:22 -0700)
commit869d89506ca4b97b1b31d0d9e7508d980a3653b6
tree9f4b3360f8fa532748ff392182f36df8ea417618
parent5f1839bbd2ed70c26813d239bbf441bdd22ae87b
Two compute_and_set_names simplifications

This patch simplifies compute_and_set_names in a couple of ways.

First, it changes one spot to use obstack_strndup, which is
equivalent, but more concise.

Second, the function ends with two calls to symbol_set_demangled_name.
This can be simplified to a single call.

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

* symtab.c (general_symbol_info::compute_and_set_names): Use
obstack_strndup.  Simplify call to symbol_set_demangled_name.
gdb/ChangeLog
gdb/symtab.c