[PATCH 2/2] Change macro_source_fullname to return a std::string
Joel Brobecker
brobecker@adacore.com
Sun Feb 17 13:23:00 GMT 2019
> 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.
Indeed!
> gdb/ChangeLog
> 2019-02-13 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.
The patch looks good also.
--
Joel
More information about the Gdb-patches
mailing list