error order when debug postgresql step by step?

Started by homalmost 15 years ago4 messages
#1hom
obsidianhom@gmail.com

HI,
I tried to debug PostgreSQL under Redhat with Eclipse.
I follew the guide ' Working with Eclipse ', and build the DB successfully.
http://wiki.postgresql.org/wiki/Working_with_Eclipse

However, when I debug the souce code step by step, I found it run in
the wrong order.

I think the cause maybe the share library and the source code do not match.
I have add MY_PG_INS_DIR/lib to LD_LIBRARY_PATH, but it does't work at all.

How can I do to make sure the right excute order when I debug step by step ?

Thank you for answering.

--
Best Wishes!

                                     hom

#2Kevin Grittner
Kevin.Grittner@wicourts.gov
In reply to: hom (#1)
Re: error order when debug postgresql step by step?

hom <obsidianhom@gmail.com> wrote:

How can I do to make sure the right excute order when I debug step
by step ?

You may need to reduce the optimization level of your compile.

-Kevin

#3Ibrar Ahmed
ibrar.ahmad@gmail.com
In reply to: Kevin Grittner (#2)
Re: error order when debug postgresql step by step?

- export CFLAGS='-O0' may work for you.

On Tue, Mar 1, 2011 at 8:21 PM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:

hom <obsidianhom@gmail.com> wrote:

How can I do to make sure the right excute order when I debug step
by step ?

You may need to reduce the optimization level of your compile.

-Kevin

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

--
   Ibrar Ahmed

#4hom
obsidianhom@gmail.com
In reply to: Ibrar Ahmed (#3)
Re: error order when debug postgresql step by step?

It works!

Thanks Kevin and Lbrar!

:)

2011/3/1 Ibrar Ahmed <ibrar.ahmad@gmail.com>:

- export CFLAGS='-O0' may work for you.

On Tue, Mar 1, 2011 at 8:21 PM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:

hom <obsidianhom@gmail.com> wrote:

How can I do to make sure the right excute order when I debug step
by step ?

You may need to reduce the optimization level of your compile.

-Kevin

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

--
   Ibrar Ahmed

--
Best Wishes!

                                     hom