[MPlayer-dev-eng] why gdb can't find the right position of main() in mplayer.c

Sascha Sommer saschasommer at freenet.de
Tue Jun 7 18:25:55 CEST 2005


Hi,

Am Sonntag, den 05.06.2005, 22:20 +0800 schrieb Renzhong Xiao:
> 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?
>  

I have no idea what you are trying to do, but you could try to recompile
with --enable-debug=3

Sascha






More information about the MPlayer-dev-eng mailing list