I've tried running: set exec-wrapper bash -c 'source /home/default/bro/build/bro-path-dev.sh'
within GDB but it didn't work either. On Thu, Jan 19, 2017 at 4:01 PM, Alberto Garcia <[email protected]> wrote: > It actually works if i'm in a shell but not if I'm debugging it with dbg. > It still shows the same error when executing main.cc:759 --> > add_input_file("base/init-bare.bro"); > > Is there anything I need to execute from within dbg to set the environment > variables while using gdb? > > Thank you again > > On Thu, Jan 19, 2017 at 3:01 PM, Alberto Garcia <[email protected]> > wrote: > >> Easy one! >> >> thanks! >> >> On Thu, Jan 19, 2017 at 2:46 PM, Johanna Amann <[email protected]> wrote: >> >>> On Thu, Jan 19, 2017 at 11:19:20AM -0600, Alberto Garcia wrote: >>> > Hi, >>> > >>> > I've compiled bro from source to do some debugging. Once compiled I >>> can't >>> > run bro since there is an error popping up: >>> > >>> > default@debian:~/bro$ ./build/src/bro >>> > fatal error: can't find base/init-bare.bro >>> > >>> > If I do the make install and then call bro from /usr/local/bro/bin/bro >>> it >>> > works fine. >>> > >>> > What I should do to execute bro from the build directory? >>> >>> source build/bro-path-dev.sh >>> >>> should set all required environment variables. >>> >>> Johanna >>> >> >> >> >> -- >> Alberto García Illera >> >> GPG Public Key: https://goo.gl/twKUUv >> > > > > -- > Alberto García Illera > > GPG Public Key: https://goo.gl/twKUUv > -- Alberto García Illera GPG Public Key: https://goo.gl/twKUUv
_______________________________________________ bro-dev mailing list [email protected] http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev
