* source.c (print_source_lines_base): Add check for noprint.
+2010-07-09  Hui Zhu  <teawater@gmail.com>
+
+       * source.c (print_source_lines_base): Add check for noprint.
+
 2010-07-08  Joel Brobecker  <brobecker@adacore.com>
 
        * python/python-config.py: Resync with Python 2.7 version of this
 
 {
   int c;
   int desc;
+  int noprint = 0;
   FILE *stream;
   int nlines = stopline - line;
   struct cleanup *cleanup;
     }
   else
     {
-      desc = -1;
+      desc = last_source_error;
       noerror = 1;
+      noprint = 1;
     }
 
-  if (desc < 0)
+  if (desc < 0 || noprint)
     {
       last_source_error = desc;