gdb: Split print_symbol_info into two parts
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 3d8d582d651fb5c99c878af8a1d9cb6dc9c0e0da..63e0519c547c7eda7ce0eecc32eb1bb4f40d82a3 100644 (file)
@@ -1,3 +1,47 @@
+2019-11-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * symtab.c (symbol_to_info_string): New function, most content
+       moved from print_symbol_info, but updated to return a std::string.
+       (print_symbol_info): Update to use symbol_to_info_string and print
+       returned string.
+       * symtab.h (symbol_to_info_string): Declare new function.
+
+2019-11-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * python/python.c (gdbpy_rbreak): Convert to using
+       global_symbol_searcher.
+       * symtab.c (file_matches): Convert return type to bool, change
+       file list to std::vector, update header comment.
+       (search_symbols): Rename to...
+       (global_symbol_searcher::search): ...this and update now its
+       a member function of global_symbol_searcher.  Take account of the
+       changes to file_matches.
+       (symtab_symbol_info): Convert to using global_symbol_searcher.
+       (rbreak_command): Likewise.
+       (search_module_symbols): Likewise.
+       * symtab.h (enum symbol_search): Update comment.
+       (search_symbols): Remove declaration.
+       (class global_symbol_searcher): New class.
+
+2019-11-26  Tom Tromey  <tromey@adacore.com>
+
+       * cp-support.c (_initialize_cp_support): Conditionally initialize
+       gdb_demangle_attempt_core_dump.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * python/py-function.c (fnpy_init): Update.
+       * value.h (add_internal_function): Adjust declaration.
+       * value.c (function_destroyer): Remove.
+       (do_add_internal_function): Don't set destroyer or copy name.
+       (add_internal_function): Take unique_xmalloc_ptr<char> for name.
+       Set name_allocated.
+       * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
+       (cmdpy_init): Set name_allocated.
+       * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
+       member.
+       (~cmd_list_element): Free "name" if needed.
+
 2019-11-26  Tom Tromey  <tom@tromey.com>
 
        * value.h (add_internal_function): Add new overload.  Move
This page took 0.0274489999999999 seconds and 4 git commands to generate.