Re: Computer VARSIZE_ANY(PTR) during debugging

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Computer VARSIZE_ANY(PTR) during debugging
Дата
Msg-id 20130627190227.GK3757@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Computer VARSIZE_ANY(PTR) during debugging  (Amit Langote <amitlangote09@gmail.com>)
Ответы Re: Computer VARSIZE_ANY(PTR) during debugging  (Greg Stark <stark@mit.edu>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Kudos for Reviewers -- straw poll
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_resetxlog -m documentation not up to date