<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alliedmods.net/index.php?action=history&amp;feed=atom&amp;title=Debugging_Metamod%3ASource_on_Linux</id>
	<title>Debugging Metamod:Source on Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alliedmods.net/index.php?action=history&amp;feed=atom&amp;title=Debugging_Metamod%3ASource_on_Linux"/>
	<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;action=history"/>
	<updated>2026-08-05T14:08:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.6</generator>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=5130&amp;oldid=prev</id>
		<title>BAILOPAN: Debugging SourceMM on Linux moved to Debugging Metamod:Source on Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=5130&amp;oldid=prev"/>
		<updated>2007-10-06T04:54:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/Debugging_SourceMM_on_Linux&quot; class=&quot;mw-redirect&quot; title=&quot;Debugging SourceMM on Linux&quot;&gt;Debugging SourceMM on Linux&lt;/a&gt; moved to &lt;a href=&quot;/Debugging_Metamod:Source_on_Linux&quot; title=&quot;Debugging Metamod:Source on Linux&quot;&gt;Debugging Metamod:Source on Linux&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:54, 6 October 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>BAILOPAN</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=5129&amp;oldid=prev</id>
		<title>BAILOPAN at 04:54, 6 October 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=5129&amp;oldid=prev"/>
		<updated>2007-10-06T04:54:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:54, 6 October 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To debug your [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SourceMM&lt;/del&gt;]] plugin on Linux, you should have gdb (Gnu DeBugger) and g++ 3.4.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To debug your [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Metamod:Source&lt;/ins&gt;]] plugin on Linux, you should have gdb (Gnu DeBugger) and g++ 3.4.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Steps==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Steps==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot; &gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use &amp;lt;tt&amp;gt;stepi&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nexti&amp;lt;/tt&amp;gt; for stepping into and over individual instructions (also &amp;lt;tt&amp;gt;si&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ni&amp;lt;/tt&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use &amp;lt;tt&amp;gt;stepi&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nexti&amp;lt;/tt&amp;gt; for stepping into and over individual instructions (also &amp;lt;tt&amp;gt;si&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ni&amp;lt;/tt&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Documentation (SourceMM)&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Metamod:Source Development&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BAILOPAN</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=2425&amp;oldid=prev</id>
		<title>BAILOPAN: /* Notes */</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=2425&amp;oldid=prev"/>
		<updated>2006-01-21T20:35:23Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Notes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:35, 21 January 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot; &gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;info all&amp;lt;/tt&amp;gt; to see the CPU register layout.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;info all&amp;lt;/tt&amp;gt; to see the CPU register layout.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use &amp;lt;tt&amp;gt;step&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;next&amp;lt;/tt&amp;gt; for stepping into and over lines of code (also &amp;lt;tt&amp;gt;s&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use &amp;lt;tt&amp;gt;step&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;next&amp;lt;/tt&amp;gt; for stepping into and over lines of code (also &amp;lt;tt&amp;gt;s&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use &amp;lt;tt&amp;gt;stepi&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nexti&amp;lt;/tt&amp;gt; for stepping into and over individual instructions (also &amp;lt;tt&amp;gt;si&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ni&amp;lt;/tt&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use &amp;lt;tt&amp;gt;stepi&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nexti&amp;lt;/tt&amp;gt; for stepping into and over individual instructions (also &amp;lt;tt&amp;gt;si&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ni&amp;lt;/tt&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Documentation (SourceMM)]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Documentation (SourceMM)]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BAILOPAN</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=2424&amp;oldid=prev</id>
		<title>BAILOPAN: /* Notes */</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=2424&amp;oldid=prev"/>
		<updated>2006-01-21T20:34:38Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Notes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:34, 21 January 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot; &gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;set disas intel&amp;lt;/tt&amp;gt; for proper Intel assembly output.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;set disas intel&amp;lt;/tt&amp;gt; for proper Intel assembly output.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;display/i $pc&amp;lt;/tt&amp;gt; to see the current eip and its disassembly.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;display/i $pc&amp;lt;/tt&amp;gt; to see the current eip and its disassembly.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;***Note - you only need to do this once, as GDB will show it constantly.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;disas &amp;amp;lt;addr|expr&amp;gt;&amp;lt;/tt&amp;gt; to disassemble an address or expression.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;disas &amp;amp;lt;addr|expr&amp;gt;&amp;lt;/tt&amp;gt; to disassemble an address or expression.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;info all&amp;lt;/tt&amp;gt; to see the CPU register layout.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Use &amp;lt;tt&amp;gt;info all&amp;lt;/tt&amp;gt; to see the CPU register layout.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BAILOPAN</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=2423&amp;oldid=prev</id>
		<title>BAILOPAN at 20:32, 21 January 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Debugging_Metamod:Source_on_Linux&amp;diff=2423&amp;oldid=prev"/>
		<updated>2006-01-21T20:32:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Introduction==&lt;br /&gt;
To debug your [[SourceMM]] plugin on Linux, you should have gdb (Gnu DeBugger) and g++ 3.4.  &lt;br /&gt;
&lt;br /&gt;
==Steps==&lt;br /&gt;
#Compile your plugin with -O0 -g -ggdb3.  This will ensure your plugin has debug symbols compiled in.  You should not be using high optimization flags or stripping symbols (-s).&lt;br /&gt;
#In your shell (for bash), type: &amp;lt;pre&amp;gt;export LD_LIBRARY_PATH=&amp;quot;.:bin:$LD_LIBRARY_PATH&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
#In your directory that contains srcds_run, type: &amp;lt;pre&amp;gt;gdb srcds_i686&amp;lt;/pre&amp;gt;&lt;br /&gt;
#*Note: this assumes that your processor is i686.  There is also srcds_amd and srcds_i486 -- run the one that is best described by your CPU.&lt;br /&gt;
#In GDB, type your startup command line prepended by &amp;quot;run&amp;quot;, like so: &amp;lt;pre&amp;gt;run -game cstrike +map de_dust +ip 127.0.0.1 +maxplayers 16&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Once your server crashes, you can use &amp;lt;tt&amp;gt;bt&amp;lt;/tt&amp;gt; to see a backtrace.  To jump to a particular frame of the backtrace, you can use &amp;lt;tt&amp;gt;frame &amp;amp;lt;n&amp;gt;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
*To break into the debugger, use CTRL+C.&lt;br /&gt;
*To continue after breaking, use &amp;lt;tt&amp;gt;cont&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*To print an expression, use &amp;lt;tt&amp;gt;print &amp;amp;lt;expr&amp;gt;&amp;lt;/tt&amp;gt;.  You can print address contents, C expressions, previous expression results, and variable contents if the names are available in the frame.&lt;br /&gt;
*For disassembling..&lt;br /&gt;
**Use &amp;lt;tt&amp;gt;set disas intel&amp;lt;/tt&amp;gt; for proper Intel assembly output.&lt;br /&gt;
**Use &amp;lt;tt&amp;gt;display/i $pc&amp;lt;/tt&amp;gt; to see the current eip and its disassembly.&lt;br /&gt;
**Use &amp;lt;tt&amp;gt;disas &amp;amp;lt;addr|expr&amp;gt;&amp;lt;/tt&amp;gt; to disassemble an address or expression.&lt;br /&gt;
**Use &amp;lt;tt&amp;gt;info all&amp;lt;/tt&amp;gt; to see the CPU register layout.&lt;br /&gt;
*Use &amp;lt;tt&amp;gt;step&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;next&amp;lt;/tt&amp;gt; for stepping into and over lines of code (also &amp;lt;tt&amp;gt;s&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt;).&lt;br /&gt;
*Use &amp;lt;tt&amp;gt;stepi&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nexti&amp;lt;/tt&amp;gt; for stepping into and over individual instructions (also &amp;lt;tt&amp;gt;si&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ni&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation (SourceMM)]]&lt;/div&gt;</summary>
		<author><name>BAILOPAN</name></author>
		
	</entry>
</feed>