guaranteed to only happen once. This avoids all the recording and
comparing stuff. But they can be suppressed; returns True if it is
suppressed. Bool 'print_error' dictates whether to print the error.
- Bool 'count_error' dictates whether to count the error in n_errs_found.
*/
Bool VG_(unique_error) ( ThreadId tid, ErrorKind ekind, Addr a, Char* s,
void* extra, ExeContext* where, Bool print_error,
- Bool allow_db_attach, Bool count_error )
+ Bool allow_db_attach )
{
Error err;
Supp *su;
su = is_suppressible_error(&err);
if (NULL == su) {
- if (count_error)
- n_errs_found++;
+ n_errs_found++;
if (print_error) {
/* A bit of prettyprinting, to ensure there's a blank line
extern Bool VG_(unique_error) ( ThreadId tid, ErrorKind ekind,
Addr a, Char* s, void* extra,
ExeContext* where, Bool print_error,
- Bool allow_GDB_attach, Bool count_error );
+ Bool allow_GDB_attach );
/* Gets a non-blank, non-comment line from fd. bufpp is a pointer to a
pointer to a buffer that must be allocated with VG_(malloc); nBufp is a
return
VG_(unique_error) ( tid, Err_Leak, /*Addr*/0, /*s*/NULL, &extra,
lr->key.allocated_at, print_record,
- /*allow_GDB_attach*/False, /*count_error*/False );
+ /*allow_GDB_attach*/False );
}
void MC_(record_user_error) ( ThreadId tid, Addr a,
reachable: 99 bytes in 1 blocks
suppressed: 0 bytes in 0 blocks
-errors: 1
+errors: 10