<div dir="ltr">I'm doing:<div><br><div>gdb --interpreter mi --args "/home/default/bro/build/src/bro" -r /tmp/arp_l2tpv3.cap</div></div><div><br></div><div>I'm using VisualGDB (<a href="http://visualgdb.com/?features=linux">http://visualgdb.com/?features=linux</a>) to debug it from Visual Studio as I'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"><<a href="mailto:jazoff@illinois.edu" target="_blank">jazoff@illinois.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Jan 19, 2017, at 5:32 PM, Alberto Garcia <<a href="mailto:agarciaillera@gmail.com">agarciaillera@gmail.com</a>> wrote:<br>
><br>
> I've tried running:<br>
><br>
> set exec-wrapper bash -c 'source /home/default/bro/build/bro-<wbr>path-dev.sh'<br>
> within GDB but it didn't work either.<br>
><br>
> On Thu, Jan 19, 2017 at 4:01 PM, Alberto Garcia <<a href="mailto:agarciaillera@gmail.com">agarciaillera@gmail.com</a>> wrote:<br>
> It actually works if i'm in a shell but not if I'm debugging it with dbg.<br>
> It still shows the same error when executing main.cc:759 --> add_input_file("base/init-<wbr>bare.bro");<br>
><br>
> 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>