Re: How to do the modular test - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: How to do the modular test
Date
Msg-id 3ADA7A1B.951DD261@alumni.caltech.edu
Whole thread Raw
In response to How to do the modular test  (Werachart Jantarataeme <wjt@ziif.com>)
List 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


pgsql-hackers by date:

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