<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tardis for a Toolbox</title>
	<atom:link href="http://jdramer.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jdramer.wordpress.com</link>
	<description>Bigger on the inside</description>
	<lastBuildDate>Tue, 13 Dec 2011 18:26:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jdramer.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tardis for a Toolbox</title>
		<link>http://jdramer.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jdramer.wordpress.com/osd.xml" title="Tardis for a Toolbox" />
	<atom:link rel='hub' href='http://jdramer.wordpress.com/?pushpress=hub'/>
		<item>
		<title>GNU Makefile if problems</title>
		<link>http://jdramer.wordpress.com/2011/01/24/gnu-makefile-if-problems/</link>
		<comments>http://jdramer.wordpress.com/2011/01/24/gnu-makefile-if-problems/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 16:09:16 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[make]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=62</guid>
		<description><![CDATA[Adding functionality into a makefile can be a very frustrating process. I was recently trying to add a check for modified files before compiling.  Here&#8217;s how the rule looked: checkdirty: ifneq ( $(shell git ls-files -m &#124; wc -l), 0 ) @echo Detected modifed files. @exit 2 ; endif Basically, if any files were found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=62&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Adding functionality into a makefile can be a very frustrating process. I was recently trying to add a check for modified files before compiling.  Here&#8217;s how the rule looked:</p>
<pre><code>
checkdirty:
ifneq ( $(shell git ls-files -m | wc -l), 0 )
    @echo Detected modifed files.
    @exit 2 ;
endif
</code></pre>
<p>Basically, if any files were found changed the error would be printed. However, this would never work. I verified that <strong>git ls-files -m | wc -l </strong>returned 0 but the code would always execute. I eventually found the solution in the <a href="http://www.gnu.org/software/make/manual/make.html#Reading-Makefiles">GNU Make documentation</a>. From the page</p>
<blockquote><p>Conditional directives are parsed immediately.  This means, for example, that automatic variables cannot be used in conditional directives, as automatic variables are not set until the recipe for that rule is invoked.  If you need to use automatic variables in a conditional directive you <em>must</em> move the condition into the recipe and use shell conditional syntax instead.</p></blockquote>
<p>So essentially the shell command was never run when the ifneq was being parsed. I assume the strings were being compared which would explain always failing the equal test. The correct way to implement this test is then:</p>
<pre><code>
checkdirty:
    @if [ $(shell git ls-files -m | wc -l) -ne 0 ] ; \
    then \
        echo Detected modifed files. \
        exit 2 ; \
    fi
</code></pre>
<br /> Tagged: <a href='http://jdramer.wordpress.com/tag/make/'>make</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=62&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2011/01/24/gnu-makefile-if-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>KDE Hex Editor</title>
		<link>http://jdramer.wordpress.com/2010/10/07/kde-hex-editor/</link>
		<comments>http://jdramer.wordpress.com/2010/10/07/kde-hex-editor/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 20:48:52 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=59</guid>
		<description><![CDATA[Took me a while to find the name of the Graphical hex editor for KDE. okteta<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=59&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Took me a while to find the name of the Graphical hex editor for KDE.</p>
<p><a href="http://utils.kde.org/projects/okteta/">okteta</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=59&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2010/10/07/kde-hex-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>vim syntax highlighting file type</title>
		<link>http://jdramer.wordpress.com/2010/09/08/vim-syntax-highlighting-file-type/</link>
		<comments>http://jdramer.wordpress.com/2010/09/08/vim-syntax-highlighting-file-type/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 20:28:51 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=54</guid>
		<description><![CDATA[When editing with vim the syntax highlighting will occasionally not turn on.  Here&#8217;s the command to turn it on. :set filetype=make In this example it sets the file type to a Makefile file type. Replace the type as appropriate. Tagged: syntax, vim<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=54&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When editing with vim the syntax highlighting will occasionally not turn on.  Here&#8217;s the command to turn it on.</p>
<blockquote><p>:set filetype=make</p></blockquote>
<p>In this example it sets the file type to a Makefile file type. Replace the type as appropriate.</p>
<br /> Tagged: <a href='http://jdramer.wordpress.com/tag/syntax/'>syntax</a>, <a href='http://jdramer.wordpress.com/tag/vim/'>vim</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=54&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2010/09/08/vim-syntax-highlighting-file-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>C Preprocessor</title>
		<link>http://jdramer.wordpress.com/2010/09/01/c-preprocessor/</link>
		<comments>http://jdramer.wordpress.com/2010/09/01/c-preprocessor/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 19:46:11 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[preprocessor]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=43</guid>
		<description><![CDATA[Here&#8217;s a place I found with good information on using the C Preprocessor to stringify. http://www.decompile.com/cpp/faq/file_and_line_error_string.htm Tagged: c, preprocessor<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=43&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a place I found with good information on using the C Preprocessor to stringify.<a href="http://www.decompile.com/cpp/faq/file_and_line_error_string.htm"></a></p>
<p><a href="http://www.decompile.com/cpp/faq/file_and_line_error_string.htm"></p>
<p>http://www.decompile.com/cpp/faq/file_and_line_error_string.htm</a></p>
<br /> Tagged: <a href='http://jdramer.wordpress.com/tag/c/'>c</a>, <a href='http://jdramer.wordpress.com/tag/preprocessor/'>preprocessor</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=43&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2010/09/01/c-preprocessor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux Kernel Debugging with kgdb</title>
		<link>http://jdramer.wordpress.com/2010/04/28/linux-kernel-debugging-with-kgdb/</link>
		<comments>http://jdramer.wordpress.com/2010/04/28/linux-kernel-debugging-with-kgdb/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 18:19:07 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[kgdb]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=48</guid>
		<description><![CDATA[I&#8217;ve gone through a fair amount of pain the in the past couple of weeks while trying to debug in the linux kernel. To debug as you would with gdb you need to use kgdb. As of the linux kernel 2.6.26 kgdb is part of the kernel. The documentation is a little bit confusing as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=48&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve gone through a fair amount of pain the in the past couple of weeks while trying to debug in the linux kernel. To debug as you would with gdb you need to use kgdb. As of the linux kernel 2.6.26 <a href="http://kernel.org/pub/linux/kernel/people/jwessel/kgdb/index.html">kgdb is part of the kernel</a>. The documentation is a little bit confusing as some of the components, kgdb8250 and kgdboe, don&#8217;t seem to be present. So the only option is serial debugging.</p>
<p>This was a bit of a problem as neither of my machines had a serial port. Well the desktop has the hardware on the motherboard, but no physical port actually connected to it. So the first step was to add a PCI-serial card. I linked the port to ttyS2 with the following line in /etc/serial.conf</p>
<blockquote><p>/dev/ttyS2 uart 16550A port 0xe480 irq 16 baud_base 115200 spd_normal skip_test</p></blockquote>
<p>Using a USB-Serial dongle allowed me to verify a connection with my laptop. Now I was ready to try making the kgdb connection. I verified that kgdb is enabled in the generic ubuntu kernel, then added a boot item in grub with the following options.</p>
<blockquote><p>kgdbwait kgdboc=ttyS2,115200</p></blockquote>
<p>I followed this<a href="http://kernel.org/pub/linux/kernel/people/jwessel/kgdb/ch04.html"> process to connect</a> but unfortunately at boot time ttyS2 is not linked properly.  So I changed the kernel options to</p>
<blockquote><p>kgdbwait</p></blockquote>
<p>After booting the machine I had to manually enable kgdboc.</p>
<blockquote><p>$ sudo -s</p>
<p>$ echo ttyS2,115200 &gt; /sys/module/kgdboc/parameters/kgdboc</p></blockquote>
<p>At this point the machine totally freezes waiting for the debugger to connect. So I started gdb as noted before and the connection was made. I issued continue on gdb and the desktop started responding again.  To break again I press Alt+SysRq g on the desktop.</p>
<p>Now that the connection is there I need debug symbols. To make sure I had symbols for the kernel I built my own kernel image.  The process for <a href="https://help.ubuntu.com/community/Kernel/Compile">building on ubuntu is found here</a> with special <a href="http://blog.avirtualhome.com/2009/11/03/how-to-compile-a-kernel-for-ubuntu-karmic/">information for karmic here</a>.  I ended up making a <a href="http://mmlinux.wordpress.com/2009/07/30/how-to-compile-kernel-in-karmic/">new sub-flavour as described here</a>. Once the kernel was installed and booting I turned to getting symbols for my kernel module.  I compiled my module with CONFIG_DEBUG_INFO=y to ensure it contained the symbols. Then I had to make gdb load the symbols. That process is detailed on pages 100-101 of <a href="http://lwn.net/images/pdf/LDD3/ch04.pdf">Linux Device Drivers chapter 4</a>(PDF).  It&#8217;s also available <a href="http://lwn.net/Articles/90913/">here</a>.</p>
<p>Now I could set a breakpoint in my module and step through it.  However when it came to setting a breakpoint in the kernel code I also got this error:</p>
<blockquote><p>Cannot insert breakpoint 5.<br />
Error accessing memory address 0xffffffff813a40fb: Unknown error 18446744073709551615.</p></blockquote>
<p>I disabled CONFIG_DEBUG_RODATA in my kernel compile and was able to set breakpoints. I&#8217;m not certain that this was the fix as there were some other changes in the process I was using to debug at the same time as this change. But it&#8217;s worth a try if you&#8217;re getting this error.</p>
<br /> Tagged: <a href='http://jdramer.wordpress.com/tag/kernel/'>kernel</a>, <a href='http://jdramer.wordpress.com/tag/kgdb/'>kgdb</a>, <a href='http://jdramer.wordpress.com/tag/ubuntu/'>ubuntu</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=48&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2010/04/28/linux-kernel-debugging-with-kgdb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>Function pointer calling convention</title>
		<link>http://jdramer.wordpress.com/2009/06/26/function-pointer-calling-convention/</link>
		<comments>http://jdramer.wordpress.com/2009/06/26/function-pointer-calling-convention/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 16:43:22 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=45</guid>
		<description><![CDATA[I always forget the syntax for adding calling convention to a function pointer typedef. Here it is. typedef int (__stdcall *MYFUNC) (int, int); Tagged: c, syntax<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=45&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I always forget the syntax for adding calling convention to a function pointer typedef. Here it is.</p>
<p><code>typedef int (__stdcall *MYFUNC) (int, int);</code></p>
<br /> Tagged: c, syntax <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=45&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2009/06/26/function-pointer-calling-convention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>Medibuntu</title>
		<link>http://jdramer.wordpress.com/2009/04/17/medibuntu/</link>
		<comments>http://jdramer.wordpress.com/2009/04/17/medibuntu/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 19:07:57 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/2009/04/17/medibuntu/</guid>
		<description><![CDATA[Useful for restricted codecs. Medibuntu Tagged: ubuntu<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=40&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Useful for restricted codecs.</p>
<p><a href="https://help.ubuntu.com/community/Medibuntu">Medibuntu</a></p>
<br /> Tagged: ubuntu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=40&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2009/04/17/medibuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>NSIS and Visual C++ Runtime</title>
		<link>http://jdramer.wordpress.com/2009/04/16/nsis-and-visual-c-runtime/</link>
		<comments>http://jdramer.wordpress.com/2009/04/16/nsis-and-visual-c-runtime/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 20:14:00 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=38</guid>
		<description><![CDATA[I&#8217;ve been playing with NSIS recently to create a valid install application and have been pretty impressed by it. Very flexible, very extensible. When developing Visual C++ applications there is still a need to deal with runtime dependencies which can be very time-sucking. Here is a great summary of what is needed to correctly use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=38&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with <a href="http://nsis.sourceforge.net/Main_Page">NSIS</a> recently to create a valid install application and have been pretty impressed by it.  Very flexible, very extensible.  When developing Visual C++ applications there is still a need to deal with runtime dependencies which can be very time-sucking. Here is a great summary of what is needed to correctly use the WinSXS framework.<br />
<a href="http://kobyk.wordpress.com/2008/04/12/deploying-the-visual-c-libraries-with-an-nsis-installer/"> Deploying the Visual C++ libraries with an NSIS installer</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=38&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2009/04/16/nsis-and-visual-c-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>Driver installation issues</title>
		<link>http://jdramer.wordpress.com/2009/03/12/driver-installation-issues/</link>
		<comments>http://jdramer.wordpress.com/2009/03/12/driver-installation-issues/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 13:35:41 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=33</guid>
		<description><![CDATA[I ran into an issue installing my driver on a second PC that installed fine on two others. Most of the install seemed to go fine but at the end the install failed. Here&#8217;s the error I got: This device is not configured correctly (code 1). The official Microsoft documentation on the errors is seriously [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=33&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue installing my driver on a second PC that installed fine on two others. Most of the install seemed to go fine but at the end the install failed. Here&#8217;s the error I got:</p>
<blockquote><p>This device is not configured correctly (code 1).</p></blockquote>
<p>The official Microsoft documentation on the errors is <a href="http://support.microsoft.com/kb/310123">seriously useless</a>. However, I had much more luck on OSR. <a href="http://www.osronline.com/showThread.cfm?link=108592">This thread</a> informed me that I could get further details on what caused the failure by looking at the file <strong>C:\WINDOWS\setupapi.log</strong> (<strong>C:\WINDOWS\inf\setupapi.dev.log</strong> on Vista). Indeed, there is a nice log of the setup process that was followed for the install and the error that eventually killed it. The error I was having was something like this:</p>
<blockquote><p>#E279 Add Service: Failed to create service &#8220;somename&#8221;. Error 1078: The name is already in use as either a service name or a service display name.</p></blockquote>
<p>It pointed to the service in my inf file that was failing to install. With some pointers from <a href="http://www.osronline.com/showThread.cfm?link=5663">this thread</a> I realized what the problem was. I had gone through a full renaming of my driver and had installed the previous version on the failing machine. In the inf the service to be installed had a different key, but was using the same description. To get the install working again I removed all entries for both driver names from HKLM\SYSTEM\* in the registry, then rebooted to updated Windows copy of the driver database.  Installed again and success!</p>
<br /> Tagged: driver, windows <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=33&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2009/03/12/driver-installation-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows Driver Development</title>
		<link>http://jdramer.wordpress.com/2009/03/12/windows-driver-development/</link>
		<comments>http://jdramer.wordpress.com/2009/03/12/windows-driver-development/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 13:14:58 +0000</pubDate>
		<dc:creator>jdramer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wdf]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://jdramer.wordpress.com/?p=31</guid>
		<description><![CDATA[Recently I have been working on developing a USB driver for Windows. This has been quite a learning curve but it has been very nice to get closer to hardware again.  Here&#8217;s some of the information and resources I&#8217;ve found useful. WDF &#8211; Framework for a driver that handles most of the ugly PNP for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=31&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I have been working on developing a USB driver for Windows. This has been quite a learning curve but it has been very nice to get closer to hardware again.  Here&#8217;s some of the information and resources I&#8217;ve found useful.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/aa972909.aspx">WDF</a> &#8211; Framework for a driver that handles most of the ugly PNP for you.</p>
<p><a href="http://www.osronline.com/page.cfm?name=ListServer">OSR</a> &#8211; The place to go for answers on driver development. The mailing list has been a lifeline. Microsoft developers even hang out there.</p>
<br /> Tagged: wdf, windows <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jdramer.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jdramer.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jdramer.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jdramer.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jdramer.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jdramer.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jdramer.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jdramer.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jdramer.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jdramer.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jdramer.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jdramer.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jdramer.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jdramer.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jdramer.wordpress.com&amp;blog=4921682&amp;post=31&amp;subd=jdramer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jdramer.wordpress.com/2009/03/12/windows-driver-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6ba03c9620b58c797f05224eafe0156c?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">jdramer</media:title>
		</media:content>
	</item>
	</channel>
</rss>
