How to use codelite program arguments ?
-
- CodeLite Expert
- Posts: 115
- Joined: Wed Dec 30, 2009 8:29 am
- Genuine User: Yes
- IDE Question: C++
- Location: Surrey, BC, Canada
- Contact:
How to use codelite program arguments ?
Hi, Eran:
I'm trying to debug "ffmpeg", in order to understand how it works.
I've got to use some arguments.
However, when I debug my program, it seems those arguments do not work at all.
I uploaded a video in the format of .ogv at
http://www.visionopen.com/codelitearguments.ogv
Eran, Is there anything I didn't pay attention to?
Oh, yes, my
OS: ubuntu 10.10
codelite: v2.7.0.4375
Thanks in advance.
Best Regards
JIA
I'm trying to debug "ffmpeg", in order to understand how it works.
I've got to use some arguments.
However, when I debug my program, it seems those arguments do not work at all.
I uploaded a video in the format of .ogv at
http://www.visionopen.com/codelitearguments.ogv
Eran, Is there anything I didn't pay attention to?
Oh, yes, my
OS: ubuntu 10.10
codelite: v2.7.0.4375
Thanks in advance.
Best Regards
JIA
Welcome to Vision Open
http://www.visionopen.com
http://www.visionopen.com
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: How to use codelite program arguments ?
Please post the debugger log of the relevant session (make sure you clear the log before you start the debug session)
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 115
- Joined: Wed Dec 30, 2009 8:29 am
- Genuine User: Yes
- IDE Question: C++
- Location: Surrey, BC, Canada
- Contact:
Re: How to use codelite program arguments ?
Hi, Eran:
Thanks for your prompt reply. But, how to produce the log file?
Codelite IDE, I did check
Settings->Debugger Settings->Misc->Enable Full debugger logging
And, then, I rebuilt the concerned project, but no logging file has been produced as shown in the following video file
http://www.visionopen.com/codelitelogging.ogv
So, is there anything required for Codelite logging ? You know, I just reinstalled Codelite and didn't notice anything special for logging?
Any suggestions?
Best Regards
JIA
Thanks for your prompt reply. But, how to produce the log file?
Codelite IDE, I did check
Settings->Debugger Settings->Misc->Enable Full debugger logging
And, then, I rebuilt the concerned project, but no logging file has been produced as shown in the following video file
http://www.visionopen.com/codelitelogging.ogv
So, is there anything required for Codelite logging ? You know, I just reinstalled Codelite and didn't notice anything special for logging?
Any suggestions?
Best Regards
JIA
Welcome to Vision Open
http://www.visionopen.com
http://www.visionopen.com
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: How to use codelite program arguments ?
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 115
- Joined: Wed Dec 30, 2009 8:29 am
- Genuine User: Yes
- IDE Question: C++
- Location: Surrey, BC, Canada
- Contact:
Re: How to use codelite program arguments ?
Hi, Eran:
You codelite version: v2.7.0.4375
Is it a self compiled version of codelite: yes, self compiled
Your OS: Ubuntu 10.10
Your GDB version:
$ gdb -v
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
full debugger logging:
Best Regards
JIA
You codelite version: v2.7.0.4375
Is it a self compiled version of codelite: yes, self compiled
Your OS: Ubuntu 10.10
Your GDB version:
$ gdb -v
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
full debugger logging:
Using gdbinit file: /home/jiapei/.gdbinit
Current working dir: /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg
Launching gdb from : ./Debug
Starting debugger : gdb --tty=/dev/pts/2 --interpreter=mi "./ffmpeg"
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print pretty on
DEBUG>>set print elements 200
DEBUG>>00002744-break-insert "\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:1755\""
DEBUG>>00002745-break-insert "\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4143\""
DEBUG>>00002746-break-insert "\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4145\""
DEBUG>>00002747-break-insert "\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4163\""
DEBUG>>00002748-break-insert "\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/cmdutils.c:126\""
Debug session started successfully!
DEBUG>>00002749-exec-run -i jiapei.mpg -async 0
Debuggee process ID: 13510
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (GDB) 7.2-ubuntu\n"
GNU gdb (GDB) 7.2-ubuntu
DEBUG>>~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
Copyright (C) 2010 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type "show copying"\nand "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i686-linux-gnu\".\nFor bug reporting instructions, please see:\n"
This GDB was configured as "i686-linux-gnu".\nFor bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>...\n"
<http://www.gnu.org/software/gdb/bugs/>...
DEBUG>>~"Reading symbols from /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/Debug/ffmpeg..."
Reading symbols from /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/Debug/ffmpeg...
DEBUG>>~"done.\n"
done.
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>^done
DEBUG>>&"set breakpoint pending on\n"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>^done
DEBUG>>&"set print pretty on\n"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>00002744^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08050865",func="av_transcode",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="1755",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:1755"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:1755
DEBUG>>00002745^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x08057b0d",func="main",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="4143",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4143"}
Found the breakpoint ID!
Storing debugger breakpoint Id=2
Successfully set breakpoint 2 at: /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4143
DEBUG>>00002746^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x08057b2f",func="main",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="4145",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4145"}
Found the breakpoint ID!
Storing debugger breakpoint Id=3
Successfully set breakpoint 3 at: /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4145
DEBUG>>00002747^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x08057c01",func="main",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="4163",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4163"}
Found the breakpoint ID!
Storing debugger breakpoint Id=4
Successfully set breakpoint 4 at: /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4163
DEBUG>>00002748^done,bkpt={number="5",type="breakpoint",disp="keep",enabled="y",addr="0x08057f9f",func="parse_options",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/cmdutils.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/cmdutils.c",line="126",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/cmdutils.c:126"}
Found the breakpoint ID!
Storing debugger breakpoint Id=5
Successfully set breakpoint 5 at: /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/cmdutils.c:126
DEBUG>>=thread-group-started,id="i1",pid="13510"
=thread-group-started,id="i1",pid="13510"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>00002749^running
Continuing...
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/i686/cmov/libswscale.so.0",target-name="/usr/lib/i686/cmov/libswscale.so.0",host-name="/usr/lib/i686/cmov/libswscale.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/i686/cmov/libswscale.so.0",target-name="/usr/lib/i686/cmov/libswscale.so.0",host-name="/usr/lib/i686/cmov/libswscale.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/i686/cmov/libavcodec.so.52",target-name="/usr/lib/i686/cmov/libavcodec.so.52",host-name="/usr/lib/i686/cmov/libavcodec.so.52",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/i686/cmov/libavcodec.so.52",target-name="/usr/lib/i686/cmov/libavcodec.so.52",host-name="/usr/lib/i686/cmov/libavcodec.so.52",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/i686/cmov/libavdevice.so.52",target-name="/usr/lib/i686/cmov/libavdevice.so.52",host-name="/usr/lib/i686/cmov/libavdevice.so.52",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/i686/cmov/libavdevice.so.52",target-name="/usr/lib/i686/cmov/libavdevice.so.52",host-name="/usr/lib/i686/cmov/libavdevice.so.52",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/i686/cmov/libavutil.so.50",target-name="/usr/lib/i686/cmov/libavutil.so.50",host-name="/usr/lib/i686/cmov/libavutil.so.50",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/i686/cmov/libavutil.so.50",target-name="/usr/lib/i686/cmov/libavutil.so.50",host-name="/usr/lib/i686/cmov/libavutil.so.50",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/i686/cmov/libavfilter.so.1",target-name="/usr/lib/i686/cmov/libavfilter.so.1",host-name="/usr/lib/i686/cmov/libavfilter.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/i686/cmov/libavfilter.so.1",target-name="/usr/lib/i686/cmov/libavfilter.so.1",host-name="/usr/lib/i686/cmov/libavfilter.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/i686/cmov/libpostproc.so.51",target-name="/usr/lib/i686/cmov/libpostproc.so.51",host-name="/usr/lib/i686/cmov/libpostproc.so.51",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/i686/cmov/libpostproc.so.51",target-name="/usr/lib/i686/cmov/libpostproc.so.51",host-name="/usr/lib/i686/cmov/libpostproc.so.51",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/libc.so.6",target-name="/lib/libc.so.6",host-name="/lib/libc.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libc.so.6",target-name="/lib/libc.so.6",host-name="/lib/libc.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/libm.so.6",target-name="/lib/libm.so.6",host-name="/lib/libm.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libm.so.6",target-name="/lib/libm.so.6",host-name="/lib/libm.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/i686/cmov/libavformat.so.52",target-name="/usr/lib/i686/cmov/libavformat.so.52",host-name="/usr/lib/i686/cmov/libavformat.so.52",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/i686/cmov/libavformat.so.52",target-name="/usr/lib/i686/cmov/libavformat.so.52",host-name="/usr/lib/i686/cmov/libavformat.so.52",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/libpthread.so.0",target-name="/lib/libpthread.so.0",host-name="/lib/libpthread.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libpthread.so.0",target-name="/lib/libpthread.so.0",host-name="/lib/libpthread.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/libz.so.1",target-name="/lib/libz.so.1",host-name="/lib/libz.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libz.so.1",target-name="/lib/libz.so.1",host-name="/lib/libz.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libva.so.1",target-name="/usr/lib/libva.so.1",host-name="/usr/lib/libva.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libva.so.1",target-name="/usr/lib/libva.so.1",host-name="/usr/lib/libva.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libgsm.so.1",target-name="/usr/lib/libgsm.so.1",host-name="/usr/lib/libgsm.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libgsm.so.1",target-name="/usr/lib/libgsm.so.1",host-name="/usr/lib/libgsm.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libschroedinger-1.0.so.0",target-name="/usr/lib/libschroedinger-1.0.so.0",host-name="/usr/lib/libschroedinger-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libschroedinger-1.0.so.0",target-name="/usr/lib/libschroedinger-1.0.so.0",host-name="/usr/lib/libschroedinger-1.0.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/sse2/libspeex.so.1",target-name="/usr/lib/sse2/libspeex.so.1",host-name="/usr/lib/sse2/libspeex.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/sse2/libspeex.so.1",target-name="/usr/lib/sse2/libspeex.so.1",host-name="/usr/lib/sse2/libspeex.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libtheoraenc.so.1",target-name="/usr/lib/libtheoraenc.so.1",host-name="/usr/lib/libtheoraenc.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libtheoraenc.so.1",target-name="/usr/lib/libtheoraenc.so.1",host-name="/usr/lib/libtheoraenc.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libtheoradec.so.1",target-name="/usr/lib/libtheoradec.so.1",host-name="/usr/lib/libtheoradec.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libtheoradec.so.1",target-name="/usr/lib/libtheoradec.so.1",host-name="/usr/lib/libtheoradec.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libvorbisenc.so.2",target-name="/usr/lib/libvorbisenc.so.2",host-name="/usr/lib/libvorbisenc.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libvorbisenc.so.2",target-name="/usr/lib/libvorbisenc.so.2",host-name="/usr/lib/libvorbisenc.so.2",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libvorbis.so.0",target-name="/usr/lib/libvorbis.so.0",host-name="/usr/lib/libvorbis.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libvorbis.so.0",target-name="/usr/lib/libvorbis.so.0",host-name="/usr/lib/libvorbis.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libvpx.so.0",target-name="/usr/lib/libvpx.so.0",host-name="/usr/lib/libvpx.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libvpx.so.0",target-name="/usr/lib/libvpx.so.0",host-name="/usr/lib/libvpx.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libdc1394.so.22",target-name="/usr/lib/libdc1394.so.22",host-name="/usr/lib/libdc1394.so.22",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libdc1394.so.22",target-name="/usr/lib/libdc1394.so.22",host-name="/usr/lib/libdc1394.so.22",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libasound.so.2",target-name="/usr/lib/libasound.so.2",host-name="/usr/lib/libasound.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libasound.so.2",target-name="/usr/lib/libasound.so.2",host-name="/usr/lib/libasound.so.2",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libX11.so.6",target-name="/usr/lib/libX11.so.6",host-name="/usr/lib/libX11.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libX11.so.6",target-name="/usr/lib/libX11.so.6",host-name="/usr/lib/libX11.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libXext.so.6",target-name="/usr/lib/libXext.so.6",host-name="/usr/lib/libXext.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libXext.so.6",target-name="/usr/lib/libXext.so.6",host-name="/usr/lib/libXext.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libXfixes.so.3",target-name="/usr/lib/libXfixes.so.3",host-name="/usr/lib/libXfixes.so.3",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libXfixes.so.3",target-name="/usr/lib/libXfixes.so.3",host-name="/usr/lib/libXfixes.so.3",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/libbz2.so.1.0",target-name="/lib/libbz2.so.1.0",host-name="/lib/libbz2.so.1.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libbz2.so.1.0",target-name="/lib/libbz2.so.1.0",host-name="/lib/libbz2.so.1.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/libdl.so.2",target-name="/lib/libdl.so.2",host-name="/lib/libdl.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libdl.so.2",target-name="/lib/libdl.so.2",host-name="/lib/libdl.so.2",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/liborc-0.4.so.0",target-name="/usr/lib/liborc-0.4.so.0",host-name="/usr/lib/liborc-0.4.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/liborc-0.4.so.0",target-name="/usr/lib/liborc-0.4.so.0",host-name="/usr/lib/liborc-0.4.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/libgcc_s.so.1",target-name="/lib/libgcc_s.so.1",host-name="/lib/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/libgcc_s.so.1",target-name="/lib/libgcc_s.so.1",host-name="/lib/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libogg.so.0",target-name="/usr/lib/libogg.so.0",host-name="/usr/lib/libogg.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libogg.so.0",target-name="/usr/lib/libogg.so.0",host-name="/usr/lib/libogg.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libraw1394.so.11",target-name="/usr/lib/libraw1394.so.11",host-name="/usr/lib/libraw1394.so.11",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libraw1394.so.11",target-name="/usr/lib/libraw1394.so.11",host-name="/usr/lib/libraw1394.so.11",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libusb-1.0.so.0",target-name="/usr/lib/libusb-1.0.so.0",host-name="/usr/lib/libusb-1.0.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libusb-1.0.so.0",target-name="/usr/lib/libusb-1.0.so.0",host-name="/usr/lib/libusb-1.0.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/librt.so.1",target-name="/lib/librt.so.1",host-name="/lib/librt.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/librt.so.1",target-name="/lib/librt.so.1",host-name="/lib/librt.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libxcb.so.1",target-name="/usr/lib/libxcb.so.1",host-name="/usr/lib/libxcb.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libxcb.so.1",target-name="/usr/lib/libxcb.so.1",host-name="/usr/lib/libxcb.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libXau.so.6",target-name="/usr/lib/libXau.so.6",host-name="/usr/lib/libXau.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libXau.so.6",target-name="/usr/lib/libXau.so.6",host-name="/usr/lib/libXau.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libXdmcp.so.6",target-name="/usr/lib/libXdmcp.so.6",host-name="/usr/lib/libXdmcp.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libXdmcp.so.6",target-name="/usr/lib/libXdmcp.so.6",host-name="/usr/lib/libXdmcp.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>*stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0x08057b0d",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff7b4"}],file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="4143"},thread-id="1",stopped-threads="all",core="0"
DEBUG>>00002750-file-list-exec-source-file
DEBUG>>00002751-break-list
DEBUG>>00002750^done,line="4143",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",macro-info="0"
DEBUG>>00002752-stack-list-locals 2
DEBUG>>00002753-stack-list-arguments 2 0 0
DEBUG>>00002751^done,BreakpointTable={nr_rows="5",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08050865",func="av_transcode",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="1755",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:1755"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x08057b0d",func="main",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="4143",times="1",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4143"},bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x08057b2f",func="main",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="4145",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4145"},bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x08057c01",func="main",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c",line="4163",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/ffmpeg.c:4163"},bkpt={number="5",type="breakpoint",disp="keep",enabled="y",addr="0x08057f9f",func="parse_options",file="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/cmdutils.c",fullname="/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/cmdutils.c",line="126",times="0",original-location="\"/home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/src/cmdutils.c:126"}]}
DEBUG>>00002752^done,locals=[{name="i",type="int",value="5"},{name="ti",type="int64_t",value="61009649676632868"}]
DEBUG>>00002753^done,stack-args=[frame={level="0",args=[{name="argc",type="int",value="1"},{name="argv",type="char **",value="0xbffff7b4"}]}]
DEBUG>>00002754-var-create - * "if"
DEBUG>>00002754^error,msg="mi_cmd_var_create: unable to create variable object"
Best Regards
JIA
Welcome to Vision Open
http://www.visionopen.com
http://www.visionopen.com
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: How to use codelite program arguments ?
It looks like codelite does pass the arguments to gdb:
I am not sure what is the problem, I have been using this method for quite a while now with no problems
Just incase, I modified in trunk version of codelite the method of setting arguments to the debugee by separating it into 2 method calls:
(both methods work in my case)
Eran
Code: Select all
DEBUG>>00002749-exec-run -i jiapei.mpg -async 0
Just incase, I modified in trunk version of codelite the method of setting arguments to the debugee by separating it into 2 method calls:
Code: Select all
-set-arguments
-exec-run
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 115
- Joined: Wed Dec 30, 2009 8:29 am
- Genuine User: Yes
- IDE Question: C++
- Location: Surrey, BC, Canada
- Contact:
Re: How to use codelite program arguments ?
Hi, Thanks Eran.
My gdb works fine, but Codelite doesn't.
No idea of it why it is so. Do I need to reinstall the whole Ubuntu 10.10?
Since my current Ubuntu 10.10 was upgraded from Ubuntu 10.04?
However, even if so, my Codelite is thoroughly re-installed.
??? Full of doubts...
Thank you anyway!! Thanks Eran.
Best Regards
JIA
My gdb works fine, but Codelite doesn't.
No idea of it why it is so. Do I need to reinstall the whole Ubuntu 10.10?
Since my current Ubuntu 10.10 was upgraded from Ubuntu 10.04?
However, even if so, my Codelite is thoroughly re-installed.
??? Full of doubts...
Thank you anyway!! Thanks Eran.
Best Regards
JIA
Welcome to Vision Open
http://www.visionopen.com
http://www.visionopen.com
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: How to use codelite program arguments ?
It is not related to the ubuntu version, but I think maybe a gdb version.
You are running gdb 7.2, I am using gdb 7.1
Try downgrading your gdb maybe?
Eran
You are running gdb 7.2, I am using gdb 7.1
Try downgrading your gdb maybe?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 115
- Joined: Wed Dec 30, 2009 8:29 am
- Genuine User: Yes
- IDE Question: C++
- Location: Surrey, BC, Canada
- Contact:
Re: How to use codelite program arguments ?
But, wait, Eran:
why gdb 7.2 is working fine in bash?
This can be demonstrated by the following messages shown in my bash:
Is there anything to do with Codelite program arguments sequence? I tried:
1) works fine
2) doesn't work
I mean, is it possible that Codelite doesn't put "--args" and "executive" in a correct order?
b)
What does this "00000068-exec-run" mean?
Ok, anyway, I'll try your SVN first.
-set-arguments may work.
Best Regards
JIA
why gdb 7.2 is working fine in bash?
This can be demonstrated by the following messages shown in my bash:
a)jiapei@jiapei-laptop:~/MyPrograms/C++/CodeLite/voface/ffmpeg/Debug$ gdb --args ./ffmpeg -i jiapei.mpg -vsync 0
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jiapei/MyPrograms/C++/CodeLite/voface/ffmpeg/Debug/ffmpeg...done.
(gdb) l
4114 { "default", OPT_FUNC2 | HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" },
4115 { NULL, },
4116 };
4117
4118 int main(int argc, char **argv)
4119 {
4120 int i;
4121 int64_t ti;
4122
4123 avcodec_register_all();
(gdb) ^CQuit
(gdb)
Is there anything to do with Codelite program arguments sequence? I tried:
1) works fine
Code: Select all
gdb --args ./ffmpeg -i jiapei.mpg -vsync 0
2) doesn't work
Code: Select all
gdb ./ffmpeg --args -i jiapei.mpg -vsync 0
b)
What does this "00000068-exec-run" mean?
Ok, anyway, I'll try your SVN first.
-set-arguments may work.
Best Regards
JIA
eranif wrote:It is not related to the ubuntu version, but I think maybe a gdb version.
You are running gdb 7.2, I am using gdb 7.1
Try downgrading your gdb maybe?
Eran
Welcome to Vision Open
http://www.visionopen.com
http://www.visionopen.com
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: How to use codelite program arguments ?
codelite 2.8 has been released and among other things it includes this fix (it now uses -set-arguments)
this one is similar to gdb CLI command 'run'
Eran
codelite uses the MI and NOT the CLI mode of gdb - different commandsjiapei100 wrote:What does this "00000068-exec-run" mean?
this one is similar to gdb CLI command 'run'
Eran
Make sure you have read the HOW TO POST thread