Checkout
Daniel Shahaf
committed
on 13 Apr 13
Maintainer-mode stack traces: print symbolic names for errno.h errors, too.

Example output:
% $svnadmin upgrade /
subversion/svnadm… Show more
Maintainer-mode stack traces: print symbolic names for errno.h errors, too.

Example output:

   % $svnadmin upgrade /

   subversion/svnadmin/svnadmin.c:1925,

   subversion/libsvn_repos/repos.c:1555,

   subversion/libsvn_repos/repos.c:1461,

   subversion/libsvn_repos/repos.c:1423,

   subversion/libsvn_subr/io.c:4120,

   subversion/libsvn_subr/io.c:3271: (apr_err=ENOENT)

   svnadmin: E000002: Can't open file '/format': No such file or directory

* build/generator/gen_base.py

 (GeneratorBase.write_errno_table): New function.

 (IncludeDependencyInfo._scan_for_includes): Add exemption.

* gen-make.py

 (main): Invoke the new logic.

* subversion/libsvn_subr/errorcode.inc: New svn:ignore'd file.

* subversion/libsvn_subr/error.c

 (errorcode.inc): Include, in maintainer mode.

 (svn__errno): New file-private variable, defined by errorcode.inc.

 (svn_error_symbolic_name): Try svn__errno too.

Show less