Re: debuging postgres - Mailing list pgsql-hackers

From Gaetano Mendola
Subject Re: debuging postgres
Date
Msg-id 412B26A7.7020406@bigfoot.com
Whole thread Raw
In response to Re: debuging postgres  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: debuging postgres  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: debuging postgres  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne wrote:

>> in order to debug "step by step" the postmaster,
>> just to understand better the code, is it enough
>> to compile it after having exported:
>>
>> CFLAGS='-O0 -g' ?
>>
>> do you have any hint and/or tips ?
>>
>> BTW what do you use for this task ?
> 
> 
> ./configure --enable-debug

Is this enough? I'm seeing that with --enable-debug only the
option -g is passed to the compiler and the option -O2 is
still there, is it not better compile with -O0 if you are
going to debug it?


Regards
Gaetano Mendola










pgsql-hackers by date:

Previous
From: Neil Conway
Date:
Subject: Re: 8.0 beta 1 on linux-mipsel R5900
Next
From: Tom Lane
Date:
Subject: Re: 8.0 beta 1 on linux-mipsel R5900