Code Monkey home page Code Monkey logo

Comments (5)

badipietro avatar badipietro commented on July 17, 2024 1

An alternative method is to invoke gdb as normal and then set the exec-wrapper:

(gdb) set exec-wrapper env LD_PRELOAD=/usr/local/lib/exasock/libexasock_preload.so

or for debug/trace:

(gdb) set exec-wrapper env LD_PRELOAD=/usr/local/lib/exasock/libexasock_preload_debug.so export EXASOCK_TRACE=1

There are other parameters in the /usr/local/bin/exasock wrapper script though the exasock wrapper and libs might be installed somewhere else on your system.

from exanic-software.

badipietro avatar badipietro commented on July 17, 2024

You should be able to preload the exasock library before invoking gdb with something similar to the following:

exasock gdb --args application executable with parameter list

Also, for additional debugging the exasock library/system calls, can use the following:

exasock --trace --debug gdb --args application executable with parameter list

from exanic-software.

gustavoale-saires avatar gustavoale-saires commented on July 17, 2024

I'm also unable to use gdb with exasock.
If I run exasock --debug gdb --args <myprogram> <my program arguments> the gdb will stuck at Starting program: ... after typing the command run.

from exanic-software.

kkrcPP avatar kkrcPP commented on July 17, 2024

I have the same issue Starting program: ... after typing the command run. Even the example.

from exanic-software.

gustavoale-saires avatar gustavoale-saires commented on July 17, 2024

An alternative method is to invoke gdb as normal and then set the exec-wrapper:

(gdb) set exec-wrapper env LD_PRELOAD=/usr/local/lib/exasock/libexasock_preload.so

or for debug/trace:

(gdb) set exec-wrapper env LD_PRELOAD=/usr/local/lib/exasock/libexasock_preload_debug.so export EXASOCK_TRACE=1

There are other parameters in the /usr/local/bin/exasock wrapper script though the exasock wrapper and libs might be installed somewhere else on your system.

That works for me. Thanks!

from exanic-software.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.