Avoid a crash in source_cache::extract_lines
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 787949c5d93fa07db176554f28f2c5c96dc37316..50cbd2ed70e4080cb38bbc958d81aaa78e4bb3c7 100644 (file)
@@ -1,3 +1,11 @@
+2019-03-14  Tom Tromey  <tromey@adacore.com>
+
+       * source-cache.h (class source_cache) <get_source_lines>: Return
+       std::string.
+       * source-cache.c (source_cache::extract_lines): Handle case where
+       first_pos==npos.  Return std::string.
+       (source_cache::get_source_lines): Update.
+
 2019-03-14  Tom Tromey  <tromey@adacore.com>
 
        * NEWS: Add item for "style sources" commands.
This page took 0.024545 seconds and 4 git commands to generate.