debugging PJSIP library calls in xcode

236 views
Skip to first unread message

rukiman

unread,
Mar 21, 2010, 10:49:14 PM3/21/10
to Siphon
Does anyone know how I can debug PJSIP library calls in the Siphon
Xcode project?
I built the PJSIP library using "-gfull" but I still cannot step into
the PJSIP function calls. If I open the PJSIP source file in xcode and
put a breakpoint in the function, it does not break in the function.

Bengi Mizrahi

unread,
Mar 22, 2010, 3:53:24 PM3/22/10
to sip...@googlegroups.com
try dragging & dropping the source code you want to debug into the XCode project. Once you are done, don't forget to remove it from project.

Bengi


--
You received this message because you are subscribed to the Google Groups "Siphon" group.
To post to this group, send email to sip...@googlegroups.com.
To unsubscribe from this group, send email to siphon+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/siphon?hl=en.


rukiman

unread,
Mar 22, 2010, 11:30:43 PM3/22/10
to Siphon
I tried that but that doesn't work, still doesnt break on any of the
lines in the library source.
Any got PJSIP debugging on xcode?

On Mar 23, 6:53 am, Bengi Mizrahi <bengimizr...@gmail.com> wrote:
> try dragging & dropping the source code you want to debug into the XCode
> project. Once you are done, don't forget to remove it from project.
>
> Bengi
>
>
>
> On Mon, Mar 22, 2010 at 4:49 AM, rukiman <ruksh...@optushome.com.au> wrote:
> > Does anyone know how I can debug PJSIP library calls in the Siphon
> > Xcode project?
> > I built the PJSIP library using "-gfull" but I still cannot step into
> > the PJSIP function calls. If I open the PJSIP source file in xcode and
> > put a breakpoint in the function, it does not break in the function.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Siphon" group.
> > To post to this group, send email to sip...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > siphon+un...@googlegroups.com<siphon%2Bunsu...@googlegroups.com>

Samuel Vinson

unread,
Mar 23, 2010, 2:18:36 PM3/23/10
to sip...@googlegroups.com
Hello

Try this option : -O0 -gdwarf-2

Samuel

2010/3/23 rukiman <ruks...@optushome.com.au>
To unsubscribe from this group, send email to siphon+un...@googlegroups.com.

rukiman

unread,
Mar 23, 2010, 8:43:41 PM3/23/10
to Siphon
Thanks Samuel. I tried that and it did not work.

I modified pjproject-svn/build/cc-gcc.mak and changed CC_FLAGS to:

export CC_CFLAGS := -Wall -O0 -gdwarf-2

rebuilt PJSIP and opened up Siphon xcode project, did a clean all and
built and run on my iphone handset.

I put a breakpoint in pjsua_create() and was not able to step into
this function.

Using xcode File->Open, I browsed to pjsua_core.c and put a breakpoint
within pjsua_create() and was not able to break in this function.

The other thing I tried was to drag the file pjsua_core.c into the
xcode project and then put a breakpoint but that didn't work either.

Any idea what I am doing wrong?

On Mar 24, 5:18 am, Samuel Vinson <samuelv0...@gmail.com> wrote:
> Hello
>
> Try this option : -O0 -gdwarf-2
>
> Samuel
>

> 2010/3/23 rukiman <ruksh...@optushome.com.au>


>
>
>
> > I tried that but that doesn't work, still doesnt break on any of the
> > lines in the library source.
> > Any got PJSIP debugging on xcode?
>
> > On Mar 23, 6:53 am, Bengi Mizrahi <bengimizr...@gmail.com> wrote:
> > > try dragging & dropping the source code you want to debug into the XCode
> > > project. Once you are done, don't forget to remove it from project.
>
> > > Bengi
>
> > > On Mon, Mar 22, 2010 at 4:49 AM, rukiman <ruksh...@optushome.com.au>
> > wrote:
> > > > Does anyone know how I can debug PJSIP library calls in the Siphon
> > > > Xcode project?
> > > > I built the PJSIP library using "-gfull" but I still cannot step into
> > > > the PJSIP function calls. If I open the PJSIP source file in xcode and
> > > > put a breakpoint in the function, it does not break in the function.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Siphon" group.
> > > > To post to this group, send email to sip...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > siphon+un...@googlegroups.com<siphon%2Bunsu...@googlegroups.com>

> > <siphon%2Bunsu...@googlegroups.com<siphon%252Bunsubscribe@googlegroups. com>

Mark Krenek

unread,
Jun 21, 2011, 3:09:04 PM6/21/11
to sip...@googlegroups.com
Any luck with this? I need to do the same thing.
Reply all
Reply to author
Forward
0 new messages