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

Debugging with GDB #6

Open
normvcr opened this issue Oct 10, 2013 · 1 comment
Open

Debugging with GDB #6

normvcr opened this issue Oct 10, 2013 · 1 comment

Comments

@normvcr
Copy link

normvcr commented Oct 10, 2013

To debug with gdb without artefacts, I changed the configure script as follows

< enableval=$enable_debug; CFLAGS="-DDEBUG -O -g ${CFLAGS}"

enableval=$enable_debug; CFLAGS="-DDEBUG -O0 -ggdb ${CFLAGS}"

The main thing is using -O0, otherwise I get funny results when debugging.

I am running on Fedora 18, x86, 32-bit

@cynthia
Copy link
Collaborator

cynthia commented Jun 4, 2019

What kind of funny results did you see?

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