Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open source files like cgdb. #148

Closed
amosbird opened this issue Aug 15, 2016 · 1 comment
Closed

Open source files like cgdb. #148

amosbird opened this issue Aug 15, 2016 · 1 comment

Comments

@amosbird
Copy link

How can I search a source file and open in other buffer in order to add breakpoints like one does in cgdb?

@rocky
Copy link
Collaborator

rocky commented Aug 15, 2016

I looked at cgdb, a curses based implementation of gdb. I don't know how it gets a list of files that it reports. I know a lot of them for the library files were simply files that match the basename part of the name which I suppose is reasonable given that this is all that is recorded in the binary.

The closest thing to this in realgud is running a gdb info files. To associate a source file that is not already associated with a debugging session, edit the source file and run M-x short-key-mode. It will then ask you the name of the buffer where the debugger is running.

In the long term, I guess we should add some sort of feature that runs the equivalent of "info files" and parses the output for the names of files so that when a line with a file name is clicked it is brought up in another window.

If you feel strongly enough about it, perhaps you can implement. It would be similar in code to the way the backtrace buffer is created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants