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

Debugging hash contents

From: John Peacock <jpeacock_at_rowman.com>
Date: 2005-01-26 12:47:34 CET

I'm trying to complete the keywords-as-hash patch and I have triggered something
too subtle for my dull mind to comprehend. I have one test failure (trans_tests
number 1) which dumps core while trying to access the keywords hash. I've
replicated to the best of my ability the exact processes involved (adding a
bunch of files, some with already expanded keyword strings) and I cannot get it
to fail in a repository of my own creation. It fails consistently when run
inside the test tree.

My question is, how do people conventionally examine the contents of apr hashes
from within the debugger? There are times when nothing but a printf()
equivalent will do, so I am consider writing a debugger function, apr_hash_dump,
which will just print out the stringified hash keys and values. I don't see a
better way to understand why the hash is not being populated correctly for this
one case.

TIA

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 26 12:48:24 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.