forked from Imagelibrary/binutils-gdb
2010-07-04 Hui Zhu <teawater@gmail.com>
* source.c (print_source_lines_base): Add check for noprint.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2010-07-08 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* python/python-config.py: Resync with Python 2.7 version of this
|
* python/python-config.py: Resync with Python 2.7 version of this
|
||||||
|
|||||||
@@ -1293,6 +1293,7 @@ print_source_lines_base (struct symtab *s, int line, int stopline, int noerror)
|
|||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
int desc;
|
int desc;
|
||||||
|
int noprint = 0;
|
||||||
FILE *stream;
|
FILE *stream;
|
||||||
int nlines = stopline - line;
|
int nlines = stopline - line;
|
||||||
struct cleanup *cleanup;
|
struct cleanup *cleanup;
|
||||||
@@ -1319,11 +1320,12 @@ print_source_lines_base (struct symtab *s, int line, int stopline, int noerror)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
desc = -1;
|
desc = last_source_error;
|
||||||
noerror = 1;
|
noerror = 1;
|
||||||
|
noprint = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (desc < 0)
|
if (desc < 0 || noprint)
|
||||||
{
|
{
|
||||||
last_source_error = desc;
|
last_source_error = desc;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user