Giter Site home page Giter Site logo

Colors in gdb split about nvim-gdb HOT 3 CLOSED

sakhnik avatar sakhnik commented on April 28, 2024
Colors in gdb split

from nvim-gdb.

Comments (3)

sakhnik avatar sakhnik commented on April 28, 2024

That's a good idea! To support colours, we just need to skip escape sequences when parsing the debugger output in scm.py before feeding it to the regexp matchers. Would you be able to implement this and create a pull request?

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

All right, I tried your code and realized what happens. GDB is actually run in a PTY by an auxiliary program gdbproxy.py. It conceals service commands issued by the plugin from the user. Basically, it cuts everything between server info breakpoints and (gdb) out, while letting through everything else.
Having changed the prompt, we left the proxy in the closed state forever.

Reference:

PROMPT = b"\n(gdb) "

There is a bug in this program that it stays filtering forever. It should probably stop filtering after some timeout.

We could potentially extend the terminator PROMPT to skip escape sequences when looking for a match. Or teach the program to adapt to the current prompt more intelligently.

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

@mightymicha, I solved this issue using gdb.prompt_hook to mark the prompt. Now the program doesn't care about the shape of the GDB prompt assuming no one overrides the hook.
Please feel free to reopen if it doesn't work for you.

from nvim-gdb.

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.