[MPlayer-dev-eng] why gdb can't find the right position of main() in mplayer.c
Renzhong Xiao
rzxiao at gmail.com
Sun Jun 5 16:20:48 CEST 2005
hi,all. I download the source code of MPlayer-1.0pre7 and configure with the
"./configure --enable-debug=1" in cygwin.When the whole project is
compiled,I run :
gdb mplayer
(gdb) break mplayer.c:main
Breakpoint 1 at 0x403904:file mplayer.c,line 2739
(gdb) list 2739
2734 while( !brk_cmd && (cmd = mp_input_get_cmd(0,0,0)) != NULL) {
2735 switch(cmd->id) {
2736 case MP_CMD_SEEK : {
2737 float v;
2738 int abs;
2739 osd_show_percentage = 25;
2740 v = cmd->args[0].v.f;
2741 abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
2742 if(abs==2) { /* Absolute seek to a specific timestamp in seconds */
2743 abs_seek_pos = 1;
the line 2739 is not the main() function (it should at line 1004).
I try again in MinGW,but the phenomena is the same.
Does anybody could tell me what's happen?
Renzhong Xiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050605/90034a9c/attachment.htm>
More information about the MPlayer-dev-eng
mailing list