Re: Open unmatch source file when step into parse_analyze() in Eclipse?

From: hom <obsidianhom(at)gmail(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Open unmatch source file when step into parse_analyze() in Eclipse?
Date: 2011-03-04 12:55:50
Message-ID: AANLkTikY2wUgo5sJmUD-hqgHsLTg=ecZR4gJkoym6sW_@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thanks Heikki Linnakangas :)

"Search for duplicate source files" option works fine in my eclipse,
but in my friend's eclipse, it still finds wrong source file.

And there is another problem:

when I debug step in the scanner_init(), Eclipse always finds scan.l
and the excute order is still unmatched.
May it be scan.c actually ?

PS: I have turn "Search for duplicate source files" option on.

2011/3/4 Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>:
> On 03.03.2011 16:46, hom wrote:
>>
>> Hi,
>>
>>   I'm debug Postgresql with Eclipse under Redhat and I met a problem.
>>
>> when I step in then function parse_analyze(), Eclipse opened file
>> src/backend/commands/analyze.c.
>> But actually, function parse_analyze() should match the file
>> src/backend/parser/analyze.c.
>>
>> So I found the execute order didn't match the source code.
>>
>> How can I make the Eclipse open the right file?
>
> Hmm, seems like a bug in Eclipse debugger. I found this:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=35960
>
> In the next-to-last comment, Mikhail Khodjaiants suggests checking the
> "Search for duplicate source files" option in the launch configuration.
>
> --
>  Heikki Linnakangas
>  EnterpriseDB   http://www.enterprisedb.com
>

--
Best Wishes!

                                     hom

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marios Vodas 2011-03-04 13:08:31 Why pfree(NULL) breaks execution?
Previous Message Simon Riggs 2011-03-04 11:45:41 Re: Sync Rep v19