Fix use-after-free in source_cache::get_source_lines
[external/binutils.git] / gdb / ChangeLog
index f6377b6..b12ce2a 100644 (file)
@@ -1,3 +1,58 @@
+2019-03-25  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * source-cache.c (source_cache::get_source_lines): Re-read
+       fullname after calling open_source_file.
+
+2019-03-18  Pedro Alves  <palves@redhat.com>
+           Eli Zaretskii <eliz@gnu.org>
+
+       * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
+       m_line and m_start_of_line.
+
+2019-03-18  Eli Zaretskii  <eliz@gnu.org>
+
+       * tui/tui-io.c (gdb_wgetch): Don't echo CR.
+       (tui_getc): When gdb_wgetch returns a CR, behave the same as when
+       it returns a newline.  This fixes a regression in TU mode, whereby
+       the next line is output on the same screen line as the user input.
+
+2019-03-18  Pedro Alves  <palves@redhat.com>
+
+       * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
+       New globals.
+       (apply_style): New, factored out from ...
+       (apply_ansi_escape): ... this.  Handle reverse video mode.
+       (tui_set_reverse_mode): New function.
+       * tui/tui-io.h (tui_set_reverse_mode): New declaration.
+       * tui/tui-winsource.c (tui_show_source_line): Use
+       tui_set_reverse_mode instead of setting A_STANDOUT.
+       * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
+       New setter methods.
+
+2019-03-18  Hannes Domani  <ssbssa@yahoo.de>
+
+       * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
+       Handle tabs.
+
+2019-03-17  Eli Zaretskii  <eliz@gnu.org>
+
+       * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
+       tui_refill_source_window instead of tui_refresh_win, to update the
+       current execution line.  This fixes redisplay of the current line
+       when stepping through the code with "next" or "step".
+
+2019-03-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * source-cache.c (source_cache::get_source_lines): Call
+       find_source_lines to initialize s->nlines.  This fixes vertical
+       scrolling of TUI source window when the DOWN arrow is pressed.
+
+2019-03-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * tui/tui-winsource.c (tui_show_source_line): Revert "Use
+       wclrtoeol in tui_show_source_line".  This reverts changes made in
+       commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
+
 2019-03-12  John Baldwin  <jhb@FreeBSD.org>
 
        * NEWS: Combine separate "New targets" sections for 8.3.