<div dir="ltr">I&#39;m doing:<div><br><div>gdb --interpreter mi --args &quot;/home/default/bro/build/src/bro&quot; -r /tmp/arp_l2tpv3.cap</div></div><div><br></div><div>I&#39;m using VisualGDB (<a href="http://visualgdb.com/?features=linux">http://visualgdb.com/?features=linux</a>) to debug it from Visual Studio as I&#39;ve done with tons of other projects. It just execute the gdb commands over SSH So its basically the same than executing them from a ssh session.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 4:40 PM, Azoff, Justin S <span dir="ltr">&lt;<a href="mailto:jazoff@illinois.edu" target="_blank">jazoff@illinois.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On Jan 19, 2017, at 5:32 PM, Alberto Garcia &lt;<a href="mailto:agarciaillera@gmail.com">agarciaillera@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I&#39;ve tried running:<br>
&gt;<br>
&gt; set exec-wrapper bash -c &#39;source /home/default/bro/build/bro-<wbr>path-dev.sh&#39;<br>
&gt; within GDB but it didn&#39;t work either.<br>
&gt;<br>
&gt; On Thu, Jan 19, 2017 at 4:01 PM, Alberto Garcia &lt;<a href="mailto:agarciaillera@gmail.com">agarciaillera@gmail.com</a>&gt; wrote:<br>
&gt; It actually works if i&#39;m in a shell but not if I&#39;m debugging it with dbg.<br>
&gt; It still shows the same error when executing main.cc:759 --&gt; add_input_file(&quot;base/init-<wbr>bare.bro&quot;);<br>
&gt;<br>
&gt; Is there anything I need to execute from within dbg to set the environment variables while using gdb?<br>
<br>
</span>no.  How exactly are you running gdb?<br>
<br>
source build/bro-path-dev.sh<br>
gdb `which bro`<br>
<br>
should work just fine.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
- Justin Azoff<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Alberto García Illera<div><br><div><div><font size="1">GPG Public Key:</font> <a href="https://goo.gl/twKUUv" style="color:rgb(17,85,204);font-size:x-small" target="_blank">https://goo.gl/twKUUv</a></div></div></div></div></div></div></div></div></div>
</div>