GithubHelp home page GithubHelp logo

Comments (7)

epasveer avatar epasveer commented on May 27, 2024 1

I didn't know the "working path" was relevant for the connect mode. I purposely left it out.

I can easily add it back. And if it has an added benefit of shortening those path names in the source browsers, all the better.

(And add it back to the attach mode).

from seer.

hrw avatar hrw commented on May 27, 2024 1

I try to use more of Seer functions. Turns out that 'Functions' tab has exactly what I wanted:

image

'File' column is what I would like to see for 'Source' one.

from seer.

epasveer avatar epasveer commented on May 27, 2024

I'm looking into this. The list I get from gdb is basically the output of "info sources". It seems to always include the full path.

There are these commands, but they only affect tracebacks stackframes.

set filename-display relative
set filename-display absolute
set filename-display basename
show filename-display

What happens when you're in Seer and you enter this command in the Command Bar?

image

In my example, the full path is given.

Do you have an example where gdb shows the filename as abbreviated?

from seer.

epasveer avatar epasveer commented on May 27, 2024

I've re-added the "working directory" to 'attach' and 'connect' modes. "main" is up to date.

I'm not sure about the long names, though. I don't think gdb does anything different. Please confirm if you can. Otherwise, in your example, how would you like the long names to appear? Something like going from this:

/nas/erniep/Development/seer/tests/hellostruct/hellostruct.cpp

to just file and one directory. Like:

../hellostruct/hellostruct.cpp

It can be made toggle-able between "full view" and "shortened view".

from seer.

hrw avatar hrw commented on May 27, 2024

set filename-display relative
set filename-display absolute
set filename-display basename
show filename-display

'info sources' gives fullnames each time

from seer.

epasveer avatar epasveer commented on May 27, 2024

'info sources' gives fullnames each time

Thanks for confirming.

from seer.

epasveer avatar epasveer commented on May 27, 2024

Those "set filename..." calls apply to everything but "info sources". Not sure why gdb was written that way.

from seer.

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.