Skip to content

GDB not found executable file #1

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

Closed
stevengogogo opened this issue Feb 24, 2021 · 2 comments · Fixed by #2
Closed

GDB not found executable file #1

stevengogogo opened this issue Feb 24, 2021 · 2 comments · Fixed by #2
Labels
bug Something isn't working

Comments

@stevengogogo
Copy link
Owner

stevengogogo commented Feb 24, 2021

No debugging symbols found in GDB

Screen Shot 2021-02-25 at 3 08 28 AM

File

Problem_1.zip

f0dca9e

@stevengogogo stevengogogo added the bug Something isn't working label Feb 24, 2021
@stevengogogo
Copy link
Owner Author

stevengogogo commented Feb 24, 2021

Buggy state

f0dca9e

Build

make BUILD

Problem

Error occurs when using gdb build/main.out. I have added -g3 tag to the gcc compiler.

@stevengogogo stevengogogo linked a pull request Feb 25, 2021 that will close this issue
@stevengogogo
Copy link
Owner Author

從你的截圖中,首先gdb的file指令的參數是欲debug的executable或object file而非source code,此外你的檔案應該是在buid/目錄底下(build/main.c之類的)。
如果你編譯executable時編譯參數有-g的話,直接用gdb跑它就會有debugging information了不需要再額外reference source code。
希望有回答道你的問題。

鄭豫澤: [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant