mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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>
|
||||
|
||||
* 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 desc;
|
||||
int noprint = 0;
|
||||
FILE *stream;
|
||||
int nlines = stopline - line;
|
||||
struct cleanup *cleanup;
|
||||
@ -1319,11 +1320,12 @@ print_source_lines_base (struct symtab *s, int line, int stopline, int noerror)
|
||||
}
|
||||
else
|
||||
{
|
||||
desc = -1;
|
||||
desc = last_source_error;
|
||||
noerror = 1;
|
||||
noprint = 1;
|
||||
}
|
||||
|
||||
if (desc < 0)
|
||||
if (desc < 0 || noprint)
|
||||
{
|
||||
last_source_error = desc;
|
||||
|
||||
|
Reference in New Issue
Block a user