hi all,

i have Theora video codec source code (a C library) and i want to debug it using GDB in linux.

but if its developers have not provide debuging enable option, how can i manualy chnaged the make file for unabling debuging optins.

please can anyone help me to do this.

Recommended Answers

All 2 Replies

As a rough guess, you remove any "-O" options and add a "-g" option to the CFLAGS make variable.

Whilst GDB can debug files with optimisation enabled, it does make for some very weird single-stepping.

Also remove "-s" (strip) if it exists. I'm pretty sure it takes precedence over -g.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.