janaka priyadarshana
2008-Feb-06 02:56 UTC
[theora-dev] How can I go into theora library function while debugging the encoder_example
hi all, When i am debugging the encoder_example using gdb, it is fine that things are going on well. By stepping (step command used in gdb), it is possible to go into other functions which is written in the same file (encoder_example.c file). But it is not possible to go into functions like "theora_encode_init" which is written in the "encoder_toplevel.c" located in the path of "/lib/enc" I want to go into functions defined in the "lib" directory while i am debugging the encoder_example please can anyone help me to do this thanks -- ----------- Regards, Janaka Priyadarshana -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20080206/368872fe/attachment.htm
Conrad Parker
2008-Feb-06 23:40 UTC
[theora-dev] How can I go into theora library function while debugging the encoder_example
On 06/02/2008, janaka priyadarshana <rpjanaka@gmail.com> wrote:> hi all, > > I want to go into functions defined in the "lib" directory while i am > debugging the encoder_exampleHi, in general, you need to make sure you are compiling the library with debugging support, eg. by adding "-g" in CFLAGS when building the library (if using gcc). Conrad.
janaka priyadarshana
2008-Feb-07 00:50 UTC
[theora-dev] How can I go into theora library function while debugging the encoder_example
In the Makefile.am in lib directory there are three lines that specify CFLAGS. it is as follow libtheora_la_CFLAGS = $(OGG_CFLAGS) $(DEFS_NET) $(INCS_NET) libtheora_la_LDFLAGS = -version-info @TH_LIB_CURRENT@:@TH_LIB_REVISION@:@TH_LIB_AGE@ @THEORA_LDFLAGS@ libtheora_la_LIBADD = $(OGG_LIBS) $(LIBS_NET) debug: $(MAKE) all CFLAGS="@DEBUG@" LDFLAGS="-lefence" profile: $(MAKE) all CFLAGS="@PROFILE@" I just modify this as follow libtheora_la_CFLAGS = -g -Wall $(OGG_CFLAGS) $(DEFS_NET) $(INCS_NET) But still the problem remain same,(can not go into "theora_encode_init" function while debug) so what should I do, please can you explain more about how to compiling the library with debugging support...? On Feb 7, 2008 1:10 PM, Conrad Parker <conrad@metadecks.org> wrote:> On 06/02/2008, janaka priyadarshana <rpjanaka@gmail.com> wrote: > > hi all, > > > > I want to go into functions defined in the "lib" directory while i am > > debugging the encoder_example > > Hi, > > in general, you need to make sure you are compiling the library with > debugging support, eg. by adding "-g" in CFLAGS when building the > library (if using gcc). > > Conrad. >-- ----------- Regards, Janaka Priyadarshana -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20080207/319601f9/attachment.html