[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN_DBG

From: Hyrum K. Wright <hyrum_at_hyrumwright.org>
Date: Mon, 9 Nov 2009 09:36:09 -0600

On Nov 6, 2009, at 8:19 PM, Edmund Wong wrote:

> Hi,
>
> I'm still not understanding SVN_DBG, not because I don't know what it
> does; but, because I keep on getting undefined errors.
>
> As far as I know, I just need to do the following:
>
> 1) python gen-make.py -t vcproj --vsnet-version=2008 --debug
> --with-httpd=..\apache --with-openssl=..\openssl --with-zlib=..
> \zlib
> --with-sqlite=..\sqlite --with-apr=..\apache\srclib\apr
> --with-apr-util=..\apache\srclib\apr-util
> --with-apr-iconv=..\apache\srclib\apr-iconv --with-neon=..\neon
> --with-serf=..\serf
>
> 2) nmake all1 all2 check
>
> Is that all I need to do? The last time I tried SVN_DBG, I got
> undefined errors. I gave up and used puts(apr_psprintf(...)).
> Now, I've come across SVn_DBG() in dso.c (110). It's from
> r39886. Compiling with the latest trunk (with VS2008 command
> prompt and nmake all1), I get the following error:
>
> ..\..\..\subversion\libsvn_subr\dso.c(110): error C4103: \
> 'SVN_DBG' undefined; assuming extern returning int
>
>
> But grep'ing for SVN_DBG, it's clearly defined in
> include\private\svn_debug.h. But it's with the following
> code:
>
> #ifdef SVN_DBG_QUIET
>
> #define SVN_DBG(ARGS) svn_dbg__preamble(__FILE__, __LINE__, NULL)
>
> #else
>
> #define SVN_DBG(ARGS) (svn_dbg__preamble(__FILE__, __LINE__,
> SVN_DBG_OUTPUT), \
> svn_dbg__printf ARGS)
>
> #endif
>
> Of course, this SVN_DBG is only available when SVN_DEBUG
> is defined. Clearly adding --debug in the gen-make.py
> should set the SVN_DEBUG in the projects; and they are.
> I grep'd SVN_DEBUG and came up with lots of hits in the
> *.vcproj files.
>
> The last time on IRC I pestered Bert about this and came up
> still without a clue as to why I can't get SVN_DBG to be
> recognized. I'm completely stumped by this.

SVN_DBG is just for intra-commit debugging use by developers. Any
occurrences that have snuck into a commit should be removed.

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2415812
Received on 2009-11-09 16:36:23 CET

This is an archived mail posted to the Subversion Dev mailing list.