Change macro_source_fullname to return a std::string
authorTom Tromey <tom@tromey.com>
Fri, 8 Feb 2019 08:40:39 +0000 (01:40 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 17 Feb 2019 23:28:38 +0000 (16:28 -0700)
commit9409233b0ec8a052eacc5846ee054f224f7e7213
tree2074b48076d95b6f37bad36ddba994e03af6bf83
parent6506371f0671dd5ca11127fee4db8d8d7fec157f
Change macro_source_fullname to return a std::string

While working on the previous patch, I noticed that if
macro_source_fullname returned a std::string, then the callers would
be simplified.  This patch implements this idea.

gdb/ChangeLog
2019-02-17  Tom Tromey  <tom@tromey.com>

* macrotab.h (macro_source_fullname): Return a std::string.
* macrotab.c (macro_include, check_for_redefinition)
(macro_undef, macro_lookup_definition, foreach_macro)
(foreach_macro_in_scope): Update.
(macro_source_fullname): Return a std::string.
* macrocmd.c (show_pp_source_pos): Update.
gdb/ChangeLog
gdb/macrocmd.c
gdb/macrotab.c
gdb/macrotab.h