Re: Wait free LW_SHARED acquisition - v0.2 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Wait free LW_SHARED acquisition - v0.2
Date
Msg-id CA+TgmoYT-WS9t_E2+n=omY3dCQXO2KzkTQkoJhJq7+zzJtaiPA@mail.gmail.com
Whole thread Raw
In response to Re: Wait free LW_SHARED acquisition - v0.2  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Wait free LW_SHARED acquisition - v0.2
List pgsql-hackers
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.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: UPSERT wiki page, and SQL MERGE syntax
Next
From: Fabrízio de Royes Mello
Date:
Subject: Re: pgaudit - an auditing extension for PostgreSQL