gdb/python: Introduce gdb.lookup_static_symbols
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 0c05afeb13c1df4f687ef8cded81b5122358f360..dd280ec5cc48007340b07d71a929b5a14fad6c62 100644 (file)
@@ -1,3 +1,160 @@
+2019-11-10  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * python/py-symbol.c (gdbpy_lookup_static_symbols): New
+       function.
+       * python/python-internal.h (gdbpy_lookup_static_symbols):
+       Declare new function.
+       * python/python.c (python_GdbMethods): Add
+       gdb.lookup_static_symbols method.
+       * NEWS: Mention gdb.lookup_static_symbols.
+
+2019-11-10  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
+       static block of current object file first.  Also fix typo in
+       header comment.
+
+2019-11-10  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * stack.c (set_last_displayed_sal): Delete.
+       (last_displayed_sal_valid): Delete.
+       (last_displayed_pspace): Delete.
+       (last_displayed_addr): Delete.
+       (last_displayed_symtab): Delete.
+       (last_displayed_line): Delete.
+       (class last_displayed_symtab_info_type): New.
+       (last_displayed_symtab_info): New static global variable.
+       (print_frame_info): Call methods on last_displayed_symtab_info.
+       (clear_last_displayed_sal): Update header comment, and make use of
+       last_displayed_symtab_info.
+       (last_displayed_sal_is_valid): Likewise.
+       (get_last_displayed_pspace): Likewise.
+       (get_last_displayed_addr): Likewise.
+       (get_last_displayed_symtab): Likewise.
+       (get_last_displayed_line): Likewise.
+       (get_last_displayed_sal): Likewise.
+       * stack.h (clear_last_displayed_sal): Update header comment.
+       (last_displayed_sal_is_valid): Likewise.
+       (get_last_displayed_pspace): Likewise.
+       (get_last_displayed_addr): Likewise.
+       (get_last_displayed_symtab): Likewise.
+       (get_last_displayed_line): Likewise.
+       (get_last_displayed_sal): Likewise.
+
+2019-11-10  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * stack.c (frame_show_address): Convert return type to bool.
+       * stack.h (frame_show_address): Likewise, and update header
+       comment.
+
+2019-11-10  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
+       * unittests/vec-utils-selftests.c: New file.
+       * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
+
+2019-11-10  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
+       (tui_highlight_win): Likewise.
+       (tui_win_info::check_and_display_highlight_if_needed): Likewise.
+       * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
+       * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
+       Don't set can_highlight.
+
+2019-11-10  Tom Tromey  <tom@tromey.com>
+
+       * cli/cli-style.h (class cli_style_option) <cli_style_option>:
+       Remove unused declaration.
+
+2019-11-08  Tom Tromey  <tromey@adacore.com>
+
+       * top.c (read_command_file): Update.
+       (command_line_input): Make return type const.
+       * python/py-gdb-readline.c: Update.
+       * linespec.c (decode_line_2): Update.
+       * defs.h (command_line_input): Make return type const.
+       * cli/cli-script.c (read_next_line): Make return type const.
+       * ada-lang.c (get_selections): Update.
+
+2019-11-06  Christian Biesinger  <cbiesinger@google.com>
+
+       * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
+       * mi/mi-main.c (output_cores): Likewise.
+       * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
+       (linux_xfer_osdata_modules): Likewise.
+       * remote.c (register_remote_support_xml): Likewise.
+       * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
+       * xml-syscall.c (syscall_create_syscall_desc): Likewise.
+
+2019-11-06  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-interp.c: Don't include readline.h.
+       * tui/tui-hooks.c: Don't include readline.h.
+       * symmisc.c: Include tilde.h, not readline.h.
+       * symfile.c: Include tilde.h, not readline.h.
+       * source.c: Include tilde.h, not readline.h.
+       * solib.c: Include tilde.h, not readline.h.
+       * psymtab.c: Include tilde.h, not readline.h.
+       * exec.c: Include tilde.h, not readline.h.
+       * corelow.c: Include tilde.h, not readline.h.
+       * cli/cli-dump.c: Include tilde.h, not readline.h.
+       * cli/cli-cmds.c: Don't include readline.h.
+
+2019-11-05  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
+       (tui_disassemble): Set addr_size.
+       (tui_disasm_window::set_contents): Use addr_size.
+
+2019-11-05  Tom Tromey  <tom@tromey.com>
+
+       * rust-lang.c (rust_language_defn): Update.
+       * python/py-value.c (valpy_string): Call c_get_string.
+       * p-lang.c (pascal_language_defn): Update.
+       * opencl-lang.c (opencl_language_defn): Update.
+       * objc-lang.c (objc_language_defn): Update.
+       * m2-lang.c (m2_language_defn): Update.
+       * language.c (unknown_language_defn, auto_language_defn): Update.
+       (default_get_string): Remove.
+       * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
+       * go-lang.c (go_language_defn): Update.
+       * f-lang.c (f_language_defn): Update.
+       * d-lang.c (d_language_defn): Update.
+       * c-lang.c (c_language_defn, cplus_language_defn)
+       (asm_language_defn, minimal_language_defn): Update.
+       * ada-lang.c (ada_language_defn): Update.
+       * language.h (struct language_defn) <la_get_string>: Remove.
+       (LA_GET_STRING): Remove.
+       (default_get_string): Don't declare.
+
+2019-11-05  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-source.h (struct tui_source_window): Inline
+       constructor.  Remove destructor.
+       <style_changed, m_observable>: Move to superclass.
+       * tui/tui-winsource.h (tui_copy_source_line): Declare.
+       (struct tui_source_window_base): Move private members to end.
+       <style_changed, m_observable>: Move from tui_source_window.
+       * tui/tui-winsource.c (tui_copy_source_line): Move from
+       tui-source.c.  Rename from copy_source_line.  Add special handling
+       for negative line number.
+       (tui_source_window_base::style_changed): Move from
+       tui_source_window.
+       (tui_source_window_base): Register observer.
+       (~tui_source_window_base): New.
+       * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
+       rename.
+       (tui_source_window::set_contents): Use tui_copy_source_line.
+       (tui_source_window::tui_source_window): Move to tui-source.h.
+       (tui_source_window::~tui_source_window): Remove.
+       (tui_source_window::style_changed): Move to superclass.
+       * tui/tui-disasm.c (tui_disassemble): Create string file with
+       styling, when possible.  Add "addr_size" parameter.
+       (tui_disasm_window::set_contents): Use tui_copy_source_line.
+       Don't compute maximum size.
+       (len_without_escapes): New function
+
 2019-11-05  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
This page took 0.027811 seconds and 4 git commands to generate.