From: James Nobis Date: Fri, 14 Jan 2011 06:07:47 +0000 (-0600) Subject: extra debugging for Dump() X-Git-Url: https://git.sesse.net/?p=freerainbowtables;a=commitdiff_plain;h=07302b6edb5ec453977b3d0d0470b735873838b8 extra debugging for Dump() note NetBSD make (not gmake) limitation on -mtune --- diff --git a/Client Applications/rcracki_mt/ChainWalkContext.cpp b/Client Applications/rcracki_mt/ChainWalkContext.cpp index 60c7f0f..c486999 100644 --- a/Client Applications/rcracki_mt/ChainWalkContext.cpp +++ b/Client Applications/rcracki_mt/ChainWalkContext.cpp @@ -410,8 +410,12 @@ void CChainWalkContext::Dump() printf("hash routine: %s\n", m_sHashRoutineName.c_str()); printf("hash length: %d\n", m_nHashLen); + printf( "m_vCharset[0].m_nPlainCharSetLen: %d\n", m_vCharset[0].m_nPlainCharsetLen ); + printf( "m_vCharset[1].m_nPlainCharSetLen: %d\n", m_vCharset[1].m_nPlainCharsetLen ); + printf("plain charset: "); unsigned int i; + for (i = 0; i < m_vCharset[0].m_nPlainCharsetLen; i++) { if (isprint(m_vCharset[0].m_PlainCharset[i])) diff --git a/Client Applications/rcracki_mt/Makefile b/Client Applications/rcracki_mt/Makefile index 3be2121..567932e 100644 --- a/Client Applications/rcracki_mt/Makefile +++ b/Client Applications/rcracki_mt/Makefile @@ -23,6 +23,7 @@ SHELL = /bin/sh BIN = $(DESTDIR)/usr/bin CC = g++ +# -mtune=native doesn't work on NetBSD 5.1 with gcc 4.1.3 and make (fine with gmake) OPTIMIZATION = -O3 -mtune=native CFLAGS = -Wall -ansi $(OPTIMIZATION) -c $(DEBUG) LFLAGS = -Wall -ansi -filt $(OPTIMIZATION) $(DEBUG)