-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Debugging without debug symbols #9
Comments
Is there any output in GDB shell? You can access GDB shell with |
Not much really (at least nothing that would scream error). https://gist.github.com/pawlos/d3e7c66b7bf085cf756669e9a410daf6 |
It says You can compile and link executables with debug symbols like: |
Yeah, there's no source as it's not even compiled by me but if source not present I was expecting to see some disassembly. I cannot use gdbfrontend w/o source code to see disassm? Is it only working with source code? |
Yes for now. I will add a disassembly tab/view in addition to disassembly view on the right side. It is a TODO. For frames, I think there is an issue about no source on switching frames. I will fix it for displaying frame address instead of source file/line and fix switching problem for no source situations. When it is fixed we will able to seeing registers for each frame for no source situations. There is no a registers view but you can watch registers with adding registers like |
I added debugging without debug symbols support and improved something. After testing, I will release a new version. You can try last revision (695acd4) and tell me if it is ok or is there any error. |
It works :) Additional observations, in the call stack, after clicking on __libc_start_main() there's an error that cannot find source, but after dismissing it the disassembly shows up correctly - not sure if an error is needed (guess depending on user needs?). In the terminal the following errors are present: https://gist.github.com/pawlos/7592b0a4fb11dab6d5110105e17d4bd6 Note, it was gdb with pwndbg so there might be some interference. Later I can check without pwndbg. |
Missing source errors dont repeat for same sources no longer. Does that errors cause a problem as functionality? I will add a behaviour to ignore it. |
Nope, looks like everything works as expected but I'll test a bit more in the upcoming days. |
Ignored that errors. 8a94938 |
I've tried to use GDB frontend on Ubuntu running in WSL. I can start it buf if I want to use the UI in the browser I'm getting either 'Path not found' or 'An error occured'.
Cmd to run gdbfrontend:
Inside gdbfrontend:
After that - click on stack frame gives me this:
Click on any fine in the source on the left side gives this:
Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: