Debug with gstreamer plugin with gdb

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Debug with gstreamer plugin with gdb

pvvv
Hi

I want to debug a gstreamer plugin with GDB, does anybody know how to do it ??!!

thanks
Reply | Threaded
Open this post in threaded view
|

Re: Debug with gstreamer plugin with gdb

Martin Bisson
If you want to use gst-launch, run gdb on gst-launch:

gdb gst-launch-0.10

then set the command-line arguments to the appropriate pipeline:

set args videotestsrc ! ffmpegcolorspace ! autovideosink

then break wherever you want:

b gst_myplugin_chain

It will ask you if you want to set a pending break point on a function
that will be loaded later.  Say yes.

Should do it.

Mart


pvvv wrote:
> Hi
>
> I want to debug a gstreamer plugin with GDB, does anybody know how to do it
> ??!!
>
> thanks
>  


------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Debug with gstreamer plugin with gdb

Michael Joachimiak
You can do it also using some IDE (eclipse, qt creator, codeblocks). To create simple pipeline you can use gst_parse_launch and then have a breakpoint wherever you want in C file.

2010/8/6 Martin Bisson <[hidden email]>
If you want to use gst-launch, run gdb on gst-launch:

gdb gst-launch-0.10

then set the command-line arguments to the appropriate pipeline:

set args videotestsrc ! ffmpegcolorspace ! autovideosink

then break wherever you want:

b gst_myplugin_chain

It will ask you if you want to set a pending break point on a function
that will be loaded later.  Say yes.

Should do it.

Mart


pvvv wrote:
> Hi
>
> I want to debug a gstreamer plugin with GDB, does anybody know how to do it
> ??!!
>
> thanks
>


------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Your Sincerely
Michael Joachimiak

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel