Re: gdb with postgres
От | HuangQi |
---|---|
Тема | Re: gdb with postgres |
Дата | |
Msg-id | BANLkTi=qD4SMP_OeMOqfjh8E9e9XHXk8sg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: gdb with postgres (Pavan Deolasee <pavan.deolasee@gmail.com>) |
Список | pgsql-hackers |
Sorry, but recompile with this flag still doesn't work. <br /><br /><div class="gmail_quote">On 6 June 2011 15:46, PavanDeolasee <span dir="ltr"><<a href="mailto:pavan.deolasee@gmail.com">pavan.deolasee@gmail.com</a>></span> wrote:<br/><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">OnMon, Jun 6, 2011 at 1:13 PM, HuangQi <<a href="mailto:huangqiyx@gmail.com">huangqiyx@gmail.com</a>> wrote:<br/> > Hi,<br /> > I was using gdb to debug postgres. In order to debug the backend of<br /> > runningquery, I start postgres first and use "select * from<br /> > pg_backend_pid()" to ask for backend pid. Then I startgdb in another bash<br /> > window with "gdb postgres" and attach the pid obtained above and set the<br /> > breakpoint.Then I run the query from the first window. However, the<br /> > debugging precess which is shown below isnot going to the breakpoint. I<br /> > tried many different breakpoints, but it always start from the 305<br />> client_read_ended().<br /> ><br /><br /></div>Please compile with -O0 -g flags to see all the debug symbols.<br/><br /> CFLAGS="-O0 -g" ./configure --enable-debug<br /><br /> Thanks,<br /> Pavan<br /><font color="#888888"><br/> --<br /> Pavan Deolasee<br /> EnterpriseDB <a href="http://www.enterprisedb.com" target="_blank">http://www.enterprisedb.com</a><br/></font></blockquote></div><br /><br clear="all" /><br />-- <br />BestRegards<br />Huang Qi Victor<br />
В списке pgsql-hackers по дате отправления: