Re: How to do the modular test

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Werachart Jantarataeme <wjt(at)ziif(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to do the modular test
Date: 2001-04-16 04:50:35
Message-ID: 3ADA7A1B.951DD261@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> What I would like to know is, if I have changed some ot the modules,
> how can I use GNU gdb to debug the modified codes?

You can run the backend directly from gdb:

$ gdb postgres
(set breakpoint)
> b <routine_to_breakpoint>
(tell gdb to begin)
> run -D <path_to_database>
(enter query at prompt)
> select xyz from abc...
(will run until it hits the breakpoint(s))

- Thomas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-04-16 05:22:36 Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)
Previous Message Thomas Lockhart 2001-04-16 04:42:00 Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)