Re: Wait free LW_SHARED acquisition - v0.2

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Wait free LW_SHARED acquisition - v0.2
Дата
Msg-id 20141010104901.GB6670@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Wait free LW_SHARED acquisition - v0.2  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 2014-10-08 20:07:35 -0400, Robert Haas wrote:
> On Wed, Oct 8, 2014 at 2:04 PM, Andres Freund <andres@2ndquadrant.com> wrote:
> > So, what makes it work for me (among other unrelated stuff) seems to be
> > the following in .gdbinit, defineing away some things that gdb doesn't
> > handle:
> > macro define __builtin_offsetof(T, F) ((int) &(((T *) 0)->F))
> > macro define __extension__
> > macro define AssertVariableIsOfTypeMacro(x, y) ((void)0)
> >
> > Additionally I have "-ggdb -g3" in CFLAGS. That way gdb knows about
> > postgres' macros. At least if you're in the right scope.
> >
> > As an example, the following works:
> > (gdb) p dlist_is_empty(&BackendList) ? NULL : dlist_head_element(Backend, elem, &BackendList)
> 
> Ah, cool.  I'll try that.

If that works for you, should we put it somewhere in the docs? If so,
where?

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: Column Redaction
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Column Redaction