-
Notifications
You must be signed in to change notification settings - Fork 507
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
[Windows 10] Attach to process doesn't fetch source or any stats; fetching manually produces error #180
Comments
Thanks for the detailed report. For some reason the lower level library pygdbmi is messing up when it tries to parse the output of gdb. The long line at the beginning
is actually gdb's "machine interface" output that is meant to be parsed by gdbgui and translated into a friendly webpage. If you could get me the original output, I could fix the parser. To get the original output, you'd need to run gdb with the -i=mi2 flag (this would be done in a normal terminal outside of gdbgui).
Then you'd run all the same commands gdbgui runs. You can see these commands by clicking the gear icon in the top right and clicking Just to be sure I understand though: You are able to debug the program, but are having trouble looking at a particular source file and loading the list of source files, correct? |
Hi, I`m having the problem that you are talking about when I run example for rust.
First error on startup is: I can than start debugging manually via GDB console. Next thing im served disassembled code. When i press "fetch source files" Im seeing in GDB console
Although if I load "./src/main.rs" manually(drop down doesn`t show anything) everything seems to work. Problem occurs when source file being debugged changes, all I can see is disassembled code again. The session from running Describe your environment:
|
OS is Windows 10
When attaching to a process, the process is stopped as it should but the box where the code goes and all stats on the right hand side are left blank. So the behavior is different that in this video.
My code is a simple c++ programm that prints "Hello World!" every 3 seconds. I compiled with -g.
When I now try to point gdbgui to the source code by putting in the path to my helloworld.cpp on the left hand side, the command box prints out some odd error each time I 1)put in any letter 2)hit enter or 3)click "fetch source files"
Here's the error:
Also, the first time I git enter with the right path and file in the fetch source files textbox (
C:\Users\jcj-vb\C_helloworld\helloworld.cpp
) the command promt printsFile not found: C
in red letters. Although the path is definitely correct. Afterwards each enter produces that first error.Describe your environment
gdbgui -v
): 0.11.1.2gdb -v
): 7.6.1pip freeze
):click==6.7
Flask==0.12.2
Flask-Compress==1.4.0
Flask-SocketIO==2.9.4
gdbgui==0.11.1.2
gevent==1.2.2
greenlet==0.4.13
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
pygdbmi==0.8.2.0
Pygments==2.2.0
python-engineio==2.0.3
python-socketio==1.8.4
six==1.11.0
Werkzeug==0.14.1
The text was updated successfully, but these errors were encountered: