Re: Computer VARSIZE_ANY(PTR) during debugging - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Computer VARSIZE_ANY(PTR) during debugging
Date
Msg-id 20130627190227.GK3757@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: Computer VARSIZE_ANY(PTR) during debugging  (Amit Langote <amitlangote09@gmail.com>)
Responses Re: Computer VARSIZE_ANY(PTR) during debugging
List pgsql-hackers
Amit Langote escribió:

> Looking at the attlen == -1 value in tupDescriptor of the
> ResultTupleSlot, VARSIZE_ANY() is used to calculate the length and
> added to offset, but I find no way to calculate that while I am
> dubugging.

I guess you could just add a few "macro define" lines to your .gdbinit,
containing definitions equivalent to those in postgres.h.  Haven't tried
this for the varlena macros, though I do have a couple of others in
there and they ease work at times.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Kudos for Reviewers -- straw poll
Next
From: Alvaro Herrera
Date:
Subject: Re: pg_resetxlog -m documentation not up to date