diff options
author | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-01-16 09:45:57 +0000 |
---|---|---|
committer | pierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-01-16 09:45:57 +0000 |
commit | 6b57e4e29816a20ec7e5b8d51438b5a39bf4e8ec (patch) | |
tree | 0b85f307f82a04945252015b0cb5e0be62617c4b /compiler/comphook.pas | |
parent | a80476e7a6cabdd0359b78fe8d9c01485f3d3272 (diff) | |
download | fpc-6b57e4e29816a20ec7e5b8d51438b5a39bf4e8ec.tar.gz |
Increase status.errorcount only inside GenerateError procedure, to simplify debugging
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@23398 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/comphook.pas')
-rw-r--r-- | compiler/comphook.pas | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/comphook.pas b/compiler/comphook.pas index b7183d6a13..1bbcb8df13 100644 --- a/compiler/comphook.pas +++ b/compiler/comphook.pas @@ -79,7 +79,10 @@ type currentmodulestate : string[20]; { Total Status } compiledlines : longint; { the number of lines which are compiled } - errorcount, + errorcount, { this field should never be increased directly, + use Verbose.GenerateError procedure to do this, + this allows easier error catching using GDB by + adding a single breakpoint at this procedure } countWarnings, countNotes, countHints : longint; { number of found errors/warnings/notes/hints } |